/* =============================================================================
   Tania KA · I Codici Genealogici — landing del corso gratuito (3 serate live)
   Palette "Autunno": Chambray, Espresso, Glacier, Bisque, Clay.
   Stessa famiglia tipografica del resto del sito: Cormorant Garamond + Manrope.
   ========================================================================== */

:root {
  /* --- palette Autunno --------------------------------------------------- */
  --chambray:      #79A3C3;
  --chambray-deep: #5D89AC;
  --espresso:      #3A2119;
  --espresso-deep: #2B1710;
  --glacier:       #D2E2EC;
  --glacier-soft:  #E8F1F7;
  --bisque:        #EBCDB7;
  --bisque-deep:   #DCB396;
  --clay:          #957662;
  --clay-deep:     #7C6151;
  --cream:         #FBF7F3;

  /* --- ruoli -------------------------------------------------------------- */
  --ink:        var(--espresso);
  --ink-mut:    #6E5A4E;
  --ink-soft:   #8B7869;
  --paper:      #F7F0E9;
  --paper-mut:  rgba(247, 240, 233, 0.74);
  --paper-soft: rgba(247, 240, 233, 0.52);
  --line:       rgba(58, 33, 25, 0.14);
  --line-dark:  rgba(235, 205, 183, 0.22);

  /* --- tipografia --------------------------------------------------------- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --radius: 22px;
  --shadow: 0 22px 54px rgba(58, 33, 25, 0.13);
  --shadow-sm: 0 10px 26px rgba(58, 33, 25, 0.10);

  /* --- neomorfismo -------------------------------------------------------
     Ogni superficie ha due ombre: una chiara in alto a sinistra (la luce) e
     una scura in basso a destra (l'ombra). Cosi il blocco sembra scolpito
     nello sfondo invece che appoggiato sopra. */
  --nm-up:    -7px -7px 15px rgba(255, 255, 255, 0.95),  9px 10px 22px rgba(58, 33, 25, 0.13);
  --nm-up-sm: -4px -4px 10px rgba(255, 255, 255, 0.92),  5px 6px 14px rgba(58, 33, 25, 0.14);
  --nm-in:    inset -4px -4px 9px rgba(255, 255, 255, 0.90), inset 5px 5px 11px rgba(58, 33, 25, 0.13);
  --nm-edge:  1px solid rgba(255, 255, 255, 0.85);

  /* le stesse due ombre, ma sul fondo scuro */
  --nm-up-dark: -6px -6px 14px rgba(255, 255, 255, 0.05), 8px 10px 22px rgba(0, 0, 0, 0.45);
  --nm-in-dark: inset -3px -3px 8px rgba(255, 255, 255, 0.055), inset 4px 5px 11px rgba(0, 0, 0, 0.48);

  /* --- bordo e ombra netta dei bottoni ------------------------------------ */
  --edge:      2px solid var(--espresso);
  --edge-dark: 2px solid var(--espresso-deep);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* --- impaginazione --------------------------------------------------------- */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 820px); margin-inline: auto; }

section { padding: clamp(48px, 8vw, 104px) 0; position: relative; }
.sec--dark {
  color: var(--paper);
  background:
    radial-gradient(58% 62% at 84% 3%,  rgba(121, 163, 195, 0.17), transparent 62%),
    radial-gradient(54% 56% at 5% 97%,  rgba(235, 205, 183, 0.11), transparent 64%),
    var(--espresso);
}
.sec--ice {
  background:
    radial-gradient(66% 58% at 12% 0%,  rgba(255, 255, 255, 0.72), transparent 62%),
    radial-gradient(58% 66% at 96% 100%, rgba(121, 163, 195, 0.26), transparent 64%),
    var(--glacier);
}
.sec--soft {
  background:
    radial-gradient(60% 60% at 90% 4%,  rgba(255, 255, 255, 0.85), transparent 62%),
    radial-gradient(56% 60% at 4% 96%,  rgba(121, 163, 195, 0.16), transparent 64%),
    var(--glacier-soft);
}
.sec--cream {
  background:
    radial-gradient(58% 54% at 90% 5%,  rgba(235, 205, 183, 0.36), transparent 62%),
    radial-gradient(52% 58% at 3% 93%,  rgba(210, 226, 236, 0.44), transparent 64%),
    var(--cream);
}

/* --- tipografia ------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.012em; }

h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.03; }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.10; }
h3 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.25; }

.eyebrow {
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before,
.center .eyebrow::after {
  content: ""; width: 28px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: 0.5; flex: 0 0 auto;
}
.sec--dark .eyebrow { color: var(--bisque); }

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-mut); }
.sec--dark .lead { color: var(--paper-mut); }

.accent { color: var(--clay); }
.sec--dark .accent { color: var(--bisque); }
.accent-blue { color: var(--chambray-deep); }
.sec--dark .accent-blue { color: var(--chambray); }

.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }

/* filetto decorativo sotto i titoli */
.rule { width: 68px; height: 3px; border-radius: 3px; background: var(--clay); margin: 18px 0 0; }
.center .rule { margin-inline: auto; }
.sec--dark .rule { background: var(--bisque); }

/* =============================================================================
   Barra annuncio
   ========================================================================== */
.topbar {
  background: var(--espresso-deep);
  color: var(--bisque);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  text-align: center;
  padding: 11px 20px;
  line-height: 1.5;
}
.topbar b { color: #fff; font-weight: 700; }

/* =============================================================================
   Hero
   ========================================================================== */
.hero {
  background:
    radial-gradient(62% 70% at 78% 8%, rgba(121, 163, 195, 0.20), transparent 68%),
    radial-gradient(52% 58% at 6% 92%, rgba(235, 205, 183, 0.16), transparent 70%),
    linear-gradient(168deg, #452A20 0%, #3A2119 46%, #2B1710 100%);
  color: var(--paper);
  padding: clamp(40px, 5vw, 64px) 0 0;
  position: relative;
  overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero__grid {
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1fr;
  align-items: end;
}
.hero__badge {
  display: inline-flex; flex-wrap: wrap; gap: 4px 0; align-items: center;
  border: 1px dashed rgba(235, 205, 183, 0.45);
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--bisque);
  background: rgba(235, 205, 183, 0.06);
  box-shadow: var(--nm-in-dark);
}
.hero__badge span + span::before {
  content: "◆"; margin: 0 11px;
  color: var(--chambray); font-size: 9px; vertical-align: 2px;
}
.hero h1 { margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--bisque); }
.hero__claim {
  margin-top: 20px;
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  border-left: 3px solid var(--chambray);
  padding-left: 16px;
}
/* la frase evidenziata non si spezza a meta': o sta tutta sulla riga, o va a capo */
.hero__claim .mark { white-space: nowrap; }
.hero__text { margin-top: 20px; color: var(--paper-mut); max-width: 56ch; }
.hero__dates {
  margin-top: 22px;
  font-weight: 700; font-size: 15px;
  color: var(--bisque);
}
.hero__dates::before {
  content: "◆"; margin-right: 10px;
  color: var(--chambray); font-size: 11px; vertical-align: 2px;
}
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { font-size: 13.5px; color: var(--paper-soft); }
.hero__photo { position: relative; align-self: end; }
.hero__photo img {
  width: min(100%, 460px); margin-inline: auto;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.35));
}
.hero__halo {
  position: absolute; inset: auto 0 0 50%;
  transform: translateX(-50%);
  width: min(96%, 440px); aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(121, 163, 195, 0.30), transparent 66%);
  filter: blur(6px);
  z-index: -1;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero { padding-top: clamp(56px, 5vw, 84px); }
}

/* =============================================================================
   Bottoni
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 17px; font-weight: 800; letter-spacing: 0.005em;
  text-decoration: none;
  padding: 18px 34px;
  border: var(--edge); border-radius: 999px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
  background: linear-gradient(140deg, #A98A73, var(--clay) 55%, var(--clay-deep));
  color: #FFF8F1;
  /* ombra netta, senza sfocatura: il bottone si stacca dallo sfondo */
  box-shadow: 7px 7px 0 var(--espresso);
}
/* premendo, il bottone scende sulla propria ombra */
.btn:hover  { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--espresso); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--espresso); }
.btn:focus-visible { outline: 3px solid var(--chambray); outline-offset: 4px; }

/* variante chiara: sulle sezioni scure, dove l'ombra scura sparirebbe */
.btn--light {
  background: linear-gradient(140deg, #F3DCC8, var(--bisque) 55%, var(--bisque-deep));
  color: var(--espresso);
  border: var(--edge-dark);
  box-shadow: 7px 7px 0 var(--chambray);
}
.btn--light:hover  { box-shadow: 3px 3px 0 var(--chambray); }
.btn--light:active { box-shadow: 0 0 0 var(--chambray); }
.btn--wide { width: 100%; padding-inline: 20px; }
.btn--big { font-size: 19px; padding: 22px 40px; }

/* =============================================================================
   Credenziali (striscia sotto l'hero)
   ========================================================================== */
.creds {
  background: var(--espresso-deep);
  border-top: 1px solid var(--line-dark);
  padding: 20px 0;
}
.creds__row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px clamp(18px, 4vw, 44px);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(235, 205, 183, 0.78);
  text-align: center;
}
.creds__row i { font-style: normal; color: var(--chambray); }

/* =============================================================================
   Blocco iscrizione (form + countdown)
   ========================================================================== */
.signup__title { max-width: 24ch; margin-inline: auto; }

.card-form {
  margin-top: 34px;
  background: linear-gradient(165deg, #452A20, var(--espresso) 52%, var(--espresso-deep));
  color: var(--paper);
  border-radius: 26px;
  padding: clamp(24px, 3.4vw, 40px);
  border: var(--edge-dark);
  box-shadow: 10px 10px 0 var(--clay);
  max-width: 560px; margin-inline: auto;
}
.sec--dark .card-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}

.field { margin-bottom: 14px; }
.field input {
  width: 100%;
  font-family: var(--font-body); font-size: 16px;
  color: var(--espresso);
  background: var(--cream);
  border: 1.5px solid rgba(58, 33, 25, 0.10);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--nm-in);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input::placeholder { color: #A0897A; }
.field input:focus {
  outline: none;
  border-color: var(--chambray);
  box-shadow: var(--nm-in), 0 0 0 4px rgba(121, 163, 195, 0.28);
}
.field input[aria-invalid="true"] { border-color: #C6705C; }
.field__err { display: none; font-size: 13px; color: #F0AE9B; margin-top: 6px; padding-left: 4px; }
.field input[aria-invalid="true"] ~ .field__err { display: block; }

.consent {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 13.5px; line-height: 1.5;
  color: var(--paper-mut);
  margin: 18px 0 20px;
  cursor: pointer;
}
.consent input {
  width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px;
  accent-color: var(--chambray);
  cursor: pointer;
}
.consent a { color: var(--bisque); }
.consent.is-bad { color: #F0AE9B; }

.form__note { font-size: 12.5px; color: var(--paper-soft); text-align: center; margin-top: 14px; }

/* --- countdown ------------------------------------------------------------- */
.count {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.count__cell {
  text-align: center;
  padding: 12px 4px 10px;
  border-radius: 16px;
  box-shadow: var(--nm-in-dark);
}
.count__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 42px); line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.count__lab {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-soft);
  margin-top: 7px;
}

/* --- esito invio ----------------------------------------------------------- */
.done { display: none; text-align: center; }
.done:focus { outline: none; }
.done.is-on { display: block; }
.card-form.is-done .form-live { display: none; }
.done__ico {
  width: 62px; height: 62px; margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(121, 163, 195, 0.20);
  border: 2px solid rgba(121, 163, 195, 0.55);
  display: grid; place-items: center;
  font-size: 27px; color: var(--chambray);
  box-shadow: var(--nm-up-dark);
}
.done h3 { color: #fff; }
.done p { color: var(--paper-mut); margin-top: 10px; font-size: 15.5px; }

/* =============================================================================
   Regalo (anteprima PDF)
   ========================================================================== */
.gift {
  display: grid; gap: clamp(26px, 4vw, 52px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) { .gift { grid-template-columns: 0.95fr 1.05fr; } }

.gift__stack { position: relative; padding: 10px 0 24px; }
.gift__stack img {
  border-radius: 12px;
  border: var(--nm-edge);
  box-shadow: var(--nm-up);
}
.gift__stack .g-main { width: min(78%, 340px); margin-inline: auto; position: relative; z-index: 2; }
.gift__stack .g-side {
  position: absolute; width: min(46%, 200px); z-index: 1;
  opacity: 0.95;
}
.gift__stack .g-side--l { left: 4px; bottom: 46px; transform: rotate(-7deg); }
.gift__stack .g-side--r { right: 4px; bottom: 8px; transform: rotate(6deg); }

.gift__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--bisque), var(--bisque-deep));
  color: var(--espresso);
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px;
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--espresso);
}
.gift__list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.gift__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.gift__list li::before {
  content: "✓";
  flex: 0 0 24px; height: 24px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--chambray); color: #fff;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--nm-up-sm);
}
.gift__value {
  margin-top: 26px;
  background: var(--espresso);
  color: var(--bisque);
  border-radius: 16px;
  border: var(--edge);
  box-shadow: 5px 5px 0 var(--clay);
  padding: 16px 22px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  text-align: center;
}
.gift__value b { color: #fff; }

/* =============================================================================
   Blocchi di testo / elenchi
   ========================================================================== */
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--clay); font-weight: 700; }
.sec--dark .prose strong { color: var(--bisque); }

.punch {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.22;
  color: var(--clay);
}
.sec--dark .punch { color: var(--bisque); }

.for-who { list-style: none; display: grid; gap: 14px; margin-top: 34px; }
@media (min-width: 780px) { .for-who { grid-template-columns: 1fr 1fr; } }
.for-who li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cream);
  border: var(--nm-edge);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--nm-up);
  font-size: 16px;
}
.for-who li:nth-child(odd)  { transform: rotate(-0.32deg); }
.for-who li:nth-child(even) { transform: rotate(0.32deg); }
.for-who li b { color: var(--clay); }
.for-who li::before {
  content: "";
  flex: 0 0 12px; height: 12px; margin-top: 8px;
  border-radius: 999px;
  background: var(--chambray);
  box-shadow: 0 0 0 4px rgba(121, 163, 195, 0.20);
}

/* --- passi numerati -------------------------------------------------------- */
.steps { display: grid; gap: 18px; margin-top: 38px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  background: var(--cream);
  border: var(--nm-edge);
  border-radius: 20px;
  padding: 44px 26px 28px;
  box-shadow: var(--nm-up);
}
/* le tre schede non sono allineate al millimetro: sembrano posate a mano */
.step:nth-child(1) { transform: rotate(-0.55deg); }
.step:nth-child(2) { transform: rotate(0.45deg); }
.step:nth-child(3) { transform: rotate(-0.35deg); }
/* il numero esce dalla scheda: e' l'ombra netta a dargli spessore */
.step__n {
  position: absolute; top: -24px; left: 24px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(140deg, #F3DCC8, var(--bisque));
  color: var(--espresso);
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  border: var(--edge);
  box-shadow: 4px 4px 0 var(--espresso);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-mut); font-size: 15.5px; }

/* --- date del corso -------------------------------------------------------- */
.agenda { display: grid; gap: 14px; margin-top: 38px; }
@media (min-width: 780px) { .agenda { grid-template-columns: repeat(3, 1fr); } }
.agenda__day {
  border: 1px solid rgba(235, 205, 183, 0.16);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: var(--nm-up-dark);
}
.agenda__date {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--chambray);
}
.agenda__day h3 { margin-top: 10px; color: #fff; }
.agenda__day p { margin-top: 8px; font-size: 15px; color: var(--paper-mut); }

/* --- due regali ------------------------------------------------------------ */
.presents { display: grid; gap: 18px; margin-top: 38px; }
@media (min-width: 820px) { .presents { grid-template-columns: 1fr 1fr; } }
.present {
  background: var(--cream);
  border: var(--nm-edge);
  border-top: 5px solid var(--clay);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--nm-up);
}
.present:nth-child(1) { transform: rotate(-0.45deg); }
.present:nth-child(2) { border-top-color: var(--chambray); transform: rotate(0.45deg); }
.present__tag {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--clay);
}
.present:nth-child(2) .present__tag { color: var(--chambray-deep); }
.present h3 { margin: 12px 0 10px; }
.present p { color: var(--ink-mut); font-size: 15.5px; }

/* =============================================================================
   Barra CTA fissa (mobile)
   ========================================================================== */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(43, 23, 16, 0.94);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-top: 2px solid var(--chambray);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%);
  transition: transform .28s ease;
}
.sticky.is-on { transform: translateY(0); }
.sticky .btn { width: 100%; padding: 15px 20px; font-size: 15.5px; }
@media (min-width: 900px) { .sticky { display: none; } }

/* =============================================================================
   Footer
   ========================================================================== */
.foot {
  background: var(--espresso-deep);
  color: var(--paper-soft);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13.5px;
}
.foot a { color: var(--bisque); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__links { margin-top: 10px; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
.foot__brand { font-family: var(--font-display); font-size: 21px; color: var(--bisque); margin-bottom: 8px; }

/* =============================================================================
   Parole in evidenza
   Tre modi, da usare con parsimonia: il tratto di evidenziatore (.mark),
   la sottolineatura a mano libera (.pen) e la parola cerchiata (.ring).
   ========================================================================== */
.mark {
  color: var(--espresso);
  background-image: linear-gradient(101deg,
    rgba(235, 205, 183, 0) 0.7%, rgba(235, 205, 183, 0.96) 2.4%,
    rgba(235, 205, 183, 0.92) 96%, rgba(235, 205, 183, 0) 99.3%);
  padding: 0.06em 0.3em 0.12em;
  margin: 0 -0.12em;
  border-radius: 0.6em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* sul fondo scuro il beige coprirebbe il testo: si usa l'azzurro trasparente */
.sec--dark .mark, .hero .mark {
  color: #fff;
  border-radius: 0.2em;
  background-image: linear-gradient(to top,
    rgba(121, 163, 195, 0.66) 0 46%, rgba(121, 163, 195, 0) 46%);
}

.pen {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M4 11C38 4 74 13 110 7s58-4 86 3' fill='none' stroke='%23957662' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.44em;
  padding-bottom: 0.16em;
}
.sec--dark .pen, .hero .pen { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M4 11C38 4 74 13 110 7s58-4 86 3' fill='none' stroke='%2379A3C3' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

.ring { position: relative; white-space: nowrap; margin-left: 0.25em; }
.ring::after {
  content: ""; position: absolute; inset: -0.42em -0.6em -0.28em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 56' preserveAspectRatio='none'%3E%3Cpath d='M104 6C52 2 8 15 7 29c-1 14 48 24 100 22 50-2 88-14 86-27C191 12 148 3 98 6' fill='none' stroke='%23957662' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}
.sec--dark .ring::after, .hero .ring::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 56' preserveAspectRatio='none'%3E%3Cpath d='M104 6C52 2 8 15 7 29c-1 14 48 24 100 22 50-2 88-14 86-27C191 12 148 3 98 6' fill='none' stroke='%2379A3C3' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* virgolette grandi davanti alle frasi forti */
.punch--quote { position: relative; padding-left: 0.62em; }
.punch--quote::before {
  content: "«";
  position: absolute; left: -0.16em; top: -0.3em;
  font-family: var(--font-display); font-size: 2.1em; line-height: 1;
  color: var(--chambray); opacity: 0.55;
}
.sec--dark .punch--quote::before { color: var(--bisque); opacity: 0.4; }

/* =============================================================================
   Strato decorativo — gli stessi cerchi e reticoli della copertina del regalo.
   Sta dietro al testo, non si clicca, sborda dai bordi: e' quello che toglie
   alla pagina l'aria di fondale piatto.
   ========================================================================== */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

section { overflow: hidden; }
/* il contenuto sta al terzo piano: geometrie (0), velo (1), testo (2) */
section > .wrap, section > .wrap--narrow { position: relative; z-index: 2; }

.deco {
  position: absolute; z-index: 0; pointer-events: none; aspect-ratio: 1;
  /* la sfocatura sta sul disegno stesso: il risultato e' identico a un vetro
     smerigliato steso sopra, ma il telefono la calcola una volta sola invece
     che a ogni scorrimento */
  filter: blur(5px);
}
.deco--wide { aspect-ratio: 600 / 260; }

.deco--net-tr  { top: -70px;   right: -80px;  width: min(48vw, 330px); color: var(--clay);     opacity: 0.26; }
.deco--net-bl  { bottom: -90px; left: -100px; width: min(54vw, 370px); color: var(--chambray); opacity: 0.30; }
.deco--arcs-r  { top: 6%;      right: -130px; width: min(52vw, 360px); color: var(--clay);     opacity: 0.36; }
.deco--arcs-l  { bottom: -12%;  left: -120px; width: min(50vw, 340px); color: var(--chambray); opacity: 0.38; }
/* fasce lunghe: riempiono le zone vuote sopra e sotto ai testi */
.deco--web-t   { top: -26px;    left: -8%;    width: min(120%, 900px); color: var(--clay);     opacity: 0.32; }
.deco--web-b   { bottom: -32px; right: -10%;  width: min(120%, 900px); color: var(--chambray); opacity: 0.34; }
.deco--web-m   { top: 34%;      left: -14%;   width: min(126%, 940px); color: var(--clay);     opacity: 0.26; }
/* archi ampi negli angoli */
.deco--rays-bl { bottom: -70px; left: -70px;  width: min(58vw, 400px); color: var(--chambray); opacity: 0.38; }
.deco--rays-tr { top: -80px;    right: -80px; width: min(58vw, 400px); color: var(--clay);     opacity: 0.34;
                 transform: rotate(180deg); }

.sec--dark .deco { opacity: 0.34; }

/* --- secondo strato: il velo -----------------------------------------------
   Un foglio trasparente steso su tutta la sezione, fra le geometrie e il
   testo: smorza lo sfondo e tiene il contenuto ben staccato davanti. */
section::after, .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.07);
}
.sec--dark::after, .hero::after { background: rgba(43, 23, 16, 0.12); }

/* =============================================================================
   Bollino dell'hero
   ========================================================================== */
.sticker {
  position: absolute; z-index: 3;
  top: 0; right: 3%;
  width: 118px; height: 118px;
  display: grid; place-items: center; text-align: center;
  padding: 10px;
  border-radius: 999px;
  background: linear-gradient(140deg, #F3DCC8, var(--bisque) 60%, var(--bisque-deep));
  color: var(--espresso);
  border: var(--edge-dark);
  box-shadow: 5px 6px 0 var(--chambray);
  transform: rotate(-11deg);
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3;
}
.sticker b {
  display: block; margin-bottom: 2px;
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: 0; text-transform: none; line-height: 1;
}
@media (min-width: 900px) {
  .sticker { top: 14%; left: -34px; right: auto; width: 132px; height: 132px; }
}

/* il regalo poggia sul cerchio beige della copertina */
.gift__stack::before {
  content: ""; position: absolute; z-index: 0;
  top: -4%; right: 4%;
  width: min(62%, 250px); aspect-ratio: 1;
  border-radius: 999px;
  background: var(--bisque);
  box-shadow: inset 0 0 0 1px rgba(58, 33, 25, 0.45);
}

/* =============================================================================
   Grana della carta — un velo di rumore su tutta la pagina, cosi le tinte
   piatte smettono di sembrare stampate al computer.
   ========================================================================== */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  opacity: 0.42; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================================
   Animazione di comparsa
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* =============================================================================
   Titolo dell'hero su due righe
   La seconda riga e' molto piu' lunga della prima: se avesse lo stesso corpo
   occuperebbe mezzo schermo sul telefono, quindi scende a 0.6em.
   ========================================================================== */
.hero__h1b { display: block; font-size: 0.6em; line-height: 1.14; margin-top: 8px; }

/* rombo che separa i due tempi del discorso, come nel testo di Tania */
.diamond {
  text-align: center; color: var(--chambray);
  font-size: 14px; letter-spacing: 0.6em; text-indent: 0.6em;
  margin: 34px 0;
}

/* riga delle date subito sotto a un bottone */
.date-line { font-weight: 700; font-size: 15px; color: var(--clay); }
.sec--dark .date-line { color: var(--bisque); }

/* =============================================================================
   Chi sono (ritratto + presentazione)
   ========================================================================== */
.bio {
  display: grid; gap: clamp(24px, 4vw, 52px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) { .bio { grid-template-columns: 0.82fr 1.18fr; } }

.bio__photo { margin: 0; }
.bio__photo img {
  display: block; width: min(100%, 330px); margin-inline: auto;
  border-radius: 20px;
  border: var(--nm-edge);
  box-shadow: var(--nm-up);
}
.bio__cap {
  margin-top: 16px; text-align: center;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
  line-height: 1.75; color: var(--clay);
}
