/* ==========================================================================
   Sci Club Sappada — foglio di stile
   Palette ricavata dalla locandina 5×1000 (camo pixel blu) e dal logo (oro, tricolore)
   ========================================================================== */

/* Font Archivo (variabile: larghezza 62–125%, peso 100–900), ospitato in locale */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/archivo-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --navy: #0b2160;
  --navy-deep: #071a4d;
  --ink: #0b1633;
  --blue: #0a7fcf;
  --blue-deep: #0565ad;
  --sky: #4ec4ec;
  --sky-2: #2face7;
  --light: #86daf9;
  --ice: #eaf6fd;
  --snow: #f6fbff;
  --white: #ffffff;
  --gold: #f2c200;
  --gold-deep: #d9ad00;
  --red: #e3262f;
  --green: #0a9a4f;
  --muted: #55688c;
  --line: rgba(11, 33, 96, .12);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(7, 26, 77, .35);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --px: clamp(10px, 1.05vw, 16px); /* lato dei "pixel" decorativi */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display, .h1, .h2, .h3 {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.h1 { font-size: clamp(2.4rem, 6.2vw, 5.6rem); line-height: .95; }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1; }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.1; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.prose { max-width: 70ch; }
.prose h3 { font-stretch: 112%; font-weight: 800; font-size: 1.15rem; margin: 1.6em 0 .6em; text-transform: uppercase; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--blue); }
.prose a { color: var(--blue-deep); text-underline-offset: 3px; }
.prose strong { color: var(--navy); }

/* Occhiello */
.kicker {
  display: inline-flex; align-items: center;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-deep); margin-bottom: 18px;
}
.on-dark .kicker, .kicker.on-dark { color: var(--light); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--ice { background: var(--snow); }
.section--navy { background: var(--navy); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > div { max-width: 720px; }
.section-head .lead { margin-top: 16px; }
.on-dark .lead, .section--navy .lead { color: rgba(255, 255, 255, .78); }

/* ---------- Pattern camo ---------- */
.camo { background: var(--sky) url("../img/pattern/camo.svg") 0 0 / 840px auto repeat; }
.camo-navy { background: var(--navy) url("../img/pattern/camo-navy.svg") 0 0 / 840px auto repeat; }
.camo-ice { background: var(--snow) url("../img/pattern/camo-ice.svg") 0 0 / 840px auto repeat; }
.camo-drift { animation: drift 90s linear infinite; }
@keyframes drift { to { background-position: 840px 0; } }

/* Bordo pixel (dissolvenza a quadretti, come l'onda della locandina) */
.pixel-edge { position: absolute; left: 0; right: 0; height: calc(var(--px) * 7); pointer-events: none; z-index: 2; }
.pixel-edge svg { width: 100%; height: 100%; }
.pixel-edge--top { top: 1px; transform: translateY(-100%); }

/* ---------- Bottoni ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s;
}
.btn::after { /* scia a pixel al passaggio */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/pattern/camo.svg") 0 0 / 420px auto;
  opacity: 0; transform: translateX(-30%); transition: opacity .35s, transform .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(7, 26, 77, .55); }
.btn:hover::after { opacity: .22; transform: translateX(0); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { --bg: var(--gold); --fg: var(--navy); }
.btn--white { --bg: var(--white); --fg: var(--navy); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor, 0 14px 30px -12px rgba(7, 26, 77, .4); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .76rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--blue-deep); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.on-dark .link-arrow { color: var(--light); }

/* ---------- Header ---------- */
.topbar { background: var(--navy-deep); color: rgba(255, 255, 255, .8); font-size: .78rem; position: relative; z-index: 51; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar nav { display: flex; gap: 22px; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar .topbar-badge { color: var(--gold); font-weight: 700; letter-spacing: .06em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right .social { display: flex; gap: 10px; }
.topbar svg { width: 16px; height: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .35s, box-shadow .35s, color .35s; color: var(--navy); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 50px; height: 50px; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-stretch: 125%; font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; text-transform: uppercase; }
.brand-text span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: clamp(10px, 1.6vw, 26px); }
.main-nav a { position: relative; text-decoration: none; font-weight: 700; font-size: .84rem; letter-spacing: .04em; padding: 8px 0; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 8px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; margin-left: auto; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Header trasparente sopra la hero della home */
.has-hero .site-header { position: fixed; left: 0; right: 0; top: 36px; background: transparent; color: var(--white); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-header .btn--ghost { color: var(--white); }
.has-hero.scrolled .site-header { top: 0; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.has-hero.scrolled .site-header .btn--ghost { color: var(--navy); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px; color: var(--white);
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); visibility: hidden;
}
.mobile-menu::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(7, 26, 77, .9), rgba(7, 26, 77, .96)), url("../img/pattern/camo-navy.svg") 0 0 / 840px auto; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .site-header { color: var(--white) !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { overflow: hidden; }
.mobile-menu ul a { display: block; padding: 8px 0; text-decoration: none; font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 7vw, 2.4rem); line-height: 1.1; transform: translateY(100%); transition: transform .6s var(--ease), color .2s; }
.mobile-menu ul a:hover { color: var(--gold); }
.menu-open .mobile-menu ul a { transform: none; }
.mobile-menu .btn-row { margin-top: 32px; }
.mobile-menu .mobile-sub { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.mobile-menu .mobile-sub a { text-decoration: none; }
.menu-open { overflow: hidden; }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 2000; background: var(--navy-deep); display: grid; place-items: center; }
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-center::before { content: ""; position: absolute; inset: -40% -60%; z-index: -1; background: radial-gradient(closest-side, rgba(7, 26, 77, .78), rgba(7, 26, 77, 0)); }
.intro-center { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; color: var(--white); gap: 14px; transition: opacity .5s, transform .8s var(--ease); }
.intro-logo { width: clamp(110px, 16vw, 170px); height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .35)); opacity: 0; transform: scale(.6) rotate(-25deg); transition: opacity .6s, transform 1s var(--ease); }
.intro-name { font-stretch: 125%; font-weight: 800; font-size: clamp(1.2rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .02em; opacity: 0; transform: translateY(16px); transition: opacity .6s .2s, transform .8s .2s var(--ease); text-shadow: 0 4px 24px rgba(7, 26, 77, .6); }
.intro-year { font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 10vw, 7rem); line-height: .9; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .5s .3s; text-shadow: 0 6px 30px rgba(7, 26, 77, .6); }
.intro-tag { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 700; opacity: 0; transition: opacity .5s .45s; }
.intro.is-in .intro-logo { opacity: 1; transform: none; }
.intro.is-in .intro-name, .intro.is-in .intro-year, .intro.is-in .intro-tag { opacity: 1; transform: none; }
.intro.is-out { background: transparent; }
.intro.is-out .intro-center { opacity: 0; transform: translateY(-30px) scale(.96); }
.intro-skip { position: absolute; right: 20px; bottom: 20px; z-index: 3; color: rgba(255, 255, 255, .75); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); transition: opacity .3s; }
.intro.is-out .intro-skip { opacity: 0; }
.intro-lock { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 77, .55) 0%, rgba(7, 26, 77, .05) 30%, rgba(7, 26, 77, .15) 55%, rgba(7, 26, 77, .82) 100%); }
.hero-content { position: relative; z-index: 3; padding-bottom: clamp(110px, 14vh, 170px); padding-top: 160px; }
.hero .kicker { color: var(--white); }
.hero h1 { max-width: 15ch; filter: drop-shadow(0 4px 28px rgba(7, 26, 77, .45)); }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.hero-ready .hero h1 .w > span { transform: none; }
.hero-text { max-width: 54ch; margin: 22px 0 32px; font-size: clamp(1rem, 1.3vw, 1.18rem); color: rgba(255, 255, 255, .9); }
.hero-fade { opacity: 0; transform: translateY(20px); transition: opacity .9s .35s, transform 1s .35s var(--ease); }
.hero-ready .hero-fade { opacity: 1; transform: none; }
.hero-badge {
  position: absolute; right: var(--gutter); bottom: clamp(110px, 14vh, 170px); z-index: 3;
  display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--navy);
  width: 148px; aspect-ratio: 1; border-radius: 50%; place-content: center; text-align: center;
  background: var(--gold); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease);
}
.hero-badge:hover { transform: rotate(-8deg) scale(1.05); }
.hero-badge small { font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-badge strong { font-stretch: 125%; font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-badge svg.ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: calc(var(--px) * 7 + 18px); z-index: 3; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Hero pagine interne */
.page-hero { position: relative; color: var(--white); padding: clamp(80px, 11vw, 150px) 0 clamp(90px, 11vw, 150px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 26, 77, .96) 0%, rgba(7, 26, 77, .82) 45%, rgba(7, 26, 77, .45) 100%); z-index: 1; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 3; }
.page-hero .kicker { color: var(--light); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { color: rgba(255, 255, 255, .85); margin-top: 20px; }
.breadcrumb { display: flex; gap: 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Presentazione ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro-grid .prose { font-size: 1.08rem; color: #2a3a5e; margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bib {
  position: relative; background: var(--white); border-radius: 16px; padding: 30px 22px 22px; text-align: center;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(7, 26, 77, .35); border: 1px solid var(--line); overflow: hidden;
}
.bib::before { /* fascia superiore del pettorale */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: url("../img/pattern/camo.svg") 0 0 / 420px auto;
}
.bib::after { /* fori del pettorale */
  content: ""; position: absolute; top: 20px; left: 14px; right: 14px; height: 8px;
  background: radial-gradient(circle, var(--ice) 3px, transparent 3.5px) left / 8px 8px no-repeat, radial-gradient(circle, var(--ice) 3px, transparent 3.5px) right / 8px 8px no-repeat;
}
.bib strong { display: block; font-stretch: 125%; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.bib span { display: block; margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Player video del club */
.club-video { position: relative; margin-top: clamp(56px, 8vw, 110px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); box-shadow: var(--shadow); }
.club-video video, .club-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.club-video .play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 18px; color: var(--white);
  background: linear-gradient(180deg, rgba(7, 26, 77, .15), rgba(7, 26, 77, .55));
  transition: opacity .4s;
}
.club-video .play-btn { width: clamp(78px, 9vw, 116px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); box-shadow: 0 0 0 0 rgba(242, 194, 0, .6); animation: pulse 2.2s infinite; transition: transform .4s var(--ease); }
.club-video .play:hover .play-btn { transform: scale(1.08); }
.club-video .play-btn svg { width: 34%; height: 34%; margin-left: 6%; }
.club-video .play-label { font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(.9rem, 1.6vw, 1.3rem); letter-spacing: .04em; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.club-video.is-playing .play { opacity: 0; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 194, 0, .55); } 70% { box-shadow: 0 0 0 28px rgba(242, 194, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 194, 0, 0); } }

/* ---------- Squadre ---------- */
.teams { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.team-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: 22px;
  border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate;
  background: var(--navy);
}
.team-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.team-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 77, 0) 28%, rgba(7, 26, 77, .6) 58%, rgba(7, 26, 77, .95) 100%); transition: opacity .5s; }
.team-card::after { /* sipario camo al passaggio */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 26, 77, .2), rgba(7, 26, 77, .9)), url("../img/pattern/camo-navy.svg") 0 0 / 600px auto;
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease);
}
.team-card:hover img { transform: scale(1.08); }
.team-card:hover::after { clip-path: inset(0 0 0 0); }
.team-num { position: absolute; top: 18px; left: 18px; font-stretch: 125%; font-weight: 800; font-size: .8rem; letter-spacing: .1em; background: var(--white); color: var(--navy); padding: 6px 10px; border-radius: 6px; }
.team-age { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.team-card h3 { margin-top: 8px; font-size: clamp(1.15rem, 1.5vw, 1.45rem); }
.team-card p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: .9rem; color: rgba(255, 255, 255, .85); transition: max-height .7s var(--ease), opacity .5s, margin .5s; }
.team-card:hover p { max-height: 140px; opacity: 1; margin-top: 10px; }
.team-card .link-arrow { color: var(--white); margin-top: 14px; }

/* ---------- Eventi (lista) ---------- */
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.event-date { text-align: center; background: var(--navy); color: var(--white); border-radius: 10px; padding: 10px 6px; line-height: 1; }
.event-date strong { display: block; font-stretch: 125%; font-weight: 800; font-size: 1.8rem; }
.event-date span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.event h3 { font-size: 1.05rem; font-stretch: 110%; font-weight: 800; text-transform: uppercase; }
.event p { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- Instagram ---------- */
.ig-head { display: flex; align-items: center; gap: 14px; }
/* feed del plugin Instagram (WordPress): testata e "Segui" li dà già la sezione */
.ig-feed #sb_instagram { padding: 0 !important; }
.ig-feed .sb_instagram_header, .ig-feed .sbi_follow_btn { display: none !important; }
.ig-feed .sbi_photo { border-radius: var(--radius-sm); }
.ig-avatar { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--gold), var(--red), #c13584, var(--blue), var(--gold)); flex: none; }
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; background: var(--white); padding: 6px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-post { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ice); display: block; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ig-post::after { content: ""; position: absolute; inset: 0; background: rgba(11, 33, 96, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='white'/%3E%3C/svg%3E") center / 34px no-repeat; opacity: 0; transition: opacity .35s; }
.ig-post:hover img { transform: scale(1.07); }
.ig-post:hover::after { opacity: 1; }
.ig-post .ig-type { position: absolute; top: 10px; right: 10px; z-index: 1; width: 22px; height: 22px; color: var(--white); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }

/* ---------- CTA doppia ---------- */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-card { position: relative; min-height: 380px; border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; text-decoration: none; }
.cta-card h2 { margin-bottom: 14px; }
.cta-card p { max-width: 42ch; margin-bottom: 26px; }
.cta-card--navy { color: var(--white); }
.cta-card--navy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(7, 26, 77, .25), rgba(7, 26, 77, .92) 70%), url("../img/pattern/camo.svg") 0 0 / 840px auto; transition: transform 1.4s var(--ease); }
.cta-card--gold { background: var(--gold); color: var(--navy); }
.cta-card--gold::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; z-index: -1; background: url("../img/logo.svg") center / contain no-repeat; opacity: .14; transform: rotate(-14deg); transition: transform 1.4s var(--ease); }
.cta-card:hover::before { transform: scale(1.06) rotate(-2deg); }
.cta-card .big-icon { width: 56px; height: 56px; margin-bottom: auto; padding-bottom: 28px; box-sizing: content-box; }

/* ---------- Gallery ---------- */
.gallery { columns: 4 240px; column-gap: 12px; }
.g-item { position: relative; display: block; width: 100%; margin: 0 0 12px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--ice); cursor: zoom-in; }
.g-item img { width: 100%; transition: transform .9s var(--ease), filter .5s; }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: var(--white); font-size: .82rem; font-weight: 600; background: linear-gradient(transparent, rgba(7, 26, 77, .85)); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease); text-align: left; }
.g-item:hover figcaption { opacity: 1; transform: none; }
.g-item--video { cursor: pointer; }
.g-item--video .g-play { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5); transition: transform .4s var(--ease), background .3s; }
.g-item--video .g-play svg { width: 24px; height: 24px; margin-left: 3px; }
.g-item--video:hover .g-play { transform: scale(1.12); background: var(--gold); }
.g-item .g-tag { position: absolute; top: 12px; left: 12px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: var(--navy); color: var(--white); padding: 5px 9px; border-radius: 6px; }
.gallery-more { display: flex; justify-content: center; margin-top: 28px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; grid-template-rows: auto 1fr auto; background: rgba(4, 14, 42, .96); color: var(--white); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: .85rem; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 70px; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100svh - 150px); border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.lb-caption { text-align: center; padding: 14px 20px 22px; font-size: .92rem; color: rgba(255, 255, 255, .8); min-height: 56px; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: background .25s; }
.lb-btn:hover { background: var(--gold); color: var(--navy); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ---------- Comunicazioni ---------- */
.notices { display: grid; gap: 14px; }
.notice { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start; padding: 26px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: box-shadow .35s, transform .35s var(--ease), border-color .3s; }
.notice:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.notice-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--ice); color: var(--blue-deep); }
.notice-icon svg { width: 26px; height: 26px; }
.notice--evidenza { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.notice-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; font-size: .78rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--ice); color: var(--blue-deep); }
.chip--gold { background: var(--gold); color: var(--navy); }
.notice h3 { font-stretch: 110%; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; line-height: 1.2; }
.notice-body { margin-top: 12px; font-size: .96rem; color: #2a3a5e; }
.notice-body.is-collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notice-toggle { margin-top: 10px; font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.attachment { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--navy); color: var(--white); font-size: .8rem; font-weight: 700; text-decoration: none; transition: background .25s; }
.attachment:hover { background: var(--blue-deep); }
.attachment svg { width: 16px; height: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { padding: 10px 16px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--white); border: 1px solid var(--line); transition: background .25s, color .25s; }
.filter[aria-pressed="true"], .filter:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty { padding: 34px; border-radius: var(--radius); border: 2px dashed var(--line); color: var(--muted); text-align: center; }

/* ---------- 5x1000 ---------- */
.five { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; isolation: isolate; color: var(--navy); }
.five::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/pattern/camo.svg") 0 0 / 840px auto; animation: drift 120s linear infinite; }
.five-main { background: var(--white); padding: clamp(32px, 5vw, 64px); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); padding-right: clamp(60px, 9vw, 130px); }
.five-num { font-stretch: 125%; font-weight: 800; font-size: clamp(3.2rem, 8vw, 6.6rem); line-height: .85; color: var(--navy); letter-spacing: -.02em; }
.five-num span { color: var(--blue); }
.five-main h2 { margin: 14px 0 12px; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.five-main p { color: #2a3a5e; max-width: 48ch; }
.cf-box { display: inline-flex; align-items: center; gap: 4px; margin: 22px 0 26px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--ice); border: 2px solid var(--navy); }
.cf-box small { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.cf-box strong { font-stretch: 112%; font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .06em; font-variant-numeric: tabular-nums; margin-right: 10px; }
.cf-copy { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background .25s; }
.cf-copy:hover { background: var(--blue-deep); }
.cf-copy svg { width: 15px; height: 15px; }
.cf-copy.copied { background: var(--green); }
.five-side { display: grid; place-items: center; padding: 32px; }
.five-side .slogan { background: rgba(255, 255, 255, .92); border-radius: 22px; padding: 26px 28px; text-align: center; box-shadow: var(--shadow); transform: rotate(-3deg); }
.five-side .slogan small { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.five-side .slogan strong { display: block; margin-top: 6px; font-stretch: 125%; font-weight: 800; font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2.1rem); text-transform: uppercase; color: var(--navy); line-height: 1; }

/* ---------- Centenario ---------- */
.centenary { position: relative; clip-path: inset(-200px 0 0 0); }
.centenary-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.hundred { position: relative; font-stretch: 125%; font-weight: 900; font-size: clamp(9rem, 26vw, 22rem); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(134, 218, 249, .55); user-select: none; }
.hundred .fill { position: absolute; inset: 0; color: var(--white); -webkit-text-stroke: 0; background: url("../img/pattern/camo.svg") 0 0 / 520px auto; -webkit-background-clip: text; background-clip: text; color: transparent; clip-path: inset(var(--fill, 100%) 0 0 0); transition: clip-path 2.2s var(--ease); }
.hundred.in .fill { --fill: 0%; }
.hundred-years { display: flex; justify-content: space-between; margin-top: 18px; font-stretch: 125%; font-weight: 800; letter-spacing: .1em; color: var(--light); font-size: clamp(.9rem, 1.6vw, 1.2rem); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0 34px; max-width: 520px; }
.cd-cell { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 16px 8px 12px; text-align: center; }
.cd-cell strong { display: block; font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold); }
.cd-cell span { display: block; margin-top: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.cd-label { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-top: 28px; }

/* Libro */
.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.book-cover { position: relative; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: -12px 22px 40px -18px rgba(7, 26, 77, .55), inset 6px 0 10px rgba(0, 0, 0, .2); transform: perspective(900px) rotateY(10deg); transition: transform .8s var(--ease); }
.book:hover .book-cover { transform: perspective(900px) rotateY(0); }

/* Timeline a porte da slalom */
.course { position: relative; max-width: 940px; margin: 0 auto; padding: 20px 0; }
.course::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(var(--line) 0 10px, transparent 10px 20px); }
.gate { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-bottom: 30px; }
.gate-body { padding: 22px 24px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 36px -26px rgba(7, 26, 77, .4); }
.gate-year { font-stretch: 125%; font-weight: 800; font-size: 1.8rem; color: var(--navy); line-height: 1; margin-bottom: 8px; }
.gate-body p { font-size: .95rem; color: #2a3a5e; margin: 0; }
.gate::before { /* bandierina */
  content: ""; position: absolute; left: 50%; top: 18px; width: 26px; height: 30px; margin-left: -13px; z-index: 1;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%);
}
.gate:nth-child(even)::before { background: var(--blue); }
.gate:nth-child(odd) .gate-body { grid-column: 1; text-align: right; }
.gate:nth-child(even) .gate-body { grid-column: 2; }
.gate:last-child .gate-body { background: var(--navy); color: var(--white); border-color: transparent; }
.gate:last-child .gate-year { color: var(--gold); }
.gate:last-child p { color: rgba(255, 255, 255, .85); }

/* ---------- Sponsor ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 60s) linear infinite; }
.marquee--reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.sponsor-logo { flex: none; width: 200px; aspect-ratio: 300 / 226; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 14px 28px -20px rgba(7, 26, 77, .45); transition: transform .4s var(--ease), box-shadow .4s; }
.sponsor-logo img { width: 100%; height: 100%; object-fit: cover; }
a.sponsor-logo:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 36px -18px rgba(7, 26, 77, .55); }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.sponsor-grid .sponsor-logo { width: 100%; }
.sponsor-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; text-align: center; }

/* ---------- Card generiche / step ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: url("../img/pattern/camo.svg") 0 0 / 300px auto; color: var(--white); }
.card-icon svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(7, 26, 77, .5)); }
.card h3 { font-stretch: 110%; font-weight: 800; font-size: 1.08rem; text-transform: uppercase; margin-bottom: 10px; }
.card p { font-size: .95rem; color: #3a4a6e; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--navy); color: var(--white); overflow: hidden; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-stretch: 125%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.step::after { content: ""; position: absolute; right: 0; top: 0; width: 90px; height: 90px; background: url("../img/pattern/camo-navy.svg") 0 0 / 420px auto; opacity: .9; -webkit-mask-image: linear-gradient(225deg, #000 30%, transparent 70%); mask-image: linear-gradient(225deg, #000 30%, transparent 70%); }
.step h3 { font-stretch: 110%; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; margin-bottom: 8px; }
.step p { font-size: .93rem; color: rgba(255, 255, 255, .8); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tilt { transform: rotate(1.5deg); }

/* Allenatori */
.coaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.coach { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.coach-photo { aspect-ratio: 4 / 4.2; overflow: hidden; background: url("../img/pattern/camo-ice.svg") 0 0 / 600px auto; display: grid; place-items: center; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.coach:hover .coach-photo img { transform: scale(1.06); }
.coach-photo .initials { font-stretch: 125%; font-weight: 800; font-size: 2.4rem; color: var(--navy); }
.coach-body { padding: 16px 18px 18px; }
.coach-body h3 { font-stretch: 110%; font-weight: 800; font-size: 1rem; text-transform: uppercase; }
.coach-body p { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* Squadra dettaglio (pagina attività) */
.team-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.team-detail:first-child { border-top: 0; padding-top: 0; }
.team-detail:nth-child(even) .media-frame { order: 2; }
.team-detail .team-age { color: var(--blue-deep); }
.team-detail h2 { margin: 10px 0 6px; }
.team-detail .sub { font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.team-detail .coaches-line { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .9rem; }
.team-detail .coaches-line strong { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.team-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.team-nav a { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--white); text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background .25s, color .25s; }
.team-nav a:hover { background: var(--gold); color: var(--navy); }

/* Consiglio */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.board-item { padding: 22px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.board-item span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-deep); }
.board-item strong { display: block; margin-top: 6px; font-stretch: 110%; font-size: 1.1rem; text-transform: uppercase; }

/* Tabs semplici (chi siamo) */
.details { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font-stretch: 110%; font-weight: 800; text-transform: uppercase; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--blue); transition: transform .3s; }
.details[open] summary::after { transform: rotate(45deg); }
.details .prose { padding: 0 26px 26px; }

/* Form */
.form { display: grid; gap: 14px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--snow); color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); }

/* Contatti */
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .3s var(--ease); }
a.contact-item:hover { border-color: var(--blue); transform: translateX(4px); }
.contact-item .ci-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--white); flex: none; }
.contact-item .ci-icon svg { width: 22px; height: 22px; }
.contact-item small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item strong { font-weight: 700; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { position: relative; color: rgba(255, 255, 255, .78); padding: clamp(80px, 9vw, 120px) 0 30px; background: var(--navy-deep); clip-path: inset(-200px 0 0 0); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 84px; margin-bottom: 18px; }
.footer-brand strong { display: block; color: var(--white); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; margin-bottom: 10px; }
.footer-brand p { font-size: .9rem; max-width: 34ch; }
.site-footer h4 { color: var(--white); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; font-size: .92rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .25s, color .25s; }
.social-row a:hover { background: var(--gold); color: var(--navy); }
.social-row svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: rgba(255, 255, 255, .55); }
.footer-word { position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%); font-stretch: 125%; font-weight: 900; font-size: clamp(4rem, 15vw, 15rem); line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06); pointer-events: none; user-select: none; }

/* ---------- Animazioni di comparsa ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* Rivelazione a pixel sulle immagini */
.pix-reveal { position: relative; }
.pix-cover { position: absolute; inset: 0; z-index: 2; display: grid; pointer-events: none; }
.pix-cover i { background: var(--c, var(--sky)); transition: transform .5s var(--ease), opacity .5s; transition-delay: var(--d, 0s); }
.pix-reveal.in .pix-cover i { transform: scale(0); opacity: 0; }

/* Caricamento contenuti */
[data-loading] { min-height: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: block; }
  .teams { grid-template-columns: repeat(5, minmax(260px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .teams::-webkit-scrollbar { display: none; }
  .team-card { scroll-snap-align: start; min-height: 420px; }
  .team-card p { max-height: none; opacity: 1; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .topbar nav { display: none; }
  .intro-grid, .centenary-grid, .split, .team-detail, .book, .cta-duo { grid-template-columns: 1fr; }
  .team-detail:nth-child(even) .media-frame { order: 0; }
  .five { grid-template-columns: 1fr; }
  .five-main { clip-path: none; padding-right: clamp(28px, 5vw, 64px); }
  .five-side { padding: 40px 24px; }
  .hero-badge { display: none; } /* su smartphone copriva il testo: il conto alla rovescia resta nella sezione Centenario */
  .scroll-cue { display: none; }
  .hundred { font-size: clamp(8rem, 42vw, 16rem); }
  .gate { grid-template-columns: 1fr; gap: 0; padding-left: 46px; }
  .gate:nth-child(odd) .gate-body, .gate:nth-child(even) .gate-body { grid-column: 1; text-align: left; }
  .course::before { left: 13px; }
  .gate::before { left: 13px; }
  .notice { grid-template-columns: 1fr; gap: 14px; }
  .notice-icon { display: none; }
  .event { grid-template-columns: 76px 1fr; }
  .event .link-arrow { grid-column: 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar-right .topbar-mail { display: none; }
  .brand img { width: 42px; height: 42px; }
  .brand-text span { display: none; }
  .stats { gap: 10px; }
  .bib { padding: 26px 12px 16px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2 140px; column-gap: 8px; }
  .g-item { margin-bottom: 8px; border-radius: 10px; }
  .g-item figcaption { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cf-box { flex-wrap: wrap; border-radius: 18px; padding: 12px 12px 12px 18px; }
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -62px; transform: none; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .countdown { gap: 6px; }
  .sponsor-logo { width: 160px; }
  .cta-card { min-height: 320px; }
  .hero h1 { font-size: clamp(1.8rem, 8.4vw, 3rem); }
  .hero-content { padding-top: 230px; padding-bottom: 96px; }
  .hero .btn-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Esito dei moduli (WordPress) */
.form-esito { min-height: 1.4em; font-weight: 700; color: var(--blue-deep); }
.form-esito:empty { display: none; }
.form button[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Sito in allestimento (allestimento.html) ---------- */
.cs { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--navy-deep); color: var(--white); }
.cs-bg { position: fixed; inset: 0; z-index: 0; }
.cs-bg video { width: 100%; height: 100%; object-fit: cover; }
.cs-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 77, .55) 0%, rgba(7, 26, 77, .35) 40%, rgba(7, 26, 77, .9) 100%); }
.cs-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px var(--gutter); }
.cs-logo { width: clamp(96px, 12vw, 132px); height: auto; margin-bottom: 26px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.cs .kicker { color: var(--light); }
.cs .h1 { text-shadow: 0 6px 30px rgba(7, 26, 77, .45); }
.cs-oro { color: var(--gold); }
.cs-testo { max-width: 56ch; margin: 22px auto 30px; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255, 255, 255, .9); }
.cs-azioni { justify-content: center; }
.cs-azioni .btn--ghost { color: var(--white); }
.cs-piede { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); font-size: .8rem; }
.cs-firma { color: rgba(255, 255, 255, .75); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; text-align: right; }
.cs-accesso { position: relative; }
.cs-accedi { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); transition: background .2s, color .2s; }
.cs-accedi:hover, .cs-accedi[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: var(--white); }
.cs-accedi svg { width: 16px; height: 16px; }
.cs-form { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 16px; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.cs-form[hidden] { display: none; }
.cs-form label { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.cs-campo { display: flex; gap: 8px; }
.cs-campo input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem; }
.cs-campo input:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.cs-errore { margin: 10px 0 0; color: var(--red); font-size: .85rem; font-weight: 600; }
@media (max-width: 560px) {
  .cs-firma { max-width: 16ch; }
}
