/* ASD VBF Casavatore 2016 — sito 2026
   Blu notte · oro · bianco. Nessuna libreria esterna. */

:root {
  --bg: #050B1C;
  --bg-2: #08122B;
  --bg-3: #0C1A3D;
  --navy: #0A285B;
  --navy-2: #13306B;
  --gold: #D6AE6B;
  --gold-2: #EBCB8F;
  --gold-d: #AC915B;
  --ink: #F4F6FB;
  --mute: #AEB9D1;
  --dim: #7783A0;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(214, 174, 107, .3);
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --r: 20px;
  --maxw: 1240px;
  --bar: 76px;
  --tb: 38px;
  --sub: 0px;
  --head: calc(var(--bar) + var(--tb) + var(--sub));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --f-d: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-b: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-m: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-b);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; color-scheme: dark;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-d); font-weight: 650; line-height: 1.08; letter-spacing: -.028em; color: #fff; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.7rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--bg); }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- elementi di base ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 .75rem/1 var(--f-m);
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--mute); line-height: 1.6; max-width: 62ch; }
.mono { font-family: var(--f-m); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.gold { color: var(--gold); }
.grad { background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.sec--alt { background: var(--bg-2); }
.sec--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.sec > .wrap { position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { color: var(--mute); font-size: 1.1rem; margin-top: 18px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .wrap { width: calc(100% - 36px); } }

/* ---------- pulsanti ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; font: 600 .98rem/1 var(--f-b); cursor: pointer; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-d)); color: #1a1405; box-shadow: 0 12px 34px -12px rgba(214, 174, 107, .75); }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(214, 174, 107, .9); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); background: rgba(214, 174, 107, .08); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.tlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--gold); transition: gap .3s var(--ease), color .2s; }
.tlink svg { width: 16px; height: 16px; }
.tlink:hover { gap: 16px; color: var(--gold-2); }

/* ---------- barra di avanzamento + header ---------- */
.prog { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--gold-d), var(--gold-2)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.site-head {
  position: fixed; inset: var(--tb) 0 auto 0; z-index: 100; height: var(--bar); display: flex; align-items: center;
  transition: background .4s, backdrop-filter .4s, border-color .4s, transform .5s var(--ease); border-bottom: 1px solid transparent; view-transition-name: site-head;
}
.site-head.scrolled { background: rgba(5, 11, 28, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.brand img { height: 42px; width: auto; }
.home .site-head:not(.scrolled) .brand, .home .site-head.logo-hide .brand { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) { position: relative; padding: 10px 11px; font-weight: 500; font-size: .88rem; white-space: nowrap; color: var(--mute); transition: color .25s; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .05); color: #fff; font: 500 .8rem/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  transition: border-color .3s, background .3s;
}
.menu-btn:hover { border-color: var(--gold); background: rgba(214, 174, 107, .1); }
.menu-btn i { position: relative; width: 20px; height: 8px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 7px; }
.menu-open .menu-btn i::before { top: 3px; transform: rotate(45deg); } .menu-open .menu-btn i::after { top: 3px; transform: rotate(-45deg); }
@media (max-width: 1299px) { .nav a:not(.btn) { display: none; } .nav { gap: 10px; } :root { --sub: 46px; } }
@media (min-width: 1300px) { .subnav { display: none; } }
@media (max-width: 520px) { .nav .btn { display: none; } .brand img { height: 36px; } }

/* ---------- menu a tutto schermo ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; display: grid; align-items: center; padding: calc(var(--head) + 24px) 0 40px; overflow-y: auto;
  background: radial-gradient(900px 500px at 85% 10%, rgba(214, 174, 107, .12), transparent 60%), rgba(5, 11, 28, .96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); clip-path: circle(0 at calc(100% - 70px) 38px);
  visibility: hidden; transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 70px) 38px); visibility: visible; transition: clip-path .9s var(--ease), visibility 0s; }
.menu-open { overflow: hidden; }
.menu__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; font: 650 clamp(1.6rem, 3.6vw, 2.9rem)/1.1 var(--f-d); letter-spacing: -.03em; color: #fff; transform: translateY(110%); transition: transform .8s var(--ease), color .25s, padding-left .4s var(--ease); }
.menu-open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: .04s, 0s, 0s; } .menu__list li:nth-child(3) a { transition-delay: .08s, 0s, 0s; } .menu__list li:nth-child(4) a { transition-delay: .12s, 0s, 0s; }
.menu__list li:nth-child(5) a { transition-delay: .16s, 0s, 0s; } .menu__list li:nth-child(6) a { transition-delay: .2s, 0s, 0s; } .menu__list li:nth-child(7) a { transition-delay: .24s, 0s, 0s; }
.menu__list li:nth-child(8) a { transition-delay: .28s, 0s, 0s; } .menu__list li:nth-child(9) a { transition-delay: .32s, 0s, 0s; } .menu__list li:nth-child(10) a { transition-delay: .36s, 0s, 0s; }
.menu__list a span { font: 500 .72rem/1 var(--f-m); letter-spacing: .14em; color: var(--gold); min-width: 2ch; }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--gold-2); padding-left: 14px; }
.menu__cta { display: none; margin-top: 28px; }
@media (max-width: 860px) { .menu__cta { display: inline-flex; } }
.menu__side { display: grid; gap: 28px; color: var(--mute); }
.menu__side img { width: min(300px, 70%); }
.menu__side h2 { font: 500 .72rem/1 var(--f-m); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.menu__side a { color: #fff; } .menu__side a:hover { color: var(--gold-2); }
.menu__side p { margin: 0 0 4px; }
@media (max-width: 860px) { .menu__in { grid-template-columns: 1fr; } .menu__side { display: none; } }

/* ---------- video di sfondo (comune) ---------- */
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; z-index: 0; }
.bg-video.is-on { opacity: 1; }
[data-vwrap] { position: relative; isolation: isolate; overflow: hidden; background-color: var(--bg-3); background-size: cover; background-position: center; background-repeat: no-repeat; }
.shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 11, 28, .55) 0%, rgba(5, 11, 28, .35) 40%, rgba(5, 11, 28, .92) 100%), radial-gradient(900px 500px at 15% 90%, rgba(10, 40, 91, .65), transparent 70%); }
.shade::before { content: ""; position: absolute; inset: 0; background: #0A285B; mix-blend-mode: color; opacity: .8; }
.spot { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(235, 203, 143, .2), rgba(214, 174, 107, .06) 45%, transparent 70%); mix-blend-mode: screen; }
.spot.on { opacity: 1; }

/* ---------- apertura (intro + hero fissa) ---------- */
.intro { position: fixed; inset: 0; z-index: 200; display: none; }
.js .intro { display: block; }
.intro.gone { display: none !important; }
.intro__h { position: absolute; left: 0; right: 0; height: 50.5%; background: radial-gradient(900px 500px at 50% 50%, #0C1A3D, #050B1C); transition: transform 1.1s cubic-bezier(.77, 0, .18, 1); }
.intro__h--t { top: 0; } .intro__h--b { bottom: 0; }
.intro.go .intro__h--t { transform: translateY(-101%); } .intro.go .intro__h--b { transform: translateY(101%); }
.intro__c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; transition: opacity .5s, transform .8s var(--ease); }
.intro.go .intro__c { opacity: 0; transform: scale(1.15); }
.intro__c img { width: 84px; animation: ballspin 1.6s linear infinite; filter: drop-shadow(0 0 24px rgba(214, 174, 107, .5)); }
@keyframes ballspin { to { transform: rotate(360deg); } }
.intro__n { font: 700 clamp(3rem, 9vw, 6rem)/1 var(--f-d); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.intro__bar { width: min(260px, 60vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.intro__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold-2)); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 14px var(--gold); }
.intro__c .mono { margin: 0; letter-spacing: .24em; }
.is-intro { overflow: hidden; }

.hero-wrap { position: relative; height: 250vh; --p: 0; }
.hero { position: sticky; top: 0; height: 100svh; min-height: 600px; display: grid; align-items: center; padding: calc(var(--head) + 16px) 0 150px; text-align: center; overflow: hidden; background-size: cover; background-position: center; }
.hero .bg-video { scale: calc(1.04 + var(--p) * .28); filter: saturate(.95) contrast(1.08) brightness(calc(1.6 - var(--p) * .55)); transition: opacity 1.2s ease; }
.hero .hv { opacity: 0 !important; transition: opacity 1.4s ease; }
.hero .hv.is-active { opacity: 1 !important; }
.hero.kb { animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { background-size: 108%; background-position: 40% 50%; } to { background-size: 122%; background-position: 60% 45%; } }
.hero .shade { z-index: 2; background: linear-gradient(180deg, rgba(5, 11, 28, .55) 0%, rgba(5, 11, 28, .1) 32%, rgba(5, 11, 28, .45) 66%, rgba(5, 11, 28, .97) 100%), radial-gradient(800px 480px at 50% 46%, rgba(5, 11, 28, .5), transparent 72%); }
.hero .shade::before { opacity: .38; }
.hero .spot { z-index: 3; }
.hero__in { position: relative; z-index: 4; display: grid; justify-items: center; gap: 20px; translate: 0 calc(var(--p) * -90px); opacity: calc(1 - var(--p) * 2.6); }
.hero__kicker { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; font: 500 .74rem/1 var(--f-m); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); opacity: 0; transition: opacity 1s .2s; }
.hero__kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero__logo { position: relative; width: clamp(280px, 46vw, 640px); scale: calc(1 + var(--p) * 2.4); opacity: 0; filter: blur(14px); transition: opacity 1.4s var(--ease), filter 1.4s var(--ease), transform 1.4s var(--ease); transform: scale(1.12); will-change: transform; }
.hero__logo img { width: 100%; filter: drop-shadow(0 18px 50px rgba(0, 0, 0, .55)) drop-shadow(0 0 44px rgba(214, 174, 107, .22)); translate: var(--lx, 0px) var(--ly, 0px); transition: translate .5s var(--ease); }
.hero__logo::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; -webkit-mask: url(../img/logo.svg) center / contain no-repeat; mask: url(../img/logo.svg) center / contain no-repeat; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%) -160% 0 / 220% 100% no-repeat; animation: sweep 5.5s 2.4s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { background-position: -160% 0; } 100% { background-position: 160% 0; } }
.hero__title { font-size: clamp(1.9rem, 4.6vw, 4rem); max-width: 18ch; font-weight: 700; line-height: 1.04; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .w > span { display: inline-block; transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: calc(.5s + var(--i) * .08s); }
.hero__sub { max-width: 58ch; margin: 0; color: var(--ink); opacity: 0; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; transition: opacity 1s 1.2s, transform 1s 1.2s var(--ease); transform: translateY(16px); }
.hero .actions { justify-content: center; margin-top: 6px; opacity: 0; transform: translateY(16px); transition: opacity 1s 1.45s, transform 1s 1.45s var(--ease); }
.no-js .hero__logo, .no-js .hero__kicker, .no-js .hero__sub, .no-js .hero .actions { opacity: 1; filter: none; transform: none; }
.hero-in .hero__kicker { opacity: 1; }
.hero-in .hero__logo { opacity: 1; filter: none; transform: none; }
.hero-in .hero__title .w > span { transform: none; }
.hero-in .hero__sub, .hero-in .hero .actions { opacity: 1; transform: none; }
.hero__act2 { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; pointer-events: none; opacity: min(max((var(--p) - .28) * 5, 0), max((1 - var(--p)) * 7, 0), 1); translate: 0 calc((1 - var(--p)) * 30px); }
.hero__act2 span { font: 700 clamp(2.2rem, 7.4vw, 6.6rem)/1 var(--f-d); letter-spacing: -.045em; color: #fff; text-shadow: 0 10px 60px rgba(0, 0, 0, .6); }
.hero__act2 .o { color: transparent; -webkit-text-stroke: 1.5px var(--gold-2); }
.hud { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding-bottom: 26px; opacity: calc(1 - var(--p) * 4); }
.hud__in { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; background: rgba(5, 11, 28, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.hud__it { padding: 18px 22px; text-align: left; border-left: 1px solid var(--line); }
.hud__it:first-child { border-left: 0; }
.hud b { display: block; font: 700 clamp(1.5rem, 2.8vw, 2.3rem)/1 var(--f-d); color: #fff; letter-spacing: -.03em; }
.hud b em { font-style: normal; color: var(--gold); }
.hud__it > span { display: block; margin-top: 8px; font: 500 .68rem/1.35 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.scrollcue { position: absolute; z-index: 4; left: 50%; bottom: 128px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; font: 500 .66rem/1 var(--f-m); letter-spacing: .3em; text-transform: uppercase; color: var(--mute); opacity: calc(1 - var(--p) * 6); }
.scrollcue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.25); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 760px) { .hud__in { grid-template-columns: repeat(2, 1fr); } .hud__it:nth-child(3) { border-left: 0; } .hud__it:nth-child(n+3) { border-top: 1px solid var(--line); } .hud__it { padding: 12px 16px; } .hero { padding-bottom: 200px; } .scrollcue { display: none; } .hero__kicker { font-size: .62rem; letter-spacing: .16em; } }
@media (max-height: 700px) and (min-width: 761px) { .hero { padding-bottom: 130px; } .hero__logo { width: clamp(220px, 30vw, 420px); } .hero__sub { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-wrap { height: auto; } .hero { position: relative; }
  .hero__logo, .hero__kicker, .hero__sub, .hero .actions { opacity: 1 !important; filter: none !important; transform: none !important; }
  .hero__title .w > span { transform: none !important; } .hero__act2 { display: none; } .intro { display: none !important; }
}

/* ---------- fascia affiliazioni che scorre ---------- */
.aff { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); padding: 22px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.aff__t { display: flex; width: max-content; animation: affmove 46s linear infinite; }
.aff:hover .aff__t { animation-play-state: paused; }
.aff__row { display: flex; align-items: center; flex: none; }
@keyframes affmove { to { transform: translateX(-25%); } }
.aff__it, .aff-grid .aff__it { display: flex; align-items: center; gap: 18px; padding: 8px 52px; border-right: 1px solid var(--line); white-space: nowrap; }
.aff__logo { display: grid; place-items: center; height: 58px; }
.aff__logo img { height: 54px; width: auto; max-width: none; }
.aff__logo.plate { background: #fff; border-radius: 12px; padding: 5px 12px; height: 58px; }
.aff__logo.plate img { height: 46px; }
.aff__logo.plate img[src*="cert"] { height: 50px; width: 50px; object-fit: contain; }
.aff__mark { display: grid; place-items: center; height: 56px; padding: 0 18px; border: 1.5px solid var(--gold); border-radius: 12px; font: 700 1.2rem/1 var(--f-d); letter-spacing: .12em; color: var(--gold-2); background: rgba(214, 174, 107, .08); }
.aff__x b { display: block; font: 650 1rem/1.25 var(--f-d); color: #fff; letter-spacing: -.01em; }
.aff__x small { display: block; margin-top: 3px; font: 500 .72rem/1.3 var(--f-m); letter-spacing: .06em; color: var(--mute); text-transform: uppercase; }
.aff__it .aff__x { display: block; }
.aff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aff-grid .aff__it { white-space: normal; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 24px 26px; transition: border-color .3s, transform .5s var(--ease); }
.aff-grid .aff__it:hover { border-color: var(--line-2); transform: translateY(-4px); }
@media (max-width: 960px) { .aff-grid { grid-template-columns: 1fr; } }

/* ---------- testo gigante che scorre ---------- */
.mq { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg); }
.mq__t { display: flex; align-items: center; width: max-content; gap: clamp(28px, 4vw, 56px); animation: mqmove 60s linear infinite; }
.mq--rev .mq__t { animation-direction: reverse; }
@keyframes mqmove { to { transform: translateX(-25%); } }
.mq__t span { font: 700 clamp(3rem, 9vw, 8rem)/1 var(--f-d); letter-spacing: -.045em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.4px rgba(214, 174, 107, .6); }
.mq__t span:nth-of-type(even) { color: rgba(255, 255, 255, .92); -webkit-text-stroke: 0; }
.mq__t i { width: clamp(14px, 1.8vw, 22px); height: clamp(14px, 1.8vw, 22px); border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); flex: none; }

/* ---------- manifesto: le parole si accendono scorrendo ---------- */
.manifesto { padding: clamp(80px, 12vw, 170px) 0; }
.manifesto__t { margin: 0 0 40px; max-width: 24ch; font: 650 clamp(1.9rem, 4.6vw, 4rem)/1.12 var(--f-d); letter-spacing: -.035em; color: #fff; }
.manifesto__t .wd { opacity: .16; transition: opacity .5s, color .5s; }
.manifesto__t .wd.lit { opacity: 1; }
.manifesto__t .wd.hl.lit { color: var(--gold-2); }
.no-js .manifesto__t .wd { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .manifesto__t .wd { opacity: 1; } }

/* ---------- squadre scorrevoli ---------- */
.rail { position: relative; }
.rail__track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(24px, calc((100% - var(--maxw)) / 2)) 30px; scrollbar-width: none; cursor: grab; scroll-padding-inline: max(24px, calc((100% - var(--maxw)) / 2)); }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.drag { cursor: grabbing; scroll-snap-type: none; }
.rail__track .team { flex: 0 0 clamp(270px, 26vw, 340px); scroll-snap-align: start; user-select: none; }
.rail__track .team img { -webkit-user-drag: none; pointer-events: none; }
.rail__ctl { display: flex; align-items: center; gap: 24px; margin-top: 4px; }
.rail__bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold-d), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(.2); }
.rail__btns { display: flex; gap: 10px; }
.rail__btns button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--gold); cursor: pointer; display: grid; place-items: center; transition: all .3s; }
.rail__btns button:hover { background: var(--gold); color: var(--bg); }
.rail__btns svg { width: 18px; height: 18px; }
.rail__btns button[data-dir="-1"] svg { transform: rotate(-90deg); } .rail__btns button[data-dir="1"] svg { transform: rotate(90deg); }

/* ---------- cursore tecnologico (solo mouse) ---------- */
.cur, .cur-dot { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; border-radius: 50%; opacity: 0; }
.cur { width: 38px; height: 38px; border: 1.5px solid rgba(235, 203, 143, .8); transition: width .35s var(--ease), height .35s var(--ease), background .3s, border-color .3s, opacity .3s; margin: -19px 0 0 -19px; }
.cur-dot { width: 6px; height: 6px; background: var(--gold-2); margin: -3px 0 0 -3px; box-shadow: 0 0 12px var(--gold); }
.cur.on, .cur-dot.on { opacity: 1; }
.cur.big { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(214, 174, 107, .12); border-color: var(--gold-2); }

/* ---------- testata pagine interne ---------- */
.vhead { min-height: clamp(400px, 62vh, 620px); display: flex; align-items: flex-end; padding: calc(var(--head) + 60px) 0 clamp(44px, 6vw, 80px); }
.vhead .shade { background: linear-gradient(180deg, rgba(5, 11, 28, .7) 0%, rgba(5, 11, 28, .28) 38%, rgba(5, 11, 28, .96) 100%), radial-gradient(800px 420px at 10% 100%, rgba(10, 40, 91, .8), transparent 70%); }
.vhead .bg-video { filter: saturate(.8); }
.vhead__in { position: relative; z-index: 3; }
.vhead h1 { max-width: 16ch; animation: up .9s .1s var(--ease) both; }
.vhead .lead { margin-top: 20px; animation: up .9s .25s var(--ease) both; }
.crumb { margin: 0 0 22px; font: 500 .72rem/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.crumb a:hover { color: var(--gold); } .crumb span { color: var(--gold); margin: 0 8px; }
.pageno { position: absolute; z-index: 3; right: max(24px, calc((100% - var(--maxw)) / 2)); bottom: clamp(44px, 6vw, 80px); font: 500 .75rem/1 var(--f-m); letter-spacing: .16em; color: var(--mute); }
.vhead::after, .vband::after { content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
@media (max-width: 700px) { .pageno { display: none; } }

/* ---------- fascia video ---------- */
.vband { min-height: clamp(380px, 66vh, 640px); display: grid; align-items: center; padding: 80px 0; text-align: center; }
.vband .shade { background: rgba(5, 11, 28, .6); }
.vband .bg-video { filter: saturate(.8); }
.vband__in { position: relative; z-index: 3; display: grid; justify-items: center; gap: 18px; }
.vband h2 { font-size: clamp(2rem, 5vw, 4rem); max-width: 18ch; }
.vband p { max-width: 54ch; color: var(--ink); opacity: .85; font-size: 1.15rem; margin: 0; }
.vband .actions { justify-content: center; margin-top: 10px; }
.vnums { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 14px; }
.vnums b { display: block; font: 700 2.2rem/1 var(--f-d); color: var(--gold-2); } .vnums div span { font: 500 .7rem/1.3 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ---------- schede con luce al passaggio del mouse ---------- */
.card {
  position: relative; border-radius: var(--r); padding: 30px; background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
  overflow: hidden; transition: transform .5s var(--ease), border-color .3s, background .3s; isolation: isolate;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 174, 107, .16), transparent 65%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--gold-2), transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-4px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3, .card .h3l { margin: 18px 0 10px; }
.h3l { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.02em; } .card p { color: var(--mute); margin: 0; font-size: 1rem; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(214, 174, 107, .1); border: 1px solid var(--line-2); color: var(--gold); }
.ico svg { width: 24px; height: 24px; }
.num { font: 500 .75rem/1 var(--f-m); letter-spacing: .14em; color: var(--gold); }

/* ---------- scena fissa: il percorso ---------- */
.scene { position: relative; height: 340vh; background: var(--bg); }
.scene__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; align-items: center; }
.scene__media { position: absolute; inset: 0; z-index: 0; background: var(--bg-3); }
.scene__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease, transform 1.6s var(--ease); transform: scale(1.06); filter: saturate(.8); }
.scene__v.is-active { opacity: 1; transform: scale(1); }
.scene__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 11, 28, .94) 0%, rgba(5, 11, 28, .72) 45%, rgba(5, 11, 28, .35) 100%), linear-gradient(180deg, rgba(5, 11, 28, .6), transparent 25%, transparent 75%, rgba(5, 11, 28, .8)); }
.scene__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.scene__head h2 { max-width: 14ch; }
.scene__head p { color: var(--mute); margin-top: 20px; max-width: 40ch; }
.steps { position: relative; padding-left: 34px; }
.steps__ol { display: grid; gap: 10px; }
.steps::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps__fill { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--gold-2), var(--gold)); transform-origin: top; transform: scaleY(var(--sp, 0)); box-shadow: 0 0 12px var(--gold); }
.step { position: relative; padding: 22px 26px; border-radius: var(--r); border: 1px solid transparent; opacity: .6; background: rgba(5, 11, 28, .35); transition: opacity .6s, background .6s, border-color .6s, transform .6s var(--ease); }
.step::before { content: ""; position: absolute; left: -33px; top: 31px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--dim); transition: all .5s; }
.step.is-active { opacity: 1; background: rgba(8, 18, 43, .7); border-color: var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateX(8px); }
.step.is-active::before { background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 0 5px rgba(214, 174, 107, .2), 0 0 18px var(--gold); }
.step h3 { margin: 10px 0 8px; } .step p { margin: 0; color: var(--mute); font-size: 1rem; }
.step .tlink { margin-top: 14px; }
@media (max-width: 900px) {
  .scene { height: auto; } .scene__sticky { position: relative; height: auto; padding: 80px 0; }
  .scene__in { grid-template-columns: 1fr; }
  .steps { padding-left: 0; } .steps::before, .steps__fill { display: none; }
  .steps__ol { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 18px 20px; margin: 0 -18px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .steps__ol::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 80%; scroll-snap-align: center; opacity: .55; transform: scale(.96); background: rgba(8, 18, 43, .6); border-color: var(--line); } .step.is-active { opacity: 1; transform: none; border-color: var(--line-2); }
  .step::before { display: none; }
  .steps::after { content: "Scorri di lato  →"; display: block; margin-top: 4px; font: 500 .68rem/1 var(--f-m); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
}

/* ---------- squadre ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--mute); font: 500 .9rem/1 var(--f-b); cursor: pointer; transition: all .3s; }
.chip:hover { border-color: var(--gold); color: #fff; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1405; font-weight: 700; }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.team { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .3s; isolation: isolate; }
.team:hover { transform: translateY(-6px); border-color: var(--line-2); }
.team[hidden] { display: none; }
.team__ph { position: relative; aspect-ratio: 5/4; overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--navy-2), var(--bg-3)); }
.team__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.team:hover .team__ph img { transform: scale(1.06); }
.team__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 18, 43, .95)); }
.team__ph .ball { position: absolute; inset: 0; margin: auto; width: 30%; height: auto; aspect-ratio: 1; object-fit: contain; opacity: .55; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
.team__tag { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(5, 11, 28, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); font: 500 .68rem/1 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); }
.team__b { padding: 22px 24px 26px; display: grid; gap: 6px; flex: 1; }
.team__b h3 { font-size: 1.55rem; } .team__b p { margin: 0; color: var(--mute); font-size: .98rem; }
.team__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 500 .72rem/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pill--gold { border-color: var(--line-2); color: var(--gold-2); background: rgba(214, 174, 107, .08); }

/* ---------- foto ---------- */
.photo { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); will-change: transform; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(5, 11, 28, .9)); font: 500 .72rem/1.4 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 38px; height: 38px; border: 1.5px solid var(--gold); pointer-events: none; z-index: 2; transition: all .6s var(--ease); }
.frame::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.frame::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.frame:hover::before, .frame:hover::after { width: 64px; height: 64px; }

/* ---------- valori, numeri ---------- */
.stat { padding: 8px 0; } .stat b { display: block; font: 700 clamp(2.6rem, 5vw, 4rem)/1 var(--f-d); letter-spacing: -.04em; color: #fff; } .stat b em { font-style: normal; color: var(--gold); }
.stat > span { display: block; margin-top: 10px; color: var(--mute); max-width: 22ch; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 34px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.values { counter-reset: v; }
.values .card { counter-increment: v; }
.values .card::marker { content: ""; }

/* ---------- storia: linea del tempo ---------- */
.tl { position: relative; display: grid; gap: clamp(40px, 7vw, 90px); padding-left: 56px; --tp: 0; }
.tl::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl__fill { position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; margin-left: -.5px; background: linear-gradient(var(--gold-2), var(--gold)); transform-origin: top; transform: scaleY(var(--tp)); box-shadow: 0 0 14px var(--gold); border-radius: 2px; }
.tl__it { position: relative; display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 24px 40px; opacity: .35; transform: translateY(14px); transition: opacity .8s, transform .8s var(--ease); }
.tl__it.on { opacity: 1; transform: none; }
.tl__it::before { content: ""; position: absolute; left: -52px; top: 10px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--dim); transition: all .6s; }
.tl__it.on::before { background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 0 6px rgba(214, 174, 107, .18), 0 0 22px var(--gold); }
.tl__y { font: 700 clamp(1.4rem, 2.6vw, 2.1rem)/1.05 var(--f-d); letter-spacing: -.04em; color: var(--gold); }
.tl__it h3 { margin-bottom: 10px; } .tl__it p { color: var(--mute); max-width: 56ch; margin: 0; }
@media (max-width: 700px) { .tl { padding-left: 40px; } .tl__it { grid-template-columns: 1fr; gap: 8px; } .tl__it::before { left: -37px; } }

/* ---------- persone ---------- */
.person { text-align: left; padding: 28px; }
.mono-av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font: 650 1.5rem/1 var(--f-d); color: var(--gold-2); background: radial-gradient(circle at 30% 25%, var(--navy-2), var(--bg-3)); border: 1px solid var(--line-2); box-shadow: 0 0 0 5px rgba(214, 174, 107, .06), inset 0 0 20px rgba(214, 174, 107, .1); }
.person h3 { margin: 22px 0 4px; font-size: 1.2rem; } .person .role { color: var(--gold); font: 500 .74rem/1.4 var(--f-m); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.person.lead-p { border-color: var(--line-2); }

/* ---------- notizie ed eventi ---------- */
.news { display: grid; gap: 20px; }
.news--stack .nitem { grid-template-columns: 1fr; gap: 10px; }
.nitem { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; padding: 26px; }
.nitem time { font: 500 .78rem/1.5 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nitem h3 { margin: 0 0 8px; } .nitem p { margin: 0; }
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.ev { display: flex; flex-direction: column; gap: 6px; }
.ev__when { font: 500 .74rem/1.4 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.ev dl { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .92rem; color: var(--mute); }
.ev dt { font: 500 .66rem/1.3 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-top: 8px; } .ev dd { margin: 0; color: var(--ink); }
.empty { text-align: center; padding: 56px 30px; border: 1px dashed var(--line-2); border-radius: var(--r); background: rgba(214, 174, 107, .03); }
.empty h3 { margin-bottom: 10px; } .empty p { color: var(--mute); max-width: 54ch; margin: 0 auto; }

/* ---------- iscrizioni ---------- */
.flow { counter-reset: s; display: grid; gap: 16px; }
.flow li { counter-increment: s; position: relative; padding: 26px 28px 26px 92px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color .3s, transform .5s var(--ease); }
.flow li:hover { border-color: var(--line-2); transform: translateX(6px); }
.flow li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 28px; top: 24px; font: 700 1.8rem/1 var(--f-d); color: var(--gold); letter-spacing: -.04em; }
.flow h3 { margin-bottom: 6px; } .flow p { margin: 0; color: var(--mute); }
.qr { display: grid; justify-items: center; gap: 14px; padding: 26px; border-radius: var(--r); background: #fff; color: var(--bg); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(214, 174, 107, .4); }
.qr img, .qr svg { width: min(220px, 60vw); height: auto; }
.qr span { font: 500 .72rem/1.3 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); text-align: center; }
.cta { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 64px); border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(700px 320px at 90% 0%, rgba(214, 174, 107, .16), transparent 70%), linear-gradient(135deg, var(--navy), var(--bg-3)); }
.cta h2 { max-width: 18ch; } .cta p { color: var(--mute); max-width: 52ch; margin-top: 16px; }

/* ---------- informative e documenti ---------- */
.docs { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .3s, background .3s; }
.doc:hover { border-color: var(--line-2); background: var(--card-2); }
.doc .ico { flex: none; }
.doc h3 { font-size: 1.05rem; margin: 0 0 2px; letter-spacing: -.01em; } .doc p { margin: 0; color: var(--mute); font-size: .94rem; }
.doc__body { flex: 1; min-width: 0; }
.doc .pill { flex: none; }
@media (max-width: 640px) { .doc { flex-wrap: wrap; } .doc .btn, .doc .pill { margin-left: 68px; } }
.acc { display: grid; gap: 12px; }
.acc details { border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .3s; }
.acc details[open] { border-color: var(--line-2); background: var(--card-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font: 600 1.1rem/1.3 var(--f-d); letter-spacing: -.015em; color: #fff; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.acc .acc__b { padding: 0 26px 26px; color: var(--mute); } .acc .acc__b p:last-child { margin-bottom: 0; } .acc .acc__b ul { list-style: none; display: grid; gap: 10px; margin: 12px 0; }
.acc .acc__b li { position: relative; padding-left: 26px; } .acc .acc__b li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1.5px; background: var(--gold); }
.safe { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(600px 260px at 0% 0%, rgba(214, 174, 107, .14), transparent 70%), var(--bg-3); }
.safe .ico { width: 72px; height: 72px; border-radius: 20px; } .safe .ico svg { width: 36px; height: 36px; }
.safe h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); } .safe p { margin: 10px 0 0; color: var(--mute); }
@media (max-width: 640px) { .safe { grid-template-columns: 1fr; } }
.note { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--card); color: var(--mute); font-size: .95rem; }

/* ---------- sede e contatti ---------- */
.info { display: grid; gap: 22px; }
.info div { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.info div:last-child { border: 0; padding: 0; }
.info h2 { font: 500 .72rem/1 var(--f-m); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.info p { margin: 0; color: var(--ink); } .info a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: color .2s, border-color .2s; } .info a:hover { color: var(--gold-2); border-color: var(--gold); }
.map { position: relative; min-height: 380px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05) brightness(.92); }
.map__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(19, 48, 107, .8), var(--bg-3)), repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px); }
.map__ph p { margin: 0; color: var(--mute); max-width: 36ch; font-size: .95rem; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; } .field label { font: 500 .72rem/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--gold); font: 400 1rem var(--f-b); transition: border-color .25s, box-shadow .25s, background .25s; }
.field textarea { min-height: 150px; resize: vertical; } .field select option { color: #111; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 174, 107, .16); background: rgba(255, 255, 255, .07); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff8e7e; } .field .err { display: none; color: #ff9d8f; font-size: .88rem; } .field.invalid .err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--mute); font-size: .92rem; } .check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; } .check.invalid { color: #ff9d8f; }
.check a { color: var(--gold); border-bottom: 1px solid var(--line-2); }
.form-status { min-height: 1.4em; margin: 0; color: var(--gold-2); font-size: .95rem; }
.hp { position: absolute; left: -9999px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- testi lunghi (privacy) ---------- */
.prose { max-width: 760px; } .prose h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; } .prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; } .prose p, .prose li { color: var(--mute); } .prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; } .prose a { color: var(--gold); border-bottom: 1px solid var(--line-2); }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); overflow: hidden; }
.site-foot::before { content: ""; position: absolute; left: 50%; top: -300px; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(10, 40, 91, .55), transparent); pointer-events: none; }
.foot-top { position: relative; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot-top img { width: 220px; margin-bottom: 20px; } .foot-top p { color: var(--mute); max-width: 36ch; font-size: .98rem; }
.foot-top h2 { font: 500 .72rem/1 var(--f-m); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot-top li { margin-bottom: 10px; } .foot-top a { color: var(--mute); transition: color .2s; font-size: .98rem; } .foot-top a:hover { color: var(--gold-2); }
.legal { position: relative; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 28px; }
.legal div span { display: block; font: 500 .64rem/1 var(--f-m); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; } .legal div b { font: 500 .86rem/1.4 var(--f-m); color: var(--mute); font-weight: 500; word-break: break-word; }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }
.foot-bottom a:hover, .vtoggle:hover { color: var(--gold-2); }
.vtoggle { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5, 11, 28, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--gold); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: all .4s var(--ease); }
.totop.on { opacity: 1; transform: none; pointer-events: auto; } .totop:hover { background: var(--gold); color: var(--bg); } .totop svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* ---------- 404 e ringraziamenti ---------- */
.solo { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 60px; background: radial-gradient(800px 500px at 50% 30%, rgba(10, 40, 91, .8), transparent 70%), var(--bg); }
.solo .big { font: 700 clamp(5rem, 18vw, 11rem)/1 var(--f-d); letter-spacing: -.06em; }
.solo img { width: 120px; margin: 0 auto 20px; }

/* ---------- apparizione allo scorrimento ---------- */
.js-reveal .rv { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .rv.in { opacity: 1; transform: none; filter: none; }
.js-reveal .rv-l { opacity: 0; transform: translateX(-40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .rv-r { opacity: 0; transform: translateX(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .rv-l.in, .js-reveal .rv-r.in { opacity: 1; transform: none; }
.js-reveal .rv-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .rv-wipe.in { clip-path: inset(0 0 0 0); }

@media (max-width: 900px) { .js-reveal .rv-l, .js-reveal .rv-r { transform: translateY(28px); } .js-reveal .rv-l.in, .js-reveal .rv-r.in { transform: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal .rv, .js-reveal .rv-l, .js-reveal .rv-r, .js-reveal .rv-wipe { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
@media print { .site-head, .menu, .totop, .prog, video { display: none !important; } body { background: #fff; color: #000; } }

.vframe { position: relative; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.team .ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, var(--navy-2), var(--bg-3) 70%); overflow: hidden; }
.team .ph::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(214,174,107,.16), transparent 30%); animation: phspin 9s linear infinite; }
@keyframes phspin { to { transform: rotate(360deg); } }
.team .ph b { position: relative; font: 700 clamp(3.4rem, 8vw, 5.6rem)/1 var(--f-d); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.4px rgba(235,203,143,.7); }
.team[data-theme="blu"] .ph { background: radial-gradient(circle at 30% 20%, #1d4cab, #0A285B 70%); }
.team[data-theme="oro"] .ph { background: radial-gradient(circle at 30% 20%, #e9c98a, #9a7a3a 75%); }
.team[data-theme="oro"] .ph b { -webkit-text-stroke-color: rgba(10,40,91,.85); }
.team[data-theme="oro"] .ph .ball { opacity: .3; }
.team .ph .ball { position: absolute; width: 56%; height: auto; right: -14%; bottom: -16%; opacity: .16; inset: auto -14% -16% auto; margin: 0; filter: none; aspect-ratio: 1; }
.team--senior { text-decoration: none; }

/* ---------- social, WhatsApp, sedi ---------- */
.socs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.soc { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #fff !important; font: 500 .88rem/1 var(--f-b); transition: border-color .3s, background .3s, transform .4s var(--ease), color .3s; }
.soc svg { width: 18px; height: 18px; flex: none; color: var(--gold); transition: color .3s; }
.soc:hover { border-color: var(--gold); background: rgba(214, 174, 107, .1); transform: translateY(-2px); }
.menu__side .socs .soc, .foot-top .socs .soc { color: #fff; }
.soc--lg { min-height: 56px; padding: 0 22px 0 18px; font-size: 1rem; }
.soc--lg svg { width: 22px; height: 22px; }
.wa { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 85; display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 14px; min-height: 58px; border-radius: 999px; color: #1a1405; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-d)); box-shadow: 0 14px 40px -10px rgba(214, 174, 107, .8); animation: wapulse 3.2s ease-out infinite; transition: transform .4s var(--ease); }
.wa svg { width: 30px; height: 30px; flex: none; }
.wa span { display: grid; gap: 2px; text-align: left; } .wa b { font: 700 .95rem/1.1 var(--f-b); } .wa small { font: 500 .72rem/1.1 var(--f-b); opacity: .8; }
.wa:hover { transform: translateY(-3px); }
@keyframes wapulse { 0% { box-shadow: 0 14px 40px -10px rgba(214, 174, 107, .8), 0 0 0 0 rgba(214, 174, 107, .45); } 70%, 100% { box-shadow: 0 14px 40px -10px rgba(214, 174, 107, .8), 0 0 0 16px rgba(214, 174, 107, 0); } }
.totop { right: max(26px, env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); width: 44px; height: 44px; background: conic-gradient(var(--gold) var(--pg, 0deg), rgba(255, 255, 255, .14) 0); border: 0; }
.totop::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(5, 11, 28, .92); }
.totop svg { position: relative; }
@media (max-width: 640px) {
  .wa { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; min-height: 60px; border-radius: 18px; padding: 10px 16px; animation: none; box-shadow: 0 18px 40px -8px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
  .totop { right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .site-foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media print { .wa { display: none !important; } }
.nitem__c { display: grid; gap: 10px; align-content: start; min-width: 0; }
.nitem__c .tlink { margin-top: 6px; }
.nitem__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.nitem__meta .pill { text-transform: none; letter-spacing: .04em; }
.gym .gym__days { display: grid; gap: 4px; margin: 16px 0 10px; padding: 14px 0; border-block: 1px solid var(--line); }
.gym .gym__days b { font: 650 1.15rem/1.3 var(--f-d); color: var(--gold-2); letter-spacing: -.01em; }
.gym .gym__days .mono { color: var(--dim); }

/* ---------- gallerie ---------- */
.gal { columns: 3 260px; column-gap: 18px; }
.gal__it { margin: 0 0 18px; break-inside: avoid; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.gal__it img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.gal__it:hover img { transform: scale(1.05); }

/* ---------- fasce con clip verticali dai social ---------- */
.reels { padding: clamp(72px, 9vw, 120px) 0; }
.reels .shade { background: linear-gradient(180deg, rgba(5, 11, 28, .8), rgba(5, 11, 28, .55) 50%, rgba(5, 11, 28, .85)); }
.bg-video.amb { filter: blur(34px) saturate(1.3) brightness(.7); scale: 1.35; }
.reels__in { position: relative; z-index: 3; }
.reels__row { display: flex; justify-content: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.reel { margin: 0; width: min(280px, 44vw); transition: transform .6s var(--ease); }
.reel:nth-child(2) { margin-top: 34px; }
.reel:hover { transform: translateY(-8px) rotate(-.6deg); }
.reel__v { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); background-size: cover; background-position: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .04); isolation: isolate; }
.reel__v .bg-video { object-fit: cover; }
.reel figcaption { margin-top: 14px; font: 500 .74rem/1.4 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: center; }
@media (max-width: 640px) { .reel { width: min(240px, 70vw); } .reel:nth-child(2) { margin-top: 0; } }

/* ---------- post dei social (si caricano al clic) ---------- */
.sps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; align-items: start; }
.sp { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); transition: border-color .3s, transform .5s var(--ease); }
.sp:hover { border-color: var(--line-2); transform: translateY(-4px); }
.sp__ph { position: relative; aspect-ratio: 4 / 5; background-size: cover; background-position: center; display: grid; place-items: end start; }
.sp__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 11, 28, .25), transparent 40%, rgba(5, 11, 28, .85)); }
.sp__tag { position: absolute; z-index: 2; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(5, 11, 28, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); font: 500 .7rem/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); }
.sp__tag svg { width: 14px; height: 14px; }
.sp__go { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; font: 700 .9rem/1 var(--f-b); color: #1a1405; background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-d)); transition: transform .35s var(--ease); }
.sp__go svg { width: 15px; height: 15px; } .sp__go:hover { transform: translateY(-2px); }
.sp__b { padding: 18px 20px 22px; display: grid; gap: 8px; }
.sp__b h3 { font-size: 1.05rem; margin: 0; letter-spacing: -.015em; } .sp__b .mono { margin: 0; }
.sp.loaded .sp__ph { display: none; }
.sp iframe { display: block; width: 100%; border: 0; background: #fff; }

/* ---------- orari ---------- */
.team__yr { margin: 0 0 6px !important; font: 500 .72rem/1.3 var(--f-m) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--gold) !important; }
.team__sc { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .9rem; color: var(--ink); }
.team__sc b { display: inline-block; min-width: 2.6em; font: 600 .74rem/1 var(--f-m); letter-spacing: .08em; color: var(--gold-2); text-transform: uppercase; }
.team__sc--tbd { font: 500 .74rem/1.3 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.tt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tt__d { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 22px 22px 24px; }
.tt__d h3 { font: 500 .78rem/1 var(--f-m); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.tt__d ul { list-style: none; display: grid; gap: 10px; }
.tt__s { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--navy-2); }
.tt__s time { font: 500 .8rem/1 var(--f-m); letter-spacing: .06em; color: var(--mute); }
.tt__s b { font: 650 1.05rem/1.2 var(--f-d); letter-spacing: -.01em; }
.tt__s[data-id="pulcini-nuovi"] { border-left-color: #b9bec9; } .tt__s[data-id="pulcini-vecchi"] { border-left-color: #8fd0f0; }
.tt__s[data-id="scoiattoli"] { border-left-color: #f2b896; } .tt__s[data-id="aquilotti"] { border-left-color: #f5e04a; } .tt__s[data-theme="blu"] { border-left-color: #4a7bd8; } .tt__s[data-theme="oro"] { border-left-color: var(--gold); }
@media (max-width: 860px) { .tt { grid-template-columns: 1fr; } }

/* ---------- touch e iPhone ---------- */
html { -webkit-tap-highlight-color: transparent; }

@media (hover: none) {
  .card:hover, .team:hover, .sp:hover, .reel:hover, .doc:hover, .flow li:hover, .aff-grid .aff__it:hover { transform: none; }
  .card:active, .team:active, .sp:active { transform: scale(.985); }
  .btn:active, .chip:active, .soc:active { transform: scale(.96); }
  .rail__track { cursor: auto; }
}
.btn, .chip, .soc, summary, .menu-btn { touch-action: manipulation; }

/* ---------- notizie con foto ---------- */
.nitem__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nitem:hover .nitem__ph img { transform: scale(1.07); }

/* ---------- titoli che si compongono, parallasse, indice di pagina ---------- */
.js-reveal .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.js-reveal .hw > span { display: inline-block; transform: translateY(112%); transition: transform .95s var(--ease); transition-delay: calc(var(--i, 0) * .055s); }
.js-reveal .h-in .hw > span { transform: none; }
.js-reveal h2.hsplit { filter: none; }
@supports (animation-timeline: view()) {
  @keyframes par { from { transform: translateY(-5%) scale(1.14); } to { transform: translateY(5%) scale(1.14); } }
  .photo > img, .photo a > img, .gal__it img { animation: par linear both; animation-timeline: view(); animation-range: cover; }
  .gal__it:hover img { animation-play-state: paused; }
}
.spy { position: fixed; right: max(14px, env(safe-area-inset-right)); top: 50%; z-index: 70; display: none; transform: translateY(-50%); }
@media (min-width: 1280px) { .spy { display: block; } }
.spy ul { list-style: none; display: grid; gap: 4px; }
.spy a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 22px; font: 500 .66rem/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.spy a span { opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease); white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: rgba(5, 11, 28, .85); border: 1px solid var(--line); }
.spy a i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--dim); transition: all .4s var(--ease); flex: none; }
.spy a:hover span, .spy a.on span { opacity: 1; transform: none; }
.spy a.on i { background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 12px var(--gold); transform: scale(1.5); }

.nitem--img { grid-template-columns: 230px 1fr; padding: 18px; }
.nitem__ph { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); align-self: start; }
@media (max-width: 700px) { .nitem--img { grid-template-columns: 1fr; } .nitem__ph { aspect-ratio: 16 / 10; } }
.news--stack .nitem--img { grid-template-columns: 1fr; } .news--stack .nitem__ph { aspect-ratio: 16 / 9; }

.split--news { align-items: start; }
@media (min-width: 901px) { .split--news { grid-template-columns: 1.6fr 1fr; } .aside-sticky { position: sticky; top: calc(var(--head) + 30px); } }

.vhead--vert .bg-video { filter: blur(9px) saturate(1.15) brightness(.75); scale: 1.12; }

/* ---------- Summer Camp: tema estivo ---------- */
.camp { --sun: #FFB84D; --sun-2: #FF8A3D; --sky: #4CC9F0; }
.sec--sun { position: relative; background: radial-gradient(900px 420px at 85% 0%, rgba(255, 184, 77, .13), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(76, 201, 240, .08), transparent 65%), var(--bg); }
.sec--sun:nth-of-type(even) { background: radial-gradient(900px 420px at 10% 0%, rgba(255, 184, 77, .12), transparent 60%), var(--bg-2); }
.camp .ico { background: linear-gradient(135deg, rgba(255, 184, 77, .22), rgba(255, 138, 61, .12)); border-color: rgba(255, 184, 77, .45); color: #FFD08A; }
.camp .eyebrow { color: #FFC770; }
.camp .grad { background: linear-gradient(100deg, #FFE3A8, #FFB84D 55%, #FF8A3D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.camp .stat b em, .camp .stat b sup { color: #FFB84D; } .camp .stat b sup { font-size: .5em; vertical-align: top; }
.camp .vhead .shade { background: linear-gradient(180deg, rgba(5, 11, 28, .55) 0%, rgba(5, 11, 28, .2) 36%, rgba(5, 11, 28, .96) 100%), radial-gradient(800px 420px at 85% 10%, rgba(255, 150, 60, .28), transparent 65%); }
.camp .vhead { min-height: clamp(520px, 78vh, 760px); }
.camp .vhead h1 { font-size: clamp(2.8rem, 8.2vw, 7rem); max-width: 12ch; letter-spacing: -.045em; }
.sun { position: absolute; z-index: 2; right: -160px; top: -160px; width: 620px; height: 620px; pointer-events: none; mix-blend-mode: screen; }
.sun::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 224, 150, .95) 0 14%, rgba(255, 184, 77, .55) 26%, rgba(255, 138, 61, .18) 48%, transparent 68%); animation: sunpulse 5s ease-in-out infinite; }
.sun i { position: absolute; inset: -20%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 200, 110, .22) 0 4deg, transparent 4deg 18deg); -webkit-mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 66%); mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 66%); animation: sunspin 60s linear infinite; }
@keyframes sunspin { to { transform: rotate(360deg); } }
@keyframes sunpulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.07); opacity: 1; } }
.edbadge { position: absolute; z-index: 4; right: max(24px, calc((100% - var(--maxw)) / 2 + 20px)); bottom: clamp(64px, 9vw, 120px); width: clamp(120px, 15vw, 190px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(10, 40, 91, .9), rgba(5, 11, 28, .85)); border: 1px solid rgba(255, 184, 77, .5); box-shadow: 0 0 60px rgba(255, 150, 60, .35); }
.edbadge svg { position: absolute; inset: 4%; width: 92%; height: 92%; animation: sunspin 24s linear infinite; }
.edbadge text { font: 600 13px var(--f-m); fill: #FFD08A; }
.edbadge b { font: 700 clamp(2rem, 4.4vw, 3.4rem)/1 var(--f-d); background: linear-gradient(135deg, #FFE3A8, #FF8A3D); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .edbadge { display: none; } .sun { width: 420px; height: 420px; right: -140px; top: -120px; } }
.camp .pageno { display: none; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile { position: relative; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 184, 77, .25); background-size: cover; background-position: center; isolation: isolate; display: flex; align-items: flex-end; transition: transform .6s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-8px); border-color: rgba(255, 184, 77, .7); }
.tile .bg-video { z-index: 0; object-fit: cover; }
.tile.kb { animation: tilekb 14s ease-in-out infinite alternate; }
@keyframes tilekb { from { background-size: 108%; background-position: 40% 50%; } to { background-size: 125%; background-position: 62% 45%; } }
.tile__sh { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 11, 28, .1) 25%, rgba(5, 11, 28, .88) 100%), linear-gradient(135deg, rgba(255, 150, 60, .18), transparent 50%); }
.tile__c { position: relative; z-index: 2; padding: 22px 22px 26px; display: grid; gap: 8px; }
.tile__c .ico { position: relative; width: 52px; height: 52px; }
.tile__c h3 { margin: 6px 0 0; font-size: 1.35rem; } .tile__c p { margin: 0; color: var(--ink); opacity: .85; font-size: .95rem; }
.eq { position: absolute; right: -34px; bottom: 2px; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i { width: 4px; border-radius: 2px; background: #FFB84D; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: -.2s; } .eq i:nth-child(2) { height: 100%; animation-delay: -.5s; } .eq i:nth-child(3) { height: 60%; animation-delay: -.8s; } .eq i:nth-child(4) { height: 80%; animation-delay: -.35s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }
@media (max-width: 1000px) { .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 18px 20px; margin: 0 -18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .tiles::-webkit-scrollbar { display: none; } .tile { flex: 0 0 72%; scroll-snap-align: center; } }
.cta--sun { background: radial-gradient(700px 320px at 90% 0%, rgba(255, 184, 77, .3), transparent 70%), linear-gradient(135deg, #0f2a5e, var(--bg-3)); border-color: rgba(255, 184, 77, .5); }
@media (prefers-reduced-motion: reduce) { .sun::before, .sun i, .edbadge svg, .eq i, .tile.kb { animation: none !important; } }

/* ---------- barra informazioni in alto + navigazione sempre visibile ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: var(--tb); background: rgba(3, 8, 20, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: transform .5s var(--ease); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 100%; }
.topbar__l, .topbar__r { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; font: 500 .76rem/1 var(--f-b); color: var(--mute); white-space: nowrap; transition: color .25s; }
.topbar a:hover { color: var(--gold-2); }
.topbar svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.topbar .soc { min-height: 0; padding: 0; border: 0; background: none; gap: 0; } .topbar .soc span { display: none; } .topbar .soc svg { width: 16px; height: 16px; }
.topbar__r { gap: 16px; }
body.is-scrolled .topbar { transform: translateY(-100%); }
body.is-scrolled .site-head { top: 0; }
.site-head { transition: inset .5s var(--ease), background .4s, backdrop-filter .4s, border-color .4s, transform .5s var(--ease); }
@media (max-width: 1100px) { .topbar__l a:nth-child(1) { display: none; } }
@media (max-width: 760px) { :root { --tb: 0px; } .topbar { display: none; } }
.subnav { position: fixed; left: 0; right: 0; top: calc(var(--tb) + var(--bar)); z-index: 99; height: var(--sub); background: rgba(5, 11, 28, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top .5s var(--ease); }
body.is-scrolled .subnav { top: var(--bar); }
.subnav__in { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 max(14px, env(safe-area-inset-left)); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 500 .82rem/1 var(--f-b); color: var(--mute); transition: all .3s; white-space: nowrap; }
.subnav a:hover { color: #fff; border-color: var(--gold); }
.subnav a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: #1a1405; font-weight: 700; }
.subnav a:last-child { border-color: var(--line-2); color: var(--gold-2); }
.form-status a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
