/* =====================================================================
   CLUB PADEL HIGUANA — "Campo 20×10"
   Concetto: il campo da padel come griglia. Blu del Club (#0E2A4F) e bianco
   della tensostruttura. Etichette a tabellone (SET 1 · PLAY), numeri come la
   segnaletica dei campi, archi della copertura sulle fotografie.
   Un solo look di marca (nessun tema scuro alternativo), colori espliciti.
   ===================================================================== */

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Colore */
  --blu: #0E2A4F;          /* blu Higuana: logo, campi, protezioni */
  --blu-deep: #0a1f3b;
  --ink: #081A33;          /* blu notte: testo e fasce scure */
  --night: #040E1E;        /* tabellone */
  --ice: #C8D3E2;          /* bianco-azzurro su fondo scuro */
  --mist: #D3DFEE;         /* bianco della tensostruttura, velato di blu: un gradino sotto lo sfondo */
  --paper: #E4ECF7;        /* sfondo del sito: bianco con un tocco di blu */
  --white: #FFFFFF;
  --soft: #55647A;         /* testo secondario su chiaro */
  --line: rgba(8, 26, 51, .14);
  --line-w: rgba(255, 255, 255, .2);

  /* Tipografia */
  --f-display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-body: "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-hero: clamp(3.6rem, 11.2vw, 11.5rem);
  --t-h1: clamp(3rem, 7.4vw, 7.4rem);
  --t-h2: clamp(2.4rem, 4.8vw, 4.6rem);
  --t-h3: clamp(1.6rem, 2.2vw, 2.15rem);
  --t-lead: clamp(1.1rem, 1.35vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-mono: .74rem;

  /* Spazio */
  --gut: clamp(16px, 4vw, 56px);
  --band: clamp(76px, 10vw, 156px);
  --gap: clamp(16px, 2vw, 28px);
  --hdr: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Variabili di superficie (ridefinite sulle fasce scure) */
  --fg: var(--ink);
  --fg-soft: var(--soft);
  --rule: var(--line);
  --accent: var(--blu);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--fg);
  font-family: var(--f-body); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--blu); color: var(--white); }

/* superfici scure: i componenti leggono queste variabili */
.band-blue, .band-ink, .hero, .phero, .guest, .cta, .ftr, .mmenu, .nf, .sb, .replay {
  --fg: var(--white); --fg-soft: rgba(255, 255, 255, .74); --rule: var(--line-w); --accent: var(--ice);
  color: var(--fg);
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: 1440px; margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}

/* ------------------------------------------------------------------ Tipografia */
.h1, .h2, .phero-h, .hero-h, .cta-h, .replay-h {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  line-height: .88; letter-spacing: -.005em; text-wrap: balance;
}
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); line-height: .92; }
h3 { font-family: var(--f-display); font-weight: 800; font-size: var(--t-h3); line-height: 1; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--fg-soft); max-width: 46ch; text-wrap: pretty; }
p { text-wrap: pretty; }

.setlabel {
  display: inline-flex; align-items: center; gap: .9em; margin-bottom: 1.4rem;
  font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg);
}
.setlabel::before { content: ""; width: 1.6em; height: 2px; background: currentColor; }
.setlabel-n { padding: .35em .6em; background: var(--fg); color: var(--blu); letter-spacing: .1em; }
.setlabel:has(.setlabel-n)::before { display: none; }
.band:not(.band-blue):not(.band-ink):not(.replay) .setlabel-n { color: var(--white); background: var(--blu); }

/* ------------------------------------------------------------------ Bottoni e link */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  --b: var(--blu); --c: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: .8em; min-height: 52px;
  padding: .9em 1.25em .9em 1.4em; border: 1.5px solid var(--b); background: var(--b); color: var(--c);
  font-weight: 600; font-size: .98rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--h, var(--ink)); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn .ico { transition: transform .45s var(--ease); }
.btn:hover::after { transform: none; }
.btn:hover { color: var(--hc, var(--white)); border-color: var(--h, var(--ink)); }
.btn:hover .ico { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: .6em .9em .6em 1.1em; font-size: .9rem; }
.btn-white { --b: var(--white); --c: var(--blu); --h: var(--ink); }
.btn-line { --b: transparent; --c: var(--ink); --h: var(--ink); border-color: var(--ink); }
.btn-line-w { --b: transparent; --c: var(--white); --h: var(--white); --hc: var(--blu); border-color: rgba(255, 255, 255, .55); }
.band-blue .btn-solid, .band-ink .btn-solid { --b: var(--white); --c: var(--blu); }

.tlink {
  display: inline-flex; align-items: center; gap: .6em; min-height: 44px; padding-block: .35em;
  font-weight: 600; text-decoration: none; color: var(--fg);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .45s var(--ease);
}
.tlink .ico { transition: transform .45s var(--ease); }
.tlink:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.tlink:hover .ico { transform: translateX(5px); }

.status { display: inline-flex; align-items: center; gap: .6em; }
.status::before, [data-open-status]:not([data-open-short])::before { content: ""; width: .55em; height: .55em; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
[data-open-status]:not([data-open-short]) { display: inline-flex; align-items: center; gap: .6em; }
[data-open-status]:not([data-open-short])[data-state="open"]::before { background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 211, 226, .7); } 70% { box-shadow: 0 0 0 8px rgba(200, 211, 226, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 211, 226, 0); } }

/* ------------------------------------------------------------------ Header */
.hdr {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--hdr);
  display: flex; align-items: center; gap: 24px;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  background: var(--paper); border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease);
}
.hdr.is-hidden { transform: translateY(-100%); }
/* menu in sovraimpressione dopo la hero: fondo blu scuro, testi chiari */
.hdr { transition: transform .45s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.hdr.is-solid { background: var(--blu); border-bottom-color: transparent; box-shadow: 0 10px 30px -18px rgba(4, 14, 30, .7); }
.hdr.is-solid .brand-t { color: var(--ice); }
.hdr.is-solid .brand-t b, .hdr.is-solid .nav-a, .hdr.is-solid .dd-trigger, .hdr.is-solid .burger { color: var(--white); }
.hdr.is-solid .brand-t, .hdr.is-solid .brand-t b, .hdr.is-solid .nav-a, .hdr.is-solid .dd-trigger { transition: color .35s var(--ease); }
.hdr.is-solid .nav-a::after, .hdr.is-solid .dd-trigger::after { background: var(--white); }
.hdr.is-solid .hdr-status { border-color: var(--line-w); color: var(--white); }
.hdr.is-solid .burger { border-color: var(--white); }
.hdr.is-solid .btn-solid { --b: var(--white); --c: var(--blu); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-t { display: flex; flex-direction: column; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; color: var(--soft); }
.brand-t b { font-family: var(--f-display); font-size: 1.45rem; font-weight: 900; letter-spacing: .02em; color: var(--blu); line-height: .9; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-a, .dd-trigger {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none;
  font-weight: 600; font-size: .94rem; text-decoration: none; cursor: pointer; color: var(--ink); position: relative;
}
.nav-a::after, .dd-trigger::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--blu); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-a:hover::after, .nav-a[aria-current="page"]::after, .dd.is-active .dd-trigger::after, .dd.open .dd-trigger::after { transform: scaleX(1); }
.dd-trigger .ico { width: 1em; height: 1em; transition: transform .3s; }
.dd.open .dd-trigger .ico { transform: rotate(180deg); }
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 14px); left: -8px; width: 300px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(8, 26, 51, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .25s var(--ease);
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; border-left: 2px solid transparent; }
.dd-panel a:hover, .dd-panel a[aria-current="page"] { background: var(--mist); border-left-color: var(--blu); }
.dd-panel strong { font-weight: 600; font-size: .96rem; }
.dd-panel small { font-size: .8rem; color: var(--soft); }
.hdr-r { display: flex; align-items: center; gap: 14px; flex: none; }
.hdr-status { display: inline-flex; align-items: center; gap: .6em; height: 42px; margin: 0; padding: 0 14px; border: 1px solid var(--line); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); white-space: nowrap; transition: color .35s var(--ease), border-color .35s var(--ease); }
.hdr-status b { font-weight: 500; }
.hdr-status i { width: 8px; height: 8px; border-radius: 50%; background: #9AA6B6; flex: none; }
.hdr-status[data-state="open"] i { background: #2FBF71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .6); animation: openpulse 2.2s infinite; }
.hdr-status[data-state="closed"] i { background: #E0464C; }
@keyframes openpulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55); } 70% { box-shadow: 0 0 0 7px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
@keyframes flip { from { transform: rotateX(90deg); } to { transform: none; } }
.burger { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1.5px solid var(--ink); background: none; cursor: pointer; font-weight: 600; font-size: .9rem; }
.burger i, .burger i::before { display: block; width: 18px; height: 2px; background: currentColor; transition: .3s var(--ease); }
.burger i { position: relative; }
.burger i::before { content: ""; position: absolute; top: 6px; }
.burger[aria-expanded="true"] i { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] i::before { transform: translateY(-6px) rotate(-90deg); }

.mmenu {
  position: fixed; inset: calc(var(--hdr) + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; overflow-y: auto; background: var(--blu);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 24px max(var(--gut), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gut), env(safe-area-inset-left, 0px));
}
.mmenu-nav { display: flex; flex-direction: column; }
.m-a, .m-group summary {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-w);
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 8vw, 3.2rem); text-transform: uppercase; line-height: 1; text-decoration: none; cursor: pointer; list-style: none;
}
.m-group summary::-webkit-details-marker { display: none; }
.m-group[open] summary .ico { transform: rotate(180deg); }
.m-sub { display: grid; padding: 8px 0 16px; }
.m-sub a { padding: 10px 0; font-size: 1.1rem; text-decoration: none; color: var(--ice); }
.m-a[aria-current="page"], .m-sub a[aria-current="page"] { color: var(--ice); }
.mmenu-foot { display: grid; gap: 12px; }
.mmenu-foot p { display: grid; gap: 6px; margin-top: 8px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }
body.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ Bande */
.band { padding-block: var(--band); position: relative; }
.band-blue { background: var(--blu); }
.band-ink { background: var(--ink); }
.band-mist { background: var(--mist); }

.intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); margin-bottom: clamp(40px, 6vw, 80px); }
.intro .setlabel { margin-top: .6em; }
.intro-body { display: grid; gap: 24px; min-width: 0; }

/* ------------------------------------------------------------------ HOME: hero */
.hero {
  position: relative; overflow: hidden; background: var(--blu);
  min-height: clamp(620px, calc(100svh - var(--hdr)), 1000px);
  display: grid; grid-template-rows: 1fr auto;
}
.hero-canvas, .court-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { position: absolute; inset: 0; transition: opacity 1.2s var(--ease); }
.hero-fallback img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .38; }
.has-webgl .hero-fallback { opacity: 0; }
.js .hero-fallback { opacity: 0; }            /* con JS la foto di riserva resta nascosta mentre il campo 3D carica… */
.js.no-webgl .hero-fallback { opacity: 1; }   /* …e compare solo se il 3D non può partire */
.hero-in {
  position: relative; z-index: 2; align-self: end;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 32px 48px; align-items: end;
  padding-block: clamp(48px, 9vh, 120px) 40px; pointer-events: none;
}
.hero-in a { pointer-events: auto; }
.hero-label { grid-column: 1 / -1; margin: 0; flex-wrap: wrap; }
.hero-addr { opacity: .75; }
.hero-addr::before { content: "·"; margin-right: .6em; }
@media (max-width: 760px) { .hero-addr { flex-basis: 100%; } .hero-addr::before { display: none; } }
.hero-h { font-size: clamp(3.2rem, 9.4vw, 9.6rem); line-height: .84; }
/* titolo spostato verso il bordo sinistro: la hero usa tutta la larghezza dello schermo */
.hero .hero-in { max-width: none; margin-inline: 0; padding-left: max(16px, calc(var(--gut) * .55), env(safe-area-inset-left, 0px)); padding-bottom: var(--hero-lift); }
.hero { --hero-lift: clamp(110px, 20vh, 230px); }
/* su desktop il testo con i pulsanti resta in basso, vicino alla barra informativa */
@media (min-width: 961px) { .hero .hero-side { margin-bottom: calc(40px - var(--hero-lift)); } }
/* desktop: la hero entra sempre nello schermo, anche nei portatili bassi (1366×768, Windows con zoom 125-150%).
   Titolo e spazi si misurano anche sull'altezza, così pulsanti e barra informativa restano visibili */
@media (min-width: 961px) {
  .hero { min-height: clamp(480px, calc(100svh - var(--hdr)), 1000px); --hero-lift: clamp(56px, calc(20svh - 24px), 230px); }
  .hero .hero-in { padding-top: clamp(24px, calc(9svh - 20px), 120px); }
  .hero-h { font-size: clamp(2.8rem, min(9.4vw, calc(20svh - 44px)), 9.6rem); }
}
.hero-h .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero-h .line > span { display: block; }
.hero-h .line-alt { color: var(--ice); }
.hero-side { display: grid; gap: 24px; padding-bottom: .6em; }
.hero-lead { font-size: var(--t-lead); line-height: 1.45; color: var(--fg-soft); }
.hero-ticker {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-w);
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft);
}
.hero-ticker li { padding: 18px 28px 18px 0; margin-right: 28px; border-right: 1px solid var(--line-w); }
.hero-ticker li:last-of-type { border: 0; margin-left: auto; margin-right: 0; padding-right: 0; }
.hero-scroll::after { content: "↓"; display: inline-block; margin-left: .6em; animation: nudge 1.8s infinite var(--ease); }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ------------------------------------------------------------------ HOME: welcome */
.welcome-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.welcome-copy { display: grid; gap: 28px; justify-items: start; }
.welcome-copy .setlabel, .welcome-copy .h2 { margin-bottom: 0; }
.manifesto { display: grid; gap: 30px; max-width: 640px; font-family: 'Manrope', 'Hanken Grotesk', system-ui, sans-serif; }
.manifesto p, .manifesto blockquote, .manifesto dl, .manifesto dd { margin: 0; }
.manifesto-lead { padding-left: clamp(18px, 2vw, 28px); border-left: 3px solid var(--blu); font-size: clamp(1.3rem, 1.8vw, 1.65rem); line-height: 1.42; font-weight: 300; letter-spacing: -.008em; color: var(--ink); }
.manifesto-body { max-width: 56ch; font-size: .98rem; line-height: 1.8; color: var(--soft); }
.manifesto-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.manifesto-stats div { padding: 22px 18px 0 0; }
.manifesto-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.manifesto-stats dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 3.4vw, 3.2rem); line-height: 1; color: var(--ink); }
.manifesto-stats dd { margin-top: 10px; font-family: var(--f-mono); font-size: .66rem; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
@media (max-width: 600px) {
  .manifesto-stats div { padding-right: 10px; }
  .manifesto-stats div + div { padding-left: 12px; }
  .manifesto-stats dd { font-size: .7rem; letter-spacing: .04em; }
}
.manifesto .w { transition: opacity .2s; }
.arch { border-radius: 50% 50% 0 0 / 26% 26% 0 0; overflow: hidden; background: var(--mist); }
/* foto ad arco come la tensostruttura: cima a tutto sesto (40% di 5/4 = metà larghezza) e un secondo
   filo staccato attorno, come il doppio corrente degli archi reticolari */
.welcome-media {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  outline: 1px solid rgba(14, 42, 79, .35); outline-offset: clamp(8px, 1.1vw, 16px);
}
.welcome-media video, .welcome-media img { width: 100%; height: 100%; object-fit: cover; }
/* Il Club: chi siamo (stesso schema della welcome in home, foto-locandina senza arco per non tagliarla) */
.about-media { border-radius: 0; }
.about .manifesto { gap: 22px; }
.areas { margin-top: clamp(56px, 8vw, 120px); }
.areas-img { aspect-ratio: 16 / 7; overflow: hidden; }
.areas-img img { width: 100%; height: 100%; object-fit: cover; }
.areas-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.areas-nav a {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: clamp(18px, 2.4vw, 32px); border: 1px solid var(--line); border-left: 0; border-top: 0;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(1.8rem, 4vw, 3.6rem); text-transform: uppercase; line-height: .85; text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.areas-nav small { width: 100%; font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 500; letter-spacing: .14em; color: var(--soft); }
.areas-nav a:hover { background: var(--blu); color: var(--white); }
.areas-nav a:hover small { color: var(--ice); }

/* ------------------------------------------------------------------ HOME: play (scorrimento orizzontale) */
.play-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.play-head .setlabel { grid-column: 1 / -1; margin: 0; }
/* galleria statica a 3 foto: ingresso → tabellone → vista dal fondo, a tutta larghezza (fuori dal .wrap) */
.play-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px);
  padding-left: max(clamp(8px, 1vw, 16px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(8px, 1vw, 16px), env(safe-area-inset-right, 0px));
}
.play-pic { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blu-deep); }
.play-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.play-pic:hover img { transform: scale(1.04); }
.play-pic figcaption {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: stretch;
  font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase;
}
.play-pic figcaption > span:last-child { display: flex; align-items: center; padding: 10px 14px; background: var(--white); color: var(--ink); }
.courtno { display: grid; place-items: center; min-width: 58px; background: var(--blu); color: var(--white); border: 2px solid var(--white); font-family: var(--f-display); font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: 0; }
.play-foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 960px) { .play-foot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .play-grid { grid-template-columns: minmax(0, 1fr); } }

/* Tabellone */
.sb { background: var(--night); border: 1px solid rgba(255, 255, 255, .12); padding: clamp(16px, 2vw, 24px); box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .03); }
.sb-cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-w); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft); }
.sb-live { color: var(--ice); }
.sb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-cell { display: grid; gap: 6px; padding: 18px 14px 6px; border-right: 1px solid var(--line-w); }
.sb-cell:last-child { border-right: 0; }
.sb-v.sb-hours { display: grid; gap: .08em; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.sb-hours span + span { color: var(--white); opacity: .75; }
.sb-k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-soft); }
.sb-v { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .95; color: var(--ice); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(200, 211, 226, .45); white-space: nowrap; }

/* ------------------------------------------------------------------ Replay */
.replay { background: var(--ink); overflow: hidden; }
.replay-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px) clamp(32px, 5vw, 80px); align-items: center; }
.replay-copy { display: grid; gap: 24px; justify-items: start; }
.replay-copy .setlabel { margin: 0; }
.replay-h { font-size: var(--t-h1); display: grid; }
.replay-h span:nth-child(2) { color: var(--ice); }
.replay-console { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.rc-screen { display: grid; gap: 14px; padding: clamp(14px, 2vw, 22px); background: var(--night); border: 1px solid var(--line-w); }
.rc-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--fg-soft); }
.rc-rec { color: var(--white); }
.rc-rec.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rc-court { width: 100%; height: auto; fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .8; background: var(--blu); }
.rc-path { stroke: var(--ice); stroke-width: 1.1; stroke-dasharray: 3 3; }
.rc-ball { fill: var(--white); stroke: none; }
.rc-track { position: relative; height: 4px; background: rgba(255, 255, 255, .14); margin: 6px 4px; }
.rc-fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--ice); transform-origin: left; }
.rc-mark { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--night); border: 2px solid var(--ice); border-radius: 50%; }
.rc-btn {
  width: clamp(104px, 11vw, 148px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--blu); font-family: var(--f-display); font-weight: 900; font-size: clamp(1.2rem, 1.6vw, 1.6rem); text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .1), 0 0 0 16px rgba(255, 255, 255, .05), inset 0 -6px 0 rgba(14, 42, 79, .18);
  transition: transform .18s var(--ease), box-shadow .3s;
}
.rc-btn:hover { box-shadow: 0 0 0 10px rgba(255, 255, 255, .16), 0 0 0 22px rgba(255, 255, 255, .06), inset 0 -6px 0 rgba(14, 42, 79, .18); }
.rc-btn:active, .rc-btn.is-pressed { transform: scale(.94); box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), inset 0 4px 0 rgba(14, 42, 79, .25); }
.replay-steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-w); }
.replay-steps li { display: grid; gap: 10px; align-content: start; padding: 28px 24px 0 0; position: relative; }
.replay-steps li + li { padding-left: 24px; border-left: 1px solid var(--line-w); }
.rs-n { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: .9; color: var(--ice); }
.replay-steps p { color: var(--fg-soft); }
.replay-close { grid-column: 1 / -1; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }

/* ------------------------------------------------------------------ HOME: train */
.train-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.train-head .setlabel { grid-column: 1 / -1; margin: 0; }
.train-video { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--ink); }
.train-video video, .train-video img { width: 100%; height: 100%; object-fit: cover; }
.train-video figcaption {
  position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px;
  font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--white);
  background: linear-gradient(transparent, rgba(4, 14, 30, .55));
}
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.path { display: grid; text-decoration: none; background: var(--mist); transition: background .4s var(--ease), color .4s var(--ease); }
.path-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.path-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.path-copy { display: grid; gap: 12px; justify-items: start; padding: clamp(22px, 3vw, 40px); }
.path-k { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blu); }
.path-h { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: .9; text-transform: uppercase; }
.path-p { color: var(--soft); }
.path:hover { background: var(--blu); color: var(--white); }
.path:hover .path-k, .path:hover .path-p { color: var(--ice); }
.path:hover .tlink { color: var(--white); }
.path:hover .path-img img { transform: scale(1.05); }
.path-prices { display: grid; width: 100%; margin: 6px 0 8px; border-top: 1px solid var(--line); }
.path-prices > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.path-prices small { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-left: 6px; }
.path-prices b { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1; color: var(--blu); white-space: nowrap; }
.path:hover .path-prices > span, .path:hover .path-prices { border-color: rgba(255, 255, 255, .3); }
.path:hover .path-prices b, .path:hover .path-prices small { color: var(--white); }

/* ------------------------------------------------------------------ HOME: maestri (roster) */
.coaches-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.coaches-head p { color: var(--soft); max-width: 40ch; margin-bottom: 18px; }
.roster { border-top: 2px solid var(--ink); }
.roster-row a {
  display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 2.4fr) minmax(0, 4fr) 32px; gap: 24px; align-items: center;
  padding: 18px 12px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .35s var(--ease), padding .35s var(--ease);
}
.roster-pic { width: 64px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--white); border-radius: 50% 50% 0 0 / 30% 30% 0 0; display: grid; }
.roster-pic img { width: 100%; height: 100%; object-fit: cover; }
.ph-mono { display: grid; place-items: center; width: 100%; height: 100%; background: var(--blu); color: var(--white); font-family: var(--f-display); font-weight: 900; font-size: 2rem; }
.roster-name { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: .9; text-transform: uppercase; transition: color .3s; }
.roster-tag { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.roster-claim { font-size: .95rem; color: var(--soft); font-style: italic; }
.roster-row .ico { width: 28px; height: 28px; transition: transform .35s var(--ease); }
.roster-row a:hover { background: var(--white); padding-left: 24px; }
.roster-row a:hover .roster-name { color: var(--blu); }
.roster-row a:hover .ico { transform: translateX(6px); color: var(--blu); }
.roster-float { position: fixed; left: 0; top: 0; z-index: 40; width: 240px; aspect-ratio: 3 / 4; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8); border-radius: 50% 50% 0 0 / 28% 28% 0 0; overflow: hidden; background: var(--blu); }
.roster-float-i { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.roster-float-i.on { opacity: 1; }
.roster-float-i img, .roster-float-i .ph-mono { width: 100%; height: 100%; object-fit: cover; font-size: 6rem; }

/* ------------------------------------------------------------------ Eventi */
.live-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px var(--gap); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.live-head .setlabel, .live-head .h1 { grid-column: 1 / -1; margin: 0; }
.events { display: grid; gap: clamp(48px, 7vw, 112px); }
.event { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.event-r .event-img { order: 2; }
.event-img { aspect-ratio: 3 / 2; overflow: hidden; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }   /* foto ferme: niente parallasse né skew allo scroll */
.event-copy { display: grid; gap: 18px; justify-items: start; padding-bottom: 8px; }
.event-copy h3 { font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: .9; font-weight: 900; }
.event-copy p:not(.event-k) { color: var(--fg-soft); }
.event-k { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); max-width: 34ch; }
/* home: tre eventi affiancati, compatti */
.events-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.events-3 .event { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.events-3 .event-img { aspect-ratio: 4 / 3; }
.events-3 .event-copy { gap: 12px; padding-bottom: 0; }
.events-3 .event-copy h3 { font-size: clamp(1.7rem, 2.4vw, 2.4rem); }
@media (max-width: 960px) {
  .events-3 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .events-3 .event { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
}
@media (max-width: 600px) { .events-3 .event { grid-template-columns: minmax(0, 1fr); } }
.live-more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; margin-top: clamp(64px, 8vw, 120px); padding-top: 40px; border-top: 1px solid var(--line-w); }
.live-more h3 { font-size: var(--t-h2); line-height: .92; font-weight: 900; }

/* Link a righe */
.routes { display: grid; border-top: 1.5px solid var(--fg); }
.routes a {
  display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 4fr) 32px; gap: 16px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: padding .35s var(--ease), background .35s var(--ease), color .35s;
}
.routes small { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.routes strong { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: .95; text-transform: uppercase; }
.routes .ico { width: 28px; height: 28px; transition: transform .35s var(--ease); }
.routes a:hover { padding-left: 22px; background: var(--blu); color: var(--white); }
.routes a:hover small { color: var(--ice); }
.routes a:hover .ico { transform: translateX(4px); }
.routes-dark a:hover { background: var(--white); color: var(--blu); }
.routes-dark a:hover small { color: var(--blu); }

/* ------------------------------------------------------------------ Community */
.community-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.community-copy { display: grid; gap: 24px; justify-items: start; }
.community-copy .setlabel { margin: 0; }
.collage { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 4.4vw)); }
.collage figure { overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage figure:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 7; }
.collage figure:nth-child(2) { grid-column: 4 / 9; grid-row: 6 / 11; z-index: 2; border: 6px solid var(--white); }
.collage figure:nth-child(3) { grid-column: 7 / 13; grid-row: 2 / 8; border-radius: 50% 50% 0 0 / 24% 24% 0 0; }

/* ------------------------------------------------------------------ CTA */
.cta { position: relative; overflow: hidden; background: var(--blu); padding-block: clamp(96px, 13vw, 200px); }
.cta-court { position: absolute; inset: 6% 4%; width: 92%; height: 88%; fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: .35; vector-effect: non-scaling-stroke; }
.cta-court * { vector-effect: non-scaling-stroke; stroke-width: 1.5; }
.cta-in { position: relative; display: grid; gap: 28px; justify-items: start; }
.cta-in .setlabel { margin: 0; }
.cta-h { font-size: var(--t-hero); line-height: .84; }

/* ------------------------------------------------------------------ Footer */
.ftr { background: var(--night); padding-top: clamp(72px, 9vw, 128px); overflow: hidden; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ftr-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px var(--gap); padding-bottom: 56px; border-bottom: 1px solid var(--line-w); }
.ftr-claim { display: grid; gap: 28px; justify-items: start; }
.ftr-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: .92; text-transform: uppercase; }
.ftr-big em { font-style: normal; color: var(--ice); }
.ftr h2 { margin-bottom: 14px; font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft); }
.ftr-col { display: grid; gap: 10px; align-content: start; }
.ftr-phone { font-family: var(--f-display); font-weight: 800; font-size: 2rem; text-decoration: none; line-height: 1; }
.ftr-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ice); text-decoration: none; }
.ftr-link:hover, .ftr-map a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-block: 48px; }
.ftr-map div { display: grid; gap: 8px; align-content: start; }
.ftr-map a { text-decoration: none; color: var(--fg-soft); }
.ftr-word { overflow: hidden; line-height: .76; margin-top: 8px; user-select: none; }
.ftr-word span { display: block; font-family: var(--f-display); font-weight: 900; font-size: 25.5vw; letter-spacing: -.01em; text-align: center; color: var(--blu); transform: translateY(12%); }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 20px; border-top: 1px solid var(--line-w); font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); position: relative; background: var(--night); }
.ftr-bottom a { color: inherit; text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; transition: color .2s; }
.ftr-bottom a:hover, .ftr-bottom a:focus-visible { color: #fff; text-decoration: underline; }

.actbar { display: none; }
.wa-fab { position: fixed; z-index: 46; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(8, 26, 51, .28); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.wa-fab svg { width: 30px; height: 30px; fill: currentColor; }
.wa-fab:hover { transform: scale(1.07); box-shadow: 0 12px 30px rgba(8, 26, 51, .34); }
.wa-fab:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; }
.menu-open .wa-fab { display: none; }

/* ------------------------------------------------------------------ Hero pagine interne */
.phero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(480px, 74svh, 780px); background: var(--night); }
.phero-bg { position: absolute; inset: 0; margin: 0; }
.phero-bg img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 40%; }
.phero-top img { object-position: 50% 8%; }
/* foto verticale di gruppo (es. maestri): sta nella metà destra della hero, intera, e sfuma nel blu a sinistra */
.phero-side { left: 40%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.phero-side img { height: 100%; object-position: 50% 78%; }
@media (min-width: 961px) { .phero:has(.phero-side)::after { background: linear-gradient(90deg, rgba(8, 26, 51, .92) 0%, rgba(8, 26, 51, .7) 38%, rgba(8, 26, 51, .12) 70%, rgba(8, 26, 51, .05) 100%), linear-gradient(0deg, rgba(8, 26, 51, .6) 0%, rgba(8, 26, 51, 0) 40%); } }
/* foto del team (1000×1334, teste al 37% dell'altezza, piedi al 92%): se il riquadro è alto mostra i giocatori interi
   ancorati in basso; se è largo e basso (portatili 1366×768, Windows con zoom 125%) taglia le gambe e mai le teste,
   tenendo la cima della foto visibile al 31% */
@supports (width: 1cqw) {
  @media (min-width: 961px) {
    .phero-team { container-type: size; }
    .phero-team img { object-position: 50% min(0px, max(-41.4cqw, calc(100cqh - 133.4cqw))); }
  }
}
@media (max-width: 960px) { .phero-side { left: 0; -webkit-mask-image: none; mask-image: none; } .phero-side img { object-position: 50% 60%; } }
/* velatura blu scuro: leggibilità dei testi senza nascondere la foto */
.phero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 26, 51, .92) 0%, rgba(8, 26, 51, .72) 42%, rgba(8, 26, 51, .25) 100%), linear-gradient(0deg, rgba(8, 26, 51, .85) 0%, rgba(8, 26, 51, 0) 55%); }
.phero-copy {
  position: relative; z-index: 2; width: 100%; display: grid; gap: 22px; justify-items: start; align-content: end;
  padding-top: clamp(64px, min(12vw, 16svh), 160px); padding-bottom: clamp(32px, min(6vw, 8svh), 80px);
}
.phero-copy > * { max-width: 760px; }
.phero-copy .setlabel { margin: 0; }
.phero-h { font-size: clamp(3rem, min(6.6vw, 14svh), 7rem); line-height: .86; }
.phero-lead { font-size: var(--t-lead); line-height: 1.45; color: var(--fg-soft); max-width: 44ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-soft); }
.crumbs li + li::before { content: "/"; margin: 0 .7em; opacity: .5; }
.crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; text-decoration: none; }   /* area di tocco più alta senza spostare il layout */
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs [aria-current] { color: var(--white); }
.gs-logo { width: 96px; height: 96px; border-radius: 50%; background: var(--white); }

/* ------------------------------------------------------------------ Componenti interni */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.facts li { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 3px solid var(--fg); }
.facts h3 { font-size: clamp(2rem, 3vw, 2.8rem); }
.facts p { color: var(--fg-soft); max-width: 32ch; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; margin-bottom: 40px; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 1px solid var(--rule); position: relative; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }
.step-n { font-family: var(--f-display); font-weight: 900; font-size: clamp(3.6rem, 6vw, 5.6rem); line-height: .85; color: var(--accent); }
.steps p { color: var(--fg-soft); }
.booking-main .steps { margin-top: 56px; }

.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-block: clamp(40px, 6vw, 80px) 40px; }
.formats li { display: grid; gap: 14px; align-content: start; justify-items: start; padding: clamp(22px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .35s var(--ease), color .35s; }
.fmt-k { padding: .4em .7em; background: var(--mist); color: var(--blu); font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; }
.formats h3 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 900; }
.formats p { color: var(--soft); max-width: 44ch; }
.formats li:hover { background: var(--blu); color: var(--white); }
.formats li:hover p { color: var(--ice); }
.formats li:hover .fmt-k { background: var(--white); }
/* prezzo in fondo a ogni scheda */
.formats .fmt-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; max-width: none; }
.fmt-price strong { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 900; line-height: 1; color: var(--blu); }
.fmt-price span { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; }
.formats li:hover .fmt-price strong { color: var(--white); }
.formats li:hover .fmt-price { border-top-color: rgba(255, 255, 255, .3); }

.lesson-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.lesson-intro figure { aspect-ratio: 4 / 5; }
.lesson-intro img { width: 100%; height: 100%; object-fit: cover; }
.lesson-intro > div { display: grid; gap: 24px; justify-items: start; }
.lesson-intro .setlabel { margin: 0; }
.lesson-intro--text { grid-template-columns: minmax(0, 1fr); }
.lesson-intro--top { align-items: start; }
.lesson-intro--text .lead { max-width: 60ch; }

.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 27vw, 440px); gap: var(--gap); }
.mosaic figure { overflow: hidden; background: var(--mist); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic figure:hover img { transform: scale(1.03); }
.m-a { grid-column: span 8; } .m-b, .m-t { grid-column: span 4; } .m-full { grid-column: span 12; } .m-half { grid-column: span 6; }
.m-wide { grid-column: span 8; } .m-tall { grid-column: span 4; grid-row: span 2; }
.mosaic-courts .m-full { grid-row: span 2; } .mosaic-courts .m-short { grid-row: span 1; }
.mosaic-tri .m-a { grid-column: span 6; } .mosaic-tri .m-b { grid-column: span 3; }
.mosaic-duo2 { grid-auto-rows: clamp(320px, 46vw, 720px); }

.masonry { columns: 3 260px; column-gap: var(--gap); }
.masonry-4 { columns: 4 200px; }
.photo-solo { max-width: 720px; margin: 0 auto; overflow: hidden; }
.photo-solo img { width: 100%; height: auto; }
.masonry figure { break-inside: avoid; margin-bottom: var(--gap); overflow: hidden; }
.masonry img { width: 100%; transition: transform 1.2s var(--ease); }
.masonry figure:hover img { transform: scale(1.03); }

.vgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-auto-rows: clamp(280px, 36vw, 580px); gap: var(--gap); }
.vgrid .vframe:nth-child(3) { grid-column: 1 / -1; }
.vgrid-kids { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.vgrid-kids .vframe:nth-child(3) { grid-column: auto; }
.vframe { position: relative; overflow: hidden; background: var(--night); }
.vframe video { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.vgrid .vframe video { aspect-ratio: auto; }
.vframe figcaption { position: absolute; left: 0; top: 0; padding: 10px 14px; background: var(--white); color: var(--ink); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.vframe-p { justify-self: center; width: 100%; max-width: 400px; }
.vframe-p video { aspect-ratio: 9 / 16; }
.vgrid .vframe-p { max-width: none; }

.split-v { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-v > div { display: grid; gap: 24px; justify-items: start; }
.split-v .setlabel { margin: 0; }
.split-v-r > div { order: 2; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(520px, 72vh, 820px); }
.split-media { overflow: hidden; position: relative; }
.split-media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.split-media--fit img { inset: 0; height: 100%; object-fit: contain; }   /* foto verticale intera, senza tagli */
.split-copy { display: grid; gap: 24px; align-content: center; justify-items: start; padding: var(--band) max(var(--gut), env(safe-area-inset-right, 0px)) var(--band) clamp(32px, 6vw, 96px); }
.split-copy .setlabel { margin: 0; }
.split-copy p { max-width: 42ch; color: var(--fg-soft); font-size: 1.1rem; }
.split-r .split-media { order: 2; }
.split-r .split-copy { padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: clamp(32px, 6vw, 96px); }
.split.band-ink { --fg: var(--white); --fg-soft: rgba(255, 255, 255, .74); --rule: var(--line-w); --accent: var(--ice); color: var(--fg); }

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.story .setlabel { margin-bottom: 24px; }
.story-text { display: grid; gap: 20px; font-size: 1.14rem; max-width: 62ch; }
.story-big { display: block; font-family: var(--f-display); font-weight: 900; font-size: var(--t-h2); line-height: .92; text-transform: uppercase; color: var(--blu); margin-top: 12px; }

.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.hub-card { display: grid; grid-template-rows: auto 1fr; background: var(--mist); }
.hub-img { aspect-ratio: 16 / 9; overflow: hidden; }
.hub-img img { width: 100%; height: 100%; object-fit: cover; }
.hub-copy { display: grid; gap: 18px; align-content: start; justify-items: start; padding: clamp(24px, 3vw, 44px); }
.hub-copy h3 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 900; line-height: .9; }
.hub-copy p:not(.hub-k) { color: var(--soft); }
.hub-k { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blu); }
.hub-machine {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 2fr) 32px; gap: 24px; align-items: center;
  margin-top: var(--gap); padding: clamp(22px, 3vw, 36px); border: 1.5px solid var(--fg); text-decoration: none;
  transition: background .35s var(--ease), color .35s;
}
.hub-machine small { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); }
.hub-machine strong { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: .9; text-transform: uppercase; }
.hub-machine span { color: var(--fg-soft); }
.hub-machine .ico { width: 28px; height: 28px; }
.hub-machine:hover { background: var(--blu); color: var(--white); border-color: var(--blu); }
.hub-machine:hover small, .hub-machine:hover span { color: var(--ice); }
.hub-dark { margin-top: clamp(56px, 7vw, 100px); }
.hub-dark:hover { background: var(--white); color: var(--blu); border-color: var(--white); }
.hub-dark:hover small, .hub-dark:hover span { color: var(--blu); }

.coaches-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) var(--gap); }
.coach { display: grid; gap: 10px; align-content: start; justify-items: start; text-decoration: none; }
.coach-pic { display: block; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 10px; }
.coach-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.coach-pic .ph-mono { font-size: 7rem; }
.coach:hover .coach-pic img { transform: scale(1.04); }
.coach-tag { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blu); }
.coach-name { font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 3vw, 2.8rem); line-height: .9; text-transform: uppercase; }
.coach-role { font-size: .92rem; color: var(--soft); }
.coach-claim { font-style: italic; color: var(--ink); max-width: 36ch; }
.coach:hover .coach-name { color: var(--blu); }

.pf { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.pf-aside { position: sticky; top: calc(var(--hdr) + 32px); display: grid; gap: 18px; }
.pf-photo { aspect-ratio: 3 / 4; }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-ph { display: grid; place-items: center; background: var(--blu); color: var(--white); font-family: var(--f-display); font-weight: 900; font-size: 9rem; }
.pf-meta { display: grid; border-top: 1px solid var(--line); }
.pf-meta li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.pf-body { display: grid; gap: 22px; max-width: 70ch; }
.pf-body .setlabel { margin: 24px 0 0; }
.pf-body > p:not(.lead):not(.setlabel) { color: #2A3B55; }
.pf-claim { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1; color: var(--blu); text-wrap: balance; }
.pf-inline { overflow: hidden; margin-block: 8px; }
.tl { display: grid; margin-top: 28px; border-top: 2px solid var(--ink); }
.tl li { display: grid; grid-template-columns: minmax(max(110px, min-content), 1fr) minmax(0, 3fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tl-k { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: .95; color: var(--blu); text-transform: uppercase; }
.tl h3 { font-size: 1.4rem; margin-bottom: 6px; }
.tl p { color: var(--soft); }

.booking { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.booking-main { display: grid; gap: 22px; }
.booking-main .setlabel { margin: 0; }
.channels { display: grid; gap: 10px; margin-top: 18px; }
.channel { display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; gap: 18px; align-items: center; padding: 14px 20px 14px 14px; border: 1.5px solid var(--ink); text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.channel-i { display: grid; place-items: center; width: 56px; height: 56px; background: var(--mist); color: var(--blu); }
.channel strong { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.channel small { color: var(--soft); }
.channel:hover, .channel-main { background: var(--blu); color: var(--white); border-color: var(--blu); }
.channel:hover small, .channel-main small { color: var(--ice); }
.channel-main .channel-i { background: var(--white); }
.channel-main:hover { background: var(--ink); border-color: var(--ink); }
.clubcard { position: sticky; top: calc(var(--hdr) + 32px); display: grid; gap: 12px; justify-items: start; padding: 20px; background: var(--mist); }
.clubcard figure { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 8px; }
.clubcard img { width: 100%; height: 100%; object-fit: cover; }
.clubcard .status { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blu); }

.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-phone { display: grid; gap: 28px; justify-items: start; }
.contact-phone .setlabel { margin: 0; }
.bignum { font-family: var(--f-display); font-weight: 900; white-space: nowrap; font-size: clamp(2.8rem, 6.2vw, 6.6rem); line-height: .85; color: var(--blu); text-decoration: none; letter-spacing: .01em; font-variant-numeric: tabular-nums; padding-block: .08em; }
.bignum:hover { color: var(--ink); }
.contact-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: end; }
.where-card { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 3vw, 44px); background: var(--white); color: var(--ink); }
.where-card address { font-size: 1.3rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 32px; }
.chip { min-height: 44px; padding: .7em 1.05em; border: 1.5px solid var(--ink); background: none; cursor: pointer; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; transition: background .25s, color .25s; }
.chip:hover { background: var(--mist); }
.chip[aria-pressed="true"] { background: var(--blu); border-color: var(--blu); color: var(--white); }
.chips-count { margin-left: auto; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.g-grid { columns: 4 220px; column-gap: 12px; }
.g-item { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; overflow: hidden; break-inside: avoid; }
.g-item img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.g-item:hover img { transform: scale(1.04); }
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 64px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); background: rgba(4, 14, 30, .95); color: var(--white); }
.lb-fig { display: grid; gap: 14px; max-width: 1400px; }
.lb-fig img { max-height: calc(100svh - 180px); width: auto; margin-inline: auto; }
.lb-fig figcaption { display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .74); }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 1.5px solid rgba(255, 255, 255, .5); background: var(--night); color: var(--white); font-size: 1.2rem; cursor: pointer; }
.lb-btn:hover { background: var(--white); color: var(--blu); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; }
.lb-next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; }

.nf { position: relative; overflow: hidden; background: var(--blu); min-height: calc(100svh - var(--hdr)); display: grid; align-items: center; }
.nf-in { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; padding-block: 96px; }
.nf-in .setlabel { margin: 0; }
.nf-code { display: flex; gap: 10px; font-family: var(--f-display); font-weight: 900; font-size: clamp(5rem, 16vw, 13rem); line-height: .85; }
.nf-code span { display: grid; place-items: center; min-width: 1.05em; padding: .08em .12em 0; background: var(--night); color: var(--ice); text-shadow: 0 0 24px rgba(200, 211, 226, .5); }

/* ------------------------------------------------------------------ AREA CAMPI */
.sec-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head .setlabel { margin: .6em 0 0; }
.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-4 li { gap: 12px; }
.facts-4 h3 { font-size: clamp(1.7rem, 2.3vw, 2.3rem); }
.facts-n { font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 500; letter-spacing: .14em; color: var(--blu); }
.facts-4 .tlink { margin-top: 6px; }
.mosaic-feat { margin-top: clamp(48px, 6vw, 88px); grid-auto-rows: clamp(300px, 34vw, 520px); }
.mosaic-feat figure { position: relative; }
.mosaic-feat figcaption { position: absolute; left: 0; bottom: 0; padding: .7em 1em; background: var(--blu); color: var(--white); font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 960px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head .setlabel { margin: 0; }
  .facts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 600px) { .facts-4 { grid-template-columns: minmax(0, 1fr); row-gap: 32px; } }

/* ------------------------------------------------------------------ Motion hooks (stato visibile di default) */


/* ------------------------------------------------------------------ ENERGIA: intro, transizioni, fasce in movimento */
.intro { display: none; }
.intro-pending .intro { display: block; position: fixed; inset: 0; z-index: 200; margin: 0; color: var(--white); overflow: hidden; }   /* margin: 0 → niente margine ereditato da .intro delle sezioni */
.intro-pending, .intro-pending body { background: var(--blu); }   /* anche sotto la barra di Safari resta blu durante l'intro */
.intro-pending body { overflow: hidden; }
.intro-half { position: absolute; inset: 0; background: var(--blu); }
.intro-a { clip-path: polygon(0 0, 100% 0, 0 100%); }
.intro-b { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.intro-court { position: absolute; inset: 12% 8%; width: 84%; height: 76%; fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: .5; }
.intro-score { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; }
.intro-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ice); }
.intro-score strong { display: grid; place-items: center; min-width: 2.2em; padding: .06em .2em 0; background: var(--night); color: var(--ice); font-family: var(--f-display); font-weight: 900; font-size: clamp(6rem, 22vw, 16rem); line-height: .9; text-shadow: 0 0 30px rgba(200, 211, 226, .55); font-variant-numeric: tabular-nums; }
.intro-ball { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: -40px 0 30px -8px rgba(255, 255, 255, .45), -90px 0 40px -14px rgba(255, 255, 255, .25); opacity: 0; }

.wipe { position: fixed; top: 0; bottom: 0; left: -20%; width: 140%; z-index: 150; pointer-events: none; background: var(--blu); transform: skewX(-14deg) scaleX(0); transform-origin: left center; }
.wipe::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 14px; background: var(--white); }
.wipe-out .wipe { transform: skewX(-14deg) scaleX(1); transition: transform .45s cubic-bezier(.75, 0, .25, 1); }
.wipe-enter .wipe { transform-origin: right center; animation: wipe-in .65s cubic-bezier(.75, 0, .25, 1) .05s both; }
.wipe-enter .wipe::after { right: auto; left: 0; }
@keyframes wipe-in { from { transform: skewX(-14deg) scaleX(1); } to { transform: skewX(-14deg) scaleX(0); } }

.mq { position: relative; z-index: 3; overflow: hidden; background: var(--blu); color: var(--white); transform: rotate(-1.6deg) scale(1.04); margin-block: -18px; border-block: 2px solid var(--white); }
.mq-ink { background: var(--night); color: var(--ice); }
.mq-light { background: var(--white); color: var(--blu); border-color: var(--blu); }
.mq-track { display: flex; width: max-content; animation: mq 26s linear infinite; }
.has-gsap .mq-track { animation: none; }
.mq-set { display: flex; align-items: center; gap: .5em; padding-right: .5em; }
.mq span { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.2rem, 5.6vw, 5.2rem); line-height: 1; padding-block: .14em .08em; text-transform: uppercase; white-space: nowrap; }
.mq span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.6px currentColor; }
.mq-ink span:nth-of-type(even), .mq span:nth-of-type(even) { -webkit-text-stroke-color: currentColor; }
.mq i { flex: none; width: .9rem; height: .9rem; border-radius: 50%; background: currentColor; }
@keyframes mq { to { transform: translateX(-50%); } }

.cta-ball { position: absolute; left: 0; top: 0; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); opacity: 0; pointer-events: none; }
.has-gsap .cta-ball { opacity: 1; }

.js [data-split] .wl { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .02em; margin: -.08em -.03em -.02em; }
.js [data-split] .w { display: inline-block; white-space: nowrap; }
.js [data-split] .c { display: inline-block; }
.hero-h .line { position: relative; }

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hdr-r { margin-left: auto; }
  .roster-row a { grid-template-columns: 56px minmax(0, 1fr) auto 28px; }
  .roster-claim { display: none; }
  .ftr-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-claim { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --hdr: 64px; }
  .hero-in, .welcome-in, .play-head, .train-head, .coaches-head, .live-head, .replay-in, .community-in, .intro, .story, .lesson-intro, .booking, .contact, .contact-where, .live-more, .split-v, .pf { grid-template-columns: minmax(0, 1fr); }
  .hero-in { padding-top: 64px; }
  .hero-ticker li:nth-child(3) { display: none; }
  .welcome-media { max-width: 520px; }
  .event, .event-r { grid-template-columns: minmax(0, 1fr); }
  .event-r .event-img { order: 0; }
  .replay-steps, .facts, .steps { grid-template-columns: minmax(0, 1fr); }
  .replay-steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-w); }
  .replay-steps li { padding: 22px 0; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; }
  .replay-steps .rs-n { grid-row: span 2; }
  .phero { min-height: clamp(440px, 78svh, 680px); }
  .phero::after { background: linear-gradient(0deg, rgba(8, 26, 51, .95) 0%, rgba(8, 26, 51, .78) 50%, rgba(8, 26, 51, .35) 100%); }
  .split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split-media { height: 78vw; max-height: 620px; }
  .split-media--fit { height: 120vw; max-height: 760px; }
  .split-r .split-media { order: 0; }
  .split-copy, .split-r .split-copy { padding: 64px max(var(--gut), env(safe-area-inset-right, 0px)) 72px max(var(--gut), env(safe-area-inset-left, 0px)); }
  .split-v-r > div { order: 0; }
  .pf-aside, .clubcard { position: static; }
  .pf-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .hub, .paths { grid-template-columns: minmax(0, 1fr); }
  .hub-machine { grid-template-columns: minmax(0, 1fr) 28px; }
  .hub-machine small, .hub-machine strong, .hub-machine span { grid-column: 1; }
  .hub-machine .ico { grid-column: 2; grid-row: 1 / span 3; }
  .coaches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid, .vgrid-kids { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .vgrid .vframe { aspect-ratio: 9 / 16; }
  .vgrid .vframe:not(.vframe-p) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .collage { grid-template-rows: repeat(10, minmax(0, 8vw)); }
  .roster-float { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .brand-t { display: none; }
  .hdr-cta { display: none; }
  .mosaic { grid-auto-rows: 68vw; }
  .mosaic > figure { grid-column: 1 / -1 !important; grid-row: span 1 !important; }
  .mosaic-duo2 { grid-auto-rows: 120vw; }
  .areas-img { aspect-ratio: 4 / 3; }
  .areas-nav { grid-template-columns: minmax(0, 1fr); }
  .areas-nav a { flex-wrap: nowrap; align-items: center; }
  .areas-nav small { width: auto; }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .coaches-grid { grid-template-columns: minmax(0, 1fr); }
  .roster-row a { grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 14px; padding-inline: 4px; }
  .roster-tag { display: none; }
  .routes a { grid-template-columns: minmax(0, 1fr) 24px; }
  .routes small { grid-column: 1; }
  .routes strong { grid-column: 1; }
  .routes .ico { grid-column: 2; grid-row: 1 / span 2; }
  .tl li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sb-v { font-size: clamp(2rem, 11vw, 3.4rem); }
  .sb-v.sb-hours { font-size: clamp(1.35rem, 6.4vw, 2rem); }
  .sb-cell { padding-inline: 10px; }
  .sb-k { letter-spacing: .05em; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }   /* "Illuminazione" non sporge dalla cella */
  .replay-console { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .rc-screen { width: 100%; }
  .hero-ticker li:nth-child(2) { display: none; }
  .hero-ticker li:first-child { border: 0; }
  .ftr-top, .ftr-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr-bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .pf-aside { grid-template-columns: minmax(0, 1fr); }
  .pf-photo { max-width: 420px; }
  .masonry { columns: 2; }
  .g-grid { columns: 2; column-gap: 8px; }
  .g-item { margin-bottom: 8px; }
  .chips-count { width: 100%; margin: 8px 0 0; }
  .train-video { aspect-ratio: 4 / 3; }
  .train-video figcaption span:nth-child(2) { display: none; }
  .channel { grid-template-columns: 48px minmax(0, 1fr) 22px; gap: 12px; }
  .channel-i { width: 48px; height: 48px; }
  .actbar {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--white); border-top: 1px solid var(--line); transition: transform .4s var(--ease);
  }
  .actbar.is-off { transform: translateY(105%); }
  .actbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 12px; font-size: .78rem; font-weight: 600; text-decoration: none; color: var(--ink); }
  .actbar .actbar-main { background: var(--blu); color: var(--white); }
  .actbar .ico { width: 22px; height: 22px; }
  .wa-fab { width: 52px; height: 52px; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .wa-fab svg { width: 27px; height: 27px; }
}
@media (max-width: 420px) {
  .actions .btn { width: 100%; justify-content: space-between; }
  .ftr-top, .ftr-map { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none !important; }
  .wipe, .intro, .cta-ball { display: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ Hero mobile: il campo 3D ha uno spazio suo, i testi non lo coprono */
@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero .hero-in { display: contents; }
  .hero-label, .hero-h, .hero-side { position: relative; z-index: 2; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
  .hero-label { order: 1; margin: 0; padding-top: 28px; }
  .hero-h { order: 2; margin-top: 16px; font-size: clamp(2.6rem, 12.5vw, 5.4rem); }
  .hero .hero-canvas { order: 3; position: relative; inset: auto; width: 100%; height: clamp(230px, min(80vw, calc(100svh - 540px)), 600px); margin: 0; }   /* lascia in vista almeno il primo pulsante */
  .hero-fallback { top: auto; bottom: 0; height: 100%; }
  .hero-side { order: 4; padding-top: 4px; padding-bottom: 28px; gap: 18px; }
  .hero-ticker { order: 5; }
}
@media (max-width: 760px) {
  .hdr-status { white-space: normal; max-width: 150px; padding: 0 10px; font-size: .7rem; letter-spacing: .06em; line-height: 1.2; }
}
@media (max-width: 359px) { .hdr { gap: 12px; } .burger span { display: none; } .hdr-status { max-width: 128px; } }
@media (max-width: 359px) { .sb-cell { padding-inline: 6px; } .sb-k { letter-spacing: .03em; } .sb-v { font-size: 9.6vw; } }

/* ------------------------------------------------------------------ Ospite d'onore (Francesco Totti) */
.guest { position: relative; overflow: hidden; background: var(--night); padding-block: clamp(80px, 11vw, 160px); }
.guest::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 85% 30%, rgba(200, 211, 226, .12), transparent 70%); pointer-events: none; }
.guest-ten { position: absolute; right: -2vw; bottom: -8vw; font-family: var(--f-display); font-weight: 900; font-size: clamp(16rem, 42vw, 40rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(200, 211, 226, .14); pointer-events: none; user-select: none; }
.guest-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.guest-copy { display: grid; gap: 26px; justify-items: start; }
.guest-copy .setlabel { margin: 0; }
.guest-h { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.2rem, 7.4vw, 7.6rem); line-height: .86; color: var(--white); }
.guest-h em { font-style: normal; color: var(--ice); }
.guest-lead { font-size: var(--t-lead); line-height: 1.5; color: var(--fg-soft); max-width: 46ch; }
.guest-media { position: relative; margin: 0; }
.guest-media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; border-radius: 50% 50% 0 0 / 22% 22% 0 0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.guest-media figcaption { position: absolute; left: -24px; bottom: 28px; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; background: var(--white); color: var(--ink); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.guest-media figcaption img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.facts-guest li { border-top-color: var(--blu); }
.facts-guest li:first-child h3 { color: var(--blu); }
@media (max-width: 960px) {
  .guest-in { grid-template-columns: minmax(0, 1fr); }
  .guest-media figcaption { left: 12px; bottom: 12px; }
  .guest-ten { bottom: auto; top: 30%; font-size: 60vw; }
}
.facts-wrap { margin-top: clamp(48px, 6vw, 88px); }

/* iubenda: pulsante preferenze cookie in basso a sinistra (a destra c'è WhatsApp) */
html body .iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-float]:not(.iubenda-floatable-tb-btn) { right: auto !important; left: max(20px, env(safe-area-inset-left, 0px)) !important; bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 760px) {
  html body .iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-float]:not(.iubenda-floatable-tb-btn) { left: max(16px, env(safe-area-inset-left, 0px)) !important; bottom: calc(87px + env(safe-area-inset-bottom, 0px)) !important; }
}
html body.menu-open .iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-float]:not(.iubenda-floatable-tb-btn) { display: none !important; }
/* iubenda: su telefono il banner in basso occupa tutta la larghezza, senza uscire dallo schermo */
@media (max-width: 760px) {
  html body #iubenda-cs-banner .iubenda-cs-container { left: 0 !important; right: 0 !important; width: auto !important; max-width: 100vw !important; }
  html body #iubenda-cs-banner .iubenda-granular-controls-container label, html body #iubenda-cs-banner .iubenda-granular-controls-container label * { white-space: normal !important; }
}
