/* ============================================================================
   Endoplan — Landing page
   Stile, colori, font ed effetti ripresi 1:1 dal theme dell'app (theme.ts).
   ========================================================================== */

:root {
  /* Palette brand (da theme.ts) */
  --green: #728257;
  --green-deep: #5E6B46;
  --sage: #B3BC9F;
  --sage-soft: #C7CEB6;
  --purple: #B99AE2;
  --pink: #E6A6C9;
  --lilac: #E3D4F7;
  --lilac-soft: #ECE0F9;
  --card-lilac: #E4D2F4;
  --card-sage: #C2CBAD;
  --bg: #F8EDF6;
  --card-bg: #FFFDF9;
  --white: #FFFFFF;
  --text: #111111;
  --muted: #6F6F6F;
  --border: rgba(17, 17, 17, 0.55);
  --border-soft: rgba(17, 17, 17, 0.18);
  --border-strong: rgba(17, 17, 17, 0.75);
  --danger: #b3261e;

  /* Fade tricromatico dello sfondo schermo */
  --grad1: #F8EDF6;
  --grad2: #EAD9F0;
  --grad3: #F3E7F1;
  --glow: rgba(185, 154, 226, 0.30);

  /* Pill premium viola → lilla */
  --pill-from: #A77FE0;
  --pill-to: #CDB4F0;

  --card-stroke: rgba(120, 90, 150, 0.12);

  /* Bande EndoScore */
  --score-high: #728257;
  --score-mid: #E08A3C;
  --score-low: #C0231C;

  /* Raggi */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Font (Inter, gerarchia identica all'app) */
  --f-light: 300;
  --f-regular: 400;
  --f-semibold: 600;
  --f-bold: 700;
  --f-black: 900;

  /* Effetti card (da effects.card) */
  --shadow-card:
    0px 10px 22px rgba(120, 90, 150, 0.10),
    0px 26px 50px rgba(120, 90, 150, 0.06),
    0px 0px 14px rgba(185, 154, 226, 0.10),
    inset 0px 1px 0px rgba(255, 255, 255, 0.85),
    inset 0px -10px 18px rgba(120, 90, 150, 0.035);
  --shadow-soft: 0px 2px 6px rgba(90, 60, 120, 0.10);
  --shadow-pill: 0px 6px 14px rgba(150, 110, 210, 0.30);
  --shadow-bevel:
    0px 10px 20px rgba(120, 90, 150, 0.12),
    inset 0px 1px 0px rgba(255, 255, 255, 0.95),
    inset 0px -2px 4px rgba(120, 90, 150, 0.08);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: var(--f-light);
  color: var(--text);
  line-height: 1.5;
  background: var(--grad1);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Sfondo a fade tricromatico fisso, come ScreenGradient dell'app */
.bg-fade {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, var(--grad1) 0%, var(--grad2) 55%, var(--grad3) 100%);
}
/* Glow ambientale lilla che fluttua dietro il contenuto */
.bg-glow {
  position: fixed;
  z-index: -1;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.bg-glow.g1 { top: -15vmax; right: -10vmax; animation: float1 16s ease-in-out infinite; }
.bg-glow.g2 { bottom: -20vmax; left: -15vmax; background: radial-gradient(circle, rgba(230,166,201,0.22) 0%, transparent 70%); animation: float2 20s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-4vmax, 4vmax); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(5vmax, -3vmax); } }

/* ------------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 52px 0; }
.eyebrow {
  font-weight: var(--f-black);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
h1, h2, h3 { margin: 0; font-weight: var(--f-black); letter-spacing: -0.02em; }
h2.section-title { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; margin-bottom: 18px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); font-weight: var(--f-regular); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------- Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(248, 237, 246, 0.72);
  border-bottom: 1px solid var(--card-stroke);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: var(--shadow-soft); background: #fff; }
.brand .word { font-weight: var(--f-black); font-size: 20px; color: var(--green); letter-spacing: 0.2px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: var(--f-semibold); font-size: 14px; color: var(--text); opacity: 0.78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } }

/* --------------------------------------------------------- Pulsanti (pill) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: var(--r-pill);
  font-weight: var(--f-bold); font-size: 16px; line-height: 1;
  padding: 16px 26px; color: #fff;
  background: linear-gradient(135deg, var(--pill-from) 0%, var(--pill-to) 100%);
  box-shadow: var(--shadow-pill);
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease;
}
.btn::after { /* gloss superiore */
  content: ""; position: absolute; inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0px 12px 26px rgba(150,110,210,0.40); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.sm { padding: 12px 20px; font-size: 14px; }
.btn.ghost {
  background: var(--card-bg); color: var(--green-deep);
  box-shadow: var(--shadow-bevel);
}
.btn.ghost::after { display: none; }
.btn.wide { width: 100%; }

/* ------------------------------------------------------------- Hero */
.hero { padding-top: 40px; padding-bottom: 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.04; }
.hero h1 .grad-word {
  background: linear-gradient(120deg, var(--green) 0%, var(--purple) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { font-size: clamp(17px, 2vw, 21px); color: var(--muted); font-weight: var(--f-regular); margin: 18px 0 24px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.trust {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px; padding: 10px 20px 10px 16px;
  background: var(--card-bg); border: 1px solid var(--card-stroke);
  border-radius: var(--r-pill); box-shadow: var(--shadow-soft);
  max-width: max-content;
}
.trust .trust-label { font-size: 13px; color: var(--muted); font-weight: var(--f-regular); white-space: nowrap; }
.trust .fie-logo { height: 26px; width: auto; }
.fie-fallback { font-weight: var(--f-bold); color: var(--green-deep); font-size: 13px; }
@media (max-width: 480px) { .trust { flex-wrap: wrap; } .trust .fie-logo { height: 22px; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  /* su mobile: prima copy + form, poi il mockup (la richiesta resta in alto) */
  .hero-visual { order: 2; }
}

/* ---------------------------------------------------- Phone mockup (app) */
.phone {
  width: 300px; max-width: 84vw; margin: 0 auto -70px;
  background: #1d1820; border-radius: 44px 44px 0 0; padding: 12px 12px 0;
  box-shadow: 0 30px 70px rgba(90,60,120,0.26), 0 8px 24px rgba(120,90,150,0.18);
  position: relative;
  /* Il telefono non si mostra intero: l'ultimo quarto svanisce nello sfondo */
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #1d1820; border-radius: 999px; z-index: 3;
}
.phone .screen {
  border-radius: 33px 33px 0 0; overflow: hidden; height: 500px;
  background: linear-gradient(160deg, var(--grad1) 0%, var(--grad2) 60%, var(--grad3) 100%);
  position: relative;
}
.screen-pad { padding: 46px 18px 18px; height: 100%; overflow: hidden; }

/* Tipografia interna del mock = app */
.m-hello { font-weight: var(--f-semibold); font-size: 22px; }
.m-hello span { color: var(--green); }
.m-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.m-card {
  background: var(--card-bg); border: 1px solid var(--card-stroke);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 16px; margin-top: 14px;
}
.m-kicker { font-weight: var(--f-black); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.m-ring-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.m-ring-legend { font-size: 11px; color: var(--muted); }
.m-ring-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.m-ring-legend b { display: block; font-weight: var(--f-bold); font-size: 14px; color: var(--text); }
.m-ring-legend .line { margin-bottom: 8px; }

/* Riga pasto (MealRow) */
.m-meal { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-soft); }
.m-meal:first-child { border-top: none; }
.m-meal .ic { width: 34px; height: 34px; border-radius: 12px; background: var(--card-sage); display: grid; place-items: center; flex: 0 0 34px; }
.m-meal .tx { flex: 1; }
.m-meal .tx b { display: block; font-weight: var(--f-bold); font-size: 13px; }
.m-meal .tx small { color: var(--muted); font-size: 11px; }
.m-meal .chk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--sage); display: grid; place-items: center; flex: 0 0 22px; }
.m-meal.done .chk { background: var(--green); border-color: var(--green); }
.m-meal.done .chk svg { stroke: #fff; }

/* Score gauge (EndoScore) */
.gauge-wrap { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.gauge-num { font-weight: var(--f-black); font-size: 30px; line-height: 1; }
.gauge-band { font-size: 11px; font-weight: var(--f-bold); padding: 4px 10px; border-radius: 999px; }
.band-high { background: rgba(114,130,87,0.16); color: var(--green); }
.band-mid  { background: rgba(224,138,60,0.16); color: var(--score-mid); }
.band-low  { background: rgba(192,35,28,0.14); color: var(--score-low); }

/* Symptom scale (pill bianca con manopola) */
.m-sym { margin-top: 12px; }
.m-sym .label { font-weight: var(--f-black); font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.sym-track {
  height: 36px; border-radius: 999px; background: #fff;
  box-shadow: 0px 8px 16px rgba(120,90,150,0.14), inset 0px -1px 3px rgba(120,90,150,0.10);
  position: relative; display: flex; align-items: center; padding: 0 6px;
}
.sym-fill { position: absolute; left: 5px; top: 5px; bottom: 5px; border-radius: 999px;
  background: linear-gradient(90deg, var(--sage), var(--purple)); }
.sym-knob {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0px 3px 7px rgba(120,80,170,0.38);
  position: relative; z-index: 2;
}

/* m-pill (gradient pill nel mock) */
.m-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 9px 16px; border-radius: 999px; color: #fff; font-weight: var(--f-bold); font-size: 12px;
  background: linear-gradient(135deg, var(--pill-from), var(--pill-to));
  box-shadow: var(--shadow-pill);
}

/* ----------------------------------------------------- EndoRing (SVG) */
.ring-svg .track-out { stroke: #D8DDCB; }
.ring-svg .track-in  { stroke: #ECE0F9; }
.ring-svg .prog-out  { stroke: var(--green); }
.ring-svg .prog-in   { stroke: var(--purple); }
.ring-svg circle { fill: none; stroke-linecap: round; }
.ring-svg .prog-out, .ring-svg .prog-in {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22,1,0.36,1);
}

/* --------------------------------------------------- Problema (citazione) */
.problem .wrap { max-width: 880px; }
.quote-card {
  background: var(--card-bg); border: 1px solid var(--card-stroke);
  border-radius: var(--r-xl); box-shadow: var(--shadow-card);
  padding: 48px 44px; position: relative;
}
.quote-card .qm { font-weight: var(--f-black); font-size: 64px; color: var(--lilac); line-height: 0.6; }
.quote-card p { font-size: clamp(20px, 2.8vw, 28px); font-weight: var(--f-regular); line-height: 1.4; margin: 12px 0 0; }
.quote-card p strong { font-weight: var(--f-bold); color: var(--green-deep); }

/* --------------------------------------------------------- Come funziona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.step {
  background: var(--card-bg); border: 1px solid var(--card-stroke);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 30px 26px; position: relative;
}
.step .n {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: var(--f-black); font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--pill-from), var(--pill-to));
  box-shadow: var(--shadow-pill); margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-weight: var(--f-regular); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- Funzioni (feature grid) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.feature {
  background: var(--card-bg); border: 1px solid var(--card-stroke);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 24px 20px; transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0px 18px 36px rgba(120,90,150,0.16); }
.feature .ic {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 14px; box-shadow: var(--shadow-soft);
}
.feature .ic.sage   { background: linear-gradient(135deg, var(--sage-soft), var(--sage)); color: var(--green-deep); }
.feature .ic.lilac  { background: linear-gradient(135deg, var(--lilac), var(--purple)); color: #fff; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--muted); font-weight: var(--f-regular); margin: 0; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- Per chi è (chips) */
.audience { background: rgba(255,255,255,0.4); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.chip {
  padding: 13px 22px; border-radius: var(--r-pill);
  background: var(--card-bg); border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow-bevel);
  font-weight: var(--f-semibold); font-size: 15px; color: var(--green-deep);
  display: inline-flex; align-items: center; gap: 9px;
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }

/* --------------------------------------------------------- Perché è diversa */
.diff-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.nots { display: flex; flex-direction: column; gap: 14px; }
.not-row {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.55); border: 1px solid var(--border-soft);
}
.not-row .x { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: rgba(192,35,28,0.12); color: var(--score-low); display: grid; place-items: center; }
.not-row .x svg { width: 14px; height: 14px; }
.not-row span { font-size: 16px; font-weight: var(--f-regular); color: var(--text); }
.not-row s { color: var(--muted); text-decoration: none; }
.diff-hero {
  background: linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--r-xl); padding: 40px 34px; color: #fff;
  box-shadow: 0px 20px 44px rgba(94,107,70,0.32);
  position: relative; overflow: hidden;
}
.diff-hero::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,0.10); top: -60px; right: -50px; }
.diff-hero .check { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; margin-bottom: 18px; }
.diff-hero h3 { font-size: 24px; line-height: 1.2; margin-bottom: 14px; }
.diff-hero .formula { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.diff-hero .formula b { background: rgba(255,255,255,0.16); padding: 7px 14px; border-radius: 999px; font-weight: var(--f-bold); font-size: 14px; }
.diff-hero .formula i { font-style: normal; font-weight: var(--f-black); opacity: 0.85; }
@media (max-width: 860px) { .diff-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------- Preview (3 mockup) */
.preview { background: rgba(255,255,255,0.4); }
.preview-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; align-items: start; }
.preview-col { text-align: center; }
.preview-col h3 { font-size: 17px; margin-top: 14px; }
@media (max-width: 900px) {
  .preview-row { grid-template-columns: 1fr; gap: 20px; }
}

/* --------------------------------------------------------- Credibilità */
.method .wrap { max-width: 900px; }
.method-card {
  background: linear-gradient(150deg, var(--card-lilac) 0%, var(--lilac-soft) 100%);
  border: 1px solid var(--card-stroke); border-radius: var(--r-xl);
  padding: 48px 44px; box-shadow: var(--shadow-card); text-align: center;
}
.method-card .seal-lg {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-soft);
}
.method-card .seal-lg img { width: 64px; height: 64px; border-radius: 50%; }
.method-card p { font-size: clamp(18px, 2.4vw, 23px); font-weight: var(--f-regular); line-height: 1.45; color: var(--text); margin: 0 auto; max-width: 680px; }
.method-card .partner-lockup {
  margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.method-card .partner-lockup span { font-size: 13px; color: var(--muted); font-weight: var(--f-regular); }
.method-card .partner-lockup img { height: 34px; width: auto; max-width: 80%; }

/* --------------------------------------------------------- CTA finale */
.cta-final .wrap { max-width: 760px; }
.cta-card {
  text-align: center; padding: 60px 44px;
  background: linear-gradient(155deg, var(--purple) 0%, var(--pill-from) 100%);
  border-radius: var(--r-xl); color: #fff;
  box-shadow: 0px 24px 56px rgba(150,110,210,0.36);
  position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.10); top: -90px; left: -60px; }
.cta-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(230,166,201,0.22); bottom: -80px; right: -50px; }
.cta-card h2 { font-size: clamp(28px, 4.4vw, 42px); position: relative; line-height: 1.1; }
.cta-card p { font-size: 18px; font-weight: var(--f-regular); opacity: 0.92; margin: 16px 0 30px; position: relative; }
.cta-card .btn.ghost { position: relative; }

/* Waitlist form (multi-contesto: hero chiaro · banda verde · card viola) */
.waitlist { display: flex; gap: 10px; max-width: 480px; flex-wrap: wrap; position: relative; }
.wl-email {
  flex: 1; min-width: 220px; border: none; border-radius: var(--r-pill);
  padding: 16px 22px; font-size: 16px; font-family: inherit; color: var(--text);
  background: #fff; box-shadow: var(--shadow-soft);
}
.wl-email:focus { outline: 2px solid var(--purple); }
.waitlist .btn { flex: 0 0 auto; }

/* Hero: form allineato a sinistra, bottone con gradiente brand (CTA primaria). */
.hero .waitlist { margin: 0; }

/* Banda CTA centrale + card finale: form centrato, bottone chiaro su sfondo colorato. */
.cta-band .waitlist, .cta-card .waitlist { margin: 0 auto; }
.cta-band .wl-email:focus, .cta-card .wl-email:focus { outline: 2px solid rgba(255,255,255,0.75); }
.cta-band .waitlist .btn, .cta-card .waitlist .btn { background: var(--card-bg); color: var(--green-deep); }
.cta-band .waitlist .btn::after, .cta-card .waitlist .btn::after { display: none; }

.form-msg { margin-top: 12px; font-size: 14px; font-weight: var(--f-bold); min-height: 18px; color: var(--green-deep); }
.cta-band .form-msg, .cta-card .form-msg { color: #fff; }

/* Nota privacy chiara (hero, sfondo lilla). */
.consent-light { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); font-weight: var(--f-regular); }
.consent-light a { color: var(--green); text-decoration: underline; }

/* Nota privacy su card viola finale. */
.consent { margin: 14px auto 0; max-width: 440px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,0.80); font-weight: var(--f-regular); position: relative; }
.consent a { text-decoration: underline; color: #fff; }
.cta-cred { margin: 18px auto 0; font-size: 12.5px; color: rgba(255,255,255,0.85); font-weight: var(--f-regular); position: relative; }
.cta-cred b { font-weight: var(--f-bold); color: #fff; }

/* Banda CTA centrale (verde) — spezza il ritmo fra le sezioni chiare. */
.cta-mid { padding: 8px 0 44px; }
.cta-band {
  text-align: center; padding: 38px 32px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  border-radius: var(--r-xl); color: #fff;
  box-shadow: 0px 18px 40px rgba(94,107,70,0.28);
}
.cta-band h2 { font-size: clamp(22px, 3.6vw, 32px); line-height: 1.12; margin-bottom: 20px; color: #fff; }

/* --------------------------------------------------------- Footer */
.footer { padding: 50px 0 40px; border-top: 1px solid var(--card-stroke); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer .brand .word { color: var(--green); }
.footer small { color: var(--muted); font-size: 13px; }
.footer .footer-partner { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.footer .footer-partner img.fie-logo { height: 28px; width: auto; }
.footer .footer-partner .fie-fallback { font-size: 14px; }

/* --------------------------------------------------- Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------- Thank you page */
.thankyou-wrap {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 0;
}
.thankyou {
  text-align: center; max-width: 600px; width: 100%;
  background: var(--card-bg); border: 1px solid var(--card-stroke);
  border-radius: var(--r-xl); box-shadow: var(--shadow-card);
  padding: 56px 40px;
}
.thankyou .check-badge {
  width: 94px; height: 94px; border-radius: 50%; margin: 0 auto 26px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 16px 34px rgba(94,107,70,0.30);
  animation: pop .55s cubic-bezier(0.22,1,0.36,1) both;
}
.thankyou .check-badge svg { width: 48px; height: 48px; }
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
.thankyou h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.08; margin-bottom: 14px; }
.thankyou .sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); font-weight: var(--f-regular); margin: 0 auto; max-width: 460px; }
.thankyou .next { display: flex; flex-direction: column; gap: 16px; margin: 34px auto 6px; max-width: 420px; text-align: left; }
.thankyou .next .row { display: flex; gap: 14px; align-items: center; }
.thankyou .next .n {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: var(--f-black); font-size: 15px;
  background: linear-gradient(135deg, var(--pill-from), var(--pill-to));
  box-shadow: var(--shadow-pill);
}
.thankyou .next .row span { font-size: 15px; color: var(--text); font-weight: var(--f-regular); }
.thankyou .actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.thankyou .trust { margin: 30px auto 0; }
