/* =====================================================================
   LP "Guida Consulente di Viaggi Online" — sistema visivo "Funnel Guida 2.0"
   (artifact Evolution Travel — Funnel Guida 2.0, pagina "Landing page + quiz").
   Navy + rosso CTA + giallo accento · Bricolage Grotesque / Figtree / DM Mono.
   ===================================================================== */

:root {
  --ink: #15183A;          /* navy del brand: testo e superfici scure */
  --ink-2: #44496E;        /* testo secondario */
  --ink-3: #5E6386;        /* etichette, meta */
  --line: #DDE3EF;
  --line-2: #C5CCDD;
  --paper: #FFFFFF;
  --mist: #EEF2F9;         /* sezioni alternate, opzione selezionata */
  --mist-2: #F5F7FB;
  --navy-2: #20244A;       /* card su navy */
  --on-navy: #D3D6E8;      /* testo secondario su navy */
  --on-navy-2: #C8CBE0;
  --on-navy-3: #B9BEDA;
  --cta: #C9343F;          /* bottoni */
  --cta-hover: #B02C36;
  --coral: #E5434F;        /* accenti: progress, virgolette */
  --coral-text: #C9343F;   /* etichette rosse su bianco */
  --sun: #F6B93B;          /* giallo del logo: accenti su navy */
  --sun-tint: #FFF6E2;
  --sky: #2D6BE0;          /* link */
  --ok: #1F8A5B;
  --ok-tint: #EDF7F1;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease: cubic-bezier(.165, .84, .44, 1);
  --wrap: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--sky); }
@media (hover: hover) { a:hover { color: var(--cta); } }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(20px, 5vw, 48px); }
.mono-label { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.coral { color: var(--coral-text); }
.sun { color: var(--sun); }
h2 .coral { color: var(--coral); }
.muted { color: var(--ink-3); }

/* ---------- Bottoni ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 28px; border-radius: 16px; font: 700 18px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color 150ms ease, transform 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn i { font-size: 20px; }
.btn .arr, .btn .ti-arrow-right { transition: transform 180ms var(--ease); }
.btn-cta { background: var(--cta); color: #FFFFFF; box-shadow: 0 10px 24px -10px rgba(229, 67, 79, .7); }
@media (hover: hover) { .btn-cta:hover { background: var(--cta-hover); color: #FFFFFF; } .btn-cta:hover .arr, .btn-cta:hover .ti-arrow-right { transform: translateX(3px); } }
.btn-link { height: auto; min-height: 44px; padding: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; box-shadow: none; gap: 6px; }
.btn-link i { font-size: 16px; }
@media (hover: hover) { .btn-link:hover { color: var(--ink); } }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.top .logo { height: 30px; width: auto; }
.top .badge { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); text-align: right; }
.top .badge b { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) {
  .top .wrap { padding-block: 14px; }
  .top .logo { height: 24px; }
  .top .badge { font-size: 10px; max-width: 110px; }
  .top .badge .long { display: none; }
}

/* ---------- Hero ---------- */
.hero .wrap { padding-block: 48px 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-family: var(--f-display); font-size: clamp(35px, 5.2vw, 62px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
.hero h1 .l2 { display: flex; flex-wrap: wrap; align-items: center; gap: .22em; margin-top: .06em; }
.hero .sub { font-size: 19px; color: var(--ink-2); max-width: 34em; }
.hero .sub b { color: var(--ink); }
.cta-row { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.cta-meta { font-family: var(--f-mono); font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.proof { display: flex; gap: 12px 32px; flex-wrap: wrap; padding-top: 6px; }
.proof div { display: flex; flex-direction: column; }
.proof strong { font-family: var(--f-display); font-size: 24px; font-weight: 700; }
.proof span { font-size: 14px; color: var(--ink-3); }

/* Tabellone partenze */
.board { display: inline-flex; gap: 3px; vertical-align: middle; }
.flap {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: .78em; height: 1.05em; border-radius: 6px;
  background: var(--ink); color: #FFFFFF; font-family: var(--f-mono); font-size: .78em; font-weight: 500; line-height: 1; overflow: hidden;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .18); }
.flap.blank { background: transparent; }
.flap.blank::after { display: none; }
.flap.go { animation: flap 180ms var(--ease); }
@keyframes flap { 0% { transform: rotateX(0); } 45% { transform: rotateX(-90deg); } 55% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }

.hero-visual { position: relative; min-width: 0; display: flex; justify-content: flex-end; }
.hero-photo { width: 100%; max-width: 460px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.tag-sun { position: absolute; right: 18px; top: 18px; background: var(--sun); color: var(--ink); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 10px; }
.guide-chip {
  position: absolute; left: 0; bottom: -24px; max-width: 290px; display: flex; gap: 14px; align-items: center;
  background: var(--mist); border: 7px solid var(--ink); border-radius: 24px; padding: 12px 16px 12px 12px; box-shadow: 0 24px 50px -20px rgba(21, 24, 58, .45);
}
.guide-chip img { width: 52px; height: auto; flex: none; }
.guide-chip > div { display: flex; flex-direction: column; gap: 2px; }
.guide-chip .mono-label { font-size: 9.5px; letter-spacing: .1em; }
.guide-chip b { font-family: var(--f-display); font-size: 17px; font-weight: 800; line-height: 1.1; }
.guide-chip .muted { font-size: 12.5px; }
@media (max-width: 1000px) {
  .hero-visual { justify-content: center; }
  .guide-chip { left: 12px; }
}
@media (max-width: 640px) {
  .hero .wrap { padding-block: 20px 48px; gap: 36px; }
  .hero-copy { gap: 16px; }
  .hero .sub { font-size: 16px; }
  .hero .cta-row .btn { width: 100%; height: 56px; }
  .hero .cta-meta { width: 100%; text-align: center; font-size: 12px; }
  .proof { flex-wrap: nowrap; justify-content: space-between; gap: 12px; }
  .proof div { flex: 0 1 auto; min-width: 0; }
  .proof strong { font-size: 19px; white-space: nowrap; }
  .proof span { font-size: 12px; }
  .hero-photo { aspect-ratio: 5 / 4; max-width: none; }
  .guide-chip { bottom: -20px; max-width: 250px; border-width: 5px; border-radius: 20px; }
  .guide-chip img { width: 40px; }
  .guide-chip b { font-size: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 700ms var(--ease-out) backwards; }
  .rise.d1 { animation-delay: 60ms; } .rise.d2 { animation-delay: 140ms; } .rise.d3 { animation-delay: 220ms; } .rise.d4 { animation-delay: 300ms; }
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Sezioni ---------- */
section { scroll-margin-top: 12px; }
.sec .wrap { padding-block: 88px; }
.mist { background: var(--mist); }
.navy { background: var(--ink); color: #FFFFFF; }
.sec-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 36px; }
.two-col .sec-head, .guide-copy .sec-head { margin-bottom: 0; }
.sec h2, .quiz-aside h2, .final h2 { font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 18px; color: var(--ink-2); }
.lead-on-navy { font-size: 18px; color: var(--on-navy); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: center; }
.two-col.align-top { align-items: start; gap: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.grid-2.tight { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.grid-3.tight { gap: 16px; }
@media (max-width: 640px) {
  .sec .wrap { padding-block: 64px; }
  .sec-head { margin-bottom: 28px; }
  .lead, .lead-on-navy { font-size: 16px; }
}

/* ---------- Quiz in pagina ---------- */
.quiz-sec .wrap { padding-block: 80px; }
.quiz-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list svg { flex: none; }
@media (max-width: 640px) { .quiz-sec .wrap { padding-block: 48px 56px; gap: 28px; } .check-list { display: none; } }

/* ---------- Carta d'imbarco (anteprima e modulo) ---------- */
.ticket { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.t-code { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.t-code b { color: var(--ink); font-weight: 500; }
.t-step { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.route { display: flex; flex-direction: column; gap: 8px; }
.route-row { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.track { position: relative; height: 22px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--line); }
.track-fill { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--coral); transform-origin: left; transform: scaleX(0); transition: transform 300ms cubic-bezier(.645, .045, .355, 1); }
.plane { position: absolute; top: 0; left: 0; width: 22px; height: 22px; margin-left: -11px; color: var(--coral); transition: left 300ms cubic-bezier(.645, .045, .355, 1); }
.ticket-teaser .plane { margin-left: 0; }
.t-body { min-height: 0; }

.q { display: flex; flex-direction: column; gap: 16px; }
.q > h3, .q-title h3 { font-family: var(--f-display); font-size: 24px; line-height: 1.15; font-weight: 700; }
.q-title { display: flex; flex-direction: column; gap: 6px; }
.q .help { font-size: 15px; color: var(--ink-3); margin-top: -8px; }
.q-title .help { margin-top: 0; }
.q .help b { color: var(--ink); }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opts.cols-2 { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .opts.cols-2 { grid-template-columns: 1fr; } }

/* Opzione: bordo sottile; selezionata = bordo navy 2px, fondo mist e spunta navy */
.opt {
  appearance: none; cursor: pointer; width: 100%; min-height: 52px; padding: 8px 16px; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: 400 16px/1.35 var(--f-body);
  transition: border-color 150ms ease, background-color 150ms ease, transform 120ms var(--ease);
}
@media (hover: hover) { .opt:hover { border-color: var(--ink-3); background: #F7F9FD; } }
.opt:active { transform: scale(.985); }
.opt .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #B9C0D6; position: relative; transition: background-color 150ms ease, border-color 150ms ease; }
.opt .radio::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.6); opacity: 0; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.opt[aria-pressed="true"] { border: 2px solid var(--ink); padding: 7px 15px; background: var(--mist); font-weight: 600; }
.opt[aria-pressed="true"] .radio { background: var(--ink); border-color: var(--ink); }
.opt[aria-pressed="true"] .radio::after { opacity: 1; transform: rotate(45deg) scale(1); }
.q-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.q-foot .note { color: var(--ink-3); }

.q.enter { animation: qIn 220ms var(--ease) backwards; }
.q.leave { animation: qOut 140ms var(--ease) both; }
@keyframes qIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes qOut { from { opacity: 1; } to { opacity: 0; transform: translateX(-12px); } }

/* Esito prima del form */
.alert { display: flex; gap: 12px; padding: 14px; border-radius: 16px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.alert > i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #FFFFFF; }
.alert strong { display: block; font-size: 14px; }
.alert p { color: var(--ink-2); }
.alert-success { background: var(--ok-tint); }
.alert-success > i { background: var(--ok); }
.alert-warning { background: var(--sun-tint); }
.alert-warning > i { background: var(--sun); color: var(--ink); }

/* Form */
.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select {
  width: 100%; min-width: 0; height: 48px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--paper);
  color: var(--ink); font: 400 16px/1.2 var(--f-body); outline: none; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: #8A90AE; }
.field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--mist); }
.field.err input { border-color: var(--cta); }
.field .msg { font-size: 13px; color: var(--cta); display: flex; gap: 4px; align-items: center; }
.field .msg:empty { display: none; }
.phone { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; cursor: pointer; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper);
  color: var(--ink); font: 600 14px/1 var(--f-body); transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ink); }
.consent.err { color: var(--cta); }
.submit { width: 100%; height: 56px; }
.fine { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-3); }
.fine i { font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot anti-bot */
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } }

/* Conferma: timbro "Imbarcato" */
.done { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.done .pill {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ok); border: 2.5px solid var(--ok); border-radius: 10px; padding: 7px 12px; transform: rotate(-6deg);
}
@media (prefers-reduced-motion: no-preference) { .done .pill { animation: stamp 300ms var(--ease) 120ms backwards; } }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.25); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.done h3 { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.06; font-weight: 800; letter-spacing: -.02em; }
.next { list-style: none; padding: 0; margin: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; counter-reset: n; }
.next li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.next li::before { counter-increment: n; content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.next b { display: block; }
.next span { color: var(--ink-2); }
.done .fine { justify-content: flex-start; }

/* ---------- Guida ---------- */
.guide-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.sec .guide-row { padding-block: 88px; }
.guide-cover { flex: 1 1 260px; display: flex; justify-content: center; min-width: 0; }
.guide-cover img { width: 100%; max-width: 320px; height: auto; }
.guide-copy { flex: 999 1 520px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 24px; }
.chapters li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.chapters .num { font-family: var(--f-mono); font-size: 13px; color: var(--coral-text); padding-top: 2px; }
@media (max-width: 640px) { .sec .guide-row { padding-block: 64px; gap: 32px; } .guide-cover img { max-width: 220px; } }

/* ---------- Chi lo fa già ---------- */
.day { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.day img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.day .mono-label { font-size: 12px; letter-spacing: .1em; }
.day h3 { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.day p { font-size: 16px; color: var(--ink-2); }
@media (max-width: 640px) { .day img { aspect-ratio: 16 / 11; } }

/* ---------- Parliamoci chiaro ---------- */
.fit { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.fit h3 { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.fit ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.fit li { display: flex; gap: 12px; }
.fit li svg { flex: none; }
.fit-yes { background: var(--ok-tint); }
.fit-no { background: var(--mist-2); }
.fit-no li { color: var(--ink-2); }
@media (max-width: 640px) { .fit { padding: 22px; } }

/* ---------- Cosa ricevi (navy) ---------- */
.dark-card { background: var(--navy-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.dark-card b { font-size: 17px; }
.dark-card span { font-size: 15px; color: var(--on-navy-2); }

/* ---------- Passi ---------- */
.step-card { background: var(--paper); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step-card .mono-label { font-size: 12px; letter-spacing: .1em; }
.step-card h3 { font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.step-card p { font-size: 16px; color: var(--ink-2); }

/* ---------- Testimonianze ---------- */
.quote { margin: 0; background: var(--mist); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.quote .qm { display: block; font-size: 54px; line-height: .6; color: var(--coral); margin-bottom: 10px; font-family: var(--f-display); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote .muted { font-size: 14px; }
.press { display: flex; flex-direction: column; gap: 14px; align-items: center; padding-top: 48px; }
.press img { width: 100%; max-width: 900px; height: auto; mix-blend-mode: multiply; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); border-radius: 24px; padding: 8px 24px; display: flex; flex-direction: column; }
.fq + .fq { border-top: 1px solid var(--line); }
.fq button {
  appearance: none; border: 0; background: none; cursor: pointer; width: 100%; min-height: 44px; padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font: 600 18px/1.35 var(--f-body); color: var(--ink);
}
.fq .pm { flex: none; font-size: 22px; line-height: 1; color: var(--ink-2); transition: transform 240ms var(--ease); }
.fq button[aria-expanded="true"] .pm { transform: rotate(45deg); }
.fq .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease); }
.fq .ans > div { overflow: hidden; }
.fq .ans p { padding-bottom: 18px; font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.fq button[aria-expanded="true"] + .ans { grid-template-rows: 1fr; }
@media (max-width: 640px) { .faq { padding: 4px 18px; } .fq button { font-size: 16.5px; } }

/* ---------- CTA finale ---------- */
.final .final-row { padding-block: 88px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.final-copy { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.final h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.final-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.final .cta-meta { color: var(--on-navy-3); }
@media (max-width: 640px) { .final .final-row { padding-block: 64px; } .final-cta, .final-cta .btn { width: 100%; } .final-cta { align-items: center; } }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--paper); }
footer .wrap { padding-block: 36px 110px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
footer b { color: var(--ink); }
@media (min-width: 901px) { footer .wrap { padding-bottom: 36px; } }

/* ---------- CTA sticky (mobile) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 240ms var(--ease);
}
.sticky.show { transform: none; }
.sticky .btn { width: 100%; height: 56px; }
@media (min-width: 901px) { .sticky { display: none; } }

/* ---------- Modulo a tutto schermo ----------
   Già nel DOM: aprirlo è solo un cambio di classe, nessun caricamento. */
.flow {
  position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column;
  background: var(--ink); color: var(--ink); height: 100vh; height: 100dvh;
}
.flow.open { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .flow.open { animation: flowIn 220ms var(--ease-out) backwards; }
  @keyframes flowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
html.flow-open, html.flow-open body { overflow: hidden; }
html.flow-open .sticky { display: none; }
.flow-bar {
  flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.flow-logo { height: 24px; width: auto; }
.flow-lock { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 0 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); }
.flow-lock i { font-size: 15px; color: var(--coral-text); }
.flow-close {
  margin-left: auto; appearance: none; border: 0; background: transparent; cursor: pointer; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; color: var(--ink); font-size: 24px; transition: background-color 150ms ease;
}
@media (hover: hover) { .flow-close:hover { background: var(--mist); } }
.flow-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 32px 20px calc(32px + env(safe-area-inset-bottom, 0px)); }
.flow .ticket { max-width: 640px; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
@media (max-width: 640px) {
  .flow-lock { display: none; }
  .flow-scroll { padding: 16px 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .flow .ticket { padding: 20px; gap: 16px; min-height: 100%; }
  .t-code { font-size: 11px; }
  .t-code .tc-x { display: none; }
  .q > h3, .q-title h3 { font-size: 22px; }
  .opt { font-size: 15px; min-height: 56px; }
}

/* Banner anteprima (solo se LEAD_ENDPOINT è vuoto) */
.demo { background: var(--sun); color: var(--ink); font: 500 12px/1.4 var(--f-mono); padding: 8px 16px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
