/* ==============================
   Braintrepreneurs — One-Pager
   Mobile-first, warm, anti-corporate
   ============================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #faf6f1;
  --color-bg-warm: #f3ece3;
  --color-bg-dark: #2c2520;
  --color-text: #2c2520;
  --color-text-muted: #5e524a;
  --color-accent: #c0582e;
  --color-accent-hover: #a34822;
  --color-border: #d9cfc4;
  --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- HERO ---- */

.hero {
  padding: 5rem 0 4rem;
  background-color: var(--color-bg);
}

.hero-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

/* ---- CTA BUTTON ---- */

.cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--color-accent);
  padding: 0.875rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta:hover,
.cta:focus {
  background-color: var(--color-accent-hover);
  outline: none;
}

/* ---- SECTIONS ---- */

.section {
  padding: 4rem 0;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ---- COS'È ---- */

.section--what {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* ---- PERCHÉ FUNZIONA ---- */

.section--why {
  background-color: var(--color-bg-warm);
}

.reasons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.reason h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.reason p {
  color: var(--color-text-muted);
}

/* ---- COME FUNZIONA ---- */

.section--how {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail dt {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.detail dd {
  color: var(--color-text-muted);
}

/* ---- CTA FINALE ---- */

.section--cta {
  background-color: var(--color-bg-dark);
  padding: 4rem 0;
}

.section--cta h2 {
  color: #fff;
}

.section--cta p {
  color: rgba(255, 255, 255, 0.75);
}

.section--cta .cta {
  margin-top: 1.25rem;
  background-color: #e8734a;
}

.section--cta .cta:hover,
.section--cta .cta:focus {
  background-color: #d6613a;
}

/* ---- FOOTER ---- */

.footer {
  padding: 2.5rem 0;
  background-color: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- RESPONSIVE — TABLET & UP ---- */

@media (min-width: 640px) {
  .hero {
    padding: 7rem 0 5rem;
  }

  .hero-logo {
    width: 88px;
    height: 88px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero .subtitle {
    font-size: 1.125rem;
  }

  .section {
    padding: 5rem 0;
  }

  .section h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 9rem 0 6rem;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .section {
    padding: 6rem 0;
  }
}
