/* =========================================================
   Jem's Soccer Academy — Landing page
   Mobile-first. Indice:
   0. Variabili  1. Reset/base  2. Utility & bottoni
   3. Preloader & cursore  4. Navbar  5. Hero  6. Numeri
   7. Chi siamo  8. Percorsi  9. Struttura & gallery
   10. Contatti  11. Footer  12. Lightbox
   13. Effetti premium (progress, grana, marquee, titoli)
   14. Valori & percorso  15. Max Tonetto
   16. WhatsApp flottante  17. Pagine: transizione, hero di pagina,
   home (manifesto, esplora), pagina successiva
   18. Reveal  19. Media query  20. Reduced motion
   ========================================================= */

/* Font ospitati sul sito: nessuna richiesta ai server di Google */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/bebas-neue.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/inter.woff2") format("woff2"); }

/* ---------- 0. VARIABILI ---------- */
:root {
  /* Colori brand */
  --c-red: #B23A2B;
  --c-red-dark: #8E2B20;
  --c-red-light: #EB7A69;      /* rosso chiaro: testo piccolo su fondo scuro (AA) */
  --c-black: #111111;
  --c-black-2: #1A1A1A;
  --c-white: #FFFFFF;
  --c-cream: #F6F2EE;
  --c-text: #1F1F1F;
  --c-muted: #5A5450;
  --c-line: rgba(17, 17, 17, .12);

  /* Font */
  --f-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spaziature */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem;   --s-7: 3rem;  --s-8: 4rem;   --s-9: 6rem;
  --section-y: clamp(4rem, 10vw, 8rem);
  --gutter: clamp(1rem, 4vw, 2rem);
  --container: 77.5rem; /* 1240px a 16px */
  --nav-h: 4.5rem;

  /* Forme e motion */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -20px rgba(17, 17, 17, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: 700ms;
  --dur-slow: 900ms;
}

/* ---------- 1. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Barra di scorrimento nascosta (lo scroll funziona normalmente; la posizione la indica la barra rossa in alto) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) - 1px); /* offset per la navbar sticky */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; } /* evita scroll orizzontale durante i reveal laterali (clip non rompe position: sticky) */
.js body.is-loading, body.menu-open { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; list-style: none; }

/* Testo selezionato con il rosso del sito */
::selection { background: var(--c-red); color: var(--c-white); }

:focus-visible {
  outline: 3px solid var(--c-red-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 1000;
  background: var(--c-black); color: var(--c-white);
  padding: var(--s-3) var(--s-4); border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

/* ---------- 2. UTILITY & BOTTONI ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--c-cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c-red); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--c-red-light); }

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: .01em;
  color: var(--c-black);
  margin-bottom: var(--s-5);
}
.section-title em { font-style: normal; color: var(--c-red); }
.section-title--light { color: var(--c-white); }
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-lead { font-size: 1.1rem; color: var(--c-muted); }

/* Segnaposto ben visibili */
.ph {
  font-style: normal;
  background: repeating-linear-gradient(-45deg, rgba(178,58,43,.10) 0 6px, rgba(178,58,43,.04) 6px 12px);
  border: 1px dashed var(--c-red);
  color: var(--c-red-dark);
  padding: 0 .35em; border-radius: 4px; font-size: .92em; font-weight: 600;
}
.ph--light { color: #FFD9D2; border-color: var(--c-red-light); background: rgba(235,122,105,.12); }
.ph-link { text-decoration-style: dashed; }

/* Bottoni: riempimento al hover (pseudo-elemento) */
.btn {
  --btn-bg: var(--c-red); --btn-fg: var(--c-white); --btn-fill: var(--c-red-dark); --btn-fill-fg: var(--c-white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: .85rem 1.6rem;
  border: 2px solid var(--btn-bg); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 400ms var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%); border-radius: 50% 50% 0 0;
  transition: transform var(--dur) var(--ease), border-radius var(--dur) var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); border-radius: 0; }
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill); box-shadow: 0 14px 30px -12px rgba(178,58,43,.6); }
.btn > span { display: inline-flex; align-items: center; gap: var(--s-2); pointer-events: none; }
.btn svg { width: 20px; height: 20px; }
.arrow { transition: transform 500ms var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-white); --btn-fill: var(--c-white); --btn-fill-fg: var(--c-black); border-color: rgba(255,255,255,.7); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--c-black); --btn-fill: var(--c-black); --btn-fill-fg: var(--c-white); border-color: var(--c-black); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-black); --btn-fill: var(--c-black); --btn-fill-fg: var(--c-white); border-color: var(--c-black); }
.btn--whatsapp { --btn-bg: #1E8E4E; --btn-fill: #146B3A; }
.btn--sm { min-height: 2.5rem; padding: .55rem 1.2rem; font-size: .88rem; }
.btn--lg { min-height: 3.5rem; padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- 3. PRELOADER & CURSORE ---------- */
.preloader {
  animation: preloader-failsafe 0s 4s forwards; /* se il JS non parte, il preloader sparisce comunque dopo 4s */
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--c-black);
  transition: opacity 600ms var(--ease), visibility 600ms;
}
.preloader__logo { width: 120px; height: auto; animation: pulse 1.1s var(--ease) infinite; }
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes pulse {
  0%, 100% { transform: scale(.92); opacity: .75; filter: drop-shadow(0 0 0 rgba(178,58,43,0)); }
  50% { transform: scale(1.04); opacity: 1; filter: drop-shadow(0 0 24px rgba(178,58,43,.7)); }
}

/* Cursore custom: freccia rosso brand, solo su dispositivi con mouse */
@media (hover: hover) and (pointer: fine) {
  html, a, button, label, select, summary, [data-tilt] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7.5 19 2.6-7.9L21 10.5z' fill='%23B23A2B' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto;
  }
  input:not([type="checkbox"]), textarea { cursor: text; }
}


/* ---------- 4. NAVBAR ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  color: var(--c-white);
}
/* Sfondo solido + blur su uno pseudo-elemento: un backdrop-filter sul .nav
   renderebbe il menu mobile (position: fixed) relativo all'header */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(17,17,17,.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -15px rgba(0,0,0,.5);
  opacity: 0; transition: opacity 500ms var(--ease);
}
.nav.is-scrolled::before { opacity: 1; }
body.menu-open .nav::before { opacity: 0; }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.nav__brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; position: relative; z-index: 2; }
.nav__brand img { width: 3.25rem; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.nav__brand-text { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .04em; line-height: 1; }
.nav__brand-text span { color: var(--c-red-light); }

/* Hamburger */
.nav__toggle {
  position: relative; z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-content: center; gap: 5px;
}
.nav__toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 500ms var(--ease), opacity 300ms; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile: overlay con clip-path circolare */
.nav__menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-6);
  padding: calc(var(--nav-h) + var(--s-5)) var(--gutter) var(--s-7);
  background: radial-gradient(circle at 80% 0%, var(--c-red-dark), var(--c-black) 60%);
  clip-path: circle(0% at calc(100% - 40px) 36px);
  visibility: hidden;
  transition: clip-path 800ms var(--ease), visibility 0s 800ms;
}
.nav__menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path 800ms var(--ease), visibility 0s; }
.nav__list { display: flex; flex-direction: column; gap: var(--s-2); }
.nav__link {
  display: inline-block; text-decoration: none;
  font-family: var(--f-display); font-size: clamp(2.4rem, 10vw, 3.4rem); letter-spacing: .02em; line-height: 1.1;
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), color 300ms;
}
.nav__menu.is-open .nav__link { opacity: 1; transform: none; }
.nav__menu.is-open li:nth-child(1) .nav__link { transition-delay: 150ms; }
.nav__menu.is-open li:nth-child(2) .nav__link { transition-delay: 200ms; }
.nav__menu.is-open li:nth-child(3) .nav__link { transition-delay: 250ms; }
.nav__menu.is-open li:nth-child(4) .nav__link { transition-delay: 300ms; }
.nav__menu.is-open li:nth-child(5) .nav__link { transition-delay: 350ms; }
.nav__menu.is-open li:nth-child(6) .nav__link { transition-delay: 400ms; }
.nav__link.is-active, .nav__link:hover { color: var(--c-red-light); }
.nav__cta { align-self: flex-start; }
.nav__cta.is-current { box-shadow: 0 0 0 3px rgba(255,255,255,.22); } /* siamo nella pagina Contatti */

/* ---------- 5. HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--c-white); overflow: hidden;
  background: var(--c-black);
  padding-block: calc(var(--nav-h) + var(--s-5)) var(--s-7);
}
.hero__media { position: absolute; inset: -10% 0 -10%; will-change: transform; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 2.2s var(--ease); }
.js .hero__media img, .js .hero__media video { transform: scale(1.12); }
body.is-ready .hero__media img, body.is-ready .hero__media video { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(17,17,17,.94) 0%, rgba(17,17,17,.7) 45%, rgba(142,43,32,.55) 100%),
    linear-gradient(to top, rgba(17,17,17,.9), transparent 45%);
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { color: var(--c-white); letter-spacing: .14em; font-size: .75rem; }
.hero__eyebrow::before { display: none; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-red-light); box-shadow: 0 0 0 0 rgba(235,122,105,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(235,122,105,0); } 100% { box-shadow: 0 0 0 0 rgba(235,122,105,0); } }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, min(13vw, 14vh), 8rem); /* limitato anche dall'altezza: su laptop con zoom 100% resta tutto nello schermo */
  line-height: .92; letter-spacing: .005em;
  margin: var(--s-2) 0 var(--s-5);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transition: transform 1s var(--ease); }
.js .hero__title .line > span { transform: translateY(105%); }
.hero__title .line--accent { color: var(--c-red-light); }
.js body.is-ready .hero__title .line > span { transform: none; }
body.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 120ms; }

.hero__subtitle { max-width: 600px; font-size: clamp(1rem, 2.4vw, 1.2rem); color: rgba(255,255,255,.88); margin-bottom: var(--s-6); }
.hero__subtitle strong { color: var(--c-white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Bagliore rosso che si muove lentamente dietro il titolo */
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(178,58,43,.45), transparent 60%);
  pointer-events: none; animation: glow-float 16s ease-in-out infinite alternate;
}
@keyframes glow-float { to { transform: translate3d(-12vmax, 18vmax, 0) scale(1.15); } }

/* Logo grande sopra il titolo della home */
.hero__logo {
  display: block; width: clamp(6rem, min(18vw, 19vh), 11rem); height: auto; margin-bottom: var(--s-4);
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.55));
}
.js .hero__logo { opacity: 0; transform: scale(.85); transition: opacity var(--dur-slow) var(--ease), transform 1.1s var(--ease); }
.js body.is-ready .hero__logo { opacity: 1; transform: none; }

/* Entrata hero (dopo il preloader) */
.js .hero__eyebrow, .js .hero__subtitle, .js .hero__actions {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.js body.is-ready .hero__eyebrow { opacity: 1; transform: none; }
.js body.is-ready .hero__subtitle { opacity: 1; transform: none; transition-delay: 350ms; }
.js body.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: 500ms; }


/* ---------- 6. NUMERI CHIAVE ---------- */
.stats { background: var(--c-red); color: var(--c-white); padding-block: var(--s-7); position: relative; overflow: hidden; }
.stats::after { /* banda diagonale decorativa come nel logo */
  content: ""; position: absolute; inset: -50% -10%; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 80px, rgba(255,255,255,.04) 80px 160px);
}
.stats__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); }
.stat { display: flex; flex-direction: column; gap: var(--s-1); padding-left: var(--s-4); border-left: 2px solid rgba(255,255,255,.35); }
.stat__value { font-family: var(--f-display); font-size: clamp(2.8rem, 9vw, 4.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__value--text { display: inline-flex; align-items: center; gap: .2em; font-size: clamp(2rem, 6.5vw, 3.6rem); min-height: 1em; }
.stat__icon { width: .85em; height: .85em; flex: none; }
.stat__label { font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.9); }

/* ---------- 7. CHI SIAMO ---------- */
.about__grid { display: grid; gap: var(--s-8); align-items: center; }
.checklist { display: grid; gap: var(--s-2); margin: var(--s-5) 0 var(--s-6); }
.checklist li { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center/14px no-repeat;
}

.about__media { position: relative; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: -8px; bottom: 24px;
  background: var(--c-red); color: var(--c-white);
  padding: var(--s-4) var(--s-5); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.about__badge-num { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.about__badge-txt { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }


/* ---------- 8. PERCORSI ---------- */
.programs__grid { display: grid; gap: var(--s-5); perspective: 1200px; }
.card {
  position: relative; isolation: isolate;
  padding: var(--s-6) var(--s-5);
  background: var(--c-white); border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 var(--c-line), 0 12px 30px -20px rgba(17,17,17,.25);
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease), box-shadow 500ms var(--ease);
}
/* Bordo rosso animato (conic-gradient che ruota) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; padding: 2px; border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--c-red) 80%, var(--c-red-light) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 500ms var(--ease);
}
.card:hover::before, .card:focus-within::before { opacity: 1; animation: spin-border 2.4s linear infinite; }
.card:hover { box-shadow: 0 30px 60px -25px rgba(178,58,43,.45); }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --angle: 360deg; } }

.card__num { font-family: var(--f-display); font-size: 1.1rem; color: var(--c-red); letter-spacing: .1em; margin-bottom: var(--s-3); transform: translateZ(30px); }
.card__title { font-family: var(--f-display); font-size: 2.3rem; color: var(--c-black); margin-bottom: var(--s-3); transform: translateZ(40px); }
.card__text { color: var(--c-muted); }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.card__tags li { font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: var(--c-cream); color: var(--c-red-dark); }
.card > :last-child { margin-bottom: 0; }
/* Luce che segue il mouse (variabili --mx/--my impostate da JS) */
.card::after, .value::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(178,58,43,.12), transparent 60%);
  opacity: 0; transition: opacity 400ms var(--ease);
}
.card:hover::after, .value:hover::after { opacity: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2);
  font-weight: 700; font-size: .92rem; color: var(--c-red); text-decoration: none;
}
.card__link .arrow { width: 1.1rem; height: 1.1rem; }
.card__link:hover { color: var(--c-red-dark); }

/* ---------- 9. STRUTTURA & GALLERY ---------- */
.services { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }
.services li {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .65rem 1.1rem; border-radius: 999px;
  background: var(--c-white); box-shadow: 0 1px 0 var(--c-line); font-weight: 600; font-size: .92rem;
}
.services svg { width: 22px; height: 22px; color: var(--c-red); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0; margin: 0;
  aspect-ratio: 4 / 3; /* tutte le foto con le stesse proporzioni */
  border-radius: var(--radius); overflow: hidden;
  background: #ddd; position: relative;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease), filter 600ms var(--ease); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(142,43,32,.6), transparent 60%);
  opacity: 0; transition: opacity 500ms var(--ease);
}
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.06); }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.venue__cta { display: flex; justify-content: center; margin-top: var(--s-7); }

/* ---------- 10. CONTATTI ---------- */
.contacts__grid { display: grid; gap: var(--s-7); }
.contacts__list { display: grid; gap: var(--s-5); margin: 0 0 var(--s-6); }
.contacts__list dt { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red); margin-bottom: var(--s-1); }
.contacts__list dd { margin: 0; font-size: 1.05rem; }
.contacts__list a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.social { display: flex; gap: var(--s-3); }
.social a {
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-black); color: var(--c-white);
  transition: background-color 400ms var(--ease);
}
.social a:hover { background: var(--c-red); }
.social--footer { margin-top: var(--s-4); }
.social--footer a { background: rgba(255,255,255,.08); color: var(--c-white); }
.footer .social--footer a:hover { background: var(--c-red); color: var(--c-white); }
.social svg { width: 22px; height: 22px; }
.contacts__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 21.25rem; background: var(--c-cream); }
/* Mappa caricata solo su richiesta (cookie di Google) */
.map-consent {
  height: 100%; min-height: 21.25rem; padding: var(--s-6);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-3);
  background: radial-gradient(ellipse at 80% 10%, #3B140F 0%, var(--c-black) 65%); color: rgba(255,255,255,.8);
}
.map-consent__pin { width: 2.75rem; height: 2.75rem; color: var(--c-red-light); }
.map-consent__title { font-family: var(--f-display); font-size: 1.8rem; line-height: 1; color: var(--c-white); letter-spacing: .02em; margin: 0; }
.map-consent__text { max-width: 26rem; font-size: .88rem; margin: 0; }
.map-consent__text a { color: var(--c-red-light); }
.map-consent__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-2); }
.map-consent .btn--outline { --btn-fg: var(--c-white); --btn-fill: var(--c-white); --btn-fill-fg: var(--c-black); border-color: rgba(255,255,255,.6); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 21.25rem; border: 0; filter: grayscale(.25) contrast(1.05); }

/* ---------- 11. FOOTER ---------- */
.footer { background: var(--c-black); color: rgba(255,255,255,.75); padding-top: var(--s-8); font-size: .92rem; }
.footer a { text-decoration: none; transition: color 300ms; }
.footer a:hover { color: var(--c-red-light); }
.footer__grid { display: grid; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer__brand img { width: 5.5rem; margin-bottom: var(--s-4); }
.footer__brand strong { color: var(--c-white); }
.footer__title { font-family: var(--f-display); font-size: 1.5rem; color: var(--c-white); margin-bottom: var(--s-4); letter-spacing: .04em; }
.footer__nav ul { display: grid; gap: var(--s-2); }
.footer__reserved { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--c-red-light); font-weight: 600; }
.footer__reserved svg { width: 1rem; height: 1rem; flex: none; }
.footer__contact p { margin-bottom: var(--s-2); }
.footer .ph { color: #FFD9D2; border-color: var(--c-red-light); background: rgba(235,122,105,.12); display: inline-block; }
.footer__bottom {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding-block: var(--s-5); border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem;
}
.footer__bottom p { margin: 0; }
.footer__bottom ul { display: flex; gap: var(--s-5); }

/* ---------- 12. LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center;
  background: rgba(10,10,10,.94);
  opacity: 0; transition: opacity 400ms var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox__img {
  max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--radius);
  transform: scale(.94); transition: transform 600ms var(--ease), opacity 300ms;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; border-radius: 50%;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: var(--c-white);
  transition: background-color 300ms;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-red); }
.lightbox__close { top: var(--s-4); right: var(--s-4); font-size: 2rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: var(--s-3); }
.lightbox__nav--next { right: var(--s-3); }

/* ---------- 13. EFFETTI PREMIUM ---------- */
/* Barra di avanzamento dello scroll */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 150; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-red), var(--c-red-light));
  box-shadow: 0 0 12px rgba(235,122,105,.6);
}

/* Grana "pellicola" sulle sezioni scure */
.grain {
  position: absolute; inset: -50%; z-index: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* Nastro scorrevole con i valori */
.marquee {
  overflow: hidden; background: var(--c-black); color: var(--c-white);
  padding-block: var(--s-5); border-bottom: 1px solid rgba(255,255,255,.06);
}
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group > span {
  margin-right: var(--s-6);
  font-family: var(--f-display); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; letter-spacing: .03em; text-transform: uppercase;
}
.marquee__group > .is-outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee__group > .marquee__star { font-size: clamp(1rem, 2.5vw, 1.6rem); color: var(--c-red-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Titoli: le parole salgono una dopo l'altra (classi aggiunte da JS) */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.word__inner { display: inline-block; }
.js .section-title.is-split { opacity: 1; transform: none; }
.js .is-split .word__inner {
  transform: translateY(110%);
  transition: transform 900ms var(--ease);
  transition-delay: calc(var(--w, 0) * 55ms);
}
.js .is-split.is-visible .word__inner { transform: none; }

.section-head--center { margin-inline: auto; text-align: center; }

/* Nastro degli sponsor (home) */
.sponsors { overflow: hidden; background: var(--c-white); padding-block: var(--s-5) var(--s-6); border-bottom: 1px solid var(--c-line); }
.sponsors__title {
  margin: 0 0 var(--s-5); text-align: center;
  font-family: var(--f-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: var(--c-red);
}
.sponsors__track {
  display: flex; width: max-content; animation: marquee 40s linear infinite;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.sponsors__group { display: flex; align-items: center; flex-shrink: 0; gap: var(--s-8); padding-right: var(--s-8); }
.sponsors__item { display: flex; align-items: center; justify-content: center; flex: none; height: 5.5rem; }
.sponsors__item img { display: block; width: auto; height: auto; max-width: 12rem; max-height: 5.5rem; } /* misure fisse: il logo resta sempre intero */

/* ---------- 14. VALORI & PERCORSO DI CRESCITA ---------- */
.values { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value {
  position: relative; isolation: isolate;
  padding: var(--s-5); border-radius: var(--radius-lg); background: var(--c-white);
  box-shadow: 0 1px 0 var(--c-line), 0 20px 40px -30px rgba(17,17,17,.3);
  transition: translate 500ms var(--ease), box-shadow 500ms var(--ease);
}
.value:hover { box-shadow: 0 30px 50px -30px rgba(178,58,43,.5); }
.value__icon {
  width: 3.25rem; height: 3.25rem; border-radius: 16px; margin-bottom: var(--s-4);
  display: grid; place-items: center; color: var(--c-white);
  background: linear-gradient(135deg, var(--c-red-light), var(--c-red) 45%, var(--c-red-dark));
  box-shadow: 0 12px 24px -10px rgba(178,58,43,.7);
  transition: transform 600ms var(--ease);
}
.value:hover .value__icon { transform: rotate(-8deg) scale(1.08); }
.value__icon svg { width: 1.6rem; height: 1.6rem; }
.value h3 { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-black); margin-bottom: var(--s-2); }
.value p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* Timeline: la linea si "riempie" di rosso mentre si scorre */
.timeline { position: relative; margin-top: var(--s-9); }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 1.1rem; width: 2px; background: rgba(17,17,17,.1); border-radius: 2px; }
.timeline__fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: top; transform: scaleY(0);
  background: linear-gradient(var(--c-red-light), var(--c-red));
  box-shadow: 0 0 14px rgba(178,58,43,.5);
}
.timeline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.step { position: relative; padding-left: 3.25rem; }
.step__dot {
  position: absolute; left: calc(1.1rem + 1px); top: 2rem; z-index: 1;
  width: 1.2rem; height: 1.2rem; border-radius: 50%; translate: -50% 0;
  background: var(--c-cream); border: 3px solid rgba(17,17,17,.18);
  transition: border-color 600ms var(--ease), background-color 600ms var(--ease), box-shadow 600ms var(--ease);
}
.step.is-visible .step__dot { border-color: var(--c-red); background: var(--c-white); box-shadow: 0 0 0 7px rgba(178,58,43,.15); }
.step__card {
  position: relative; overflow: hidden;
  padding: var(--s-5) var(--s-5) var(--s-5); border-radius: var(--radius-lg); background: var(--c-white);
  box-shadow: 0 1px 0 var(--c-line), 0 24px 44px -30px rgba(17,17,17,.35);
  transition: translate 500ms var(--ease), box-shadow 500ms var(--ease);
}
.step__card:hover { box-shadow: 0 30px 50px -28px rgba(178,58,43,.45); }
.step__card::before { /* numero gigante in filigrana */
  content: attr(data-num); position: absolute; right: var(--s-4); top: -.12em;
  font-family: var(--f-display); font-size: 7rem; line-height: 1; color: rgba(178,58,43,.08); pointer-events: none;
}
.step__age { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-red); }
.step__title { font-family: var(--f-display); font-size: 2.3rem; color: var(--c-black); margin: var(--s-1) 0 var(--s-1); }
.step__lead { font-weight: 700; color: var(--c-black); margin-bottom: var(--s-2); }
.step__text { color: var(--c-muted); margin-bottom: var(--s-4); }
.step__value {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem; border-radius: 999px;
  background: rgba(178,58,43,.1); color: var(--c-red-dark); font-size: .78rem; font-weight: 700;
}
.step__value::before { content: "★"; font-size: .7rem; }

.journey__cta { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); margin-top: var(--s-8); text-align: center; }
.journey__cta p { margin: 0; max-width: 40rem; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; color: var(--c-black); }

/* ---------- 15. MAX TONETTO ---------- */
.feature { background: var(--c-black); color: rgba(255,255,255,.85); overflow: hidden; isolation: isolate; }
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 20% 40%, rgba(178,58,43,.35), transparent 50%), radial-gradient(circle at 90% 90%, rgba(142,43,32,.25), transparent 40%);
}
.feature__bgtext {
  position: absolute; top: 50%; left: 0; margin-top: -.5em; z-index: 0; pointer-events: none;
  font-family: var(--f-display); font-size: clamp(8rem, 24vw, 22rem); line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); text-transform: uppercase;
}
.feature__bgtext span { display: inline-block; will-change: transform; }
.feature__grid { position: relative; z-index: 1; display: grid; gap: var(--s-8); align-items: center; }
.feature strong { color: var(--c-white); }
.feature .section-title em { color: var(--c-red-light); }

.feature__visual { perspective: 1200px; }

/* Figurina stile FIFA (forma a scudo, bordo oro) */
.fut {
  --gold: #E9C46A; --gold-light: #F7E3A3;
  position: relative; width: 100%; max-width: 23rem; aspect-ratio: 5 / 7; margin-inline: auto;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(178,58,43,.35));
  transition: transform 500ms var(--ease);
}
.fut, .fut__inner { clip-path: polygon(14% 0, 86% 0, 100% 7%, 100% 86%, 50% 100%, 0 86%, 0 7%); }
.fut { background: linear-gradient(160deg, var(--gold-light), var(--gold) 40%, #B8892E 70%, var(--gold-light)); }
.fut__inner {
  position: absolute; inset: 4px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(165deg, #D0503F 0%, var(--c-red) 35%, var(--c-red-dark) 70%, #2A0B08 100%);
}
.fut__inner::before { /* bande diagonali come nel logo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.05) 40px 80px);
}
.fut__inner::after { /* riflesso che attraversa la card */
  content: ""; position: absolute; inset: -50% -100%; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.25) 50%, transparent 58%);
  animation: shine 6s var(--ease) infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-40%); } 100% { transform: translateX(40%); } }

.fut__meta {
  position: absolute; top: 12%; left: 9%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  color: var(--gold-light); text-align: center;
}
.fut__pos { font-family: var(--f-display); font-size: 1.25rem; line-height: 1; letter-spacing: .08em; }
.fut__flag { display: flex; width: 2.1rem; height: 1.4rem; margin-top: .3rem; border-radius: 2px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.fut__flag i { flex: 1; }
.fut__flag i:nth-child(1) { background: #009246; }
.fut__flag i:nth-child(2) { background: #fff; }
.fut__flag i:nth-child(3) { background: #CE2B37; }
.fut__club { width: 2.4rem; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

.fut__photo {
  position: absolute; top: 7%; left: 26%; right: 4%; height: 54%; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  /* foto scontornata: sfuma solo in basso, sopra il nome */
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.fut__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }

.fut__name {
  position: absolute; left: 8%; right: 8%; top: 61%; z-index: 2;
  padding-bottom: .4rem; border-bottom: 1px solid rgba(233,196,106,.45);
  font-family: var(--f-display); font-size: 2.6rem; line-height: 1; letter-spacing: .06em; text-align: center; text-transform: uppercase;
  color: var(--c-white); text-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.fut__stats {
  position: absolute; left: 10%; right: 10%; top: 74%; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; text-align: center;
  font-family: var(--f-display); font-size: 1.35rem; line-height: 1; color: var(--c-white);
}
.fut__stats small { display: block; margin-bottom: .2rem; font-family: var(--f-body); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.feature__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 var(--s-6); }
.feature__chips li {
  padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--c-white);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04);
}
.feature__chips li:first-child { background: var(--c-red); border-color: var(--c-red); }

/* ---------- 16. WHATSAPP FLOTTANTE ---------- */
.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #1E8E4E; color: var(--c-white);
  box-shadow: 0 16px 30px -10px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(150%) scale(.6); pointer-events: none;
  transition: transform 600ms var(--ease), opacity 400ms var(--ease), background-color 300ms;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #146B3A; }
.fab svg { width: 1.8rem; height: 1.8rem; }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #1E8E4E; animation: fab-ring 2.4s var(--ease) infinite;
}
@keyframes fab-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- 17. PAGINE ---------- */
/* Transizione a tendina tra le pagine.
   - prima visita: preloader col logo, la tendina resta nascosta sotto lo schermo
   - pagine successive (.no-preloader): la tendina copre la pagina e si alza quando è pronta
   - click su un link interno: JS la fa risalire dal basso prima di cambiare pagina */
.curtain {
  position: fixed; inset: 0; z-index: 1900; pointer-events: none;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--c-red) 0%, var(--c-red-dark) 55%, var(--c-black) 100%);
  transform: translateY(101%);
}
.curtain img { width: 5rem; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.4)); }
.no-preloader .preloader { display: none; }
.no-preloader .curtain { transform: none; }
.no-preloader body.is-ready .curtain { transform: translateY(-101%); transition: transform 900ms var(--ease); }
.curtain-failsafe .curtain { display: none; } /* se il JS non parte, la pagina non resta coperta */

/* Hero delle pagine interne */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center; /* occupa tutta la prima schermata */
  padding-block: calc(var(--nav-h) + var(--s-7)) var(--s-8);
  color: var(--c-white);
  background: radial-gradient(ellipse at 85% 15%, #3B140F 0%, var(--c-black) 60%);
}
.page-hero .grain { z-index: 0; }
.page-hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 60vmax; height: 60vmax; left: -20vmax; bottom: -10vmax; /* il bagliore sfuma prima del bordo: niente stacco netto */
  background: radial-gradient(circle, rgba(178,58,43,.4), transparent 60%);
  animation: glow-float 16s ease-in-out infinite alternate;
}
.page-hero__bgtext {
  position: absolute; left: 0; bottom: -.12em; z-index: 0; pointer-events: none;
  font-family: var(--f-display); font-size: clamp(7rem, 22vw, 20rem); line-height: 1; white-space: nowrap; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
}
.page-hero__bgtext span { display: inline-block; will-change: transform; }
.page-hero__grid { position: relative; z-index: 1; display: grid; gap: var(--s-8); align-items: center; width: 100%; }
.page-hero__title { font-size: clamp(3rem, min(11vw, 13vh), 7rem); margin-top: var(--s-4); }
.page-hero .hero__subtitle { margin-bottom: 0; }
/* Variante centrata, senza foto (pagina Staff) */
.page-hero--center .page-hero__grid { grid-template-columns: 1fr; text-align: center; }
.page-hero--center .page-hero__content { max-width: 52rem; margin-inline: auto; }
.page-hero--center .breadcrumb { justify-content: center; }
.page-hero--center .hero__subtitle { margin-inline: auto; }

.breadcrumb { display: flex; align-items: center; gap: var(--s-2); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; transition: color 300ms; }
.breadcrumb a:hover { color: var(--c-red-light); }
.breadcrumb span[aria-hidden] { color: var(--c-red-light); }

/* Foto incorniciate: si scoprono dal basso dopo il caricamento */
.page-hero__media { position: relative; width: 100%; max-width: 32rem; aspect-ratio: 5 / 4; justify-self: center; margin-bottom: var(--s-6); }
.page-hero__frame {
  position: absolute; inset: 0 0 0 10%; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08);
}
.page-hero__frame img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.8s var(--ease); }
.page-hero__frame--small {
  inset: auto auto -14% 0; width: 42%; aspect-ratio: 1;
  border: 5px solid var(--c-black); border-radius: var(--radius);
}
/* Foto scontornata (staff): su fondo rosso con bande come nel logo */
.page-hero__media--cutout .page-hero__frame {
  background:
    repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.05) 40px 80px),
    linear-gradient(160deg, #D0503F, var(--c-red) 40%, var(--c-red-dark) 75%, #2A0B08);
}
.page-hero__media--cutout img { object-fit: contain; object-position: bottom center; filter: drop-shadow(0 16px 26px rgba(0,0,0,.45)); }

.js .page-hero__frame { clip-path: inset(100% 0 0 0 round var(--radius-lg)); transition: clip-path 1.3s var(--ease) 300ms; }
.js .page-hero__frame--small { transition-delay: 600ms; }
.js .page-hero__frame img { scale: 1.2; }
.js body.is-ready .page-hero__frame { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js body.is-ready .page-hero__frame img { scale: 1; }

/* Home: manifesto */
.statement { text-align: center; }
.statement .container { max-width: 62rem; }
.statement__text { font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1.02; }
.statement .section-lead { max-width: 40rem; margin-inline: auto; }

/* Home: card per esplorare le pagine */
.explore__grid { display: grid; gap: var(--s-4); }
.explore-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 20rem; padding: var(--s-5); border-radius: var(--radius-lg);
  color: var(--c-white); text-decoration: none; background: var(--c-black);
  box-shadow: 0 30px 60px -35px rgba(17,17,17,.6);
}
.explore-card > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.explore-card::after { /* velo scuro che diventa rosso al passaggio */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(17,17,17,.92) 0%, rgba(17,17,17,.35) 55%, rgba(17,17,17,.1) 100%);
  transition: background-color 600ms var(--ease);
}
.explore-card:hover::after { background-color: rgba(178,58,43,.35); }
.explore-card:hover > img { transform: scale(1.08); }
.explore-card--cutout { background: linear-gradient(160deg, #D0503F, var(--c-red) 40%, var(--c-red-dark) 75%, #2A0B08); }
.explore-card--cutout > img { inset: auto 0 0 auto; width: 62%; height: 96%; object-fit: contain; object-position: center bottom; transform-origin: bottom center; } /* figura intera, ancorata in basso a destra */
.explore-card__num { position: absolute; top: var(--s-5); left: var(--s-5); font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .12em; color: var(--c-red-light); }
.explore-card__arrow {
  position: absolute; top: var(--s-4); right: var(--s-4);
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: rotate(-45deg);
  transition: transform 600ms var(--ease), background-color 400ms var(--ease);
}
.explore-card__arrow .arrow { width: 1.2rem; height: 1.2rem; }
.explore-card:hover .explore-card__arrow { transform: rotate(0deg); background: var(--c-red); border-color: var(--c-red); }
.explore-card__body { display: flex; flex-direction: column; gap: var(--s-1); max-width: 22rem; }
.explore-card__title { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.explore-card__text { font-size: .95rem; color: rgba(255,255,255,.85); }

/* Link "Pagina successiva" in fondo alle pagine interne */
.next-page { background: var(--c-cream); padding-block: var(--s-8); }
.next-page__link { display: flex; flex-direction: column; gap: var(--s-2); text-decoration: none; color: var(--c-black); }
.next-page__label { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-red); }
.next-page__title {
  position: relative; display: inline-flex; align-items: center; gap: var(--s-4); align-self: flex-start;
  font-family: var(--f-display); font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: 1;
  transition: color 500ms var(--ease);
}
.next-page__title::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 3px; background: var(--c-red);
  transform: scaleX(0); transform-origin: right; transition: transform 700ms var(--ease);
}
.next-page__title .arrow { width: .6em; height: .6em; }
.next-page__link:hover .next-page__title { color: var(--c-red); }
.next-page__link:hover .next-page__title::after { transform: scaleX(1); transform-origin: left; }
.next-page__link:hover .arrow { transform: translateX(.2em); }

/* Organigramma (pagina Staff) */
.member__avatar {
  flex: none; width: 4.25rem; height: 4.25rem; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.7rem; letter-spacing: .04em; color: var(--c-white);
  background:
    repeating-linear-gradient(115deg, transparent 0 10px, rgba(255,255,255,.08) 10px 20px),
    linear-gradient(135deg, var(--c-red-light), var(--c-red) 45%, var(--c-red-dark));
  box-shadow: 0 10px 20px -10px rgba(178,58,43,.7), 0 0 0 3px var(--c-white), 0 0 0 4px rgba(178,58,43,.25);
  transition: transform 600ms var(--ease);
}
.member__name { font-family: var(--f-display); font-size: 1.8rem; line-height: 1.05; color: var(--c-black); margin: 0 0 var(--s-1); font-weight: 400; }
.member__role { margin: 0; color: var(--c-muted); font-size: .92rem; line-height: 1.4; }

/* Vertice: due card scure affiancate */
.org__top { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.org__lead {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--radius-lg);
  background: var(--c-black); color: var(--c-white);
  box-shadow: 0 30px 50px -30px rgba(17,17,17,.6);
  transition: translate 500ms var(--ease);
}
.org__lead::before { /* bagliore rosso */
  content: ""; position: absolute; inset: auto -20% -60% auto; z-index: -1; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(178,58,43,.55), transparent 65%);
}
.org__lead:hover .member__avatar { transform: rotate(-6deg) scale(1.06); }
.org__lead .member__avatar { box-shadow: 0 10px 20px -10px rgba(0,0,0,.6), 0 0 0 3px var(--c-black), 0 0 0 4px rgba(235,122,105,.5); }
.org__lead .member__name { color: var(--c-white); }
.org__lead .member__role { color: rgba(255,255,255,.75); }
.org__area {
  position: absolute; top: var(--s-4); right: var(--s-5);
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-red-light);
}

/* Le tre sezioni sportive */
.org__depts { display: grid; gap: var(--s-4); }
.dept {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg); background: var(--c-white);
  box-shadow: 0 1px 0 var(--c-line), 0 24px 44px -30px rgba(17,17,17,.35);
  transition: translate 500ms var(--ease), box-shadow 500ms var(--ease);
}
.dept:hover { box-shadow: 0 34px 60px -30px rgba(178,58,43,.45); }
.dept__head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s-5); color: var(--c-white);
  background:
    repeating-linear-gradient(115deg, transparent 0 34px, rgba(255,255,255,.05) 34px 68px),
    linear-gradient(150deg, #C9473A, var(--c-red) 45%, var(--c-red-dark));
}
.dept__icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--s-4);
  border-radius: 14px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  transition: transform 600ms var(--ease);
}
.dept__icon svg { width: 1.5rem; height: 1.5rem; }
.dept:hover .dept__icon { transform: rotate(-8deg) scale(1.08); }
.dept__num {
  position: absolute; right: var(--s-4); top: -.1em; z-index: -1;
  font-family: var(--f-display); font-size: 7rem; line-height: 1; color: rgba(255,255,255,.12);
}
.dept__title { font-family: var(--f-display); font-size: 2.3rem; line-height: 1; margin-bottom: var(--s-2); }
.dept__lead { margin: 0; font-size: .92rem; color: rgba(255,255,255,.88); }

.dept__people { display: grid; gap: var(--s-3); padding: var(--s-5) var(--s-5) 0; }
.person { display: flex; align-items: center; gap: var(--s-3); }
.person__avatar { width: 3rem; height: 3rem; font-size: 1.2rem; }
.person__info { display: flex; flex-direction: column; line-height: 1.3; }
.person__name { font-size: 1rem; color: var(--c-black); }
.person__role { font-size: .85rem; color: var(--c-muted); }

.dept__teams { padding: var(--s-5); margin-top: auto; }
.dept__label { display: block; margin-bottom: var(--s-2); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-red); }
.dept__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.dept__chips li {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: .35rem .8rem; border-radius: 12px; background: var(--c-cream);
  font-size: .82rem; font-weight: 600; color: var(--c-red-dark); line-height: 1.25;
}
.dept__chips li.has-coach { background: rgba(178,58,43,.1); }
.dept__chips small { font-size: .7rem; font-weight: 500; color: var(--c-muted); }
.dept__note {
  margin: 0 var(--s-5) var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--c-line);
  font-size: .82rem; color: var(--c-muted);
}

@media (min-width: 768px) { .org__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .org__depts { grid-template-columns: repeat(3, 1fr); } }

/* Pagina Partner */
.page-hero__actions { margin-top: var(--s-6); }
/* Griglia con linee sottili: le righe incomplete restano centrate */
.partners__grid { display: flex; flex-wrap: wrap; justify-content: center; padding: 1px 0 0 1px; }
.partners__item {
  display: flex; align-items: center; justify-content: center; height: 9rem; padding: var(--s-4); min-width: 0;
  flex: 0 0 50%; border: 1px solid var(--c-line); margin: -1px 0 0 -1px;
  transition: background-color 500ms var(--ease);
}
.partners__item:hover { background: var(--c-cream); }
.partners__item img { display: block; width: auto; height: auto; max-width: min(11rem, 100%); max-height: 5.5rem; transition: transform 600ms var(--ease); }
.partners__item:hover img { transform: scale(1.06); }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); counter-reset: none; }
.how__step { position: relative; padding-top: var(--s-5); border-top: 2px solid var(--c-line); }
.how__step::before { /* barra rossa che si allunga quando il passo compare */
  content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--c-red);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s;
}
.how__step.is-visible::before { transform: scaleX(1); }
.how__num { display: block; font-family: var(--f-display); font-size: 4rem; line-height: 1; color: var(--c-red); margin-bottom: var(--s-2); }
.how__title { font-family: var(--f-display); font-size: 2rem; color: var(--c-black); margin-bottom: var(--s-2); }
.how__step p { color: var(--c-muted); margin: 0; }

.partner-cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem); color: rgba(255,255,255,.85);
  background: radial-gradient(ellipse at 50% 120%, #4A1712 0%, var(--c-black) 65%);
}
.partner-cta .grain { z-index: 0; }
.partner-cta__glow {
  position: absolute; z-index: 0; left: 50%; top: 50%; width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax;
  background: radial-gradient(circle, rgba(178,58,43,.35), transparent 60%);
  animation: glow-float 16s ease-in-out infinite alternate; pointer-events: none;
}
.partner-cta__inner { position: relative; z-index: 1; max-width: 52rem; }
.partner-cta__text { font-size: 1.1rem; margin: 0 auto var(--s-7); max-width: 38rem; }
.partner-cta__mail {
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-6) var(--s-4) var(--s-4); border-radius: 999px;
  background: var(--c-red); color: var(--c-white); text-decoration: none;
  box-shadow: 0 24px 50px -20px rgba(178,58,43,.8);
  transition: background-color 500ms var(--ease), box-shadow 500ms var(--ease);
}
.partner-cta__mail:hover { background: var(--c-red-dark); box-shadow: 0 30px 60px -20px rgba(178,58,43,.9); }
.partner-cta__mail-icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.16);
}
.partner-cta__mail-icon svg { width: 1.5rem; height: 1.5rem; }
.partner-cta__mail-text { display: flex; flex-direction: column; text-align: left; font-family: var(--f-display); font-size: clamp(1.5rem, 4.5vw, 2.4rem); line-height: 1; letter-spacing: .02em; word-break: break-all; }
.partner-cta__mail-text small { font-family: var(--f-body); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: .3rem; word-break: normal; }
.partner-cta__mail .arrow { width: 1.4rem; height: 1.4rem; flex: none; }

@media (min-width: 768px) {
  .partners__item { flex-basis: 33.333%; }
  .how { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .partners__item { flex-basis: 25%; }
}

/* Interviste (pagina Staff) */
.interviews { overflow: hidden; isolation: isolate; color: rgba(255,255,255,.85); background: var(--c-black); }
.interviews .grain { z-index: -1; }
.interviews__glow {
  position: absolute; z-index: -1; right: -20vmax; top: -20vmax; width: 60vmax; height: 60vmax; pointer-events: none;
  background: radial-gradient(circle, rgba(178,58,43,.35), transparent 60%);
  animation: glow-float 16s ease-in-out infinite alternate;
}
.interviews__head { display: grid; gap: var(--s-4); align-items: end; margin-bottom: var(--s-7); }
.interviews__lead { margin: 0; max-width: 30rem; font-size: 1.05rem; color: rgba(255,255,255,.75); }
.interviews .section-title em { color: var(--c-red-light); }

/* Mobile: carosello orizzontale con aggancio */
.interviews__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(68vw, 17rem); gap: var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: var(--s-2) var(--gutter) var(--s-4);
}
.interviews__list::-webkit-scrollbar { display: none; }
.interviews__list > li { scroll-snap-align: start; }
.interviews__hint { margin: var(--s-2) 0 0; font-size: .8rem; color: rgba(255,255,255,.5); }

.reel {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); background: #222; color: var(--c-white); text-align: left;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
}
.reel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reel__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(17,17,17,.95) 0%, rgba(17,17,17,.4) 40%, rgba(17,17,17,0) 65%);
  transition: background-color 500ms var(--ease);
}
.reel:hover img, .reel:focus-visible img { transform: scale(1.06); }
.reel:hover .reel__shade, .reel:focus-visible .reel__shade { background-color: rgba(178,58,43,.25); }
.reel__duration {
  position: absolute; top: var(--s-3); right: var(--s-3);
  padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  background: rgba(17,17,17,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.reel__play {
  position: absolute; left: 50%; top: 45%; translate: -50% -50%;
  display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease), scale 500ms var(--ease);
}
.reel__play::before { /* onda che pulsa attorno al tasto play */
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  animation: fab-ring 2.6s var(--ease) infinite;
}
.reel__play svg { width: 1.5rem; height: 1.5rem; margin-left: .2rem; }
.reel:hover .reel__play, .reel:focus-visible .reel__play { background: var(--c-red); border-color: var(--c-red); scale: 1.1; }
.reel__info { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); display: flex; flex-direction: column; gap: .2rem; }
.reel__role { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red-light); }
.reel__name { font-family: var(--f-display); font-size: 1.9rem; line-height: 1; letter-spacing: .02em; }

/* Player a schermo intero */
.vmodal {
  position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: var(--s-4);
  background: rgba(10,10,10,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 400ms var(--ease);
}
.vmodal[hidden] { display: none; }
.vmodal.is-open { opacity: 1; }
.vmodal__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); transform: scale(.94); transition: transform 600ms var(--ease); }
.vmodal.is-open .vmodal__stage { transform: none; }
.vmodal__video {
  display: block; height: min(80vh, 160vw); width: auto; max-width: 92vw; aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg); background: #000; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
}
.vmodal__caption { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--c-white); }
.vmodal__role { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-red-light); }
.vmodal__name { font-family: var(--f-display); font-size: 1.8rem; font-weight: 400; line-height: 1.1; }
.vmodal__close, .vmodal__nav {
  position: absolute; z-index: 1; border: 0; border-radius: 50%;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: var(--c-white); transition: background-color 300ms;
}
.vmodal__close:hover, .vmodal__nav:hover { background: var(--c-red); }
.vmodal__close { top: var(--s-4); right: var(--s-4); font-size: 2rem; line-height: 1; }
.vmodal__nav { top: 50%; translate: 0 -50%; }
.vmodal__nav svg { width: 24px; height: 24px; }
.vmodal__nav--prev { left: var(--s-3); }
.vmodal__nav--next { right: var(--s-3); }

@media (min-width: 768px) {
  .interviews__head { grid-template-columns: 1fr auto; }
}
@media (min-width: 1024px) {
  /* Desktop: le 5 interviste affiancate */
  .interviews__list { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding: 0; }
  .interviews__hint { display: none; }
  .vmodal__nav--prev { left: var(--s-6); }
  .vmodal__nav--next { right: var(--s-6); }
}

/* Pagina Premiazioni */
.trophy-feature { overflow: hidden; isolation: isolate; color: rgba(255,255,255,.85); background: radial-gradient(ellipse at 50% 0%, #4A1712 0%, var(--c-black) 60%); }
.trophy-feature .grain { z-index: -1; }
.trophy-feature__glow {
  position: absolute; z-index: -1; left: 50%; top: -25vmax; width: 70vmax; height: 70vmax; margin-left: -35vmax; pointer-events: none;
  background: radial-gradient(circle, rgba(233,196,106,.22), rgba(178,58,43,.18) 40%, transparent 65%);
  animation: glow-float 16s ease-in-out infinite alternate;
}
.trophy-feature__head { text-align: center; margin-bottom: var(--s-7); }
.trophy-feature__head .section-title em { color: #E9C46A; }
.trophy-feature__icon {
  display: grid; place-items: center; width: 5rem; height: 5rem; margin: 0 auto var(--s-5); border-radius: 50%;
  color: #2A1A05; background: radial-gradient(circle at 30% 30%, #F7E3A3, #E9C46A 55%, #B8892E);
  box-shadow: 0 0 0 8px rgba(233,196,106,.12), 0 20px 50px -10px rgba(233,196,106,.5);
}
.trophy-feature__icon svg { width: 2.4rem; height: 2.4rem; }

/* Tabellone del risultato */
.scoreboard {
  max-width: 46rem; margin: 0 auto var(--s-7); padding: var(--s-6) var(--s-5); text-align: center;
  border-radius: var(--radius-lg); border: 1px solid rgba(233,196,106,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
}
.scoreboard__label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E9C46A; }
.scoreboard__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); margin: var(--s-5) 0; }
.scoreboard__team { font-family: var(--f-display); font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1; color: var(--c-white); text-align: left; }
.scoreboard__team--home { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start; gap: var(--s-3); text-align: right; }
.scoreboard__team--home img { width: 2.8rem; height: auto; }
.scoreboard__score { display: flex; align-items: center; gap: var(--s-3); font-family: var(--f-display); font-size: clamp(3.4rem, 10vw, 5.5rem); line-height: 1; color: var(--c-white); }
.scoreboard__score i { font-style: normal; color: var(--c-red-light); }
.scoreboard__goals { display: block; font-size: .92rem; color: rgba(255,255,255,.75); }

.trophy-feature__facts { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.trophy-feature__facts li { padding: var(--s-4) var(--s-5); border-left: 2px solid #E9C46A; }
.trophy-feature__facts strong { display: block; font-family: var(--f-display); font-size: 1.7rem; font-weight: 400; line-height: 1.1; color: var(--c-white); }
.trophy-feature__facts span { font-size: .92rem; }

/* Albo d'oro */
.honours__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.honour {
  position: relative; overflow: hidden; isolation: isolate;
  padding: var(--s-6) var(--s-5) var(--s-5); border-radius: var(--radius-lg); background: var(--c-white);
  box-shadow: 0 1px 0 var(--c-line), 0 24px 44px -30px rgba(17,17,17,.35);
}
.honour__icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: var(--s-4); border-radius: 16px; color: var(--c-white);
  background: linear-gradient(135deg, var(--c-red-light), var(--c-red) 45%, var(--c-red-dark));
  box-shadow: 0 12px 24px -10px rgba(178,58,43,.7);
}
.honour__icon svg { width: 1.6rem; height: 1.6rem; }
.honour__season { position: absolute; top: var(--s-5); right: var(--s-5); font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--c-red); }
.honour__title { font-family: var(--f-display); font-size: 2rem; line-height: 1.05; color: var(--c-black); margin-bottom: var(--s-1); }
.honour__team { display: inline-block; margin-bottom: var(--s-3); padding: .2rem .7rem; border-radius: 999px; background: rgba(178,58,43,.1); color: var(--c-red-dark); font-size: .76rem; font-weight: 700; }
.honour__text { margin: 0; color: var(--c-muted); font-size: .95rem; }
/* Il trofeo più importante: card scura con dettagli oro */
.honour.is-gold { background: linear-gradient(160deg, #2A1A12, var(--c-black)); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(233,196,106,.35); }
.honour.is-gold .honour__icon { color: #2A1A05; background: radial-gradient(circle at 30% 30%, #F7E3A3, #E9C46A 55%, #B8892E); box-shadow: 0 12px 24px -10px rgba(233,196,106,.6); }
.honour.is-gold .honour__season { color: #E9C46A; }
.honour.is-gold .honour__title { color: var(--c-white); }
.honour.is-gold .honour__team { background: rgba(233,196,106,.15); color: #F7E3A3; }
.honour.is-gold .honour__text { color: rgba(255,255,255,.75); }

/* Partite da ricordare */
.matches__list { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: grid; gap: var(--s-3); }
.match {
  display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--radius-lg);
  border: 1px solid var(--c-line); background: var(--c-white);
  transition: border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.match:hover { border-color: rgba(178,58,43,.4); box-shadow: 0 20px 40px -30px rgba(178,58,43,.5); }
.match__meta { display: flex; flex-direction: column; gap: .15rem; }
.match__date { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-red); }
.match__comp { font-weight: 600; color: var(--c-black); }
.match__result { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-3); }
.match__team { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.05; color: var(--c-black); }
.match__team--home { text-align: right; color: var(--c-red); }
.match__score {
  display: flex; align-items: center; gap: .35rem; padding: .3rem .9rem; border-radius: 10px;
  background: var(--c-black); color: var(--c-white); font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1;
}
.match__score i { font-style: normal; color: var(--c-red-light); }
.match__note { margin: 0; font-size: .88rem; color: var(--c-muted); }

.milestones__title { font-family: var(--f-display); font-size: 2rem; color: var(--c-black); margin-bottom: var(--s-4); }
.milestones { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5); } /* righe incomplete centrate */
.milestone { flex: 0 0 100%; display: grid; align-content: start; gap: .2rem; padding: var(--s-4) 0 var(--s-4) var(--s-5); border-left: 3px solid var(--c-red); }
.milestone__season { font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--c-red); }
.milestone strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; line-height: 1.1; color: var(--c-black); }
.milestone > span:last-child { color: var(--c-muted); font-size: .93rem; }

@media (min-width: 768px) {
  .trophy-feature__facts { grid-template-columns: repeat(3, 1fr); }
  .honours__list { grid-template-columns: repeat(2, 1fr); }
  .milestone { flex-basis: calc(50% - var(--s-5)); }
}
@media (min-width: 1024px) {
  .honours__list { grid-template-columns: repeat(4, 1fr); }
  .match { grid-template-columns: 1.1fr 1.3fr 1fr; align-items: center; gap: var(--s-5); }
  .match__note { text-align: right; }
  .milestone { flex-basis: calc(33.333% - var(--s-5)); }
}

/* Pagine legali (privacy e cookie) */
.page-hero--short { min-height: 0; padding-block: calc(var(--nav-h) + var(--s-8)) var(--s-8); }
.legal__body { max-width: 50rem; margin-inline: auto; color: var(--c-text); line-height: 1.7; }
.legal__body h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: .02em; color: var(--c-black); margin: var(--s-7) 0 var(--s-3); line-height: 1; }
.legal__body h2::first-letter { color: var(--c-red); }
.legal__body h3 { font-size: 1.05rem; margin: var(--s-5) 0 var(--s-2); }
.legal__body p, .legal__body ul { margin-bottom: var(--s-4); }
.legal__body ul { padding-left: 1.2rem; list-style: disc; }
.legal__body li { margin-bottom: var(--s-2); }
.legal__body li::marker { color: var(--c-red); }
.legal__body a { color: var(--c-red); text-underline-offset: 3px; }
.legal__updated { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-red); background: rgba(178,58,43,.08); padding: .4rem .8rem; border-radius: 99px; }
.legal__table-wrap { overflow-x: auto; margin-bottom: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--radius); }
.legal__table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 34rem; }
.legal__table th, .legal__table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.legal__table th { background: var(--c-black); color: var(--c-white); font-weight: 600; }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code { white-space: nowrap; font-size: .85em; background: var(--c-cream); padding: .1rem .4rem; border-radius: 4px; }

/* ---------- 18. REVEAL ALLO SCROLL ---------- */
/* La classe .js viene aggiunta da main.js: senza JS tutto resta visibile */
.js .reveal {
  opacity: 0; transform: translate3d(0, 40px, 0);
  transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal--right { transform: translate3d(40px, 0, 0); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Variante "a tendina" per le immagini: la foto si scopre dal basso con un leggero zoom.
   Il clip-path sta sull'immagine e non sul contenitore: un elemento completamente
   tagliato non verrebbe mai rilevato dall'IntersectionObserver */
.js .reveal--clip { opacity: 1; transform: none; }
.js .reveal--clip img {
  clip-path: inset(100% 0 0 0); scale: 1.15;
  transition: clip-path 1.2s var(--ease), scale 1.6s var(--ease), transform 900ms var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s;
}
.js .reveal--clip.is-visible img { clip-path: inset(0 0 0 0); scale: 1; }
/* Solo dissolvenza, senza movimento */
.js .reveal--fade { transform: none; }
/* Le card con tilt gestiscono transform via JS dopo il reveal */
.js .card.reveal.is-visible { transition: opacity var(--dur) var(--ease), transform 500ms var(--ease), box-shadow 500ms var(--ease); }

/* ---------- 19. MEDIA QUERY (mobile-first) ---------- */
@media (min-width: 600px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .programs__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .programs__grid .card:last-child { grid-column: 1 / -1; } /* 3 card su 2 colonne: l'ultima a tutta larghezza */
}
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .explore__grid { grid-template-columns: repeat(2, 1fr); }
  .explore__grid .explore-card:last-child { grid-column: 1 / -1; }
}

/* Timeline a zig-zag con la linea al centro */
@media (min-width: 900px) {
  .timeline__line { left: 50%; translate: -50% 0; }
  .timeline__list { gap: 0; }
  .step { width: 50%; padding-left: 0; padding-right: 3.5rem; }
  .step + .step { margin-top: -3rem; }
  .step:nth-child(even) { margin-left: 50%; padding-left: 3.5rem; padding-right: 0; }
  .step:nth-child(odd) .step__dot { left: 100%; }
  .step:nth-child(even) .step__dot { left: 0; }
}

/* Desktop: navbar orizzontale */
@media (min-width: 1024px) {
  :root { --nav-h: 5.25rem; }
  /* Scala 80% su desktop: tutte le misure sono in rem, quindi testi, spazi,
     container e navbar si riducono insieme (come lo zoom all'80% del browser) */
  html { font-size: 80%; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; flex-direction: row; align-items: center; gap: var(--s-6);
    padding: 0; background: none; clip-path: none; visibility: visible;
  }
  .nav__list { flex-direction: row; gap: var(--s-5); }
  .nav__link {
    position: relative; opacity: 1; transform: none;
    font-family: var(--f-body); font-size: .92rem; font-weight: 500; letter-spacing: .01em; padding: var(--s-2) 0;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--c-red-light); transform: scaleX(0); transform-origin: right;
    transition: transform 500ms var(--ease);
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
  .nav__link.is-active, .nav__link:hover { color: var(--c-white); }
  .nav__cta { align-self: center; }

  .about__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s-9); }
  .about__badge { left: -32px; }
  .programs__grid { grid-template-columns: repeat(3, 1fr); }
  .card { display: flex; flex-direction: column; }
  .card__tags { flex: 1; align-content: flex-start; }
  .contacts__grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .page-hero__grid { grid-template-columns: 1.1fr .9fr; }
  .page-hero__media { justify-self: end; margin-bottom: 0; }
  .explore__grid { grid-template-columns: repeat(6, 1fr); }
  .explore__grid .explore-card { grid-column: span 2; min-height: 24rem; }
  .explore__grid .explore-card:nth-child(-n+2) { grid-column: span 3; min-height: 28rem; }
  .explore__grid .explore-card:last-child { grid-column: span 2; }
  .feature__grid { grid-template-columns: .85fr 1.15fr; gap: var(--s-9); }
}

/* Laptop (1024–1279px): navbar più compatta */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__menu { gap: var(--s-4); }
  .nav__list { gap: var(--s-4); }
  .nav__link { font-size: .88rem; }
  .nav__brand-text { font-size: 1.3rem; }
}

@media (min-width: 1600px) {
  :root { --container: 87.5rem; }
}

/* ---------- 20. PREFERS-REDUCED-MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal--right { opacity: 1; transform: none; }
  .hero__media, .feature__bgtext span { transform: none !important; }
  .marquee__track, .sponsors__track, .grain, .hero__glow, .page-hero__glow, .partner-cta__glow, .trophy-feature__glow, .interviews__glow, .reel__play::before, .fut__inner::after, .fab::before { animation: none !important; }
  .js .page-hero__frame { clip-path: none; }
  .js .page-hero__frame img { scale: 1; }
  .page-hero__bgtext span { transform: none !important; }
  .js .is-split .word__inner { transform: none; }
  .js .reveal--clip img { clip-path: none; scale: 1; }
  .preloader__logo { animation: none; }
}
