/* La Palma Cagliari 1963
   Colori presi dallo stemma e dalle grafiche ufficiali del club. */

/* Font ospitati sul sito (nessuna richiesta a Google: niente dati a terzi) */
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dancing-script-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: 'Dancing Script';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/dancing-script-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: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/barlow-latin-ext-133bce.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: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/barlow-latin-3cfec0.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: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/barlow-latin-ext-b3908b.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: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/barlow-latin-4f52d6.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: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/barlow-latin-ext-82b5af.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: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/barlow-latin-873972.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: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/barlow-latin-ext-f87323.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: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/barlow-latin-5cfda6.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-ext-473c2f.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-832b15.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-ext-473c2f.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-832b15.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-ext-473c2f.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: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-832b15.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;
}

:root {
  --notte: #012148;
  --notte-2: #0a2d5c;
  --blu: #0a5ea7;
  --blu-scuro: #084c88;
  --mare: #7cc8ff;
  --calce: #eef3f8;
  --bianco: #ffffff;
  --ink: #0c2340;
  --muted: #4b5f78;
  --line: #cfdbe8;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Dancing Script", "Segoe Script", cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 64px;
  --radius: 6px;
  --filigrana: url("../img/brand/filigrana.webp");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: var(--bar-h); /* spazio sotto la barra fissa */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--mare); outline-offset: 3px; border-radius: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--bianco); color: var(--notte); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Scorrimento fluido (Lenis): lo scroll animato lo gestisce lo script, non il CSS */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Barra superiore ---------- */
/* fixed e non sticky: con overflow-x sul body lo sticky si perde su molti browser del telefono */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--notte); color: var(--bianco); }
.bar__in { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 4px; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav .nav__cta { background: var(--blu); margin-left: 8px; }
.nav .nav__cta:hover { background: var(--blu-scuro); }
.navtoggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; }
.navtoggle__lines, .navtoggle__lines::before, .navtoggle__lines::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.navtoggle__lines::before, .navtoggle__lines::after { content: ""; position: absolute; left: 0; }
.navtoggle__lines::before { top: -7px; }
.navtoggle__lines::after { top: 7px; }
.navtoggle[aria-expanded="true"] .navtoggle__lines { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__lines::before { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__lines::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .brand__name span { display: none; }
  .navtoggle { display: block; }
  .nav { position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--notte); padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255,255,255,.12); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav .nav__cta { margin: 12px 0 0; text-align: center; border-radius: 4px; border: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--bar-h)); display: flex; align-items: flex-end; color: var(--bianco); background: var(--notte); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); }
@media (prefers-reduced-motion: no-preference) {
  .hero__slide img { transform: scale(1.06); transition: transform 8s linear; }
  .hero__slide.is-active img { transform: scale(1); }
}
.hero__dots { display: flex; align-items: center; gap: 6px; margin-top: 26px; }
.hero__dot { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: none; }
.hero__dot::before, .hero__dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.hero__dot::before { background: rgba(255,255,255,.35); }
.hero__dot::after { background: var(--bianco); transform: scaleX(0); transform-origin: left; }
.hero__dot[aria-current="true"]::after { transform: scaleX(1); }
.hero.is-running .hero__dot[aria-current="true"]::after { animation: fill 6.5s linear both; }
@keyframes fill { from { transform: scaleX(0); } }
.hero__pause { width: 28px; height: 24px; margin-left: 6px; border: 0; padding: 0; background: none; color: var(--bianco); opacity: .8; }
.hero__pause::before { content: ""; display: block; width: 10px; height: 12px; margin: auto; border-left: 3px solid; border-right: 3px solid; }
.hero__pause[aria-pressed="true"]::before { width: 0; height: 0; border-left: 11px solid; border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hero__pause:hover { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(1,33,72,.92) 0%, rgba(1,33,72,.5) 30%, transparent 58%),
    linear-gradient(to right, rgba(1,33,72,.55) 0%, rgba(1,33,72,.2) 35%, transparent 55%); }
.hero__in { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 28vh var(--gutter) clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero__crest { width: clamp(64px, 8vw, 96px); margin-bottom: 18px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero__title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.6rem, 8.6vw, 8.4rem); line-height: .82; letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 2px 30px rgba(1,33,72,.35); }
.hero__lead { margin-top: 20px; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; color: #eef5fc; text-shadow: 0 1px 2px rgba(1,33,72,.8), 0 2px 18px rgba(1,33,72,.9); }

/* Biglietto della prossima partita */
.ticket {
  --stub: 170px;
  position: relative; display: grid; grid-template-columns: 1fr var(--stub);
  background: var(--bianco); color: var(--ink); border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  -webkit-mask: radial-gradient(circle 11px at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 11px at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket__main { position: relative; padding: 22px 24px 24px; }
.ticket__kicker { font-size: .88rem; font-weight: 600; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ticket__kicker #nm-round { color: var(--blu); }
.ticket__match { margin-top: 10px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: .95; display: flex; flex-direction: column; }
.ticket__vs { color: var(--blu); font-size: .6em; line-height: 1; padding: 2px 0; }
#nm-home, #nm-away { display: flex; align-items: center; gap: 10px; }
.crest--t { width: 34px; height: 34px; object-fit: contain; flex: none; }
.ticket__last { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); padding-right: 120px; }
.ticket__last b { color: var(--notte); font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.ticket__live { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--blu); }
.ticket__when { margin-top: 14px; font-weight: 700; }
.ticket__where { color: var(--muted); font-size: .95rem; padding-right: 128px; }
.ticket__stamp {
  position: absolute; bottom: 20px; right: 18px; transform: rotate(-9deg);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; line-height: 1;
  color: var(--blu); border: 2.5px solid currentColor; border-radius: 4px; padding: 6px 8px 5px; opacity: .9;
}
.ticket__stamp.is-home { color: #0b8a4a; }
.ticket__stub { border-left: 2px dashed var(--line); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--calce); border-radius: 0 10px 10px 0; }
.ticket__label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.countdown { display: grid; gap: 4px; }
.countdown span { font-size: .85rem; color: var(--muted); display: grid; grid-template-columns: 2.6ch auto; align-items: baseline; gap: 8px; }
.countdown b { font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: .95; color: var(--notte); min-width: 1.6ch; }
.countdown.is-live b { color: var(--blu); }
.ticket__link { margin-top: auto; font-weight: 700; color: var(--blu); text-decoration-thickness: 2px; text-underline-offset: 3px; font-size: .95rem; }

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero__in { grid-template-columns: 1fr; padding-top: 32vh; }
  .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 10px 10px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .ticket__label { width: 100%; }
  .countdown { grid-auto-flow: column; gap: 16px; }
  .ticket__link { margin-top: 0; }
}

/* Unico momento animato: l'arrivo del biglietto */
@media (prefers-reduced-motion: no-preference) {
  .hero__title, .hero__lead, .hero__crest { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero__lead { animation-delay: .08s; }
  .ticket { animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }
  .ticket__stamp { animation: stamp .35s .95s cubic-bezier(.3,1.6,.5,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  @keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.8); } }
}

/* ---------- Filigrana con lo stemma sugli sfondi blu ---------- */
.sec--blu, .storia, .sponsor, .foot, .join, .fixture--next, .st tr.is-us { background-image: var(--filigrana); background-repeat: no-repeat; }
.sec--blu, .storia, .sponsor { background-size: min(760px, 90vw) auto; background-position: right -140px top -60px; }
.storia { background-position: left -180px bottom -120px; }
.foot { background-size: 460px auto; background-position: right -90px bottom -160px; }
.join { background-size: 300px auto; background-position: right -40px center; }
.fixture--next { background-size: 150px auto; background-position: right 90px center; }
.st tr.is-us { background-size: 140px auto; background-position: right 40px center; }

/* ---------- Sezioni ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec--white { background: var(--bianco); }
.sec--lime { background: var(--calce); }
.sec--blu { background-color: var(--blu); color: var(--bianco); }
.sec--blu .title { color: var(--bianco); }
.sec--blu .sec__intro { color: #dcebfa; }
.sheet { background: var(--bianco); color: var(--ink); border-radius: 12px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 30px 60px -30px rgba(1,33,72,.6); }
.sec--blu .tabs { border-bottom-color: rgba(255,255,255,.25); }
.sec--blu .tabs button { color: rgba(255,255,255,.7); }
.sec--blu .tabs button:hover, .sec--blu .tabs button[aria-selected="true"] { color: var(--bianco); border-color: var(--bianco); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.sec__intro { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }
.title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: .86; color: var(--notte); letter-spacing: -.005em; }
.title--light { color: var(--bianco); }
@media (max-width: 760px) { .sec__head { grid-template-columns: 1fr; } }

/* Tabs */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 16px 14px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--notte); border-color: var(--blu); }
.tabs button:hover { color: var(--notte); }
.panel__note { color: var(--muted); margin-bottom: 16px; }

/* Calendario */
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cal__half h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; color: var(--blu); padding-bottom: 8px; }
.fixture { display: grid; grid-template-columns: 2.4rem 5.6rem minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 60px; padding: 0 10px; border-top: 1px solid var(--line); }
.fixture__n { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--muted); }
.fixture__date { font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fixture__opp { font-weight: 600; display: flex; align-items: center; gap: 10px; min-width: 0; }
.fixture__opp .crest { width: 26px; height: 26px; object-fit: contain; flex: none; }
.score { font-family: var(--display); font-weight: 800; font-size: 1.15rem; line-height: 1; padding: 5px 8px 4px; border-radius: 3px; color: var(--bianco); min-width: 3.1em; text-align: center; }
.score--V { background: #0b8a4a; }
.score--N { background: #6b7c90; }
.score--P { background: #c0392b; }
.score--live { background: var(--blu); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.fixture--past:has(.score) { opacity: 1; }
.fixture__opp > span { min-width: 0; line-height: 1.25; }
.fixture__opp > span, .fixture__opp small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fixture__opp small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.fixture__where { font-size: .8rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; }
.fixture--home .fixture__where { background: var(--blu); color: var(--bianco); }
.fixture--away .fixture__where { background: transparent; color: var(--blu); box-shadow: inset 0 0 0 1.5px var(--blu); }
.fixture--past { opacity: .5; }
.fixture--next { background-color: var(--notte); border-radius: var(--radius); border-top-color: transparent; color: var(--bianco); }
.fixture--next + .fixture { border-top-color: transparent; }
.fixture--next .fixture__n, .fixture--next .fixture__date, .fixture--next small { color: var(--mare); }
.fixture--next.fixture--away .fixture__where { color: var(--bianco); box-shadow: inset 0 0 0 1.5px var(--bianco); }
.legend { margin-top: 20px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.legend > span { white-space: nowrap; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.dot--home { background: var(--blu); }
.dot--away { box-shadow: inset 0 0 0 1.5px var(--blu); }
@media (max-width: 860px) { .cal { grid-template-columns: 1fr; } .cal__half + .cal__half { margin-top: 32px; } }
@media (max-width: 480px) { .sheet { padding: 12px 8px; border-radius: 10px; } .fixture { grid-template-columns: 1.5rem 3.6rem minmax(0, 1fr) auto; gap: 7px; padding-inline: 6px; } .fixture__opp { gap: 7px; } .fixture__opp .crest { width: 22px; height: 22px; } .fixture__where { font-size: .72rem; padding: 3px 6px; } }

/* Classifica */
.standings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.standings.has-round { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.st__wrap { overflow-x: auto; }
.st { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.st th, .st td { padding: 10px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.st thead th { font-size: .8rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--notte); }
.st abbr { text-decoration: none; }
.st tbody th { text-align: left; font-weight: 600; width: 100%; }
.st__team { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.st__team .crest { width: 30px; height: 30px; object-fit: contain; flex: none; }
.st td { min-width: 2.4em; }
.st thead th:nth-child(2) { text-align: left; }
.st__pos { color: var(--muted); width: 2.2em; }
.st__pt { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--notte); }
.st tr.is-us { background-color: var(--notte); color: var(--bianco); }
.st tr.is-us td, .st tr.is-us th, .st tr.is-us .st__pt, .st tr.is-us .st__pos { color: var(--bianco); border-color: transparent; }
.round h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; color: var(--blu); padding-bottom: 8px; border-bottom: 2px solid var(--notte); }
.round li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.round li.is-us { font-weight: 700; }
.round b { font-family: var(--display); font-size: 1.1rem; white-space: nowrap; }
.rr__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rr__team--away { justify-content: flex-end; text-align: right; }
.rr__team .crest { width: 22px; height: 22px; object-fit: contain; flex: none; }
@media (max-width: 900px) { .standings.has-round { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .st__opt { display: none; }
  .st th, .st td { padding: 8px 4px; }
  .st td { min-width: 1.7em; }
  .st__pos { width: 1.6em; }
  /* i nomi lunghi vanno a capo: la tabella resta nello schermo del telefono */
  .st__team { white-space: normal; gap: 7px; font-size: .9rem; line-height: 1.2; }
  .st__team .crest { width: 22px; height: 22px; }
  .st__pt { font-size: 1.05rem; }
}

/* Risultati amichevoli */
.results li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.results time { color: var(--muted); font-variant-numeric: tabular-nums; }
.results__teams { font-weight: 600; }
.results__score { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--notte); }
.results__note { grid-column: 2 / -1; color: var(--muted); font-size: .95rem; }

/* ---------- Rosa ---------- */
.roster__role { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--blu); margin: 40px 0 16px; padding-top: 12px; border-top: 2px solid var(--notte); }
.roster__role:first-child { margin-top: 0; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px 16px; }
.player { position: relative; display: flex; flex-direction: column; }
.player img { width: 100%; aspect-ratio: 320 / 369; object-fit: cover; object-position: 50% 0; background: var(--bianco); border-radius: var(--radius); }
.player__name { margin-top: 10px; font-weight: 700; line-height: 1.25; }
.player__tag { position: absolute; top: 8px; left: 8px; background: var(--notte); color: var(--bianco); font-size: .75rem; font-weight: 700; padding: 3px 7px; border-radius: 3px; }
@media (max-width: 420px) { .players { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }

/* ---------- Maglie: carte che si girano ---------- */
.kits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.kit { background: var(--bianco); border-radius: 16px; padding: 18px 18px 26px; text-align: center; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(1,33,72,.45); }
.kit__card { display: block; width: 100%; padding: 0; border: 0; background: none; perspective: 1400px; cursor: pointer; border-radius: 12px; }
.kit__inner { position: relative; display: block; aspect-ratio: 1; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.kit__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #ffffff; overflow: hidden; }
.kit__face img { width: 100%; height: auto; }
.kit__face--retro { transform: rotateY(180deg); }
.kit__card[aria-pressed="true"] .kit__inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .kit__card:hover .kit__inner { transform: rotateY(180deg); }
  .kit__card[aria-pressed="true"]:hover .kit__inner { transform: rotateY(0deg); }
}
.kit__title { margin-top: 14px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 2vw, 2rem); line-height: .95; color: var(--notte); white-space: nowrap; }
.kit__kind { margin-top: 6px; font-size: .95rem; font-weight: 600; color: var(--muted); }
@media (max-width: 1000px) { .kits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .kits { gap: 12px; } .kit { padding: 10px 10px 16px; } .kit__title { font-size: 1.3rem; } .kit__kind { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .kit__inner { transition: none; } }
.maglie { background-color: var(--bianco); }
.maglie .kit { box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px rgba(1,33,72,.45); }

/* ---------- Stadio: il biglietto costa zero ---------- */
.stadio { position: relative; isolation: isolate; background: var(--blu); color: var(--bianco); padding-block: clamp(72px, 10vw, 140px); overflow: hidden; }
.stadio__bg { position: absolute; inset: 0; z-index: -2; }
.stadio__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.stadio::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,94,167,.97) 0%, rgba(10,94,167,.88) 45%, rgba(1,33,72,.55) 100%); }
.stadio__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 480px); gap: clamp(40px, 6vw, 88px); align-items: center; }
.stadio__ask { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1; color: var(--mare); }
.stadio__title { margin-top: 12px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3.6rem, 9vw, 8rem); line-height: .82; letter-spacing: -.01em; }
.stadio__lead { margin-top: 24px; font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 500; max-width: 36ch; }
.stadio__quote { margin-top: 26px; padding-left: 18px; border-left: 3px solid var(--mare); color: #dcebfa; max-width: 48ch; }
.stadio__next { margin-top: 30px; display: inline-flex; flex-direction: column; gap: 2px; background: rgba(1,33,72,.55); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 14px 18px; }
.stadio__next-label { font-size: .85rem; font-weight: 700; color: var(--mare); }
.stadio__next b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; }
.stadio__next span:last-child { color: #dcebfa; }
.stadio__place { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.stadio__place a { color: var(--bianco); font-weight: 600; text-underline-offset: 3px; }

.stadio__cta { margin-top: 26px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; }
.stadio__pass { position: relative; padding: 40px 0 0 0; }
.stadio__sign { position: absolute; top: 0; right: -24px; width: 58%; transform: rotate(6deg); box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); border: 6px solid var(--bianco); border-bottom-width: 30px; z-index: 0; }
.stadio__sign img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stadio__pass .freepass { position: relative; z-index: 1; margin-top: 120px; }
@media (max-width: 900px) { .stadio__pass { max-width: 460px; } }
@media (max-width: 420px) { .stadio__sign { width: 62%; right: -8px; } .stadio__pass .freepass { margin-top: 110px; } }

/* Il biglietto gratuito */
.freepass { --stub: 76px; display: grid; grid-template-columns: 1fr var(--stub); color: var(--ink); transform: rotate(-3deg); filter: drop-shadow(0 30px 40px rgba(0,0,0,.4));
  -webkit-mask: radial-gradient(circle 12px at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 12px at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 12px at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 12px at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.freepass__main { background: var(--bianco); border-radius: 12px 0 0 12px; padding: 24px 28px 22px; }
.freepass__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--notte); }
.freepass__head img { width: 34px; }
.freepass__head span { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); line-height: 1.25; }
.freepass__head b { color: var(--notte); font-size: 1rem; }
.freepass__price { font-family: var(--display); font-weight: 900; font-size: clamp(8rem, 16vw, 11.5rem); line-height: .8; color: var(--blu); margin: 22px 0 10px; letter-spacing: -.03em; display: flex; align-items: flex-start; gap: 6px; }
.freepass__price span { font-size: .38em; line-height: 1; margin-top: .12em; }
.freepass__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 2px dashed var(--line); }
.freepass__rows dt { font-weight: 600; color: var(--muted); }
.freepass__rows dd { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: 1; color: var(--notte); white-space: nowrap; }
.freepass__foot { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.freepass__stub { position: relative; background: var(--calce); border-left: 2px dashed var(--line); border-radius: 0 12px 12px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.freepass__code { position: absolute; left: 14px; right: 14px; top: 20px; height: 70px; background: repeating-linear-gradient(to bottom, var(--notte) 0 2px, transparent 2px 4px, var(--notte) 4px 7px, transparent 7px 9px, var(--notte) 9px 10px, transparent 10px 13px); opacity: .85; }
.freepass__stamp { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .04em; color: #0b8a4a; margin-top: 70px; }
@media (prefers-reduced-motion: no-preference) {
  .freepass { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .freepass:hover { transform: rotate(0deg) scale(1.02); }
}
@media (max-width: 900px) {
  .stadio__in { grid-template-columns: 1fr; }
  .freepass { max-width: 460px; transform: rotate(-2deg); }
}
@media (max-width: 420px) {
  .freepass { --stub: 58px; transform: none; }
  .freepass__main { padding: 20px 18px; }
  .freepass__rows dd { font-size: 1.35rem; }
  .freepass__stamp { font-size: 1.2rem; }
}

/* ---------- Giovanili ---------- */
.youth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.team img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); }
.team h3 { margin-top: 18px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: .95; color: var(--notte); }
.team dl { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .98rem; }
.team dt { color: var(--muted); }
.team dd { font-weight: 600; }
.team__note { margin-top: 14px; font-size: .95rem; color: var(--blu); font-weight: 600; }
.join { margin-top: clamp(40px, 6vw, 64px); background-color: var(--notte); color: var(--bianco); border-radius: 10px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr auto; gap: 12px 32px; align-items: center; }
.join h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.join p { color: #cfe0f2; max-width: 56ch; }
.btn { display: inline-block; background: var(--blu); color: var(--bianco); font-weight: 700; text-decoration: none; padding: 14px 20px; border-radius: 6px; white-space: nowrap; }
.btn:hover { background: #1470c2; }
@media (max-width: 960px) { .youth { grid-template-columns: 1fr 1fr; } .join { grid-template-columns: 1fr; } .join .btn { justify-self: start; } }
@media (max-width: 620px) { .youth { grid-template-columns: 1fr; } }

/* ---------- Storia ---------- */
.storia { background-color: var(--notte); color: var(--bianco); padding-block: clamp(64px, 9vw, 120px); }
.storia .sec__intro { color: #dcebfa; font-family: var(--script); font-weight: 500; font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.35; max-width: 30ch; }
.timeline { position: relative; display: grid; gap: 0; border-left: 2px solid rgba(124,200,255,.35); margin-left: 6px; max-width: 820px; }
.timeline li { position: relative; padding: 0 0 36px 32px; display: grid; grid-template-columns: 11rem 1fr; gap: 6px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--notte); box-shadow: inset 0 0 0 3px var(--mare); }
.timeline__year { font-family: var(--display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--mare); text-transform: uppercase; }
.timeline p { color: #dbe8f6; padding-top: 4px; max-width: 58ch; }
@media (max-width: 700px) { .timeline li { grid-template-columns: 1fr; } }
.storia__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.polaroid { margin: 0; background: #f4ecdc; padding: 14px 14px 18px; box-shadow: 0 24px 40px -20px rgba(0,0,0,.6); transform: rotate(3deg); }
.polaroid img { width: 100%; height: auto; }
.polaroid figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; text-align: center; }
.polaroid--wide { background: none; padding: 0; box-shadow: none; transform: rotate(-1.5deg); filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.polaroid--wide figcaption { color: #bcd2ea; margin-top: 14px; }
.polaroid figcaption span { display: block; margin-top: 2px; font-size: .78rem; opacity: .7; }
@media (max-width: 900px) { .storia__body { grid-template-columns: 1fr; } .polaroid { max-width: 360px; margin-top: 8px; } }
.crest-story { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.15); }
.crest-story__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; }
.crest-story dt { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.crest-story dd { margin-top: 6px; color: #bcd2ea; }
@media (max-width: 700px) { .crest-story { grid-template-columns: 1fr; } .crest-story img { max-width: 180px; } .crest-story__list { grid-template-columns: 1fr; } }

/* ---------- Società ---------- */
.staff__group { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; color: var(--blu); margin: 44px 0 16px; padding-top: 12px; border-top: 2px solid var(--notte); }
.staff__group:first-of-type { margin-top: 0; }
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
.staff__item--card img { object-position: 50% 0; }
.staff__item img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); }
.staff__name { display: block; margin-top: 12px; font-weight: 700; font-size: 1.08rem; }
.staff__role { display: block; color: var(--muted); font-size: .95rem; line-height: 1.35; }
@media (max-width: 460px) { .staff { grid-template-columns: 1fr 1fr; gap: 20px 12px; } }

/* ---------- Galleria ---------- */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery li { break-inside: avoid; margin-bottom: 14px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--calce); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery__credit { margin-top: 20px; color: var(--muted); font-size: .95rem; }
.gallery__credit a { color: var(--blu); font-weight: 600; text-underline-offset: 3px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(1,20,44,.94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 56px 12px 12px; }
.lightbox__close { position: absolute; top: 12px; right: 12px; background: var(--bianco); color: var(--notte); border: 0; font-weight: 700; padding: 8px 14px; border-radius: 4px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: var(--bianco); border: 0; width: 48px; height: 64px; font-size: 2rem; border-radius: 4px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Sponsor ---------- */
.sponsor { background-color: var(--notte); color: var(--bianco); padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }
.sponsor .sec__intro { color: #bcd2ea; }
.sponsor-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.sponsor-top__card { background: var(--bianco); color: var(--ink); border-radius: 10px; padding: 22px 28px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease; }
.sponsor-top__card:hover { transform: translateY(-3px); }
.sponsor-top__card img { height: clamp(70px, 9vw, 110px); width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.sponsor-top__role { font-weight: 700; font-size: .9rem; color: var(--blu); }
.sponsor-top__desc { color: var(--muted); font-size: .95rem; }

/* Cartelloni a bordo campo */
.boards { position: relative; margin-block: clamp(40px, 6vw, 72px); padding-bottom: 26px;
  background: linear-gradient(to bottom, transparent calc(100% - 26px), #1f7a3a calc(100% - 26px), #2a8f47); }
.boards::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 3px; background: rgba(255,255,255,.85); }
.boards__row { overflow: hidden; padding: 5px 0; }
.boards__track { display: flex; gap: 6px; width: max-content; animation: boards 55s linear infinite; }
.boards__row--rev .boards__track { animation-direction: reverse; animation-duration: 62s; }
.boards:hover .boards__track { animation-play-state: paused; }
@keyframes boards { to { transform: translateX(-50%); } }
.board { flex: none; width: 230px; height: 92px; background: var(--bianco); display: grid; place-items: center; padding: 12px 22px; border-radius: 2px; position: relative; overflow: hidden; }
.board::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(1,33,72,.04) 2px 3px); pointer-events: none; }
.board img { max-height: 64px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.board img.is-round { max-height: 70px; border-radius: 50%; }
.board img.is-badge { max-height: 70px; border-radius: 8px; }
.board .wordmark { font-size: 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  .boards__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .boards__track > .board:nth-child(n + 11) { display: none; }
}

.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.sp { height: 100%; display: flex; flex-direction: column; background: var(--bianco); color: var(--ink); border-radius: 8px; padding: 16px 16px 18px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.sp:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(0,0,0,.6); }
.sp__logo { height: 84px; display: grid; place-items: center; margin-bottom: 14px; }
.sp__logo img { max-height: 76px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.sp__logo img.is-round { border-radius: 50%; }
.sp__logo img.is-badge { border-radius: 10px; }
.wordmark { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.7rem; line-height: .95; color: var(--notte); text-align: center; }
.sp__name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; line-height: 1; color: var(--notte); }
.sp__desc { margin-top: 4px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.sponsor-cta { margin-top: 28px; font-weight: 600; color: #d6e4f3; }
.sponsor-cta a { color: var(--mare); text-underline-offset: 3px; }
@media (max-width: 700px) { .sponsor-top { grid-template-columns: 1fr; } .board { width: 180px; height: 76px; } .board img { max-height: 52px; } }
@media (max-width: 420px) { .sponsors { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.foot { background-color: var(--notte); color: var(--bianco); padding-block: clamp(56px, 7vw, 88px) 24px; }
.foot__in { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.foot__brand img { width: 88px; }
.foot__motto { margin-top: 14px; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; max-width: 12ch; }
.foot h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; color: var(--mare); margin-bottom: 10px; }
.foot__col p { color: #d6e4f3; margin-bottom: 8px; }
.foot__col a { color: var(--bianco); font-weight: 600; text-underline-offset: 3px; }
.foot__legal { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; font-size: .9rem; color: #9fb7d2; }
.foot__legal a { color: #9fb7d2; }
@media (max-width: 860px) { .foot__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__in { grid-template-columns: 1fr; } }

/* ---------- Transizioni all'ingresso nello schermo ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
  .js-reveal .sec__head[data-reveal] { opacity: 1; transform: none; }
  .js-reveal .sec__head[data-reveal] .title { clip-path: inset(-30% 100% -20% 0); transition: clip-path .9s cubic-bezier(.7,0,.2,1); }
  .js-reveal .sec__head[data-reveal].is-in .title { clip-path: inset(-30% -5% -20% 0); }
  .js-reveal .freepass[data-reveal] { transform: translateY(40px) rotate(-8deg); }
  .js-reveal .freepass[data-reveal].is-in { transform: rotate(-3deg); }
  .js-reveal .stadio__sign[data-reveal] { transform: translateY(30px) rotate(14deg); }
  .js-reveal .stadio__sign[data-reveal].is-in { transform: rotate(6deg); }
  .js-reveal .polaroid[data-reveal] { transform: translateY(30px) rotate(-4deg); }
  .js-reveal .polaroid[data-reveal].is-in { transform: rotate(3deg); }
  .hero__bg { will-change: transform; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
