/* Carattere ospitato qui dentro: il sito non contatta server esterni */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('font/plus-jakarta-sans-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('font/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;

  --bg: #ffffff;
  --card: #f6f3fb;        /* finestrine: viola molto chiaro */
  --tint-a: #f1eafc;      /* Nutrizione */
  --tint-b: #e6def8;      /* Allenamento */
  --line: rgba(27, 31, 36, 0.12);
  --line-strong: rgba(27, 31, 36, 0.24);
  --text: #1b1f24;
  --muted: #59626e;
  --accent: #7647d9;      /* viola */
  --accent-hover: #6a3bc9;
  --accent-ink: #5b2fb8;  /* viola per testi e link su bianco */
  --on-accent: #ffffff;
  --shadow: 0 10px 30px rgba(50, 25, 110, 0.14);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1600px;          /* pagina larga: i testi hanno comunque righe di lunghezza normale */
}
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(27, 31, 36, 0.07) 1.1px, transparent 1.4px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s ease, border-color .35s ease;
}
/* sopra la copertina l'header è trasparente, con logo e scritte in bianco */
.site-header.on-cover {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-header.on-cover .brand img { filter: brightness(0) invert(1); }
.site-header.on-cover .brand-name { color: #fff; }
.site-header.on-cover .menu-btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.site-header.on-cover .bars i { background: #fff; }
.site-header.on-cover :focus-visible { outline-color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; height: 42px; width: auto; }
.brand-name { font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -0.02em; }
.head-actions { display: flex; align-items: center; gap: 10px; }

/* Menu a tre linee */
.menu { position: relative; }
.menu-btn {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: #fff; border: 1px solid var(--line-strong);
  transition: background-color .15s ease, border-color .15s ease;
}
.menu-btn:hover { border-color: var(--accent); }
.menu-btn[aria-expanded="true"] { background: var(--tint-a); border-color: var(--accent); }
.bars { display: grid; gap: 5px; width: 20px; }
.bars i { display: block; height: 2px; border-radius: 2px; background: var(--text); }
/* Menu a tutto schermo, in sovraimpressione: ogni voce è una "finestra" come quelle della prima pagina */
.menu-panel {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: var(--pad);
  background: rgba(18, 11, 38, 0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.menu-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu-list { display: grid; gap: 14px; width: min(460px, 100%); margin-block: auto; }
.menu-link {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 24px 28px; text-align: center; border-radius: 30px; text-decoration: none; color: var(--text);
  font-weight: 800; font-size: clamp(26px, 5vw, 34px); line-height: 1.1; letter-spacing: -0.03em;
}
.menu-link.a { background: var(--tint-a); }
.menu-link.b { background: var(--tint-b); }
.menu-link:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.menu-link:focus-visible, .menu-close:focus-visible { outline-color: #fff; }
.menu-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 11px); right: var(--pad);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}
.menu-close:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.menu-close svg { display: block; width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .menu-link { transition: transform .2s ease, box-shadow .2s ease; }
  .menu-link:hover { transform: translateY(-3px); }
}
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--accent);
  font: 700 15px/1.25 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  background: var(--accent); color: var(--on-accent);
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent-ink); background: #fff; }
.btn.small { padding: 11px 18px; font-size: 14px; }

/* ---------- Copertina a tutta pagina ---------- */
.cover {
  position: relative; z-index: 1; background: #120a26;
  min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end;
  overflow: hidden;
}
.cover-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
  will-change: transform;
}
/* ultimi pixel della copertina in viola pieno: nessuna linea tra foto e fascia */
.cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: #120a26; pointer-events: none; }
.cover-veil {
  position: absolute; inset: 0;
  background:
    /* in fondo diventa esattamente il viola della fascia sotto, così non si vede la linea */
    linear-gradient(to top, #120a26 0%, rgba(18, 10, 38, 0.93) 12%, rgba(10, 6, 24, 0.86) 28%, rgba(10, 6, 24, 0.55) 50%, rgba(10, 6, 24, 0.22) 72%, rgba(10, 6, 24, 0.5) 100%);
}
/* la foto non deve stare sotto il titolo (8 ottobre 2026): su computer Cosimo a destra, il testo a sinistra; sul telefono e nelle finestre più alte che larghe la foto in alto e il testo sotto */
@media (min-aspect-ratio: 1/1) and (min-width: 861px) {
  /* scelta "C" (18 ottobre 2026): foto a tutta pagina, niente velo viola sul viso; il testo in basso a sinistra su un velo scuro */
  .cover-photo { left: auto; right: 0; width: 84%; object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
  .cover .cover-veil { background:
    linear-gradient(to top, #120a26 0%, rgba(18, 10, 38, 0.6) 12%, rgba(18, 10, 38, 0) 30%),
    linear-gradient(to right, rgba(18, 10, 38, 0.92) 0%, rgba(18, 10, 38, 0.75) 32%, rgba(18, 10, 38, 0) 58%); }
  .cover .cover-inner { padding-bottom: clamp(80px, 9vh, 110px); }
  .cover-sub { max-width: 26ch; }
}
/* titolo della copertina: le lettere scendono una alla volta e si posano con un piccolo rimbalzo (scelta "A", 18 ottobre 2026);
   le divide sito.js; finché non sono divise il titolo resta nascosto, così non si vede due volte */
.js .cover h1:not(.split), .js .tr-hero h1:not(.split) { visibility: hidden; }
.cover h1 .line { overflow: visible; }
.cover h1 .w, .tr-hero h1 .w { display: inline-block; white-space: nowrap; }
.cover h1 .ch, .tr-hero h1 .ch { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .cover h1 .line > span { transform: none; animation: none; }
  .cover h1 .ch { opacity: 0; animation: drop .75s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(.2s + var(--i) * 32ms); }
  @keyframes drop { 0% { opacity: 0; transform: translateY(-110px) rotate(-10deg); } 40% { opacity: 1; } 100% { opacity: 1; transform: none; } }
  .cover-sub, .cover .hero-cta { opacity: 0; animation: sub-in .8s ease forwards; animation-delay: 1.6s; }
  .cover .hero-cta { animation-delay: 1.8s; }
  @keyframes sub-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .cover-photo { height: 62%; object-position: 50% 6%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
  .cover .cover-veil { background:
    linear-gradient(to top, #120a26 0%, #120a26 30%, rgba(18, 10, 38, 0.7) 44%, rgba(18, 10, 38, 0) 66%),
    linear-gradient(to bottom, rgba(10, 6, 24, 0.45), rgba(10, 6, 24, 0) 18%); }
}
.cover-inner {
  position: relative; color: #fff;
  padding-top: clamp(120px, 22vh, 220px);
  padding-bottom: clamp(104px, 16vh, 170px);
  will-change: transform, opacity;
}
/* niente ombra sul titolo: ogni riga è "ritagliata" per l'animazione di entrata e l'ombra tagliata
   disegnava un riquadro quasi trasparente intorno alle scritte (segnalato da Cosimo l'8 ottobre 2026) */
.cover h1 { color: #fff; }
.cover h1 .line.two { color: rgba(255, 255, 255, 0.84); }
.cover-sub {
  margin: 16px 0 0; max-width: 30ch; color: rgba(255, 255, 255, 0.94);
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; line-height: 1.45; letter-spacing: -0.015em;
  text-shadow: 0 1px 20px rgba(10, 6, 24, 0.65);
}
.cover .btn.ghost {
  background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cover .btn.ghost:hover { background: rgba(255, 255, 255, 0.26); border-color: #fff; }
.cover :focus-visible { outline-color: #fff; }
/* freccia in basso: invito a scorrere */
.cover-cue {
  position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translateX(-50%);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: #fff; text-decoration: none; font-size: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  will-change: opacity;
}
.cover-cue:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Comparsa graduale scorrendo ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].in { opacity: 1; transform: none; }

.hero { padding-block: clamp(30px, 4.5vw, 54px) clamp(40px, 6vw, 72px); }
/* fasce a tutta larghezza: niente strisce bianche ai lati dopo la copertina.
   Sotto la foto il viola resta scuro e si schiarisce solo verso il fondo, fino al lilla di Chi sono */
main { position: relative; z-index: 0; overflow-x: clip; } /* lo sfondo largo 100vw comprende la barra di scorrimento: senza questo la pagina scorre di lato su Windows */
.wrap.hero { position: relative; padding-bottom: clamp(90px, 11vw, 150px); }
.wrap.hero::before {
  content: ""; position: absolute; top: -4px; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: -1;
  background: linear-gradient(180deg, #120a26 0%, #1d1433 58%, #3a2670 72%, #8d76d4 86%, #d9cdf7 95%, var(--tint-a) 100%);
}
.wrap.hero .doors-lead { color: #fff; }
.wrap.hero .doors-lead span { color: rgba(255, 255, 255, 0.65); }
#chi-sono, #recensioni { background: var(--tint-a); }
.doors-lead {
  margin: 0; font-weight: 800; font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.2; letter-spacing: -0.025em;
}
.doors-lead span { color: var(--muted); }
h1 { margin: 0; font-weight: 800; font-size: clamp(28px, 6vw, 66px); line-height: 1.08; letter-spacing: -0.035em; }
h1 .line { display: block; overflow: hidden; padding-block: 0.08em; }
h1 .line > span { display: block; }
h1 .line.two { color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity .75s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * .08s), transform .75s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * .08s); }
  .cover-cue { animation: cue 2.4s ease-in-out infinite; }
  @keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
  h1 .line > span { transform: translateY(105%); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  h1 .line.two > span { animation-delay: .14s; }
  @keyframes rise { to { transform: translateY(0); } }
  @keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  /* la porta scelta si allarga, la foto si colora e compare la descrizione */
  .door { transition: flex .7s cubic-bezier(.65,0,.35,1), height .7s cubic-bezier(.65,0,.35,1), box-shadow .3s ease; }
  .door-photo { transition: filter .7s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .door-hint { transition: max-height .6s ease, opacity .5s .1s ease, transform .5s .1s ease; }
  .door[data-reveal].in { animation: door-in .75s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * .12s); }
  @keyframes door-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  /* l'icona arriva dopo la finestra, con un piccolo rimbalzo, e si accende di viola */
  .door[data-reveal] .door-ico { opacity: 0; }
  .door[data-reveal].in .door-ico { animation: door-ico-in .7s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: calc(.4s + var(--i, 0) * .12s); }
  @keyframes door-ico-in {
    0% { opacity: 0; transform: scale(.5); background: #fff; color: var(--accent-ink); }
    55% { opacity: 1; transform: scale(1.08); background: #fff; color: var(--accent-ink); }
    100% { opacity: 1; transform: none; background: var(--accent); color: #fff; }
  }
  .door-go { transition: transform .3s ease, background-color .3s ease, color .3s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Two doors ---------- */
.doors { margin-top: 18px; display: flex; gap: 16px; height: 560px; }
/* le due porte: quella scelta si allarga e si colora, l'altra resta stretta e in bianco e nero */
.door {
  position: relative; isolation: isolate; overflow: hidden; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 3.4vw, 34px); border-radius: 30px; text-decoration: none;
  color: #fff; background: #1d1433;
}
.door.on { flex: 1.7 1 0; box-shadow: var(--shadow); }
.door-photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(.75) brightness(.8); transform: scale(1.08);
}
.door.on .door-photo { filter: none; transform: none; }
.door.nut .door-photo { object-position: 62% 40%; }
.door.coa .door-photo { object-position: 50% 0%; }
.door-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18, 10, 40, 0.9) 0%, rgba(18, 10, 40, 0.6) 28%, rgba(30, 15, 70, 0.12) 60%, rgba(30, 15, 70, 0.1) 100%);
}
.door-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; }
.door-ico svg { display: block; width: 26px; height: 26px; }
.door-body { margin-top: auto; padding-right: 64px; }
.door-name { display: block; font-weight: 800; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.1; letter-spacing: -0.03em; color: #fff; white-space: nowrap; }
.door-hint { display: block; max-height: 0; margin-top: 10px; overflow: hidden; opacity: 0; transform: translateY(10px); color: rgba(255, 255, 255, 0.88); max-width: 38ch; }
.door.on .door-hint { max-height: 140px; opacity: 1; transform: none; }
.door-go {
  position: absolute; right: clamp(20px, 3vw, 30px); bottom: clamp(20px, 3vw, 30px);
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--accent-ink); font-size: 20px; font-weight: 700;
}
.door.on .door-go { background: var(--accent); color: #fff; transform: translateX(4px); }

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
main > section { border-top: 1px solid var(--line); }
/* nella pagina iniziale le sezioni cambiano colore: la riga di separazione non serve */
.wrap.hero ~ section { border-top: 0; }
h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.03em; }
.sec-head { margin-bottom: 32px; }
.sec-head p { margin: 0; max-width: 56ch; color: var(--muted); font-size: 19px; }

/* Chi sono */
#chi-sono { padding-top: clamp(40px, 6vw, 72px); overflow-x: clip; }
/* Chi sono: "Piacere, sono Cosimo." in grande, titoli di studio in griglia, foto inclinata con un'ombra viola */
/* solo dentro Chi sono: "me" è anche la classe dei messaggi del cliente nelle chat d'esempio, che prima diventavano griglie a due colonne */
#chi-sono .me { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.me-hello { margin: 0 0 14px; font-size: clamp(46px, 7.5vw, 92px); line-height: .98; letter-spacing: -0.045em; }
.me-hello span { color: var(--accent-ink); }
.me-hello i { font-style: normal; margin-left: -0.08em; }
.me p { margin: 0 0 14px; max-width: 48ch; }
.me p.big { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.4; font-weight: 500; }
.me p.muted { color: var(--muted); font-size: 17px; }
.creds { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.creds li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; line-height: 1.3; }
.creds li:nth-child(odd) { padding-right: 14px; }
.creds small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.creds-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.creds-ico svg { display: block; width: 18px; height: 18px; }
.me-photo { margin: 0; width: 100%; max-width: 500px; justify-self: center; }
/* un mazzo di foto: si tocca e quella davanti scivola dietro */
.stack-btn { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; background: none; cursor: pointer; }
.stack-card {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 30px;
  box-shadow: 0 14px 34px rgba(50, 25, 110, 0.18); background: var(--tint-b);
}
.stack-card.k0 { z-index: 4; transform: rotate(2deg); }
.stack-card.k1 { z-index: 3; transform: translate(-3%, 1%) rotate(-4deg); }
.stack-card.k2 { z-index: 2; transform: translate(4%, 2%) rotate(6deg); }
.stack-card.k3 { z-index: 1; transform: translate(-5%, 3%) rotate(-8deg); }
@media (hover: hover) {
  .stack-btn:hover .stack-card.k1 { transform: translate(-10%, 2%) rotate(-9deg); }
  .stack-btn:hover .stack-card.k2 { transform: translate(10%, 3%) rotate(11deg); }
  .stack-btn:hover .stack-card.k3 { transform: translate(-15%, 5%) rotate(-14deg); }
}
.stack-dots { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.stack-dots i { position: relative; overflow: hidden; width: 8px; height: 8px; border-radius: 999px; background: var(--tint-b); transition: width .4s ease; }
.stack-dots i.on { width: 30px; }
/* la lineetta si riempie: quando è piena cambia foto */
.stack-dots b { position: absolute; inset: 0; width: 0; border-radius: inherit; background: var(--accent); }
.stack-dots i.on b { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .stack-card { transition: transform .9s cubic-bezier(.22,.61,.36,1), opacity .5s ease; }
  /* la foto davanti si solleva e svanisce verso l'alto, come quando la prendi dal mucchio */
  .stack-card.leave { z-index: 5; transform: translateY(-18%) rotate(5deg) scale(1.04); opacity: 0; transition: transform .8s cubic-bezier(.3,0,.2,1), opacity .6s ease .15s; }
  /* poi ricompare in fondo al mazzo con una dissolvenza */
  .stack-card.back { opacity: 0; transition: none; }
  /* quella sotto si assesta al centro con un piccolo rimbalzo */
  .stack-card.k0.settle { animation: stack-settle .9s cubic-bezier(.34,1.3,.64,1); }
  @keyframes stack-settle { from { transform: translate(-3%, 1%) rotate(-4deg) scale(.97); } to { transform: rotate(2deg); } }
  .stack.auto .stack-dots i.on b { width: 0; animation: stack-fill var(--wait, 3s) linear forwards; }
  .stack.paused .stack-dots i.on b { animation-play-state: paused; }
  @keyframes stack-fill { to { width: 100%; } }
}
@media (prefers-reduced-motion: no-preference) {
  .me.wait .stack-btn { opacity: 0; transform: scale(.94); }
  .me.wait .creds li { opacity: 0; transform: translateX(-12px); }
  .me.wait .stack-btn { transition: opacity 1s ease .2s, transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
  .me.wait .creds li { transition: opacity .5s ease, transform .5s ease; transition-delay: calc(.6s + var(--d) * .12s); }
  .me.wait.go .stack-btn { opacity: 1; transform: none; }
  .me.wait.go .creds li { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes nut-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
}

/* Dove ricevo: una mappa sola; la regione si disegna, poi zoom sui due studi */
.map-card { position: relative; height: clamp(440px, 40vw, 660px); border-radius: 26px; overflow: hidden; background: var(--tint-a); }
/* bordo sottile sempre visibile: nell'entroterra la mappa è tutta bianca come la pagina */
.map-card::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; border: 1px solid rgba(118, 71, 217, 0.28); pointer-events: none; }
.map { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.map-land { fill: #fff; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-site { cursor: pointer; outline: none; }
.map-hit { fill: transparent; }
.map-pin path { fill: var(--accent); transition: fill .2s ease; }
.map-pin circle { fill: #fff; }
.map-site.sel .map-pin path, .map-site:hover .map-pin path { fill: var(--accent-ink); }
.map-ring { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-site:focus-visible .map-ring { opacity: 1; stroke: var(--accent-ink); }
.map-sea { font: italic 600 8.5px var(--font); fill: #9a86c9; letter-spacing: .08em; text-transform: uppercase; }
.map-sub { font: 700 7.5px var(--font); fill: var(--accent-ink); paint-order: stroke; stroke: #fff; stroke-width: 2.2px; stroke-linejoin: round; }
.map-card.city .map-sub, .map-card.city .map-sea { visibility: hidden; }
/* dentro la città compaiono i paesi vicini: solo nome e puntino, per orientarsi */
.map-near { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; pointer-events: none; }
.map-near.on { opacity: 1; visibility: visible; transition-delay: .6s; }
.map-near.on > g.clash { visibility: hidden; }
.map-dot { fill: var(--accent); fill-opacity: .55; }
/* sul telefono restano solo i paesi che ci stanno */
@media (max-width: 560px) { .map-wide { display: none; } }
/* Rossano è dentro il comune di Corigliano-Rossano: puntino pieno e nome più scuro */
.map-dot.in { fill-opacity: 1; }
.map-town.in { fill: var(--accent-ink); font-weight: 700; }
.map-town { font: 600 8.5px var(--font); fill: #5f6470; paint-order: stroke; stroke: #fff; stroke-width: 2.4px; stroke-linejoin: round; }
.map-label { font: 800 11px var(--font); fill: var(--text); letter-spacing: -0.01em; paint-order: stroke; stroke: #fff; stroke-width: 2.4px; stroke-linejoin: round; }
/* l'online, in una barra sotto la mappa */
.map-card .online-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; margin: 0; box-shadow: 0 6px 18px rgba(50, 25, 110, 0.10); }
.map-card.city .online-bar { visibility: hidden; }
.online-bar { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px 14px 14px 16px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.online-bar-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tint-a); color: var(--accent-ink); }
.online-bar-ico svg { display: block; width: 24px; height: 24px; }
.online-bar-text { flex: 1; min-width: 220px; margin: 0; font-size: 17px; line-height: 1.45; color: var(--muted); }
.online-bar-text strong { color: var(--text); font-weight: 800; }
/* sagoma della città, suggerimento e pulsante per tornare indietro */
.map-city { fill: var(--accent); fill-opacity: 0; stroke: var(--accent); stroke-width: 2; stroke-opacity: 0; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; transition: fill-opacity .6s ease, stroke-opacity .6s ease; }
.map-city.on { fill-opacity: .14; stroke-opacity: 1; }
/* sulla città resta solo la sua puntina */
.map-site { transition: opacity .35s ease; }
.map-card.city .map-site:not(.sel) { opacity: 0; pointer-events: none; }
.map-hint, .map-back {
  position: absolute; top: 16px; left: 16px; z-index: 1; margin: 0;
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 0;
  font: 700 13px var(--font); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(50, 25, 110, 0.10);
}
.map-back { cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.map-back:hover { background: var(--accent); color: #fff; }
.map-hint[hidden], .map-back[hidden] { display: none; }
/* entrando in una città il suggerimento lascia il posto a "Torna alla mappa" */
.map-hint { transition: opacity .25s ease, visibility .25s; }
.map-hint.off { opacity: 0; visibility: hidden; }
.map-pop.side::after { display: none; }
/* il fumetto con i dettagli dello studio */
.map-pop {
  position: absolute; z-index: 2; width: min(280px, calc(100% - 24px)); padding: 16px 18px 16px;
  border-radius: 20px; background: #fff; box-shadow: var(--shadow); color: var(--text);
}
.map-pop::after {
  content: ""; position: absolute; top: var(--tipy, 50%); width: 14px; height: 14px; margin-top: -7px;
  background: #fff; transform: rotate(45deg); border-radius: 3px;
}
.map-pop.dock { width: auto; right: 12px; }
.map-pop.dock::after { display: none; }
.map-pop-x {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; font: 700 16px/1 var(--font);
}
.map-pop-name { margin: 0; padding-right: 30px; font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
.map-pop-tag { margin: 2px 0 10px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.map-pop-info { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; }
.map-pop-hours { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.map-pop-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.map-pop-acts .map-pop-link { margin-top: 0; }
.map-pop-link { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--accent-ink); text-underline-offset: 3px; }
.map-pop-link::after { content: " \2192"; display: inline-block; transition: transform .2s ease; }
.map-pop-link:hover::after { transform: translateX(4px); }
@media (prefers-reduced-motion: no-preference) {
  .map-card.pre .map-land { stroke-dasharray: 1 2; stroke-dashoffset: 1; fill-opacity: 0; }
  /* finito il disegno la linea torna piena: con il tratteggio restava qualche buchino */
  .map-card.pre.zoomed .map-land { stroke-dasharray: none; }
  .map-card.pre .map-pin, .map-card.pre .map-label, .map-card.pre .map-sub, .map-card.pre .map-sea, .map-card.pre .map-hint, .map-card.pre .online-bar { opacity: 0; }
  .map-card.go .map-land { animation: map-draw 1.5s cubic-bezier(.4,0,.2,1) forwards, map-fill .6s ease .9s forwards; }
  .map-card.zoomed .map-pin { animation: map-drop .7s cubic-bezier(.34,1.56,.64,1) both; }
  .map-card.zoomed .map-pin.b { animation-delay: .22s; }
  .map-card.zoomed .map-ring.a { animation: map-ring 1.1s ease-out .4s both; }
  .map-card.zoomed .map-ring.b { animation: map-ring 1.1s ease-out .62s both; }
  .map-card.zoomed .map-label { animation: map-fade .5s ease .45s both; }
  .map-card.zoomed .map-label.b { animation-delay: .67s; }
  .map-card.zoomed .map-sub { animation: map-fade .5s ease .7s both; }
  .map-card.zoomed .map-sub.b { animation-delay: .9s; }
  .map-card.go .map-sea { animation: map-fade .8s ease 1s both; }
  .map-card.zoomed .online-bar { animation: map-fade .5s ease 1.2s both; }
  .map-card.zoomed .map-hint { animation: map-fade .5s ease 1.1s both; }
  .map-back:not([hidden]) { animation: map-fade .4s ease both; }
  .map-pop:not([hidden]) { animation: map-pop .35s cubic-bezier(.34,1.4,.64,1); }
  @keyframes map-draw { to { stroke-dashoffset: 0; } }
  @keyframes map-fill { from { fill-opacity: 0; } to { fill-opacity: 1; } }
  @keyframes map-drop { 0% { opacity: 0; transform: translateY(-16px); } 60% { opacity: 1; transform: translateY(1px); } 100% { opacity: 1; transform: none; } }
  @keyframes map-ring { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
  @keyframes map-fade { from { opacity: 0; } to { opacity: .99; } }
  @keyframes map-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
}

/* Dove ricevo: accanto al titolo un cartello stradale con tre frecce che girano e si fermano */
.where-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.post { position: relative; flex: none; width: 330px; height: 236px; }
.post-pole { position: absolute; left: 50%; top: 8px; bottom: 6px; width: 12px; margin-left: -6px; border-radius: 6px; background: linear-gradient(90deg, #4a2a9a, var(--accent) 50%, #4a2a9a); }
.post-pole::before { content: ""; position: absolute; left: 50%; top: -9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--accent); }
.post-pole::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -6px; height: 10px; border-radius: 6px; background: var(--tint-b); }
.post-sign {
  position: absolute; display: flex; align-items: center; height: 50px; padding: 0 18px;
  font-weight: 800; font-size: 16px; line-height: 1.15; color: #fff; background: var(--accent);
  filter: drop-shadow(0 6px 10px rgba(50, 25, 110, 0.22));
}
.post-sign small { display: block; font-size: 11.5px; font-weight: 600; opacity: .85; }
.post-sign.r { left: calc(50% - 4px); padding-right: 34px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); transform-origin: 0 50%; }
.post-sign.l { right: calc(50% - 4px); padding-left: 34px; clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); transform-origin: 100% 50%; }
.post-sign.w { background: var(--tint-b); color: var(--accent-ink); }
.post-sign.s1 { top: 18px; } .post-sign.s2 { top: 88px; } .post-sign.s3 { top: 158px; }
@media (prefers-reduced-motion: no-preference) {
  .post.wait .post-sign { opacity: 0; }
  .post.wait.go .post-sign { animation: post-swing 1.1s cubic-bezier(.34,1.4,.64,1) forwards; }
  .post.wait.go .post-sign.l { animation-name: post-swing-l; }
  .post.wait.go .post-sign.s2 { animation-delay: .2s; }
  .post.wait.go .post-sign.s3 { animation-delay: .4s; }
  @keyframes post-swing { 0% { opacity: 0; transform: rotate(-70deg); } 15% { opacity: 1; } 60% { transform: rotate(8deg); } 80% { transform: rotate(-3deg); } 100% { opacity: 1; transform: none; } }
  @keyframes post-swing-l { 0% { opacity: 0; transform: rotate(70deg); } 15% { opacity: 1; } 60% { transform: rotate(-8deg); } 80% { transform: rotate(3deg); } 100% { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .where-head .post { margin-inline: auto; transform: scale(.9); transform-origin: top center; margin-bottom: -20px; }
}

/* Il check settimanale: una chat d'esempio che si recita da sola quando ci arrivi */
.chk { display: grid; grid-template-columns: 280px minmax(0, 460px); gap: 40px; align-items: start; }
.chk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.chk-steps li {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 18px;
  border: 2px solid transparent; opacity: .4; transition: opacity .35s ease, border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.chk-steps li.on { opacity: 1; border-color: var(--accent); background: #fff; box-shadow: var(--shadow); }
.chk-steps li.done { opacity: 1; }
.chk-n {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--tint-b); color: var(--accent-ink); font-weight: 800; font-size: 14px; transition: background-color .3s ease, color .3s ease;
}
.chk-steps li.on .chk-n, .chk-steps li.done .chk-n { background: var(--accent); color: var(--on-accent); }
.chk-steps b { display: block; font-size: 17px; line-height: 1.3; }
.chk-d { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.chk-phone { border-radius: 28px; background: #fff; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.chk-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chk-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.chk-head b { display: block; font-size: 15px; line-height: 1.2; }
.chk-head span span { display: block; font-size: 12.5px; color: var(--muted); }
.chk-ex { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--tint-a); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.chk-msgs { min-height: 470px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.chk-m { max-width: 80%; opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.chk-m.show { opacity: 1; transform: none; }
.chk-m.me { align-self: flex-end; }
.chk-m.co { align-self: flex-start; }
.chk-bub { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.me .chk-bub { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.co .chk-bub { background: #fff; border-bottom-left-radius: 6px; }
.chk-pics { display: grid; grid-template-columns: repeat(3, 72px); gap: 4px; padding: 4px; border-radius: 18px; border-bottom-right-radius: 6px; background: var(--accent); }
.chk-pic { display: grid; place-items: end center; height: 92px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #c9b8f3, #9a7be6); }
.chk-pic svg { width: 46px; height: 70px; color: rgba(255, 255, 255, .85); }
.chk-vid { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; color: #fff; }
.me .chk-vid { background: var(--accent); border-bottom-right-radius: 6px; }
.co .chk-vid { background: var(--text); border-bottom-left-radius: 6px; }
.chk-play { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.co .chk-play { background: var(--accent); }
.chk-vid b { font-size: 14.5px; }
.chk-vid small { display: block; font-size: 12px; opacity: .75; }
.chk-typing { display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px; border-bottom-left-radius: 6px; background: #fff; }
.chk-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .35; animation: chk-dots 1.1s infinite; }
.chk-typing i:nth-child(2) { animation-delay: .18s; }
.chk-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chk-dots { 50% { opacity: 1; transform: translateY(-3px); } }
.chk-note { align-self: center; font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity .4s ease; }
.chk-note.show { opacity: 1; }
.chk-again {
  margin-top: 14px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tint-b); color: var(--accent-ink); font: 700 14px var(--font); transition: background-color .2s ease, color .2s ease;
}
.chk-again:hover { background: var(--accent); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .chk-again:not([hidden]) { animation: map-fade .4s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .chk-m, .chk-note, .chk-steps li { transition: none; }
}
@media (max-width: 860px) {
  .chk { grid-template-columns: 1fr; gap: 20px; }
  .chk-steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .chk-steps li { flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; text-align: center; }
  .chk-steps b { font-size: 13.5px; }
  .chk-d { display: none; }
  .chk-pics { grid-template-columns: repeat(3, 64px); }
  .chk-head { gap: 10px; padding-inline: 14px; }
  .chk-head b { font-size: 13.5px; white-space: nowrap; }
}

/* Recensioni: due colonne che salgono piano */
.rev-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.rev-head .sec-head { margin-bottom: 0; }
.g-rate { display: flex; align-items: center; gap: 12px; }
.g-rate b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.g-rate small { display: block; color: var(--muted); font-size: 15px; font-weight: 600; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 20px; line-height: 1; }
.up { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.up.solo { grid-template-columns: 1fr; }
.up-col { min-width: 0; overflow: hidden; }
.up-item { margin: 0; padding: 30px 0 32px; border-top: 1px solid var(--line-strong); }
.up-item .q { display: block; height: 30px; font-size: 64px; line-height: .6; font-weight: 800; color: var(--accent); }
.up-item blockquote { margin: 8px 0 0; max-width: 52ch; font-size: 19px; line-height: 1.6; font-weight: 500; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.ini { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px; }
.who strong { display: block; font-size: 15px; line-height: 1.2; }
.who div span { display: block; font-size: 13.5px; color: var(--muted); font-weight: 500; }
/* il movimento parte solo se il codice lo accende (classe .roll), mai con "riduci movimento" */
.up.roll { height: min(560px, 62vh); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.up.roll .up-track { animation: up-roll var(--dur, 60s) linear infinite; }
.up.roll { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.up.roll:hover .up-track, .up.roll.off .up-track, .up.roll.held .up-track { animation-play-state: paused; }
@keyframes up-roll { to { transform: translateY(-50%); } }
@media (max-width: 860px) {
  .up { grid-template-columns: 1fr; }
  .up .c2 { display: none; }
  .up.roll { height: 70vh; }
}

/* Contatti: chat con Cosimo */
.talk { display: grid; grid-template-columns: 1fr minmax(320px, 460px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.talk h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 18px; }
.talk .lead { margin: 0; max-width: 40ch; font-size: 19px; color: var(--muted); }
.phone { border-radius: 30px; background: #fff; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--accent); color: var(--on-accent); }
.phone-top img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.phone-top strong { display: block; font-size: 15px; line-height: 1.2; }
.phone-top span { font-size: 13px; opacity: .85; }
/* Contatti: banner viola col numero e il pulsante "Chiama", sotto mail e Instagram (scelta "A", 9 ottobre 2026) */
.call-card { margin-top: 30px; max-width: 520px; padding: 24px 26px; border-radius: 26px; background: linear-gradient(135deg, #7647d9, #5b2fb8); color: #fff; box-shadow: 0 16px 40px rgba(91, 47, 184, 0.3); }
.call-card small { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.call-num { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 18px; }
.call-num b { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; white-space: nowrap; }
.call-num a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 99px; background: #fff; color: #3d1f87; font-weight: 800; text-decoration: none; transition: transform .25s ease, background-color .2s ease; }
.call-num a:hover { background: #ece4ff; transform: translateY(-2px); }
.call-num svg, .call-more svg { flex: none; width: 18px; height: 18px; }
.call-more { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.call-more a { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.call-more a span { min-width: 0; overflow-wrap: anywhere; }
.call-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.call-card a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 400px) { .call-card { padding: 20px; } .call-num { flex-wrap: wrap; } }
.phone-body { display: grid; gap: 8px; padding: 18px; min-height: 330px; align-content: start;
  background: radial-gradient(circle, rgba(118, 71, 217, 0.08) 1px, transparent 1.4px) 0 0 / 18px 18px, #faf8fe; }
.bub { justify-self: start; max-width: 86%; margin: 0; padding: 10px 14px; border-radius: 6px 18px 18px 18px; background: #fff; border: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.bub .dots { display: inline-flex; gap: 4px; padding: 5px 2px; }
.bub .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .35; animation: talk-dot 1s infinite; }
.bub .dots i:nth-child(2) { animation-delay: .15s; }
.bub .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes talk-dot { 30% { opacity: 1; transform: translateY(-3px); } }
.chips { display: grid; gap: 8px; justify-items: end; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-size: 15px; font-weight: 700; text-align: right; }
.chip:hover { background: var(--accent-hover); }
.chip .arr { display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.chip:hover .arr { transform: translateX(4px); }
.phone-foot { margin: 0; padding: 10px 18px 14px; font-size: 13px; color: var(--muted); text-align: center; background: #faf8fe; }
/* entrata: testo che sale, telefono che sale, poi i fumetti uno alla volta (classi messe dal codice) */
.talk.wait .talk-text > * { opacity: 0; transform: translateY(24px); }
.talk.wait .phone { opacity: 0; transform: translateY(40px) rotate(2deg); }
.talk.wait .bub, .talk.wait .chip { opacity: 0; transform: translateY(10px) scale(.95); }
.talk.wait .bub { transform-origin: left top; }
.talk.wait .chip { transform-origin: right bottom; }
.talk.go .talk-text > * { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); opacity: 1; transform: none; }
.talk.go .talk-text > :nth-child(2) { transition-delay: .15s; }
.talk.go .talk-text > :nth-child(3) { transition-delay: .3s; }
.talk.go .phone { transition: opacity .6s ease .2s, transform .9s cubic-bezier(.2,.7,.2,1) .2s; opacity: 1; transform: none; }
.talk.go .bub, .talk.go .chip { transition: opacity .35s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
.talk.go .on { opacity: 1; transform: none; }
@media (max-width: 860px) { .talk { grid-template-columns: 1fr; } }

footer { padding-block: 32px 40px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--muted); }
footer .todo { color: var(--accent-ink); }
.privacy-link { color: var(--accent-ink); font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.privacy-link:hover { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 560px) { .brand-name { display: none; } }
@media (max-width: 860px) {
   #chi-sono .me{ grid-template-columns: 1fr; }
  .me-photo { order: -1; max-width: 300px; margin-inline: auto; width: 100%; }
  .creds { grid-template-columns: 1fr; }
  .map-card { height: 520px; }
  .online-bar { padding: 12px; gap: 10px 12px; }
  .online-bar-text { min-width: 0; font-size: 15px; }
  .online-bar-text strong { display: block; }
  .map-card .online-bar-ico { display: none; }
  .map-card .online-bar { padding-left: 18px; }
  .online-bar .btn { width: auto; margin-left: auto; padding: 10px 16px; font-size: 14px; }
  .doors { flex-direction: column; height: auto; }
  .door { flex: none; height: 300px; }
  .door.on { flex: none; height: 440px; }
  .door.coa .door-photo { height: 122%; }
}

/* ---------- Pagine Nutrizione e Allenamento ---------- */
.page main > section:first-child { border-top: 0; padding-top: calc(env(safe-area-inset-top, 0px) + clamp(112px, 13vw, 150px)); }
.back-home {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  font-weight: 700; font-size: 15px; color: var(--accent-ink); text-decoration: none;
}
.back-home:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Pagina iniziale: "Dove ricevo" con una mappa in miniatura, chiara, che porta alla mappa vera in Nutrizione (scelta "B", 9 ottobre 2026) */
.hw { display: grid; grid-template-columns: 1fr minmax(280px, 520px); gap: clamp(30px, 6vw, 90px); align-items: center; }
.hw h2 { margin: 0 0 12px; }
.hw-text > p { margin: 0 0 26px; max-width: 40ch; color: var(--muted); font-size: 19px; }
.hw-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hw-list li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hw-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--tint-a); color: var(--accent-ink); }
.hw-ico svg { width: 22px; height: 22px; }
.hw-list b { display: block; font-size: 17px; line-height: 1.25; }
.hw-list small { color: var(--muted); font-size: 15px; }
.hw-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 28px; background: var(--tint-a); border: 1px solid rgba(118, 71, 217, 0.28); box-shadow: var(--shadow); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease; }
.hw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(50, 25, 110, 0.2); }
.hw-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hw-land { fill: #fff; stroke: var(--accent); stroke-width: .8; stroke-linejoin: round; }
.hw-city { fill: var(--accent); fill-opacity: .16; stroke: var(--accent); stroke-width: .6; }
.hw-pin { fill: var(--accent); }
.hw-ring { fill: none; stroke: var(--accent); stroke-width: .8; opacity: .45; }
.hw-lab { font: 800 9px var(--font); fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 2.4px; stroke-linejoin: round; }
.hw-sea { font: italic 600 6.5px var(--font); fill: #9a86c9; letter-spacing: .08em; text-transform: uppercase; }
.hw-cta { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 18px; background: var(--accent); color: #fff; font-weight: 800; }
.hw-card:hover .hw-cta { background: var(--accent-hover); }
@media (max-width: 860px) { .hw { grid-template-columns: 1fr; } .hw-card { max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .hw-card { transition: none; } .hw-card:hover { transform: none; } }

/* =================================================================
   PAGINE SCURE (Nutrizione e Allenamento): nero e viola
   ================================================================= */
body.dark {
  color-scheme: dark;
  --bg: #0b0814; --surface: #161126; --surface-2: #1d1633;
  --card: #161126; --tint-a: #1a1430; --tint-b: #2b2150;
  --line: rgba(255, 255, 255, 0.10); --line-strong: rgba(255, 255, 255, 0.20);
  --text: #f3f0fa; --muted: #a9a0c0;
  --accent: #7e4ef0; --accent-hover: #6d3fdc; /* scurito il 22 ottobre 2026: scritte bianche leggibili (contrasto 5:1, prima 4,25:1) */ --accent-ink: #c2adff; --on-accent: #fff;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(138, 92, 246, 0.12);
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.1px, transparent 1.4px);
}
.dark .site-header { background: rgba(11, 8, 20, 0.82); }
.dark .brand img { filter: brightness(0) invert(1); }
.dark .menu-btn { background: var(--surface); }
.dark .bars i { background: var(--text); }
.dark .btn.ghost, .dark .btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.light { background: #fff; color: #140d24; border-color: #fff; }
.btn.light:hover { background: #ece4ff; border-color: #ece4ff; }
.btn.line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn.line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
/* pezzi comuni (chat, finestre, mappa) con i colori scuri */
.dark .chk-steps li.on, .dark .chk-phone, .dark .co .chk-bub, .dark .chk-typing, .dark .phone, .dark .bub, .dark .map-back{ background-color: var(--surface); }
.dark .co .chk-vid { background: var(--surface-2); border: 1px solid var(--line-strong); }
.dark .co .chk-bub { background: var(--surface-2); border: 1px solid var(--line-strong); } /* prima aveva lo stesso colore della chat e il fumetto di Cosimo non si vedeva */
.dark .phone-body { background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--surface-2); }
.dark .phone-foot { background: var(--surface-2); }

/* Copertina di Allenamento: la foto a destra sfuma nel nero, il testo a sinistra */
.tr-hero { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden;
  padding-block: calc(env(safe-area-inset-top, 0px) + 110px) clamp(40px, 7vh, 80px); }
.page main > .tr-hero:first-child { padding-top: calc(env(safe-area-inset-top, 0px) + 110px); }
.tr-hero-bg { position: absolute; inset: 0; }
.tr-hero-bg img { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.tr-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 35%), radial-gradient(600px 400px at 70% 60%, rgba(138, 92, 246, 0.25), transparent 70%); }
.tr-hero-text { position: relative; z-index: 2; max-width: 680px; }
.tr-kick { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.tr-kick::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.tr-hero h1 { margin: 0; font-size: clamp(54px, 8.4vw, 132px); line-height: .92; letter-spacing: -0.055em; font-weight: 800; }
.tr-lead { margin: 22px 0 0; max-width: 36ch; font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.tr-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (prefers-reduced-motion: no-preference) {
  .tr-hero.wait .tr-hero-bg img { transform: scale(1.12); opacity: 0; }
  .tr-hero.go .tr-hero-bg img { transition: transform 2.2s cubic-bezier(.2,.7,.2,1), opacity 1.2s ease; transform: none; opacity: 1; }
  .tr-hero.wait .tr-hero-text > * { opacity: 0; transform: translateY(30px); }
  .tr-hero.go .tr-hero-text > * { transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); opacity: 1; transform: none; }
  .tr-hero.go .tr-hero-text > :nth-child(2) { transition-delay: .3s; }
  .tr-hero.go .tr-hero-text > :nth-child(3) { transition-delay: .45s; }
  .tr-hero.go .tr-hero-text > :nth-child(4) { transition-delay: .6s; }
  .tr-hero.go .tr-hero-text > :nth-child(5) { transition-delay: .75s; }
  /* il titolo grande non entra in blocco: le sue lettere scendono una alla volta, come nella pagina iniziale */
  .tr-hero .tr-hero-text > h1 { opacity: 1 !important; transform: none !important; }
  .tr-hero.wait h1 .ch { opacity: 0; }
  .tr-hero.go h1 .ch { animation: drop .75s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.35s + var(--i) * 55ms); }
  .tr-hero.go .tr-hero-text > :nth-child(4) { transition-delay: 1.05s; }
  .tr-hero.go .tr-hero-text > :nth-child(5) { transition-delay: 1.2s; }
}
/* finestra più alta che larga (ma non telefono): la foto riempie tutto, dietro al testo, così non resta il vuoto nero */
@media (min-width: 861px) and (max-aspect-ratio: 5/4) {
  .tr-hero-bg img { width: 100%; object-position: 60% 22%; -webkit-mask-image: none; mask-image: none; }
  .tr-hero-bg::after { background:
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 8, 20, 0.85) 28%, rgba(11, 8, 20, 0.25) 60%, rgba(11, 8, 20, 0.35) 100%),
    linear-gradient(90deg, rgba(11, 8, 20, 0.75) 0%, rgba(11, 8, 20, 0.2) 55%, transparent 100%); }
}
@media (max-width: 860px) {
  .tr-hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 66px); }
  .page main > .tr-hero:first-child { padding-top: calc(env(safe-area-inset-top, 0px) + 66px); }
  .tr-hero-bg { position: relative; inset: auto; height: 52vh; }
  .tr-hero-bg img { width: 100%; height: 100%; object-position: 50% 35%;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%); }
  .tr-hero-bg::after { display: none; }
  .tr-hero .wrap { margin-top: -70px; }
}

/* Allenamento, Come funziona: carte che si impilano (scelta "D", 7 ottobre 2026) */
.steps { scroll-margin-top: 24px; }
/* subito dopo la copertina: niente spazio doppio e niente riga di separazione */
.tr-hero + #allenamento, .tr-hero + #nutrizione { padding-top: clamp(28px, 3.5vw, 48px); border-top: 0; }
.st-intro { margin: -24px 0 36px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.st-title { margin: 0 0 40px; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px + var(--i) * 14px); margin-bottom: 18px; transform-origin: 50% 0; }
.st-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px clamp(20px, 3vw, 44px); align-items: center; min-height: 0;
  padding: clamp(22px, 2.6vw, 36px) clamp(24px, 3vw, 44px); border-radius: 26px; border: 1px solid rgba(138, 92, 246, 0.28);
  background: radial-gradient(600px 300px at 90% 0%, rgba(138, 92, 246, 0.28), transparent 70%), linear-gradient(160deg, #1f1738, #120d22);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5); }
.st-list li:last-child .st-card { background: radial-gradient(600px 300px at 90% 0%, rgba(178, 148, 255, 0.45), transparent 70%), linear-gradient(160deg, #4a2fa0, #1d1340); }
.st-n { min-width: 1ch; font-size: clamp(64px, 7vw, 110px); line-height: .8; font-weight: 800; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 2px var(--accent); }
.st-list li:last-child .st-n { color: #fff; -webkit-text-stroke: 0; }
.st-card h3 { margin: 0 0 8px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.04em; }
.st-card p { margin: 0; max-width: 58ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); }
.st-list li:last-child .st-card p { color: rgba(255, 255, 255, 0.8); }
.st-ico { display: block; width: clamp(56px, 5vw, 76px); height: clamp(56px, 5vw, 76px); padding: clamp(13px, 1.2vw, 18px); border-radius: 20px; background: rgba(138, 92, 246, 0.16); color: var(--accent-ink); }
.st-ico svg { display: block; width: 100%; height: 100%; }
.st-list li:last-child .st-ico { background: rgba(255, 255, 255, 0.14); color: #fff; }
.st-more { display: inline-block; margin-top: 14px; color: #fff; font-weight: 700; text-decoration: none; font-size: 15px; }
.st-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.st-folder { display: flex; align-items: center; gap: 14px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.st-folder svg { flex: none; width: 22px; height: 22px; color: var(--accent-ink); }
@media (max-width: 860px) {
  .st-card { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .st-ico { display: none; }
  .st-list li { top: calc(env(safe-area-inset-top, 0px) + 76px + var(--i) * 12px); }
}

/* Allenamento: il check d'esempio si apre in una finestra dal passo 5 (7 ottobre 2026) */
button.st-more { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: #fff; color: #1d1340; font-weight: 800; font-size: 15px; }
button.st-more:hover { background: #ece4ff; }
button.st-more:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.chk-dlg { width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(20px, 3vw, 36px); border: 1px solid rgba(138,92,246,.3); border-radius: 28px; color: var(--text);
  background: radial-gradient(700px 400px at 90% 0%, rgba(138,92,246,.22), transparent 70%), #120d22; box-shadow: 0 30px 80px rgba(0,0,0,.7); overflow: auto; }
.chk-dlg::backdrop { background: rgba(6,4,12,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.chk-dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.chk-dlg-head .tr-kick { margin-bottom: 8px; }
.chk-dlg-head h3 { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1.05; }
.chk-dlg-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.chk-dlg-x svg { width: 16px; height: 16px; }
.chk-dlg-x:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .chk-dlg[open] { animation: dlg-in .45s cubic-bezier(.2,.8,.2,1); }
  @keyframes dlg-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
}
/* la chat dentro la finestra: larghezze che si adattano, niente testi spezzati */
.chk-dlg .chk { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.chk-vid > span { min-width: 0; white-space: nowrap; }
.chk-vid b { display: block; }
.chk-head > span:nth-child(2) { min-width: 0; }
.chk-ex { flex: none; }
@media (max-width: 860px) {
  .chk-dlg .chk { grid-template-columns: 1fr; }
  .chk-head b { white-space: normal; }
  .chk-msgs { padding: 14px; }
  .chk-m { max-width: 88%; }
}

/* Allenamento, passo 3: la valutazione d'esempio nella finestra */
.val { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.val-lbl { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 800; font-size: 16px; }
.val-lbl > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; }
.val-lbl .chk-ex { margin-left: auto; font-style: normal; }
.val-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.val-shot { position: relative; margin: 0; text-align: center; }
.val-frame { position: relative; display: grid; place-items: end center; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #2b2150, #17112a); border: 1px dashed rgba(194, 173, 255, 0.35); color: rgba(194, 173, 255, 0.35); transition: background .4s, color .4s, border-color .4s; }
.val-frame svg { width: 62%; height: 82%; }
.val-shot.on .val-frame { background: linear-gradient(160deg, #c9b8f3, #8a5cf6); border: 1px solid transparent; color: rgba(255, 255, 255, 0.9); }
.val-frame::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.val-shot.shot .val-frame::after { animation: val-flash .45s ease-out; }
@keyframes val-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.val-shot figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.val-shot figcaption::after { content: " \2713"; color: #b394ff; opacity: 0; transition: opacity .3s; }
.val-shot.on figcaption::after { opacity: 1; }
.val-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.val-q { padding: 12px 14px; border-radius: 16px; background: var(--surface-2, #1d1633); border: 1px solid var(--line); opacity: .25; transform: translateY(8px); transition: opacity .4s, transform .45s cubic-bezier(.2,.8,.2,1); }
.val-q.on { opacity: 1; transform: none; }
.val-q p { margin: 0 0 8px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.val-a { display: flex; flex-wrap: wrap; gap: 6px; }
.val-a span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; color: var(--muted); transition: all .3s; }
.val-a .pick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.val-note { margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 15px; opacity: 0; transition: opacity .5s; }
.val-note.on { opacity: 1; }
.ex-again { margin-top: 18px; }
@media (max-width: 860px) {
  .val { grid-template-columns: 1fr; }
}

/* Allenamento: esempi a copione nelle finestre (passi 1, 2, 4, 5) */
.ex-play [data-t]:not([data-keep]) { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.ex-play [data-t].on { opacity: 1; transform: none; }
.ex-play .gone { display: none; }
.ex-play .ex-pick { transition: all .3s; }
.ex-play .ex-pick.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* passo 1: il modulo */
.fm { max-width: 640px; margin-inline: auto; padding: clamp(18px, 2.4vw, 28px); border-radius: 22px; background: var(--surface-2, #1d1633); border: 1px solid var(--line); border-top: 6px solid var(--accent); display: grid; gap: 14px; }
.fm-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fm-top b { font-size: 17px; }
.fm-top .chk-ex { margin-left: auto; }
.fm-q p { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.fm-in { min-height: 46px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); font-size: 15px; line-height: 1.45; color: var(--text); }
.fm-in span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent-ink); animation: fm-caret .8s steps(1) infinite; }
@keyframes fm-caret { 50% { opacity: 0; } }
.fm-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }
.fm-btn { padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 800; font-size: 15px; }
.fm-btn.on { animation: fm-press .4s ease; }
@keyframes fm-press { 50% { transform: scale(.92); } }
.fm-ok { font-size: 14px; font-weight: 700; color: #b394ff; }
/* passo 2: la call */
.cl { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.cl-laptop { justify-self: center; width: 100%; max-width: 560px; }
.cl-screen { position: relative; aspect-ratio: 16 / 10; border: 10px solid #26203a; border-radius: 18px 18px 0 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3a2b6b, #160f29); }
.cl-base { height: 14px; margin: 0 -6%; border-radius: 0 0 14px 14px; background: linear-gradient(#3a3352, #1d1830); }
.cl-main { position: absolute; inset: 0; display: grid; place-items: center; }
.cl-av { width: 46%; height: auto; margin-top: 8%; }
.cl-name { position: absolute; left: 12px; bottom: 44px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-size: 13px; font-weight: 700; }
.cl-name .chk-ex { font-style: normal; }
.cl-pip { position: absolute; right: 12px; top: 12px; width: 28%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 255, 255, 0.2); transition: border-color .3s, box-shadow .3s; }
.cl-pip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.cl-bar { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; display: flex; gap: 8px; }
.cl-bar span { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.cl-bar .cl-end { background: #e5484d; }
.cl-wave { position: absolute; display: flex; align-items: center; gap: 3px; height: 18px; opacity: 0; transition: opacity .3s; }
.cl-wave i { width: 3px; height: 30%; border-radius: 2px; background: #fff; animation: cl-wave .9s ease-in-out infinite; }
.cl-wave i:nth-child(2) { animation-delay: .15s; } .cl-wave i:nth-child(3) { animation-delay: .3s; }
@keyframes cl-wave { 50% { height: 100%; } }
.cl-wave-co { left: 8px; bottom: 8px; }
.cl-wave-cl { right: 14px; bottom: 46px; }
[data-speaking="co"] .cl-pip { border-color: #b394ff; box-shadow: 0 0 0 3px rgba(138, 92, 246, 0.5); }
[data-speaking="co"] .cl-wave-co, [data-speaking="cl"] .cl-wave-cl { opacity: 1; }
.cl-talk { display: grid; gap: 10px; }
.cl-b { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; max-width: 92%; }
.cl-b b { display: block; font-size: 12.5px; letter-spacing: .02em; margin-bottom: 2px; }
.cl-b.by-co { justify-self: start; background: var(--accent); color: #fff; border-bottom-left-radius: 6px; }
.cl-b.by-cl { justify-self: end; background: var(--surface-2, #1d1633); border: 1px solid var(--line-strong); border-bottom-right-radius: 6px; }
.cl-b.by-cl b { color: var(--accent-ink); }
/* passo 4: il carico e la scheda */
.pl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pl-chart { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding: 0 4px 26px; border-bottom: 1px solid var(--line-strong); }
.pl-bar { position: relative; flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #b394ff, #6d43d6); transform-origin: bottom; }
.ex-play .pl-bar[data-t]:not([data-keep]) { opacity: 1; transform: scaleY(0); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.ex-play .pl-bar[data-t].on:not([data-keep]) { transform: scaleY(1); }
.pl-bar.pl-dl { background: linear-gradient(180deg, rgba(179, 148, 255, 0.45), rgba(109, 67, 214, 0.35)); }
.pl-bar span { position: absolute; left: 50%; bottom: -24px; translate: -50% 0; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pl-cap { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.pl-rows { list-style: none; margin: 0; padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.pl-rows li { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 15px; }
.pl-rows li:first-child { border-top: 0; }
.pl-rows .pl-hd { background: rgba(255, 255, 255, 0.04); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pl-rows .pl-hd b { font-weight: 700; }
.pl-rows span { font-weight: 700; color: #b394ff; }
.pl-rows em { font-style: normal; color: var(--muted); }
/* passo 5: i video degli esercizi */
.vd { max-width: 560px; margin-inline: auto; }
.ex-play .chk-m.on { opacity: 1; transform: none; }
.vd .chk-msgs { min-height: 0; }
@media (max-width: 860px) {
  .cl, .pl { grid-template-columns: 1fr; }
  .pl-rows li { grid-template-columns: 1.3fr 1fr .8fr; font-size: 14px; padding: 10px; }
}

/* Allenamento: i quattro passi del ragionamento sotto la chat del check (al posto del cerchio, 7 ottobre 2026) */
.chk-loop { margin-top: 14px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.chk-loop.show { opacity: 1; transform: none; }
.chk-loop > p { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.chk-loop ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: lp; }
.chk-loop li { position: relative; padding: 12px 12px 12px; border-radius: 14px; background: var(--surface-2, #1d1633); border: 1px solid rgba(138,92,246,.3); counter-increment: lp; }
.chk-loop li::before { content: counter(lp); display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 6px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; }
.chk-loop li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; translate: 0 -50%; color: #b394ff; font-weight: 800; z-index: 1; }
.chk-loop b { display: block; font-size: 15px; }
.chk-loop span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .chk-loop li { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
  .chk-loop.show li { opacity: 1; transform: none; }
  .chk-loop.show li:nth-child(2) { transition-delay: .25s; } .chk-loop.show li:nth-child(3) { transition-delay: .5s; } .chk-loop.show li:nth-child(4) { transition-delay: .75s; }
}
@media (max-width: 860px) { .chk-loop ol { grid-template-columns: 1fr 1fr; } .chk-loop li:nth-child(2)::after { display: none; } }

/* Allenamento: "Non sei mai da solo", il supporto su Telegram (8 ottobre 2026) */
.sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: clamp(30px, 6vw, 90px); align-items: center; padding-top: clamp(60px, 8vw, 110px); }
.sp-title { margin: 0 0 18px; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.sp-lead { margin: 0; max-width: 46ch; color: var(--muted); font-size: 18px; }
.sp-tg { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #8fd3ff; white-space: nowrap; }
.sp-tg svg { width: 20px; height: 20px; vertical-align: -4px; }
.sp-facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.sp-facts li { display: grid; align-content: start; gap: 4px; padding: 20px 18px; border-left: 1px solid var(--line); }
.sp-facts li:first-child { border-left: 0; padding-left: 0; }
.sp-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 12px; background: rgba(138, 92, 246, 0.16); color: var(--accent-ink); }
.sp-ico svg { width: 22px; height: 22px; }
.sp-facts b { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.sp-facts span { font-size: 14px; color: var(--muted); font-weight: 600; }
.sp-phone { position: relative; }
.sp-ex { position: absolute; top: -12px; right: 18px; }
.tgp { border-radius: 30px; overflow: hidden; border: 1px solid rgba(138, 92, 246, 0.3); background: #120d22; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.tgp-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #1b1530; border-bottom: 1px solid var(--line); }
.tgp-top img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.tgp-top b { display: block; font-size: 15px; }
.tgp-top small { font-size: 12.5px; color: #8fd3ff; }
.tgp-logo { margin-left: auto; width: 24px; height: 24px; }
.tgp-logo svg { display: block; width: 100%; height: 100%; }
.tgp-body { display: grid; gap: 8px; padding: 16px; min-height: 380px; align-content: start; background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1.4px) 0 0 / 18px 18px, #0f0b1c; }
.tgp-day { justify-self: center; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 700; color: var(--muted); }
.tgm { max-width: 82%; padding: 9px 12px 7px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; }
.tgm small { display: block; text-align: right; margin-top: 2px; font-size: 11px; opacity: .7; }
.tgm.me { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.tgm.co { justify-self: start; background: #241c3d; border-bottom-left-radius: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .sp.wait .sp-txt > *, .sp.wait .sp-facts li { opacity: 0; transform: translateY(18px); }
  .sp.go .sp-txt > *, .sp.go .sp-facts li { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); opacity: 1; transform: none; }
  .sp.go .sp-txt > :nth-child(2) { transition-delay: .1s; } .sp.go .sp-txt > :nth-child(3) { transition-delay: .2s; }
  .sp.go .sp-facts li:nth-child(1) { transition-delay: .4s; } .sp.go .sp-facts li:nth-child(2) { transition-delay: .55s; } .sp.go .sp-facts li:nth-child(3) { transition-delay: .7s; }
  .sp.wait [data-s] { opacity: 0; transform: translateY(10px) scale(.96); }
  .sp.go [data-s] { transition: opacity .4s ease, transform .5s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(.5s + var(--s) * 1s); opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .sp { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sp-facts { grid-template-columns: 1fr; }
  .sp-facts li { grid-template-columns: 40px auto 1fr; align-items: center; gap: 0 14px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .sp-facts li:first-child { border-top: 0; }
  .sp-ico { margin: 0; }
  .sp-facts span { text-align: right; }
}

/* Allenamento: il questionario ogni 8 settimane (scelta "A", 8 ottobre 2026) */
.qz { padding-top: clamp(60px, 8vw, 110px); }
.qz-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; }
.qz-title .chk-ex { margin-left: 0; font-size: 13px; letter-spacing: 0; }
.qz-lead { margin: 0 0 36px; max-width: 54ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.qz-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.qz-panel { padding: clamp(22px, 3vw, 36px); border-radius: 28px; border: 1px solid rgba(138, 92, 246, 0.28); background: radial-gradient(600px 300px at 90% 0%, rgba(138, 92, 246, 0.2), transparent 70%), linear-gradient(160deg, #1f1738, #120d22); }
.qz-scale { display: flex; justify-content: flex-end; gap: 6px; margin: -4px 0 6px; font-size: 11px; color: var(--muted); }
.qz-scale span { width: 22px; text-align: center; }
.qz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.qz-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.qz-list b { font-size: 15.5px; }
.qz-list small { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.qz-dots { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 6px; }
.qz-dots i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.18); transition: background .3s, border-color .3s, box-shadow .3s; }
.qz-dots i.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(138, 92, 246, 0.6); }
.qz-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--accent); color: #fff; }
.qz-note img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid rgba(255, 255, 255, 0.5); }
.qz-note b { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.qz-note p { margin: 0; font-size: 16.5px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .qz.wait > :not(.qz-grid), .qz.wait .qz-panel { opacity: 0; transform: translateY(18px); }
  .qz.go > :not(.qz-grid), .qz.go .qz-panel { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); opacity: 1; transform: none; }
  .qz.go > :nth-child(2) { transition-delay: .1s; } .qz.go > :nth-child(3) { transition-delay: .2s; } .qz.go .qz-panel { transition-delay: .3s; }
  .qz-note { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .7s cubic-bezier(.2,.8,.2,1); }
  .qz-note.on { opacity: 1; transform: none; }
}
@media (max-width: 960px) { .qz-grid { grid-template-columns: 1fr; } }

/* Allenamento: I miei atleti (carte del palco con i risultati nella foto, 8 ottobre 2026) */
.ath { padding-top: clamp(60px, 8vw, 110px); }
/* le carte inclinate non devono far scorrere la pagina di lato */
#allenamento { overflow-x: clip; }
.ath-title { margin: 0 0 14px; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.ath-lead { margin: 0 0 44px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.ath-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.ath-card { position: relative; margin: 0; aspect-ratio: 3 / 4.3; border-radius: 28px; overflow: hidden; border: 1px solid rgba(138, 92, 246, 0.3); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); background: #120d22; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ath-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ath-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 8, 20, 0.96) 0%, rgba(11, 8, 20, 0.85) 28%, rgba(11, 8, 20, 0.15) 58%, transparent 75%); }
.ath-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 22px 24px; }
.ath-card small { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.ath-card h3 { margin: 2px 0 14px; font-size: clamp(30px, 3vw, 42px); line-height: 1; letter-spacing: -0.045em; }
.ath-res { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ath-res li { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; align-items: center; }
.ath-res b { font-size: 15px; line-height: 1.2; }
.ath-res .w { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
/* piazzamento: oro, argento, bronzo; gli altri solo contornati */
.ath-pl { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 40px; padding: 0 4px; border-radius: 11px; border: 1.5px solid rgba(255, 255, 255, 0.55); font-size: 13.5px; font-weight: 800; letter-spacing: 0; line-height: 1; color: #fff; }
.ath-pl.g { border-color: transparent; background: linear-gradient(135deg, #ffe08a, #d4a017); color: #3a2a00; }
.ath-pl.s { border-color: transparent; background: linear-gradient(135deg, #f1f1f5, #a9adbb); color: #24252b; }
.ath-pl.b { border-color: transparent; background: linear-gradient(135deg, #f0b98a, #b06a33); color: #2e1606; }
.ath-card:nth-child(1) { transform: rotate(-2.5deg); }
.ath-card:nth-child(2) { transform: translateY(-14px) rotate(1deg); }
.ath-card:nth-child(3) { transform: rotate(2.5deg); }
.ath.done.go .ath-card:hover, .ath.done .ath-card:hover { transform: translateY(-10px) rotate(0) scale(1.02); }
@media (prefers-reduced-motion: no-preference) {
  .ath.wait > :not(.ath-grid) { opacity: 0; transform: translateY(18px); }
  .ath.go > :not(.ath-grid) { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); opacity: 1; transform: none; }
  .ath.wait .ath-card { opacity: 0; transform: translateY(-120px) rotate(-14deg); }
  .ath.go .ath-card { transition: opacity .5s ease, transform 1s cubic-bezier(.34,1.4,.64,1); opacity: 1; }
  .ath.go .ath-card:nth-child(1) { transform: rotate(-2.5deg); transition-delay: .2s; }
  .ath.go .ath-card:nth-child(2) { transform: translateY(-14px) rotate(1deg); transition-delay: .4s; }
  .ath.go .ath-card:nth-child(3) { transform: rotate(2.5deg); transition-delay: .6s; }
  .ath.done .ath-card { transition: transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: 0s; }
}
@media (max-width: 960px) {
  .ath-grid { grid-template-columns: 1fr; max-width: 460px; }
  .ath-card { aspect-ratio: 3 / 4; }
}

/* Pagine interne: chiusura breve al posto dei Contatti completi (scelta "B", 8 ottobre 2026) */
.end { position: relative; overflow: hidden; padding-block: clamp(90px, 12vw, 160px); text-align: center; }
.end::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); height: 500px; translate: -50% -50%; background: radial-gradient(closest-side, rgba(138, 92, 246, 0.45), transparent); filter: blur(10px); pointer-events: none; }
.end .wrap { position: relative; }
.end h2 { margin: 0 auto 18px; max-width: none; font-size: clamp(40px, 6.4vw, 96px); line-height: .98; letter-spacing: -0.05em; }
.end h2 em { display: block; font-style: normal; background: linear-gradient(90deg, #c2adff, #7c4dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.end p { margin: 0 auto 32px; max-width: 42ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); }
.end-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.end-cta .btn { display: inline-flex; align-items: center; gap: 8px; }
.end-cta svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .end.wait::before { opacity: 0; transform: scale(.6); }
  .end.go::before { transition: opacity 1.2s ease, transform 1.4s cubic-bezier(.2,.8,.2,1); opacity: 1; transform: none; }
  .end.wait .wrap > * { opacity: 0; transform: translateY(20px); }
  .end.go .wrap > * { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.8,.2,1); opacity: 1; transform: none; }
  .end.go .wrap > :nth-child(2) { transition-delay: .15s; }
  .end.go .wrap > :nth-child(3) { transition-delay: .3s; }
}

/* Allenamento: domande frequenti (scelta "B": titolo fermo a sinistra, 8 ottobre 2026) */
.faq { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(30px, 6vw, 90px); align-items: start; padding-top: clamp(60px, 8vw, 110px); }
.faq-side { position: sticky; top: 110px; }
.faq-title { margin: 0 0 14px; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.faq-lead { margin: 0 0 24px; max-width: 40ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.faq-card { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 20px; background: linear-gradient(160deg, #241a42, #150f28); border: 1px solid rgba(138, 92, 246, 0.3); font-size: 15px; color: var(--muted); }
.faq-card img { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.faq-card b { display: block; color: var(--text); }
.faq-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.faq-it { border-bottom: 1px solid var(--line-strong); }
.faq-it h3 { margin: 0; font: inherit; }
.faq-it button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; width: 100%; padding: 22px 4px; }
.faq-it button:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 2px; border-radius: 8px; }
.faq-it .n { min-width: 2ch; font-size: 14px; font-weight: 800; color: #6b5f8c; transition: color .3s; }
.faq-it .q { font-size: clamp(19px, 1.9vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.faq-it .pm { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: background .3s, border-color .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.faq-it .pm::before, .faq-it .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; translate: -50% -50%; background: currentColor; border-radius: 2px; transition: transform .35s; }
.faq-it .pm::after { transform: rotate(90deg); }
.faq-it.open .pm { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.faq-it.open .pm::after { transform: rotate(0); }
.faq-it.open .n { color: #b394ff; }
.faq-it .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.faq-it.open .a { grid-template-rows: 1fr; }
.faq-it .a > div { overflow: hidden; }
.faq-it .a p { margin: 0; padding: 0 60px 24px calc(2ch + 22px); max-width: 64ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.faq-it .a a { color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) {
  .faq.wait .faq-side > *, .faq.wait .faq-it { opacity: 0; transform: translateY(16px); }
  .faq.go .faq-side > * { transition: opacity .6s ease, transform .7s cubic-bezier(.2,.8,.2,1); opacity: 1; transform: none; }
  .faq.go .faq-it { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: calc(.2s + var(--i) * .07s); opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-it button { gap: 12px; }
  .faq-it .a p { padding-right: 8px; }
}

/* ---------- Nutrizione: "Qual è il tuo obiettivo?" con l'interruttore (scelta "B", 8 ottobre 2026) ---------- */
.nut-goal .st-title { margin-bottom: 28px; }
.nut-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; max-width: 100%; margin-bottom: 26px; padding: 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.nut-thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 99px; background: var(--accent); box-shadow: 0 8px 30px rgba(138, 92, 246, 0.45); transition: transform .45s cubic-bezier(.3,.8,.2,1); }
.nut-switch:has(#tab-salute[aria-selected="true"]) .nut-thumb { transform: translateX(100%); }
.nut-sw { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-weight: 800; font-size: 16px; white-space: nowrap; cursor: pointer; transition: color .3s; }
.nut-sw svg { display: block; width: 20px; height: 20px; }
.nut-sw:hover { color: var(--text); }
.nut-sw[aria-selected="true"] { color: #fff; }
.nut-stage { display: grid; }
.nut-panel { position: relative; overflow: hidden; grid-area: 1 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; padding: clamp(32px, 5vw, 72px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 100% 0%, rgba(138, 92, 246, 0.22), transparent 60%), linear-gradient(135deg, #1d1633, #110c20);
  transition: opacity .45s, visibility .45s; }
/* la scheda nascosta resta al suo posto (così il riquadro non salta) ma invisibile */
.nut-panel[hidden] { display: grid !important; opacity: 0; visibility: hidden; pointer-events: none; }
/* il disegno grande e leggero in filigrana: manubrio per lo sport, cuore per la salute */
.nut-wm { position: absolute; right: -4%; bottom: -18%; width: clamp(240px, 30vw, 440px); color: var(--accent); opacity: .09; pointer-events: none; }
.nut-wm svg { display: block; width: 100%; height: auto; }
.nut-l, .nut-pts { position: relative; }
.nut-big { margin: 0 0 22px; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; }
.nut-big em { font-style: normal; color: var(--accent-ink); }
.nut-who { margin: 0; max-width: 40ch; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.nut-pts { list-style: none; margin: 0; padding: 0; }
.nut-pts li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; }
.nut-pts li:last-child { border-bottom: 1px solid var(--line); }
.nut-pts .n { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--accent-ink); }
/* i contenuti entrano quando arrivi e di nuovo a ogni cambio di scheda */
#nutrizione.nut-wait .nut-pts li, #nutrizione.nut-wait .nut-l > * { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  #nutrizione.nut-live .nut-panel:not([hidden]) .nut-l > * { animation: nut-up .6s cubic-bezier(.2,.7,.2,1) both; }
  #nutrizione.nut-live .nut-panel:not([hidden]) .nut-l > :nth-child(2) { animation-delay: .1s; }
  #nutrizione.nut-live .nut-panel:not([hidden]) .nut-pts li { animation: nut-in .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: .2s; }
  #nutrizione.nut-live .nut-panel:not([hidden]) .nut-pts li:nth-child(2) { animation-delay: .32s; }
  #nutrizione.nut-live .nut-panel:not([hidden]) .nut-pts li:nth-child(3) { animation-delay: .44s; }
  #nutrizione.nut-live .nut-panel:not([hidden]) .nut-wm { animation: nut-wm .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes nut-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes nut-wm { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: .09; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .nut-thumb, .nut-panel { transition: none; } }
@media (max-width: 860px) {
  .nut-panel { grid-template-columns: 1fr; gap: 26px; }
  .nut-wm { width: 200px; right: -30px; bottom: -40px; }
  .nut-pts li { grid-template-columns: 36px 1fr; padding: 16px 0; }
  .nut-switch { display: grid; width: 100%; }
  .nut-sw { padding: 12px 6px; font-size: 13.5px; letter-spacing: -0.01em; }
  .nut-sw svg { display: none; }
}

/* ---------- Nutrizione: "Come funziona" a calendario (scelta "B", 8 ottobre 2026) ---------- */
.nut-way-head { margin-top: clamp(90px, 11vw, 160px); }
.nut-way-head .st-title { margin-bottom: 40px; }
/* mentre scorri la linea si riempie e i passi si accendono uno alla volta, dal primo giorno al "sempre"
   (--p e la classe .on li mette sito.js; tornando su si spengono) */
.nut-ruler { --p: 1; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 22px; }
.nut-ruler::before, .nut-ruler::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.nut-ruler::before { background: var(--line-strong); }
.nut-ruler::after { background: linear-gradient(90deg, var(--accent-ink), var(--accent)); box-shadow: 0 0 12px rgba(138, 92, 246, 0.8); transform-origin: left; transform: scaleX(var(--p)); }
.nut-ruler span { position: relative; z-index: 1; justify-self: start; padding: 8px 16px; border-radius: 99px; background: var(--bg); border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background-color .4s, border-color .4s, color .4s, box-shadow .4s; }
.nut-ruler span.on { border-color: var(--accent); color: var(--accent-ink); }
.nut-ruler span.now { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px rgba(138, 92, 246, 0.18), 0 0 24px rgba(138, 92, 246, 0.6); }
.nut-cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nut-cal li { position: relative; display: flex; flex-direction: column; padding: 28px 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: border-color .5s, box-shadow .5s; }
/* il bagliore viola sta su uno strato a parte, così può comparire con una dissolvenza */
.nut-cal li::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 90% at 100% 0%, rgba(138, 92, 246, 0.32), transparent 60%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.nut-cal li > * { position: relative; opacity: .45; transition: opacity .5s; }
.nut-cal li.on { border-color: rgba(138, 92, 246, 0.5); }
.nut-cal li.on::before { opacity: 1; }
.nut-cal li.on > * { opacity: 1; }
.nut-cal li.now { box-shadow: 0 0 0 1px rgba(138, 92, 246, 0.5), 0 18px 50px rgba(138, 92, 246, 0.25); }
.nut-n { margin-bottom: 26px; font-size: 64px; line-height: .8; font-weight: 800; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); transition: color .5s; }
.nut-cal li.now .nut-n { color: var(--accent); }
.nut-cal h3 { margin: 0 0 10px; font-size: clamp(21px, 1.7vw, 26px); line-height: 1.1; letter-spacing: -0.035em; }
.nut-cal p { margin: 0; color: var(--muted); font-size: 16px; }
.nut-when { display: none; }
/* "Cosa portare alla prima visita" sta in fondo alla carta 1 (scelta "A") */
.nut-bring { display: grid; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(194, 173, 255, 0.4); font-size: 14.5px; line-height: 1.4; }
.nut-bring b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 1100px) {
  .nut-ruler { display: none; }
  .nut-cal { grid-template-columns: 1fr 1fr; }
  .nut-n { display: none; }
  .nut-when { display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line-strong); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background-color .4s, border-color .4s, color .4s; }
  .nut-cal li.on .nut-when { border-color: var(--accent); color: var(--accent-ink); }
  .nut-cal li.now .nut-when { background: var(--accent); color: #fff; }
}
@media (max-width: 640px) { .nut-cal { grid-template-columns: 1fr; } }

/* ---------- Nutrizione: la mappa "Dove ricevo" in nero e viola (spostata dalla pagina iniziale l'8 ottobre 2026) ---------- */
.dark #dove-ricevo .where-head h2 { margin: 0 0 14px; font-size: clamp(38px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.05em; }
.dark .map-card { background: #100b1d; }
.dark .map-card::after { border-color: rgba(138, 92, 246, 0.35); }
.dark .map-land { fill: #231b3e; }
.dark .map-label, .dark .map-sub, .dark .map-town { stroke: #231b3e; }
.dark .map-town { fill: #b9b0d0; }
.dark .map-town.in { fill: var(--accent-ink); }
.dark .map-sea { fill: #7d6aa8; }
.dark .map-city.on { fill-opacity: .22; }
.dark .map-hint, .dark .map-back { background: var(--surface-2); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.dark .map-back:hover { background: var(--accent); color: #fff; }
.dark .map-pop, .dark .map-pop::after { background: var(--surface-2); }
.dark .online-bar { background: var(--surface); border-color: var(--line-strong); }
.dark .map-card .online-bar { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }

/* ---------- Nutrizione: prima e dopo in galleria (scelta "B", 18 ottobre 2026) ----------
   una colonna per persona, in ogni riquadro prima e dopo affiancati; foto senza viso e con lo sfondo reso uniforme */
.pd-head { margin-bottom: 40px; }
.pd-head .st-title { margin-bottom: 16px; }
.pd-head .st-intro { margin: 0; }
/* una fila di persone che scorre piano verso destra (voluto da Cosimo il 18 ottobre 2026): si ferma sotto il mouse
   o col dito, si può trascinare; con "riduci movimento" resta ferma e si scorre a mano */
.pd-gallery { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--pad), #000 calc(100% - var(--pad)), transparent); }
.pd-gallery::-webkit-scrollbar { display: none; }
.pd-gallery.drag { cursor: grabbing; }
.pd-track { display: flex; gap: 18px; width: max-content; }
.pd-person { flex: none; width: clamp(260px, 24vw, 360px); }
.pd-gallery img { -webkit-user-drag: none; user-select: none; }
.pd-person { display: grid; gap: 18px; }
.pd-card { margin: 0; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s ease, border-color .3s ease; }
.pd-card:hover { border-color: rgba(138, 92, 246, 0.5); }
.pd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--accent); }
.pd-pair img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #ece8f2; }
.pd-card figcaption { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd-card figcaption b { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); }
.pd-card figcaption .d { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .pd-card { transition: none; } .pd-card:hover { transform: none; } }
