/* =========================================================
   MamaFirst — foglio di stile del sito
   Palette ispirata alla cover di "La tua prima gravidanza"
   ========================================================= */

:root {
  --cream:      #FBF6F0;
  --cream-deep: #F6ECE3;
  --blush:      #F5E4DE;
  --blush-2:    #EFD6CE;
  --rose:       #C98A86;
  --rose-deep:  #8C4A53;
  --rose-ink:   #6E3742;
  --terra:      #C6795E;
  --terra-deep: #A75E45;
  --ink:        #453B36;
  --muted:      #8A7C74;
  --line:       #EADFD5;
  --white:      #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(120, 74, 66, .08);
  --shadow-md: 0 14px 40px rgba(120, 74, 66, .14);
  --shadow-lg: 0 30px 70px rgba(120, 74, 66, .22);

  --radius:   18px;
  --radius-lg: 28px;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.12; color: var(--rose-ink); letter-spacing: -.01em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin-bottom: 16px;
}
.lead { font-size: 1.18rem; color: var(--muted); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--rose-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--rose-ink); }
.btn--ghost { background: transparent; color: var(--rose-deep); border-color: var(--blush-2); }
.btn--ghost:hover { background: var(--blush); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--rose-deep); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(251, 246, 240, .82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-serif); font-weight: 600; font-size: 1.45rem; color: var(--rose-ink); }
.brand .brand__mark { color: var(--terra); }
.brand svg { width: 22px; height: 22px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 500; font-size: .98rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--rose-deep); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--terra); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--rose-ink); border-radius: 2px; transition: .25s; }
.nav__toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 92px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 82% 12%, rgba(198,121,94,.16), transparent 60%),
    radial-gradient(55% 60% at 8% 88%, rgba(201,138,134,.20), transparent 60%),
    linear-gradient(180deg, var(--blush) 0%, var(--cream) 62%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; }
.hero h1 em { font-style: italic; color: var(--terra-deep); }
.hero__sub { margin-top: 22px; font-size: 1.2rem; color: var(--ink); max-width: 30ch; }
.hero__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: 26px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .92rem; }
.hero__meta .stars { color: var(--terra); letter-spacing: 2px; font-size: 1rem; }

.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art .book-shadow { position: absolute; bottom: -18px; width: 62%; height: 40px; background: rgba(110,55,66,.28); filter: blur(26px); border-radius: 50%; z-index: -1; }
.book {
  width: min(340px, 78%); border-radius: 6px 12px 12px 6px;
  box-shadow: var(--shadow-lg), -8px 0 0 rgba(0,0,0,.05);
  transform: rotate(-3deg); transition: transform .4s ease;
}
.book:hover { transform: rotate(-1deg) translateY(-6px) scale(1.02); }
.hero__badge {
  position: absolute; top: 3%; left: 2%; z-index: 3;
  background: #fff; color: var(--rose-deep); font-weight: 700; font-size: .82rem;
  padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-md); transform: rotate(-5deg);
  white-space: nowrap;
}

/* ---------- Trust bar ---------- */
.trust { background: var(--rose-ink); color: #fbeee9; }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 48px; padding-block: 22px; }
.trust__item { display: flex; align-items: center; gap: 10px; font-size: .98rem; font-weight: 500; }
.trust__item svg { width: 20px; height: 20px; color: var(--rose); flex: none; }

/* ---------- Two voices ---------- */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.voice-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; gap: 22px; align-items: flex-start;
}
.voice-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: var(--shadow-sm); }
.voice-card h3 { font-size: 1.35rem; }
.voice-card .role { color: var(--terra-deep); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.voice-card p { color: var(--muted); font-size: .98rem; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blush); color: var(--terra-deep); margin-bottom: 16px;
}
.feature__ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .96rem; }

/* ---------- Alt background section ---------- */
.bg-blush { background: linear-gradient(180deg, var(--blush) 0%, var(--cream-deep) 100%); }
.bg-cream { background: var(--cream-deep); }

/* ---------- Quote ---------- */
.quote { max-width: 760px; margin-inline: auto; text-align: center; }
.quote blockquote { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.35; color: var(--rose-ink); font-style: italic; }
.quote .mark { font-size: 3.4rem; color: var(--rose); line-height: 0; }

/* ---------- Split / bio blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); object-fit: cover; }
.split__media--portrait img { aspect-ratio: 4/5; }
.split__media .frame { position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--blush-2); border-radius: var(--radius-lg); z-index: -1; }
.split__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.split__body .role { display: inline-block; color: var(--terra-deep); font-weight: 600; letter-spacing: .04em; margin: 6px 0 18px; }
.split__body p + p { margin-top: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--blush);
  color: var(--rose-deep); font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Author page hero ---------- */
.authors-hero { position: relative; overflow: hidden; }
.authors-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 80% 0%, rgba(201,138,134,.22), transparent 60%), linear-gradient(180deg, var(--blush), var(--cream));
}
.authors-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.authors-hero__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.authors-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

/* ---------- Committee ---------- */
.committee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.committee__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.committee__card .dot { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: var(--blush); color: var(--terra-deep); display: grid; place-items: center; }
.committee__card .dot svg { width: 22px; height: 22px; }
.committee__card h3 { font-size: 1.1rem; }
.committee__card p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--rose-ink); color: #fdeee9; text-align: center; border-radius: var(--radius-lg); padding: 64px 32px; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 50% -20%, rgba(198,121,94,.5), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { max-width: 52ch; margin: 14px auto 28px; color: #f3d9d1; font-size: 1.1rem; }

/* ---------- Bonus callout ---------- */
.bonus { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-sm); }
.bonus ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.bonus li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.bonus li svg { width: 22px; height: 22px; color: var(--terra); flex: none; margin-top: 2px; }
.bonus__qr { text-align: center; }
.bonus__qr .qr { width: 160px; height: 160px; margin: 0 auto 14px; border-radius: 18px; background: var(--blush); display: grid; place-items: center; color: var(--terra-deep); }
.bonus__qr .qr svg { width: 88px; height: 88px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--rose-ink); color: #f0d9d2; padding: 56px 0 28px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .brand__mark { color: var(--rose); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__grid p { color: #e0bcb3; font-size: .95rem; margin-top: 14px; max-width: 34ch; }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #d9b3aa; }
.footer__bottom a { color: inherit; }
.footer__bottom span a { text-decoration: underline; }
.footer__legal { display: flex; gap: 10px 20px; flex-wrap: wrap; }
.footer__legal a { font-size: .85rem; color: #e6c4bb; }
.footer__legal a:hover { color: #fff; }
.footer__note { margin-top: 14px; font-size: .78rem; color: #c99b91; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 84px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.legal .updated { color: var(--muted); font-size: .9rem; margin: 10px 0 30px; }
.legal .lead { margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin-top: 38px; }
.legal h3 { font-size: 1.08rem; margin-top: 24px; color: var(--rose-ink); font-family: var(--font-sans); font-weight: 700; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--rose-deep); text-decoration: underline; }
.legal .box { background: var(--blush); border: 1px solid var(--blush-2); border-radius: var(--radius); padding: 20px 24px; margin-top: 22px; }
.legal .box p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .book { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid, .authors-hero__grid, .split, .bonus { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .split--reverse .split__media { order: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .committee { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 20px 24px 26px; gap: 18px;
  }
  .nav__cta .btn { display: none; }
  .voices, .features, .committee, .footer__grid { grid-template-columns: 1fr; }
  .trust .container { gap: 14px 28px; }
}
