/* =====================================================================
   DALILA, THE ROUTINE COACHING: style.css (mobile first)
   Colori, font e spazi: solo nelle variabili di :root qui sotto.
   ===================================================================== */

/* ---------- Font (ospitati sul sito, niente Google) ---------- */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/anton-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette (identica al sito attuale e al podcast) */
  --bg: #F8F8F8;               /* bianco: sfondo pagina */
  --surface: #FFFFFF;          /* card e blocchi */
  --surface-2: #EFEFEF;        /* fasce alternate */
  --line: #E5E5E5;             /* grigio chiaro: linee */
  --line-strong: #C9C9C9;
  --text: #252525;             /* antracite */
  --muted: #555555;            /* testo secondario */
  --accent: #A51F2B;           /* rubino: bottoni e parole chiave */
  --accent-hover: #891A24;
  --on-accent: #FFFFFF;
  --dark: #252525;             /* fondo scuro (hero su telefono) */
  --on-dark: #F8F8F8;

  /* Font: Anton titoli, Instrument Serif corsivo per le parole chiave, Inter testo */
  --font-title: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --container: 1240px;
  --section-y: 44px;           /* spazio sopra/sotto ogni sezione (telefono) */
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Scala tipografica */
  --fs-label: 12px;
  --fs-small: 14px;
  --fs-body: 16px;
  --fs-lead: 18px;
}

@media (min-width: 720px)  { :root { --gutter: 32px; --section-y: 60px; } }
@media (min-width: 1024px) { :root { --fs-lead: 19px; --fs-body: 17px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --section-y: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-text); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.only-desktop { display: none; }
@media (min-width: 720px) { .only-desktop { display: inline; } .only-mobile { display: none; } }

/* ---------- Titoli e testi (stessa scala in tutte le sezioni) ---------- */
.eyebrow { font-size: var(--fs-label); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section__title {
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: .005em; margin-bottom: 20px;
}
/* Parola chiave: Instrument Serif corsivo in rubino */
.section__title em, .hero__title em {
  font-family: var(--font-accent); font-style: italic; text-transform: none; font-size: 1.06em; letter-spacing: 0;
}
.section__title--sm { font-size: clamp(2.1rem, 5vw, 3rem); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 46ch; margin-bottom: 28px; }
.text { color: var(--muted); max-width: 52ch; margin-top: -12px; margin-bottom: 24px; }
.note { font-size: var(--fs-small); color: var(--muted); margin-top: 16px; max-width: 52ch; }
.note a { color: var(--text); border-bottom: 1px solid var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .actions .btn { flex: 1 1 100%; } }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; text-align: center;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.link { border-bottom: 1px solid var(--accent); }
.link:hover { color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 248, 248, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
@media (min-width: 1024px) { .header__inner { height: 72px; } }
.logo { font-family: var(--font-title); font-size: 22px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.logo__tag { font-family: var(--font-accent); font-style: italic; color: var(--accent); letter-spacing: 0; font-size: .82em; margin-left: 4px; }
@media (max-width: 400px) { .header .logo__tag { display: none; } }

.nav { display: none; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__cta { display: none; }
/* Lingue: bandiera corrente; al clic le 4 bandiere entrano una dopo l'altra girando su sé stesse */
.flag { display: block; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.lang { position: relative; }
.lang__current {
  display: flex; align-items: center; gap: 6px; padding: 8px 8px; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: 999px; color: var(--muted); transition: border-color .2s;
}
.lang__current:hover, .lang__current[aria-expanded="true"] { border-color: var(--line-strong); }
.lang__flag { display: block; perspective: 200px; }
.lang__chev { width: 10px; height: 6px; transition: transform .25s var(--ease); }
.lang__current[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__current[aria-expanded="true"] .lang__flag .flag { animation: flag-spin .5s var(--ease); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 160px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
  perspective: 400px;
}
.lang__menu[hidden] { display: none; }
.lang__btn { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14px; color: var(--text); }
.lang__btn:hover { background: var(--bg); }
.lang__btn[aria-current="true"] { font-weight: 700; }
.lang__btn[aria-current="true"]::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.lang__menu:not([hidden]) li { animation: flag-in .45s var(--ease) both; transform-origin: center top; }
.lang__menu li:nth-child(2) { animation-delay: .06s; }
.lang__menu li:nth-child(3) { animation-delay: .12s; }
.lang__menu li:nth-child(4) { animation-delay: .18s; }
@keyframes flag-in { from { opacity: 0; transform: rotateX(-90deg) translateY(-6px); } }
@keyframes flag-spin { 50% { transform: rotateY(180deg); } }
@media (prefers-reduced-motion: reduce) { .lang__menu li, .lang__flag .flag { animation: none !important; } }

.burger { display: grid; gap: 4px; place-content: center; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; margin-right: -8px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); height: calc(100dvh - 64px); overflow-y: auto; }
.mobile-menu__nav { display: flex; flex-direction: column; padding-top: 16px; padding-bottom: 32px; }
.mobile-menu__nav a:not(.btn) { font-family: var(--font-title); font-size: 34px; text-transform: uppercase; line-height: 1.1; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__nav .btn { margin-top: 28px; }

@media (min-width: 1100px) {
  .nav, .header__cta { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

/* ---------- Sezioni: stesso spazio sopra e sotto, sfondi alternati (niente linee) ---------- */
.section { padding-block: var(--section-y); }
.section--white { background: var(--surface); }
.section__head { margin-bottom: 8px; }

/* Schema a due colonne: foto 4:5 + testo, centrati in verticale.
   .split--reverse = foto a destra. Su telefono: prima la foto, poi il testo. */
.split { display: grid; gap: 32px; align-items: center; }
.split__text { min-width: 0; max-width: 560px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split--reverse .media { order: 2; }
  /* testo lungo (programmi): foto in alto che resta visibile mentre si scorre */
  .split--top { align-items: start; }
  .split--top .media { position: sticky; top: 104px; }
  .split--reverse .media--natural { justify-self: end; }
}
.level__days { display: block; }

/* Foto (o video) delle sezioni: tutte uguali */
.media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.media img, .media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 959px) { .media { max-width: 520px; width: 100%; } }
/* Immagine che non va ritagliata (prima/dopo): altezza limitata, centrata nella sua colonna */
.media--natural { aspect-ratio: auto; background: none; justify-self: center; }
.media--natural img { width: auto; height: auto; max-width: 100%; max-height: min(680px, 78vh); margin-inline: auto; border-radius: 4px; }

/* ---------- Hero ----------
   Sfondo scuro: il video stesso, sfocato e scurito, a tutta larghezza (.hero__bg).
   Davanti: testo chiaro a sinistra + video nitido verticale a destra (.hero__media), stessa griglia delle sezioni.
   Telefono: il video nitido riempie lo schermo dietro il testo (lo sfondo sfocato non serve). */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg-poster, .hero__bg-video {
  position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover;
  filter: blur(40px) saturate(1.15) brightness(.55); transform: scale(1.05);
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(37, 37, 37, .75) 0%, rgba(37, 37, 37, .35) 55%, rgba(37, 37, 37, .2) 100%); }
.hero__inner { position: relative; display: grid; }
.hero__title {
  font-family: var(--font-title); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 10.5vw, 5.2rem); line-height: 1; letter-spacing: .005em; margin-bottom: 0;
}
.hero__line { display: block; white-space: nowrap; font-size: min(1em, 9.2vw); }
.hero__title em { display: block; margin-top: .12em; color: #EBA9AF; }
.hero .actions { margin-top: 32px; }
.hero .eyebrow { color: #F1C9CD; }
.hero .btn--ghost { color: var(--on-dark); border-color: rgba(248, 248, 248, .5); background: rgba(37, 37, 37, .2); }
.hero .btn--ghost:hover { border-color: var(--on-dark); }

.hero__media { position: relative; overflow: hidden; background: #111; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: rgba(37, 37, 37, .5); border: 1px solid rgba(248, 248, 248, .45); color: var(--on-dark);
}
.hero__toggle[hidden] { display: none; }
.hero__toggle-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero__toggle[aria-pressed="true"] .hero__toggle-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

@media (max-width: 959px) {
  .hero__bg { display: none; }
  .hero__media { position: absolute; inset: 0; z-index: -1; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37, 37, 37, .1) 0%, rgba(37, 37, 37, .35) 40%, rgba(37, 37, 37, .88) 80%, var(--dark) 100%); }
  .hero__poster, .hero__video { object-position: center 30%; }
  .hero__toggle { top: 16px; bottom: auto; right: var(--gutter); }
  .hero__inner { min-height: calc(100svh - 64px); align-content: end; padding-top: 120px; padding-bottom: 40px; }
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1fr auto; gap: 80px; align-items: center; min-height: min(calc(100svh - 72px), 860px); padding-block: 48px; }
  /* video intero, senza tagli: formato verticale 9:16 */
  .hero__media { aspect-ratio: 9 / 16; height: min(calc(100svh - 72px - 96px), 720px); border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
  .hero__title { font-size: clamp(3rem, 4.3vw, 4.4rem); }
  .hero__line { font-size: 1em; }
}

/* ---------- Numeri chiave ---------- */
.stats-band { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 24px 8px 24px 14px; border-right: 1px solid var(--line); min-width: 0; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-title); font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; }
.stat__value .acc { color: var(--accent); }
.stat__value.tbd { color: var(--line-strong); }
.stat__label { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
@media (min-width: 720px) { .stat { padding: 36px 24px 34px 40px; } .stat:first-child { padding-left: 0; } .stat__label { font-size: 15px; } }

/* ---------- Programmi: schede + livelli ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 14px 12px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap;
}
.tab:first-child { padding-left: 0; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.panel__family { color: var(--muted); font-size: var(--fs-small); padding: 14px 0 4px; }
.levels li { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.levels li:last-child { border-bottom: 0; }
.level__name { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.level__badge { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.level__meta { grid-column: 1; font-size: var(--fs-small); color: var(--muted); }
.level__price { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-title); font-size: 24px; line-height: 1; }
.level__buy { grid-column: 3; grid-row: 1 / span 2; }

/* ---------- Risultati ---------- */
.quotes { display: grid; gap: 20px; }
.quote { padding-left: 18px; border-left: 2px solid var(--accent); }
.quote blockquote { font-size: var(--fs-body); line-height: 1.6; }
.quote figcaption { margin-top: 6px; font-size: var(--fs-small); font-weight: 600; }

/* ---------- Coaching: 3 tappe numerate ---------- */
.steps { display: grid; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: baseline; }
.steps__num { font-family: var(--font-title); color: var(--accent); font-size: 22px; line-height: 1; min-width: 28px; }
.steps strong { display: block; font-weight: 600; font-size: 17px; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.price-line { margin-top: 28px; color: var(--muted); }
.price-line strong { color: var(--text); font-weight: 600; margin-left: 6px; }
.price-line + .actions { margin-top: 14px; }

/* ---------- Massaggi: lista prezzi ---------- */
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.price-list li:first-child { border-top: 1px solid var(--line-strong); }
.price-list span { font-weight: 600; }
.price-list small { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: var(--fs-small); }
.price-list b { font-family: var(--font-title); font-weight: 400; font-size: 22px; white-space: nowrap; }


/* ---------- Galleria scorrevole ---------- */
.strip__track {
  display: flex; gap: 12px; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 72%; aspect-ratio: 4 / 5; scroll-snap-align: start; overflow: hidden; background: var(--surface-2); border-radius: 4px; }
.strip__item img, .strip__item video { display: block; width: 100%; height: 100%; object-fit: cover; }
.strip__item video { cursor: pointer; }
@media (min-width: 720px) { .strip__item { flex-basis: calc((100% - 24px) / 3); } }
@media (min-width: 1024px) { .strip__item { flex-basis: calc((100% - 36px) / 4); } }
.strip__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.strip__btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong);
  font-size: 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.strip__btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.strip__btn:disabled { opacity: .3; cursor: default; }

/* ---------- FAQ ---------- */
@media (min-width: 960px) { .split--faq { grid-template-columns: 5fr 7fr; align-items: start; } .split--faq > .split__text { position: sticky; top: 104px; } }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__list details { border-bottom: 1px solid var(--line-strong); }
.faq__list summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 17px; font-weight: 600; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list summary:hover { color: var(--accent); }
.faq__list details p { color: var(--muted); padding: 0 40px 22px 0; max-width: 62ch; }

/* ---------- Questionario (dialog) ---------- */
.dialog {
  width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 28px 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text);
}
@media (min-width: 720px) { .dialog { padding: 40px; } }
.dialog::backdrop { background: rgba(37, 37, 37, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog .section__title { margin-bottom: 8px; padding-right: 40px; }
.dialog__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: none; border: 1px solid var(--line-strong); font-size: 22px; line-height: 1; cursor: pointer; }
.dialog__close:hover { border-color: var(--accent); color: var(--accent); }
.quiz__body { margin-top: 24px; }
.quiz__step { font-size: var(--fs-label); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.quiz__progress { height: 2px; background: var(--line); margin-bottom: 24px; }
.quiz__progress span { display: block; height: 100%; background: var(--accent); transition: width .35s var(--ease); }
.quiz__q { font-size: 22px; font-weight: 600; margin-bottom: 18px; line-height: 1.3; }
.quiz__options { display: grid; gap: 10px; }
.quiz__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  padding: 15px 18px; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  font-weight: 500; transition: border-color .2s;
}
.quiz__opt::after { content: "→"; color: var(--muted); transition: transform .2s, color .2s; }
.quiz__opt:hover, .quiz__opt.is-selected { border-color: var(--accent); }
.quiz__opt:hover::after { color: var(--accent); transform: translateX(3px); }
.quiz__opt small { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--muted); font-weight: 400; }
.quiz__back { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; padding: 4px 0; }
.quiz__back:hover { color: var(--text); }
.quiz__result { border-top: 3px solid var(--accent); background: var(--bg); padding: 22px; }
.quiz__result h3 { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; font-size: 30px; line-height: 1; margin-bottom: 12px; }
.quiz__restart { margin-top: 16px; }
.fiche__form { display: grid; gap: 14px; }
.fiche__form .btn { margin-top: 8px; }
.fiche__names { display: grid; gap: 14px; }
@media (min-width: 520px) { .fiche__names { grid-template-columns: 1fr 1fr; gap: 10px; } }
.fiche__field { display: grid; gap: 7px; }
.fiche__field > span:first-child { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fiche__field small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.fiche__field input, .fiche__field textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 6px; }
.fiche__field textarea { resize: vertical; min-height: 96px; }
.fiche__field input:focus, .fiche__field textarea:focus { outline: none; border-color: var(--accent); }
.fiche__field ::placeholder { color: #9A9A9A; }
.fiche__hint { font-size: var(--fs-small); color: var(--muted); }
.fiche__sum { border-top: 1px solid var(--line); margin: 6px 0 18px; }
.fiche__sum div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.fiche__sum dt { color: var(--muted); }
.fiche__sum dd { font-weight: 500; overflow-wrap: anywhere; }
.quiz__result .fiche__send { margin: 0 0 10px; width: 100%; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 48px; font-size: var(--fs-small); background: var(--surface); }
.footer__inner { display: grid; gap: 28px; padding-bottom: 36px; }
.footer__tagline { color: var(--muted); margin-top: 12px; max-width: 34ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__nav a:hover, .footer__legal a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; color: var(--muted); font-size: 13px; }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1fr auto; align-items: start; } }

/* ---------- WhatsApp: icona flottante ---------- */
.wa-float {
  border: 0; cursor: pointer; position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.wa-float svg { width: 32px; height: 32px; }
.menu-open .wa-float, .menu-open .wa-chat, .menu-open .wa-teaser { display: none; }
@media (min-width: 720px) { .wa-float { right: 24px; bottom: 24px; width: 66px; height: 66px; } .wa-float svg { width: 34px; height: 34px; } }
/* Saltello allo scroll (al massimo 1 volta ogni 4 s, gestito da main.js) */
.wa-float.is-nudging { animation: wa-nudge .9s var(--ease); }
@keyframes wa-nudge {
  0%, 100% { transform: none; }
  20% { transform: translateY(-10px) rotate(-8deg); }
  40% { transform: translateY(0) rotate(6deg); }
  55% { transform: translateY(-4px) rotate(-4deg); }
  70% { transform: translateY(0) rotate(2deg); }
}
.wa-teaser {
  position: fixed; z-index: 40; right: 88px; bottom: 26px; padding: 10px 14px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--text); color: var(--on-dark); font-weight: 600; font-size: var(--fs-small); box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateX(14px) scale(.96); transform-origin: right center; pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.wa-teaser::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: var(--text); transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.wa-teaser.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 720px) { .wa-teaser { right: 104px; bottom: 39px; } }
@media (prefers-reduced-motion: reduce) { .wa-float.is-nudging { animation: none; } .wa-teaser { transform: none; transition: opacity .3s; } }

/* Finestrella tipo chat */
.wa-chat {
  position: fixed; right: 16px; bottom: 90px; z-index: 41; width: min(330px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18); animation: wa-in .22s var(--ease);
}
.wa-chat[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .wa-chat { animation: none; } }
@media (min-width: 720px) { .wa-chat { right: 24px; bottom: 102px; } }
.wa-chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.wa-chat__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 18%; flex: none; }
.wa-chat__name { font-weight: 700; line-height: 1.2; }
.wa-chat__status { font-size: var(--fs-small); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.wa-chat__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #25D366; }
.wa-chat__close { margin-left: auto; align-self: flex-start; width: 32px; height: 32px; flex: none; background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.wa-chat__close:hover { color: var(--text); }
.wa-chat__body { padding: 18px 16px; background: #EFEAE2; }
.wa-chat__bubble { position: relative; max-width: 92%; padding: 11px 14px; line-height: 1.45; background: #fff; border-radius: 4px 12px 12px 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-chat__btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 16px 16px; width: calc(100% - 32px);
  border: 0; cursor: pointer; padding: 10px 18px; min-height: 48px; border-radius: 999px;
  background: #25D366; color: #0B0B0C; font-weight: 700; transition: background .2s;
}
.wa-chat__btn:hover { background: #3BE07A; }

/* ---------- Comparsa allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
