/* ==========================================================
   MARIANELLA CALCIO - stile del sito
   Font: Poppins (titoli forti), Lora (testi con grazie), Anton (punteggi e numeri di maglia) - tutti OFL, liberi.
   Colori: primario #209ad7, bianco #ffffff, terzario #20244a
   ========================================================== */

@font-face { font-family: "Lora"; src: url("../fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff") format("woff"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-extrabold.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Anton"; src: url("../fonts/anton.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* palette del club (fissa) */
  --blue: #209ad7;
  --white: #ffffff;
  --navy: #20244a;

  /* tema fisso (blu notte): identico su tutti i dispositivi, non cambia con le impostazioni chiare/scure */
  --bg: #181b3b;
  --fg: #ffffff;
  --muted: #b9c3ee;
  --line: rgba(255, 255, 255, 0.22);
  --tile: #232850;
  color-scheme: dark;

  /* FONT: per cambiare carattere si modifica questa riga e i due @font-face in alto */
  --font: "Lora", Georgia, "Times New Roman", serif;                              /* testi */
  --font-head: "Poppins", "Helvetica Neue", Arial, sans-serif;                       /* titoli forti */
  --font-num: "Anton", Impact, "Arial Narrow", sans-serif;                        /* punteggi e numeri */
  --font-style: normal;
  --gutter: max(16px, 4vw);
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; font-size: 90%; }
body {
  margin: 0;
  font-family: var(--font);
  font-style: var(--font-style);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, .brand, .f-slogan { font-family: var(--font-head); font-style: var(--font-style); font-weight: 700; line-height: 1.04; margin: 0; text-wrap: balance; }
b, strong { font-weight: 700; }
em, i, cite, address { font-style: italic; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
@media (hover: hover) { a:hover { text-decoration-thickness: 3px; } }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: var(--navy); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- testata ---------- */
#site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header {
  position: relative;
  background: var(--blue);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(32, 36, 74, 0.2);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; font-weight: 700; font-size: 1.35rem; line-height: 1; }
.brand img { width: 2.8rem; height: 2.8rem; flex: none; }
.brand span { min-width: 0; }
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(32, 36, 74, 0.6);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0.1rem, 0.5vw, 0.5rem); }
.site-nav a { white-space: nowrap; text-decoration: none; padding: 0.35rem clamp(0.55rem, 0.9vw, 0.85rem) 0.4rem; border-radius: 999px; font-size: 1.1rem; transition: background-color 0.18s ease; }
@media (hover: hover) { .site-nav a:hover { background: rgba(255, 255, 255, 0.28); } }
.site-nav a[aria-current="page"] { background: var(--white); font-weight: 700; box-shadow: 0 5px 12px rgba(32, 36, 74, 0.22); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); box-shadow: 0 16px 24px rgba(32, 36, 74, 0.22); padding: 0.5rem var(--gutter) 1.2rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 1rem 0.75rem; font-size: 1.3rem; margin-block: 0.15rem; }
}

/* ---------- loghi di sfondo (un'unica regola per il logo) ---------- */
.logo-mark, .frame.ph::after, .story-bg::before {
  content: "";
  position: absolute;
  background: url("../img/logo.png") center / contain no-repeat;
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; background: var(--blue); color: var(--navy); }
.hero-stage { position: relative; overflow: clip; display: flex; flex-direction: column; justify-content: space-between; background: var(--blue); min-height: calc(100svh - 5rem); }
.hero-main { will-change: opacity; }
.hero-main { width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(1.5rem, 4vh, 4rem); }
.logo-fade { position: absolute; inset: 0; pointer-events: none; will-change: opacity; }
.hero-stage .logo-mark { width: clamp(340px, 56vw, 780px); aspect-ratio: 1; right: -10%; top: 50%; transform: translateY(-58%); opacity: 0.13; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1, .page-head h1 { color: var(--white); text-shadow: 0 3px 0 rgba(32, 36, 74, 0.28), 0 10px 30px rgba(32, 36, 74, 0.45); }
.hero h1 span { display: block; width: fit-content; animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero h1 span:nth-child(2) { animation-delay: 0.08s; }
.hero .lead { width: fit-content; animation: rise 0.5s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.hero-actions { width: fit-content; animation: rise 0.5s 0.26s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero-stage .logo-mark { animation: logo-in 1.2s 0.15s ease-out backwards; }
/* entrata del logo: solo una leggera dissolvenza */
@keyframes logo-in { from { opacity: 0; } }

/* foto o video dietro al titolo (si imposta in dati.js) */
.hero-media { position: absolute; inset: 0; z-index: 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(90deg, var(--blue) 10%, transparent 90%); opacity: 0.88; }
.hero h1 { font-size: clamp(3rem, min(11.5vw, 15vh), 8.4rem); letter-spacing: -0.02em; line-height: 0.92; }
.hero .lead { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--navy); margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn { display: inline-block; background: var(--navy); color: var(--white); text-decoration: none; font-weight: 700; padding: 0.75rem 1.6rem; border-radius: 999px; border: 2px solid var(--navy); font-size: 1.15rem; box-shadow: 0 8px 18px rgba(32, 36, 74, 0.38); transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease; }
@media (hover: hover) { .btn:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-3px); box-shadow: 0 14px 26px rgba(32, 36, 74, 0.42); } }
.btn:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(32, 36, 74, 0.35); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); box-shadow: 0 8px 18px rgba(32, 36, 74, 0.2); }
@media (hover: hover) { .btn.ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); } }
.btn.dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (hover: hover) { .btn.dark:hover { background: var(--white); color: var(--navy); border-color: var(--navy); } }

/* prossime partite: appaiono in dissolvenza dopo il titolo e si scorrono di lato */
.next-match { position: relative; z-index: 1; animation: dissolve 0.7s 0.45s ease backwards; }
@keyframes dissolve { from { opacity: 0; } }
.next-match .wrap { padding-block: 1rem 0; }
.matches-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.matches-head h2 { font-size: 1.5rem; }
.arrows { display: flex; gap: 0.5rem; }
.arrows button { width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 1.7rem; line-height: 1; padding: 0 0 0.2rem; cursor: pointer; box-shadow: 0 6px 14px rgba(32, 36, 74, 0.25); transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
@media (hover: hover) { .arrows button:hover:not(:disabled) { background: var(--navy); color: var(--white); transform: translateY(-2px); } }
.arrows button:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
.matches-track { --cw: min(21rem, 78vw); position: relative; display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0.2rem calc(50% + var(--gutter) - var(--cw) / 2) 1.5rem; scrollbar-width: none; }
.matches-track::-webkit-scrollbar { display: none; }
.mcard { will-change: opacity; flex: 0 0 var(--cw); scroll-snap-align: center; background: var(--white); color: var(--navy); border-radius: 1rem; padding: 0.9rem 1.1rem 1rem; box-shadow: 0 10px 24px rgba(32, 36, 74, 0.3); min-width: 0; }
.mcard.first { background: var(--navy); color: var(--white); }
.mcard .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; font-size: 1rem; line-height: 1.25; margin-bottom: 0.8rem; }
.mcard .when { text-align: right; }
.mcard .vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.4rem; align-items: start; }
.mcard .side { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; text-align: center; min-width: 0; }
.mcard .n { font-size: 1.02rem; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.mcard .x { padding-top: 1.1rem; opacity: 0.7; }
.badge { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--tile); color: var(--navy); font-weight: 700; font-size: 1.2rem; overflow: hidden; border: 2px solid var(--line); flex: none; }
.badge img { width: 100%; height: 100%; object-fit: contain; padding: 0.3rem; }
.badge.us { background: var(--blue); border-color: var(--blue); }
.badge.us img { padding: 0.12rem; }
.mcard.first .badge:not(.us) { background: var(--white); border-color: var(--white); }
.mcard .where { margin-top: 0.8rem; padding-top: 0.6rem; background: linear-gradient(90deg, var(--line), transparent) top / 100% 1px no-repeat; font-size: 1rem; line-height: 1.3; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-height: 2.4rem; }
.tbtn { flex: none; display: inline-block; background: var(--blue); color: var(--navy); text-decoration: none; font-weight: 700; padding: 0.15rem 0.95rem 0.2rem; border-radius: 999px; box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4); transition: transform 0.18s ease, background-color 0.18s ease; }
@media (hover: hover) { .tbtn:hover { background: var(--white); transform: translateY(-2px); } }
.mcard.first .where { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.4), transparent); color: rgba(255, 255, 255, 0.85); }
@media (min-width: 641px) { .matches-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); } }
@media (max-width: 640px) { .hero .lead { margin: 0.7rem 0 1.1rem; } .hero-main { padding-block: 1rem; } .arrows { display: none; } .matches-head h2 { font-size: 1.35rem; } }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }
.section-head h2 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
.section-head a { white-space: nowrap; }

.page-head { position: relative; overflow: hidden; background: var(--blue); color: var(--navy); padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.page-head .logo-mark { width: clamp(220px, 34vw, 420px); aspect-ratio: 1; right: -4%; top: 50%; transform: translateY(-50%); opacity: 0.3; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); letter-spacing: -0.015em; }
.page-head p { max-width: 38ch; margin: 1rem 0 0; font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--navy); }

.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 2.2rem 0 0.8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 1.25rem; line-height: 1.68; }

.banner-esempio { background: var(--navy); color: var(--white); padding: 0.55rem var(--gutter); text-align: center; font-size: 1rem; line-height: 1.35; }

/* ---------- notizie: una grande e due piccole, ognuna con la sua immagine ---------- */
.news { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.4rem); }
.news article { grid-column: span 12; min-width: 0; display: grid; gap: 1rem; align-content: start; }
.news .frame { border-radius: 1.1rem; box-shadow: 0 14px 30px rgba(32, 36, 74, 0.24); aspect-ratio: 16 / 10; }
.news img.photo { transition: transform 0.6s ease; }
@media (hover: hover) { .news article:hover img.photo { transform: scale(1.04); } }
.news time { color: var(--muted); font-size: 1rem; }
.news h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0.2rem 0 0.5rem; }
.news p { margin: 0; color: var(--muted); }
.news article.big h3 { font-size: clamp(2rem, 5vw, 3.2rem); }
.news article.big p { font-size: 1.3rem; max-width: 52ch; }
@media (min-width: 641px) { .news article.small { grid-column: span 6; } }
@media (min-width: 980px) {
  .news article.big { grid-column: span 7; grid-row: span 2; }
  .news article.big .frame { aspect-ratio: 16 / 11; }
  .news article.small { align-self: center; }
  .news article.small { grid-column: span 5; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 1.2rem; }
  .news article.small .frame { aspect-ratio: 1 / 1; }
  .news article.small h3 { font-size: 1.5rem; }
}

/* ---------- foto ---------- */
.frame { position: relative; overflow: hidden; background: var(--blue); margin: 0; }
.frame img.photo { width: 100%; height: 100%; object-fit: cover; }
.frame.ph::after { inset: 18%; opacity: 0.45; }
.frame .tag { position: absolute; left: 0.9rem; bottom: 0.6rem; right: 0.9rem; color: var(--white); font-size: 0.95rem; line-height: 1.2; }

.credit { margin: 1.1rem 0 0; color: var(--muted); font-size: 1.05rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; grid-auto-flow: dense; }
.gallery figure { margin: 0; min-width: 0; }
.gallery .frame { aspect-ratio: 4 / 5; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.wide .frame { aspect-ratio: 16 / 10; }
.gallery figcaption { padding-top: 0.5rem; font-size: 1.02rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 620px) { .gallery figure.wide { grid-column: auto; } .gallery figure.wide .frame { aspect-ratio: 4 / 5; } }

/* ---------- foto in Home ---------- */
.photos { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.shots .frame { aspect-ratio: 4 / 5; }
.shots .frame:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
@media (max-width: 720px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots .frame:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- fascia chiara ---------- */
.tinted { background: var(--tile); }

/* ---------- Academy (Home): fascia bianca centrata ---------- */
.academy { background: radial-gradient(circle at 10% 15%, rgba(32, 154, 215, 0.16), transparent 38%), radial-gradient(circle at 92% 88%, rgba(32, 154, 215, 0.14), transparent 40%), var(--white); color: var(--navy); padding-block: clamp(3.2rem, 8vw, 6rem); text-align: center; }
.academy .wrap { display: grid; justify-items: center; gap: 0.2rem; }
.academy .eyebrow { font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.academy h2 { font-size: clamp(3.2rem, 11vw, 7.5rem); color: var(--blue); text-shadow: 0 3px 0 rgba(32, 36, 74, 0.14), 0 12px 30px rgba(32, 154, 215, 0.35); margin-bottom: 0.4rem; }
.academy p { font-size: 1.35rem; max-width: 34ch; margin: 0 0 1.2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 0 0 1.8rem; padding: 0; }
.chips li { background: var(--tile); color: var(--navy); padding: 0.3rem 1.1rem 0.35rem; border-radius: 999px; box-shadow: 0 6px 14px rgba(32, 36, 74, 0.14); }
.academy + .section { background: var(--tile); }
@media (max-width: 640px) { .academy { padding-block: 2.4rem; } .academy p { font-size: 1.2rem; } }

/* ---------- fascia azzurra ---------- */
.band { background: var(--tile); color: var(--fg); padding-block: clamp(3rem, 7vw, 5rem); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); align-items: end; }
.band h2 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); }
.band p { font-size: 1.3rem; margin-bottom: 1.4rem; max-width: 40ch; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* ---------- academy ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 2rem; margin-top: 3rem; }
.pillars div { border-top: 3px solid var(--fg); padding-top: 0.9rem; }
.pillars h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.pillars p { margin: 0; color: var(--muted); }

/* ---------- rosa ---------- */
.role-group + .role-group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.role-group h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 1.2rem; display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.role-group h2 span { font-weight: 400; color: var(--muted); font-size: 1.1rem; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: 1.4rem 1rem; }
.player { margin: 0; min-width: 0; }
.player .frame { aspect-ratio: 3 / 4; }
.player .num { position: absolute; left: 0.8rem; bottom: 0.2rem; z-index: 1; font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.2rem); line-height: 1; color: var(--white); text-shadow: 0 2px 14px rgba(32, 36, 74, 0.7); }
.player h3 { font-size: 1.3rem; margin-top: 0.7rem; line-height: 1.15; }
.player p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.staff { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.staff li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0.8rem; border-top: 1px solid var(--line); }
.staff li:last-child { border-bottom: 1px solid var(--line); }
.staff b, .staff .nm { font-size: 1.3rem; }
.staff .nm { color: var(--fg); }
.staff .nm.tbd { color: var(--muted); }
.staff .rl { color: var(--muted); }
.cap { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 1; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; font-size: 1.1rem; line-height: 1; box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35); }

/* ---------- risultati ---------- */
.fixtures + .fixtures { margin-top: clamp(2.5rem, 6vw, 4rem); }
.fixtures h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 0.8rem; }
.match { display: grid; grid-template-columns: 10rem minmax(0, 1fr) auto; gap: 0.2rem 1.5rem; align-items: baseline; padding-block: 1rem; border-top: 1px solid var(--line); }
.match:last-child { border-bottom: 1px solid var(--line); }
.match .when { color: var(--muted); font-size: 1.05rem; line-height: 1.3; }
.match .teams { font-size: 1.35rem; line-height: 1.25; }
.match .teams .us { font-weight: 700; }
.match .teams .t, .match .teams .us { display: inline; }
.match .score { font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.match .score.time { font-size: 1.3rem; }
@media (max-width: 640px) {
  .match { grid-template-columns: minmax(0, 1fr) auto; }
  .match .when { grid-column: 1 / -1; }
}
.empty { color: var(--muted); padding-block: 1rem; border-top: 1px solid var(--line); margin: 0; }

/* ---------- chi siamo ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.facts { margin: 0; border-top: 3px solid var(--fg); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- contatti ---------- */
.contact-list { margin: 0; max-width: 52rem; }
.contact-list div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.2rem 1.5rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.contact-list dd.todo { color: var(--muted); font-weight: 400; font-size: 1.2rem; }
@media (max-width: 560px) { .contact-list div { grid-template-columns: 1fr; } }

/* ---------- piede ---------- */
.site-footer { background: var(--blue); color: var(--navy); padding-block: clamp(2.6rem, 6vw, 4rem); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
.site-footer .brand { margin-bottom: 0.9rem; }
.site-footer h2 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--white); text-shadow: 0 2px 0 rgba(32, 36, 74, 0.2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 0.15rem; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { text-decoration: underline; } }
.f-menu { columns: 2; column-gap: 1.5rem; }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .f-brand { grid-column: span 2; } }
@media (max-width: 520px) { .site-footer .top { grid-template-columns: 1fr; } .site-footer .f-brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---------- telefono ---------- */
@media (max-width: 640px) {
  body { font-size: 1.12rem; }
  .hero-stage .logo-mark { width: 300px; top: 1.5rem; right: -120px; transform: none; opacity: 0.09; }
  .page-head .logo-mark { width: 180px; right: -50px; transform: translateY(-50%); opacity: 0.2; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .match .teams .t, .match .teams .us { display: block; }
  .match .teams .sep { display: none; }
  .section-head a { white-space: normal; }
}

/* ---------- sponsor ---------- */
.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
.sponsor { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 1.2rem; border-radius: 1rem; box-shadow: 0 8px 20px rgba(32, 36, 74, 0.14); background: var(--white); color: var(--navy); text-align: center; text-decoration: none; line-height: 1.2; min-width: 0; }
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor.ph { background: var(--white); color: var(--muted); }
@media (hover: hover) { a.sponsor:hover { box-shadow: 0 14px 28px rgba(32, 36, 74, 0.24); transform: translateY(-3px); } }
.js-reveal > * { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; transition-delay: calc(var(--i, 0) * 120ms); }
.js-reveal.in > * { opacity: 1; transform: none; }

/* ---------- ticket ---------- */
.btn.big { font-size: 1.4rem; padding: 0.95rem 2.2rem; }
.btn[aria-disabled="true"] { opacity: 0.55; box-shadow: none; pointer-events: none; }
.ticket-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }

/* ---------- menu animato e tasto indietro (telefono e schermi stretti) ---------- */
.back { display: none; align-items: center; gap: 0.35rem; margin-bottom: 1rem; background: var(--white); color: var(--navy); border: 0; border-radius: 999px; padding: 0.35rem 1.1rem 0.4rem 0.8rem; font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 14px rgba(32, 36, 74, 0.3); transition: transform 0.18s ease; }
.back:active { transform: translateY(1px); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-14px); } }
@keyframes item-in { from { opacity: 0; transform: translateX(-22px); } }
@media (max-width: 1180px) {
  .back { display: inline-flex; }
  .site-nav.open { animation: menu-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .site-nav.open li { animation: item-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms + 90ms); }
}

/* ---------- telefono: tutto più vicino ---------- */
@media (max-width: 640px) {
  .site-header .wrap { min-height: 3.7rem; }
  .brand { font-size: 1.15rem; gap: 0.6rem; }
  .brand img { width: 2.3rem; height: 2.3rem; }
  .nav-toggle { padding: 0.2rem 0.85rem; }
  .banner-esempio { font-size: 0.85rem; padding: 0.3rem var(--gutter); }
  .hero-stage { min-height: 0; }
  .hero-main { padding-block: 1.4rem 0.9rem; }
  .hero .lead { margin: 0.5rem 0 0.9rem; font-size: 1.15rem; }
  .btn { padding: 0.55rem 1.2rem; font-size: 1.02rem; }
  .next-match .wrap { padding-top: 0.7rem; }
  .matches-head { margin-bottom: 0.5rem; }
  .matches-track { padding-bottom: 1rem; }
  .mcard { padding: 0.7rem 0.9rem 0.8rem; }
  .mcard .top { margin-bottom: 0.5rem; }
  .badge { width: 3rem; height: 3rem; font-size: 1.05rem; }
  .mcard .x { padding-top: 0.8rem; }
  .mcard .where { margin-top: 0.55rem; padding-top: 0.45rem; min-height: 2rem; }
  .section { padding-block: 2.2rem; }
  .section-head { margin-bottom: 1.1rem; }
  .page-head { padding-block: 1.3rem 1.7rem; }
  .page-head h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .page-head p { margin-top: 0.5rem; }
  .band { padding-block: 2.2rem; }
  .site-footer { padding-block: 2rem; }
}

/* ---------- classifica, calendario e risultati ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.league { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 2.6rem; }
.league h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.league .panel { display: none; min-width: 0; }
.league[data-tab="classifica"] .panel-classifica, .league[data-tab="prossime"] .panel-prossime, .league[data-tab="risultati"] .panel-risultati { display: block; }
.league-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.league-tabs button { background: transparent; color: var(--fg); border: 2px solid var(--fg); border-radius: 999px; padding: 0.35rem 1.2rem 0.4rem; font-weight: 400; font-size: 1.1rem; cursor: pointer; box-shadow: 0 6px 14px rgba(32, 36, 74, 0.18); transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
@media (hover: hover) { .league-tabs button:hover { transform: translateY(-2px); } }
.league-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); font-weight: 700; }
@media (min-width: 1040px) {
  .league { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "class tabs" "class side"; align-items: start; }
  .league-tabs { grid-area: tabs; }
  .league .panel-classifica { grid-area: class; display: block; }
  .league .panel-prossime, .league .panel-risultati { grid-area: side; }
  .league[data-tab="classifica"] .panel-prossime { display: block; }
  .league-tabs button[data-tab="classifica"] { display: none; }
  .league .panel-prossime h2, .league .panel-risultati h2 { display: none; }
}

.table-wrap { overflow-x: auto; }
.rank { width: 100%; border-collapse: collapse; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.rank th { font-weight: 400; color: var(--muted); text-align: right; padding: 0.5rem 0.5rem; border-bottom: 2px solid var(--fg); font-size: 0.95rem; white-space: nowrap; }
.rank td { padding: 0.4rem 0.5rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank .pos { text-align: left; width: 2.2rem; color: var(--muted); }
.rank th.team, .rank td.team { text-align: left; width: 100%; }
.rank .tm { display: flex; align-items: center; gap: 0.65rem; }
.rank .tm span:last-child { white-space: normal; line-height: 1.2; }
.rank .badge { width: 2rem; height: 2rem; font-size: 0.72rem; border-width: 1px; }
.rank .pt { font-weight: 700; }
.rank tr.us td { background: var(--tile); font-weight: 700; color: var(--fg); }
.rank tr.us td.pos { color: var(--fg); }
.rank tr.us td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.legend { margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 560px) { .rank .hide-s { display: none; } .rank { font-size: 1.02rem; } .rank th, .rank td { padding-inline: 0.35rem; } }

.mlist { display: grid; gap: 0.8rem; }
.mrow { background: var(--bg); border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.7rem 1rem 0.8rem; box-shadow: 0 8px 20px rgba(32, 36, 74, 0.12); }
.mrow .meta { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; color: var(--muted); font-size: 1rem; line-height: 1.25; margin-bottom: 0.5rem; }
.mrow .meta b { color: var(--fg); }
.mrow .line { display: flex; align-items: center; gap: 0.7rem; padding-block: 0.25rem; }
.mrow .badge { width: 2.2rem; height: 2.2rem; font-size: 0.8rem; border-width: 1px; }
.mrow .nm { flex: 1; min-width: 0; font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.mrow .sc { font-size: 1.5rem; font-variant-numeric: tabular-nums; min-width: 1.4rem; text-align: right; }
.mrow .line.us { font-weight: 700; }
.mrow .foot { margin-top: 0.4rem; padding-top: 0.45rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.chip { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; font-weight: 700; font-size: 0.95rem; flex: none; }

/* ---------- carosello: risultati precedenti ---------- */
.mcard .score { font-size: 1.9rem; font-weight: 700; padding-top: 0.55rem; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
.mcard.past .where { min-height: 2.4rem; }

/* ---------- fascia ticket (Home): biglietto animato al centro ---------- */
.ticket-band { background: var(--blue); color: var(--navy); padding-block: clamp(3.2rem, 8vw, 6rem); text-align: center; overflow: clip; }
.ticket-stage { display: grid; justify-items: center; gap: clamp(1.2rem, 3vw, 1.8rem); }
.ticket-wrap { width: min(100%, 52rem); }
.ticket { --stub: clamp(6rem, 17vw, 9.5rem); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); text-align: left; border-radius: 1.2rem; box-shadow: 0 24px 40px rgba(32, 36, 74, 0.4); will-change: transform; transform: rotate(-1.4deg); }
.ticket::before, .ticket::after { content: ""; position: absolute; z-index: 2; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--blue); right: calc(var(--stub) - 0.85rem); }
.ticket::before { top: -0.85rem; }
.ticket::after { bottom: -0.85rem; }
.ticket-main { position: relative; overflow: hidden; background: var(--white); border-radius: 1.2rem 0 0 1.2rem; padding: clamp(1.3rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.ticket-main::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(32, 154, 215, 0.28), transparent); transform: translateX(-170%) skewX(-12deg); pointer-events: none; will-change: transform; }
.ticket-kicker { font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ticket h2 { font-size: clamp(2.1rem, 6.4vw, 4rem); line-height: 0.98; color: var(--navy); text-shadow: 0 3px 0 rgba(32, 154, 215, 0.35), 0 10px 20px rgba(32, 36, 74, 0.16); }
.ticket-sub { color: var(--muted); font-size: 1.15rem; }
.ticket-stub { background: var(--navy); color: var(--white); border-radius: 0 1.2rem 1.2rem 0; border-left: 3px dashed rgba(255, 255, 255, 0.6); display: grid; align-content: center; justify-items: center; gap: 0.6rem; padding: 1rem 0.6rem; text-align: center; }
.ticket-adm { font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ticket-bars { position: relative; display: block; width: 78%; height: clamp(2.6rem, 7vw, 3.8rem); overflow: hidden; border-radius: 3px; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 10px, #fff 10px 13px, transparent 13px 15px); }
.ticket-bars::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--blue); box-shadow: 0 0 12px 3px var(--blue); transform: translateX(0); will-change: transform; }
.ticket-no { font-size: 0.95rem; opacity: 0.85; }
.ticket-note { font-size: 1.3rem; max-width: 40ch; margin: 0; }
.btn.pulse { position: relative; }
.btn.pulse::before { content: ""; position: absolute; inset: -2px; border-radius: 999px; border: 2px solid var(--white); opacity: 0; pointer-events: none; }
/* le animazioni partono quando la fascia entra nello schermo */
.ticket-stage.in .ticket { animation: ticket-float 6.5s ease-in-out infinite; }
.ticket-stage.in .ticket-main::after { animation: ticket-shine 4.6s 1.2s ease-in-out infinite; }
.ticket-stage.in .ticket-bars::after { animation: ticket-scan 2.4s ease-in-out infinite alternate; }
.ticket-stage.in .btn.pulse::before { animation: ticket-ring 2.2s 0.8s ease-out infinite; }
@keyframes ticket-float { 0%, 100% { transform: translateY(0) rotate(-1.6deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
@keyframes ticket-shine { 0% { transform: translateX(-170%) skewX(-12deg); } 45%, 100% { transform: translateX(420%) skewX(-12deg); } }
@keyframes ticket-scan { to { transform: translateX(calc(var(--stub) * 0.78 - 3px)); } }
@keyframes ticket-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.3, 1.75); opacity: 0; } }
@media (max-width: 640px) {
  .ticket-band { padding-block: 2.4rem; }
  .ticket { --stub: 5.4rem; }
  .ticket-note { font-size: 1.15rem; }
  .ticket-sub { display: none; }
  .ticket-adm { font-size: 0.78rem; letter-spacing: 0.05em; }
  .ticket-no { font-size: 0.85rem; }
  .ticket-kicker { font-size: 0.8rem; letter-spacing: 0.06em; }
}

/* ---------- storia: foto che scorrono ---------- */
.story .prose { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 50s linear infinite; will-change: transform; }
.marquee .frame { flex: none; height: clamp(13rem, 30vw, 19rem); aspect-ratio: 4 / 5; }
@keyframes marquee { to { transform: translateX(calc(-50% - 0.5rem)); } }

/* ---------- Chi siamo: sfondo che si muove ---------- */
.story-page { position: relative; isolation: isolate; --fg: #ffffff; --muted: #d3dcfb; --line: rgba(255, 255, 255, 0.3); color: var(--white); }
.story-page .page-head { background: transparent; }
.story-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--navy); }
.story-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 36, 74, 0.74), rgba(32, 36, 74, 0.66) 45%, rgba(32, 36, 74, 0.86)); }
.story-bg video, .story-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-bg img { opacity: 0; transition: opacity 1.8s ease; }
.story-bg img.on { opacity: 1; animation: kb 18s ease-out forwards; will-change: transform, opacity; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.story-bg:not(.fallback)::before { display: none; }
.story-bg.fallback { background: var(--navy); }
.story-bg .drift { position: absolute; top: 0; bottom: 0; left: 0; width: 300%; background: linear-gradient(90deg, #20244a 0%, #209ad7 25%, #20244a 50%, #209ad7 75%, #20244a 100%); animation: drift 30s ease-in-out infinite alternate; will-change: transform; }
.story-bg.fallback::before { inset: -10%; opacity: 0.16; background-size: 55%; animation: zoom 28s ease-in-out infinite alternate; will-change: transform; z-index: 1; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-66.66%); } }
@keyframes zoom { from { transform: scale(0.9) translateX(-4%); } to { transform: scale(1.15) translateX(4%); } }
.story-page .section { position: relative; }
.story-page .prose p { color: var(--white); }
.story-page .page-head p { color: var(--white); text-shadow: 0 2px 12px rgba(32, 36, 74, 0.6); }
.story-page .logo-fade { display: none; }

/* ---------- pagina Academy ---------- */
.acad-hero.page-head { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: calc(100svh - 5rem); padding: 0; background: var(--navy); color: var(--white); }
.acad-photo { position: absolute; inset: 0; z-index: -2; }
.acad-photo .frame { position: absolute; inset: 0; width: 100%; height: 100%; animation: acad-fade 1.8s ease-out backwards; }
.acad-photo img.photo { object-position: 50% 38%; }
.acad-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(32, 36, 74, 0.35) 0%, rgba(32, 36, 74, 0) 38%, rgba(32, 36, 74, 0.88) 100%); pointer-events: none; }
.acad-hero .wrap { position: static; width: 100%; padding-block: clamp(2rem, 6vw, 4.5rem); }
.acad-hero .back { position: absolute; top: 1rem; left: var(--gutter); z-index: 2; margin: 0; }
.acad-hero h1 { font-size: clamp(3.6rem, 14vw, 9.5rem); letter-spacing: -0.02em; animation: rise 0.7s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.acad-hero p { max-width: 30ch; color: var(--white); text-shadow: 0 2px 14px rgba(32, 36, 74, 0.7); animation: rise 0.7s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes acad-fade { from { opacity: 0; } }
.acad-block { padding-block: clamp(3rem, 8vw, 6rem); }
.acad-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.acad-two.rev { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.acad-kicker { display: block; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.acad-text h2 { font-size: clamp(2.4rem, 6.5vw, 4.8rem); margin-bottom: 1rem; }
.acad-text p { font-size: 1.3rem; line-height: 1.65; max-width: 46ch; margin: 0; }

/* foto del bambino: entra con una tendina, poi zoom lento e onde sul pallone; con il mouse si inclina */
.acad-block { overflow-x: clip; }
.kick { position: relative; perspective: 1000px; }
.kick-back { position: absolute; inset: 0; border-radius: 1.2rem; background: var(--blue); transform: translate(-1.2rem, 1.2rem) rotate(-3deg); box-shadow: 0 20px 40px rgba(32, 154, 215, 0.35); }
.kick-card { --rx: 0deg; --ry: 0deg; position: relative; overflow: hidden; border-radius: 1.2rem; box-shadow: 0 24px 46px rgba(32, 36, 74, 0.34); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.25s ease-out; will-change: transform; }
.kick-img .frame { aspect-ratio: 4 / 5; }
.kick-img img.photo { transform-origin: 39% 76%; will-change: transform; }
.acad-two.in .kick-card { animation: kick-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.acad-two.in .kick-img img.photo { animation: kick-zoom-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards, kick-pan 16s 1.6s ease-in-out infinite alternate; }
.acad-two.in .kick-back { animation: kick-back-in 1.2s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
@keyframes kick-in { from { clip-path: inset(100% 0 0 0 round 1.2rem); } to { clip-path: inset(0 0 0 0 round 1.2rem); } }
@keyframes kick-zoom-in { from { transform: scale(1.4); } to { transform: scale(1.02); } }
@keyframes kick-pan { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@keyframes kick-back-in { from { transform: translate(0, 0) rotate(0deg); opacity: 0; } }
@keyframes kick-sway { from { transform: rotateY(-4deg) rotateX(1deg); } to { transform: rotateY(4deg) rotateX(-1deg); } }
@media (hover: none) { .acad-two.in .kick-card { animation: kick-in 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards, kick-sway 9s 1.4s ease-in-out infinite alternate; } }
@media (max-width: 760px) { .kick-back { transform: translate(-0.6rem, 0.8rem) rotate(-2deg); } }
.acad-more { background: var(--blue); color: var(--navy); padding-block: clamp(3rem, 8vw, 5.5rem); text-align: center; }
.acad-more .wrap { display: grid; justify-items: center; gap: 1rem; }
.acad-more h2 { font-size: clamp(2.4rem, 7vw, 5rem); color: var(--white); text-shadow: 0 3px 0 rgba(32, 36, 74, 0.28), 0 10px 30px rgba(32, 36, 74, 0.4); }
.acad-more p { font-size: 1.4rem; max-width: 38ch; margin: 0; }
@media (max-width: 760px) {
  .acad-two, .acad-two.rev { grid-template-columns: 1fr; }
  .acad-hero.page-head { min-height: 82svh; }
  .acad-block, .acad-more { padding-block: 2.4rem; }
  .acad-text p, .acad-more p { font-size: 1.2rem; }
}

/* ---------- prestazioni: le sezioni lontane si disegnano solo quando ci si avvicina ---------- */
.section, .band, .academy, .ticket-band, .photos { content-visibility: auto; contain-intrinsic-size: auto 640px; }


/* ---------- aggiunte: nome societa', news, icone, ticket ---------- */
.brand { color: var(--white); text-transform: uppercase; letter-spacing: 0.02em; text-shadow: 0 2px 0 rgba(32, 36, 74, 0.25); font-size: 1.1rem; }
.brand span { white-space: nowrap; }
@media (max-width: 1280px) { .brand { font-size: 0.98rem; } }
@media (max-width: 640px) { .brand { font-size: 0.78rem; gap: 0.5rem; } }
@media (max-width: 380px) { .brand { font-size: 0.7rem; } }

.ticket-logo { position: absolute; top: 50%; right: 0; width: min(90vw, 30rem); aspect-ratio: 1; transform: translate(35%, -50%); background: var(--blue); -webkit-mask: url(../img/logo.png) center / contain no-repeat; mask: url(../img/logo.png) center / contain no-repeat; opacity: 0.26; pointer-events: none; z-index: 0; }
.ticket-main > * { position: relative; z-index: 1; }
.ticket-main > .ticket-logo { position: absolute; z-index: 0; }

.news article .more { display: inline-block; margin-top: 0.7rem; font-weight: 700; color: var(--blue); }
.news article { position: relative; }
.news h3 a { color: inherit; text-decoration: none; }
.news h3 a::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) { .news article:hover h3 a { color: var(--blue); } }
.news-article { max-width: 46rem; margin-inline: auto; }
.news-photo { border-radius: 1.1rem; box-shadow: 0 14px 30px rgba(32, 36, 74, 0.24); aspect-ratio: 16 / 10; margin-bottom: 1.6rem; }
.news-text p { font-size: 1.25rem; margin: 0 0 1.1rem; }
.news-others { margin-top: clamp(2.5rem, 6vw, 4rem); }
.news.list article.small { grid-column: span 12; }
@media (min-width: 641px) { .news.list article.small { grid-column: span 6; } }
@media (min-width: 961px) { .news.list article.small { grid-column: span 6; grid-template-columns: 1fr; } .news.list article.small .frame { aspect-ratio: 16 / 10; } }

.follow { display: flex; gap: 0.8rem; margin-top: 1.6rem; }
.fi { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--white); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 0.85rem; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease; }
.fi svg { width: 1.45rem; height: 1.45rem; }
@media (hover: hover) { .fi:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); text-decoration: none; } }
.site-footer .f-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-top: clamp(2rem, 5vw, 3rem); padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.45); }
@media (hover: hover) { .site-footer .f-social .fi:hover { background: var(--navy); color: var(--white); } }

.staff-group { margin-top: clamp(3rem, 8vw, 5.5rem); }
.acad-solo { display: block; }
.acad-solo .acad-text p { max-width: 58ch; }

/* ---------- decorazione Home: pattern che scorre in diagonale ---------- */
.hero-stage::before { content: ""; position: absolute; top: -298px; left: -298px; right: 0; bottom: 0; z-index: 0; background: url(../img/pattern.png) 0 0 / 298px 298px repeat; opacity: 0.055; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, #000 65%); mask-image: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, #000 65%); pointer-events: none; will-change: transform; animation: pattern-slide 40s linear infinite; }
@keyframes pattern-slide { to { transform: translate3d(298px, 298px, 0); } }
.hero-stage > :not(.hero-media):not(.logo-fade):not(.lights) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-stage::before { animation: none; } }

/* ---------- conto alla rovescia ---------- */
.cd-sec { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.cdb { background: var(--navy); color: var(--white); border-radius: 1.6rem; padding: clamp(1.6rem, 5vw, 3rem) clamp(1.1rem, 4vw, 2.6rem); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; box-shadow: 0 18px 40px rgba(32, 36, 74, 0.35); position: relative; overflow: hidden; }
.cdb::before { content: ""; position: absolute; inset: 0; background: url(../img/pattern.png) 0 0 / 220px 220px repeat; opacity: 0.05; pointer-events: none; }
.cdb > * { position: relative; }
.cdb-kick { color: var(--blue); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.cdb-teams { display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 3vw, 1.6rem); }
.cdb-side { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.4rem); width: clamp(7rem, 26vw, 13rem); line-height: 1.15; }
.cdb-side .badge { width: clamp(3.6rem, 10vw, 5.2rem); height: clamp(3.6rem, 10vw, 5.2rem); }
.cdb .x { opacity: 0.6; font-size: 1.1rem; }
.cdb-when { margin: 0; opacity: 0.85; text-transform: capitalize; font-size: 1.1rem; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.4rem, 1.6vw, 0.9rem); width: 100%; max-width: 34rem; margin-block: 0.4rem; }
.cd-u { background: rgba(255, 255, 255, 0.1); border-radius: 1rem; padding: clamp(0.7rem, 2vw, 1.1rem) 0.2rem clamp(0.5rem, 1.5vw, 0.8rem); text-align: center; }
.cd-u b { display: block; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(32, 154, 215, 0.5); }
.cd-u span { display: block; margin-top: 0.4rem; font-size: clamp(0.7rem, 2vw, 0.9rem); opacity: 0.8; }
.cd-live { grid-column: 1 / -1; margin: 0; font-size: 1.6rem; font-weight: 700; }
.cdb-where { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.cdb-where span { opacity: 0.9; font-size: 1.1rem; }
.cdb-where .btn { font-size: 1rem; padding: 0.55rem 1.3rem; }
/* piccolo timer nella scheda "Prossima partita" della Home */
.mc-cd { margin-top: 0.7rem; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.mc-cd b { color: #fff; font-variant-numeric: tabular-nums; }
.mc-cd span { display: block; font-size: 0.85rem; opacity: 0.8; margin-bottom: 0.1rem; }
.cdb-where .btn.ghost { color: #fff; border-color: #fff; background: transparent; }
@media (hover: hover) { .cdb-where .btn.ghost:hover { background: #fff; color: var(--navy); } }

/* Academy: segui l'Academy */
.acad-follow { padding-block: clamp(2rem, 6vw, 3.5rem); text-align: center; }
.acad-follow h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 0.4rem; }
.acad-follow .follow { justify-content: center; }
.acad-follow .fi { background: var(--blue); color: #fff; }
@media (hover: hover) { .acad-follow .fi:hover { background: var(--navy); } }

/* pagina Notizie (archivio) e piede */
.news.archive article.small { grid-column: span 12; grid-template-columns: 1fr; align-items: start; align-self: start; gap: 1rem; }
.news.archive article.small .frame { aspect-ratio: 16 / 10; }
.news.archive article.small h3 { font-size: clamp(1.4rem, 3vw, 1.7rem); }
@media (min-width: 641px) { .news.archive article.small { grid-column: span 6; } }
@media (min-width: 961px) { .news.archive article.small { grid-column: span 4; grid-template-columns: 1fr; } }
.news.archive article[hidden] { display: none; }
.more-box { text-align: center; margin-top: 2rem; }
.site-footer .f-slogan { text-align: center; margin: 2.2rem 0 0; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 700; color: var(--white); text-shadow: 0 3px 0 rgba(32, 36, 74, 0.25); line-height: 1.1; }
.site-footer .f-legal { text-align: center; margin: 1.6rem 0 0; font-size: 0.8rem; opacity: 0.85; line-height: 1.6; }
.site-footer .f-legal a { color: inherit; }

/* esito: V verde, P arancione, S rossa */
.chip.v, .mcard .chip.v { background: #1e9e50; color: #fff; border: 0; }
.chip.n, .mcard .chip.n { background: #f08a00; color: #fff; border: 0; }
.chip.p, .mcard .chip.p { background: #d93434; color: #fff; border: 0; }
.mcard { display: flex; flex-direction: column; }
.mcard .mc-link { margin-top: auto; padding-top: 0.7rem; font-weight: 700; font-size: 1rem; color: var(--blue-dark, #1678a8); text-decoration: none; }
@media (hover: hover) { .mcard .mc-link:hover { text-decoration: underline; } }

/* foto delle notizie: formato locandina 4:5 */
.news .frame, .news article.big .frame, .news.archive article.small .frame { aspect-ratio: 4 / 5; }
@media (min-width: 961px) {
  .news.archive article.small, .news.list article.small { grid-column: span 4; grid-template-columns: 1fr; align-self: start; align-items: start; gap: 1rem; }
  /* home: una grande a sinistra, due piccole a destra, tutte e tre alte uguale */
  .news:not(.archive):not(.list) { grid-template-rows: 1fr 1fr; align-items: stretch; }
  .news:not(.archive):not(.list) article.big { grid-column: 1 / span 5; grid-row: 1 / span 2; grid-template-columns: 1fr; grid-template-rows: auto auto; align-self: stretch; }
  .news:not(.archive):not(.list) article.big h3 { font-size: 1.7rem; }
  .news:not(.archive):not(.list) article.big p { font-size: 1.1rem; }
  .news:not(.archive):not(.list) article.small { grid-column: 6 / span 7; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-self: stretch; align-items: stretch; align-content: stretch; grid-template-rows: 1fr; gap: 1.3rem; }
  .news:not(.archive):not(.list) article.small .frame { aspect-ratio: auto; position: relative; min-height: 0; }
  .news:not(.archive):not(.list) article.small .frame img.photo { position: absolute; inset: 0; }
  .news:not(.archive):not(.list) article.small .txt { justify-content: center; }
  .news:not(.archive):not(.list) article.small h3 { font-size: 1.4rem; }
}
.news-photo { aspect-ratio: 4 / 5; max-width: 30rem; margin-inline: auto; }
.news-cta { margin-top: 1.8rem; }
.news.list article.small .frame, .news.archive article.small .frame { aspect-ratio: 4 / 5; }
@media (min-width: 961px) { .news.list article.small { grid-column: span 4; } }

/* notizie: spaziature regolari (data, titolo, testo, link sempre alla stessa distanza) */
.news .txt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; }
.news .txt time { margin: 0; line-height: 1.2; }
.news .txt h3 { margin: 0; line-height: 1.12; text-wrap: pretty; }
.news .txt p { margin: 0; line-height: 1.5; }
.news .txt .more { margin: 0.25rem 0 0; line-height: 1.2; }
.news article { gap: 0.9rem; }
.news-text p { line-height: 1.6; margin: 0 0 1.1em; }
.news-text p:last-of-type { margin-bottom: 0; }
.news-text { display: block; }
.page-head h1 { line-height: 1.08; text-wrap: balance; }
.page-head time, .page-head p { margin-top: 0.9rem; }

/* ---------- notizie: schede che diventano blu scuro al passaggio, con ingresso animato ---------- */
.news article { padding: 0.9rem; border-radius: 1.2rem; transition: background-color 0.35s ease, color 0.35s ease; }
.news article:focus-within, .news article:active { background: var(--navy); }
@media (hover: hover) { .news article:hover { background: var(--navy); } }
.news article:focus-within time, .news article:active time { color: rgba(255, 255, 255, 0.72); }
@media (hover: hover) { .news article:hover time { color: rgba(255, 255, 255, 0.72); } }
.news article:focus-within h3 a, .news article:active h3 a { color: var(--white); }
@media (hover: hover) { .news article:hover h3, .news article:hover h3 a { color: var(--white); } }
.news article:focus-within p, .news article:active p { color: rgba(255, 255, 255, 0.88); }
@media (hover: hover) { .news article:hover p { color: rgba(255, 255, 255, 0.88); } }
.news article:focus-within .more, .news article:active .more { color: #8fd6ff; }
@media (hover: hover) { .news article:hover .more { color: #8fd6ff; } }
.news.js-reveal > * { opacity: 0; transform: translateY(46px) scale(0.96); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.35s ease, color 0.35s ease; transition-delay: calc(var(--i, 0) * 170ms), calc(var(--i, 0) * 170ms), 0s, 0s; }
.news.js-reveal.in > * { opacity: 1; transform: none; }
/* telefono, Home: prime 3 notizie senza immagini, divise da una linea sottile */
@media (max-width: 640px) {
  main[data-page="home"] .news:not(.archive):not(.list) { gap: 0; margin-inline: -0.6rem; }
  main[data-page="home"] .news:not(.archive):not(.list) .frame { display: none; }
  main[data-page="home"] .news:not(.archive):not(.list) article { border-radius: 0.9rem; padding: 1.1rem 0.9rem; position: relative; }
  main[data-page="home"] .news:not(.archive):not(.list) article + article::before { content: ""; position: absolute; top: 0; left: 0.9rem; right: 0.9rem; height: 2px; background: rgba(32, 36, 74, 0.2); transition: opacity 0.3s; }
  @media (hover: hover) { main[data-page="home"] .news:not(.archive):not(.list) article:hover::before, main[data-page="home"] .news:not(.archive):not(.list) article:hover + article::before { opacity: 0; } }
  main[data-page="home"] .news:not(.archive):not(.list) article h3 { font-size: 1.45rem; }
  main[data-page="home"] .news:not(.archive):not(.list) article p { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .news article { transition: none; } }

/* ---------- Home: spazio sopra/sotto il countdown ---------- */
.cd-sec { padding-block: clamp(1.2rem, 3vw, 2.2rem) clamp(1.8rem, 4.5vw, 3rem); }

.ticket-band .btn.pulse { background: var(--white); color: var(--navy); border-color: var(--white); }
@media (hover: hover) { .ticket-band .btn.pulse:hover { background: var(--navy); color: var(--white); border-color: var(--navy); } }

/* ---------- 6) sfondo che "respira": l'azzurro cambia tonalità lentissimamente ---------- */
.hero-stage::after, .page-head:not(.acad-hero)::after, .ticket-band::after, .site-footer::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; will-change: opacity;
  background: radial-gradient(120% 95% at 18% 15%, rgba(255, 255, 255, 0.2), transparent 62%), radial-gradient(110% 90% at 88% 85%, rgba(14, 74, 130, 0.26), transparent 62%);
  animation: breathe 16s ease-in-out infinite; }
.page-head:not(.acad-hero)::after { animation-delay: -5s; }
.ticket-band::after { animation-delay: -9s; }
.site-footer::after { animation-delay: -3s; }
.story-page .page-head::after { display: none; }
.site-footer { position: relative; }
.site-footer > .wrap, .ticket-band > .wrap { position: relative; z-index: 1; }
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ---------- 7) luci dello stadio: fasci morbidi, leggerissimi, che si spostano piano ---------- */
.lights { position: absolute; top: 0; bottom: 0; left: -30%; width: 160%; z-index: 0; pointer-events: none; will-change: transform, opacity;
  background: linear-gradient(104deg, transparent 22%, rgba(255, 255, 255, 0.075) 30%, transparent 40%), linear-gradient(104deg, transparent 52%, rgba(255, 255, 255, 0.055) 60%, transparent 70%);
  animation: lights-sweep 22s ease-in-out infinite alternate; }
@keyframes lights-sweep { 0% { transform: translate3d(-14%, 0, 0); opacity: 0.35; } 50% { opacity: 1; } 100% { transform: translate3d(14%, 0, 0); opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .hero-stage::after, .page-head::after, .ticket-band::after, .site-footer::after, .lights { animation: none; } .lights { opacity: 0.6; } }

/* rosa: solo nomi */
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.7rem; }
.roster li { background: var(--tile); color: var(--navy); border-radius: 0.9rem; padding: 0.85rem 1.1rem; font-size: 1.25rem; font-weight: 700; line-height: 1.2; box-shadow: 0 6px 14px rgba(32, 36, 74, 0.1); transition: background-color 0.3s ease, color 0.3s ease; }
@media (hover: hover) { .roster li:hover { background: var(--navy); color: var(--white); } }
.roster .cap-t { color: var(--blue); font-weight: 700; }
@media (max-width: 640px) { .roster { grid-template-columns: 1fr 1fr; gap: 0.55rem; } .roster li { font-size: 1.05rem; padding: 0.7rem 0.8rem; } }

/* rosa: nomi chiari, nessun effetto, font del sito */
.roster li { background: #fff; color: var(--navy); font-family: var(--font); font-style: var(--font-style); font-weight: 700; font-size: 1.3rem; border: 2px solid var(--navy); box-shadow: none; transition: none; }
@media (hover: hover) { .roster li:hover { background: #fff; color: var(--navy); font-family: var(--font); font-style: var(--font-style); font-weight: 700; font-size: 1.3rem; border: 2px solid var(--navy); box-shadow: none; transition: none; } }
.roster .cap-t { color: var(--navy); }
@media (max-width: 640px) { .roster li, .roster li:hover { font-size: 1.1rem; } }

.roster li { display: flex; align-items: center; gap: 0.8rem; }
.roster .rn { flex: none; min-width: 2.4rem; height: 2.4rem; padding: 0 0.3rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--navy); color: #fff; font-size: 1.1rem; font-weight: 700; }
@media (max-width: 640px) { .roster li { gap: 0.55rem; } .roster .rn { min-width: 2rem; height: 2rem; font-size: 0.95rem; } }

/* classifica U19: scheda bianca accanto al testo (sotto su telefono) */
.u19 { align-items: start; }
.u19-table { background: #fff; border-radius: 1.2rem; padding: 1rem 1.1rem 0.6rem; box-shadow: 0 10px 28px rgba(32, 36, 74, 0.14); border: 2px solid var(--navy); }
.u19-table h3 { font-size: 1.5rem; color: var(--navy); margin: 0 0 0.4rem; }
.u19-table .table-wrap { overflow: visible; }
.u19-table .rank { font-size: 1.02rem; }
.u19-table .rank th { color: var(--navy); border-bottom: 2px solid var(--navy); }
.u19-table .rank td, .u19-table .rank td.pos { color: var(--navy); }
.u19-table .rank tr.us td { background: var(--navy); color: #fff; box-shadow: none; border-bottom-color: var(--navy); }
.u19-table .rank tr.us td:first-child { box-shadow: none; border-radius: 0.7rem 0 0 0.7rem; }
.u19-table .rank tr.us td:last-child { border-radius: 0 0.7rem 0.7rem 0; }
@media (max-width: 760px) { .u19-table { padding: 0.8rem 0.7rem 0.4rem; border-radius: 1rem; } .u19-table h3 { font-size: 1.3rem; } .u19-table .rank { font-size: 0.98rem; } }

/* immagine U19: solo desktop largo, riempie lo spazio sotto il testo */
.u19-pic { display: none; }
@media (min-width: 1025px) {
  .u19-pic { display: block; margin-top: 1.6rem; border-radius: 1.2rem; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 10px 28px rgba(32, 36, 74, 0.18); }
  .u19-pic .frame { width: 100%; height: 100%; }
  .u19-pic img.photo { object-position: 50% 45%; }
}
/* tablet: testo sopra, classifica sotto a tutta larghezza */
@media (max-width: 1024px) { .u19.acad-two { grid-template-columns: minmax(0, 1fr); } .u19-table { max-width: 40rem; width: 100%; } }

/* scuola calcio su telefono: testo sopra, sotto la foto grande e accanto il link per seguire l'Academy */
.sc-follow { display: none; }
@media (max-width: 760px) {
  .acad-two.rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "text text" "pic follow"; gap: 1.6rem 1.3rem; align-items: center; }
  .acad-two.rev .acad-text { grid-area: text; }
  .acad-two.rev .kick { grid-area: pic; width: 100%; margin: 0; }
  .acad-two.rev .kick-img .frame { aspect-ratio: 4 / 5; }
  .acad-two.rev .sc-follow { grid-area: follow; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .sc-kicker { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .sc-follow h3 { font-size: 1.7rem; line-height: 1.05; color: var(--navy); }
  .sc-link { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; margin-top: 0.4rem; }
  .sc-link .pill { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--navy); color: #fff; padding: 0.6rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem; box-shadow: 0 8px 18px rgba(32, 36, 74, 0.25); }
  .sc-link .pill svg { width: 1.2rem; height: 1.2rem; }
  .sc-link .handle { font-size: 0.95rem; color: var(--muted); word-break: break-all; }
  .acad-follow { display: none; }
}
.sc-link .pill, .sc-link .pill span { text-decoration: none; border-bottom: 0; background-image: none; }

.rank .pen { font-size: 0.85em; font-weight: 700; color: #d93434; white-space: nowrap; }

/* correzioni: maiuscole del countdown, tasti più grandi, data classifica */
.cdb-when { text-transform: none; }
.cdb-when::first-letter { text-transform: uppercase; }
.site-footer a { display: inline-block; padding-block: 0.5rem; }
.site-footer .f-social a, .site-footer .follow a { padding-block: 0; }
.more-box a, .all-link, .acad-more a { padding-block: 0.35rem; }
.u19-up { margin: 0.5rem 0 0.4rem; font-size: 0.95rem; color: var(--muted); }
.section-head > a { display: inline-block; padding-block: 0.6rem; }

/* ---- font: Lora titoli, Anton numeri ---- */
.mcard .score, .match .score, .player .num, .cd-u b { font-family: var(--font-num); font-weight: 400; letter-spacing: 0.02em; }
.rank .pt, .rank td.n { font-variant-numeric: tabular-nums; }
.roster .rn { font-family: var(--font-num); font-weight: 400; letter-spacing: 0.03em; }
.fi { font-family: var(--font); }
.fi { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.fi svg { display: block; flex: none; }
.fi.fi-mgs { display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* ---- titoli in Poppins ---- */
h1 { font-weight: 800; letter-spacing: -0.03em; }
h2, h3, h4 { letter-spacing: -0.015em; line-height: 1.12; }
.brand { font-weight: 700; font-size: 1.1rem; letter-spacing: 0; }
html { font-size: 100%; }
.brand { font-size: 0.92rem; gap: 0.6rem; }
.site-nav a { font-size: 1rem; padding-inline: clamp(0.4rem, 0.65vw, 0.7rem); }
@media (max-width: 1024px) { .site-nav a { font-size: 1.2rem; } }

/* ---- titolo home: Anton maiuscolo + riga sopra ---- */
.hero h1 { font-family: var(--font-num); font-weight: 400; text-transform: uppercase; letter-spacing: 0.015em; line-height: 0.95; font-size: clamp(3.4rem, min(12vw, 17vh), 9.5rem); }
.hero-kicker { margin: 0 0 0.9rem; font-family: var(--font-head); font-weight: 700; font-size: clamp(0.85rem, 2.4vw, 1.15rem); letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy); }

/* ---- sponsor: il principale grande ---- */
.sponsors { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1.1rem; }
.sponsor img { mix-blend-mode: multiply; }
.sponsor.main { grid-column: 1 / -1; aspect-ratio: auto; height: clamp(9rem, 26vw, 15rem); padding: clamp(1rem, 3vw, 2rem); border: 3px solid var(--blue); }
@media (max-width: 520px) { .sponsors { grid-template-columns: 1fr 1fr; gap: 0.8rem; } .sponsor { padding: 0.8rem; } }

/* ---- sponsor: righe sempre centrate, anche con numero dispari ---- */
.sponsors { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.sponsor { flex: 0 0 calc((100% - 3rem) / 4); aspect-ratio: 3 / 2; padding: 0.9rem; }
.sponsor.main { flex: 0 0 100%; }
@media (min-width: 1000px) { .sponsor:not(.main) { flex-basis: calc((100% - 6rem) / 7); padding: 0.7rem; } }
@media (max-width: 760px) { .sponsor:not(.main) { flex-basis: calc((100% - 1rem) / 2); } }

/* ---- sponsor: carte singole con colori del logo e animazione ---- */
.sponsors { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; max-width: 980px; margin-inline: auto; }
.sponsor { flex: 0 0 calc((100% - 3.3rem) / 4); aspect-ratio: auto; flex-direction: column; gap: 0.7rem; padding: 0.9rem 0.8rem 0.8rem; border-radius: 1.1rem;
  background: linear-gradient(160deg, #fff 55%, color-mix(in srgb, var(--c2, #209ad7) 22%, #fff));
  border: 2px solid color-mix(in srgb, var(--c1, #20244a) 22%, #fff);
  box-shadow: 0 8px 18px rgba(32, 36, 74, 0.12); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.sponsor .sp-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: clamp(4rem, 8vw, 5.4rem); }
.sponsor .sp-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sponsor .sp-more { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: #fff; background: var(--c1, #20244a); padding: 0.28rem 0.85rem 0.3rem; border-radius: 999px; transition: background-color 0.25s ease; }
.sponsor .sp-more i { font-style: normal; font-size: 1.1em; line-height: 1; }
a.sponsor:focus-visible { transform: scale(0.94); border-color: var(--c1, #20244a); box-shadow: 0 4px 10px rgba(32, 36, 74, 0.18); }
@media (hover: hover) { a.sponsor:hover { transform: scale(0.94); border-color: var(--c1, #20244a); box-shadow: 0 4px 10px rgba(32, 36, 74, 0.18); } }
@media (hover: hover) { a.sponsor:hover .sp-more { background: var(--c2, #209ad7); color: #20244a; } }
.sponsor.main { flex: 0 0 100%; flex-direction: row; justify-content: center; gap: clamp(1rem, 4vw, 3rem); height: auto; padding: clamp(1rem, 2.5vw, 1.6rem); border: 3px solid var(--blue); }
.sponsor.main .sp-logo { width: auto; flex: 0 1 62%; height: clamp(5rem, 14vw, 8.5rem); }
.sponsor.main .sp-more { font-size: 1rem; padding: 0.5rem 1.3rem 0.55rem; }
@media (min-width: 1000px) { .sponsor:not(.main) { flex-basis: calc((100% - 3.3rem) / 4); padding: 0.9rem 0.8rem 0.8rem; } }
@media (max-width: 760px) { .sponsor:not(.main) { flex-basis: calc((100% - 1.1rem) / 2); } .sponsor.main { flex-direction: column; } .sponsor.main .sp-logo { flex-basis: auto; width: 100%; } }
@media (prefers-reduced-motion: reduce) { a.sponsor:hover { transform: none; } }

/* ---- sponsor: schede singole (versione finale) ---- */
.sponsors { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.sponsor { position: relative; flex: 0 0 calc((100% - 3.6rem) / 4); aspect-ratio: auto; min-height: 11.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 1.1rem 1rem 1rem; border-radius: 1.1rem; overflow: hidden; text-decoration: none; color: var(--navy);
  background: linear-gradient(180deg, #fff 55%, color-mix(in srgb, var(--c2) 22%, #fff)); box-shadow: 0 8px 20px rgba(32, 36, 74, 0.14); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.sponsor::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--c1) 0 60%, var(--c2) 60% 100%); }
.sponsor .sp-logo { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.sponsor .sp-logo img { max-width: 78%; max-height: 5.2rem; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.25s ease; }
.sponsor .sp-name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-align: center; color: var(--c1); }
.sponsor .sp-more { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; color: #fff; background: var(--c1); padding: 0.3rem 0.85rem 0.35rem; border-radius: 999px; margin-bottom: 0.35rem; white-space: nowrap; }
.sponsor .sp-more i { font-style: normal; margin-left: 0.15rem; }
a.sponsor:focus-visible { transform: scale(0.95); box-shadow: 0 6px 14px rgba(32, 36, 74, 0.2); }
@media (hover: hover) { a.sponsor:hover { transform: scale(0.95); box-shadow: 0 6px 14px rgba(32, 36, 74, 0.2); } }
@media (hover: hover) { a.sponsor:hover .sp-logo img { transform: scale(0.92); } }
.sponsor.main { flex: 0 0 min(100%, 34rem); min-height: 13rem; border: 0; padding: 1.4rem 1.4rem 1.2rem; box-shadow: 0 14px 30px rgba(32, 36, 74, 0.22); }
.sponsor.main .sp-logo img { max-width: 82%; max-height: 7rem; }
.sponsor.main .sp-more { font-size: 0.95rem; padding: 0.4rem 1.1rem 0.45rem; }
@media (max-width: 1000px) { .sponsor { flex-basis: calc((100% - 2.4rem) / 3); } }
@media (max-width: 760px) {
  .sponsors { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.9rem; padding: 0.4rem 0 1.2rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .sponsor, .sponsor.main { flex: 0 0 78%; scroll-snap-align: center; min-height: 12rem; }
  .sponsor.main { flex-basis: 86%; }
}
.sponsor.main { flex: 0 0 100%; max-width: 34rem; }
@media (max-width: 760px) { .sponsor.main { flex: 0 0 86%; max-width: none; } }
.sponsor.main { flex: 0 0 min(100%, 34rem); max-width: none; height: auto; flex-direction: column; margin-inline: max(0px, calc((100% - 34rem) / 2)); }
@media (max-width: 760px) { .sponsor.main { flex: 0 0 86%; margin-inline: 0; } }
.sponsors { width: min(100%, 1080px); margin-inline: auto; }
.sponsor:not(.main) { flex-basis: calc((100% - 4rem) / 4); }
@media (max-width: 1000px) { .sponsor:not(.main) { flex-basis: calc((100% - 3rem) / 3); } }
@media (max-width: 760px) { .sponsor:not(.main) { flex: 0 0 78%; } }

/* ---- sponsor su telefono: tutti insieme, niente scorrimento ---- */
@media (max-width: 760px) {
  .sponsors { flex-wrap: wrap; justify-content: center; overflow: visible; scroll-snap-type: none; margin-inline: 0; padding: 0; gap: 0.8rem; }
  .sponsor:not(.main) { flex: 0 0 calc((100% - 0.8rem) / 2); min-height: 10rem; padding: 0.8rem 0.6rem 0.8rem; }
  .sponsor.main { flex: 0 0 100%; margin-inline: 0; min-height: 11rem; }
  .sponsor .sp-more { font-size: 0.75rem; padding: 0.28rem 0.7rem 0.32rem; }
  .sponsor .sp-logo img { max-width: 86%; max-height: 4.2rem; }
}

/* ---- sponsor: barra in basso 50/50 con passaggio sfumato + alone morbido del secondo colore ---- */
.sponsor { background: linear-gradient(180deg, #fff 52%, color-mix(in srgb, var(--c2) 26%, #fff)); }
.sponsor::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: -14px; height: 30px; background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: 0.45; filter: blur(14px); pointer-events: none; }
.sponsor::after { height: 6px; background: linear-gradient(90deg, var(--c1) 0, var(--c1) 46%, var(--c2) 54%, var(--c2) 100%); filter: blur(0.6px); }
.sponsor > * { position: relative; z-index: 1; }

/* ---- pagina Sponsor: uno sotto l'altro ---- */
.sponsors.sp-list { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 1.5rem; width: 100%; overflow: visible; padding: 0; margin-inline: auto; }
.sponsors.sp-list .sponsor, .sponsors.sp-list .sponsor:not(.main) { flex: 0 0 auto; width: min(100%, 30rem); min-height: 13rem; margin-inline: 0; padding: 1.3rem 1.2rem 1.1rem; }
.sponsors.sp-list .sponsor.main { width: min(100%, 34rem); min-height: 15rem; }
.sponsors.sp-list .sponsor .sp-logo img { max-width: 80%; max-height: 6rem; }
.sponsors.sp-list .sponsor.main .sp-logo img { max-height: 7.5rem; }
.sponsors.sp-list .sponsor .sp-more { font-size: 0.9rem; padding: 0.38rem 1rem 0.42rem; }

/* storia: foto che scorrono, ognuna col suo formato (lo imposta il sito) */
.marquee .frame { border-radius: 0.9rem; overflow: hidden; }

/* ---- Chi siamo su telefono: mosaico al posto delle foto di sfondo (toccando una foto si apre grande) ---- */
.story-mosaic { display: none; }
@media (max-width: 760px) {
  .story-bg img { display: none; }
  .story-mosaic { display: block; }
  .mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 6.2rem; grid-auto-flow: dense; gap: 0.5rem; }
  .mo { padding: 0; border: 0; border-radius: 0.8rem; overflow: hidden; background: var(--tile); cursor: pointer; grid-column: span 1; grid-row: span 2; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
  .mo:active { transform: scale(0.97); }
  .mo.w2 { grid-column: span 2; } .mo.h2 { grid-row: span 2; } .mo.h3 { grid-row: span 3; }
  .mo img { width: 100%; height: 100%; object-fit: cover; display: block; }
}
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(32, 36, 74, 0.94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem 1.5rem; animation: lbin 0.2s ease; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: 0.8rem; }
.lightbox figcaption { color: #fff; text-align: center; font-size: 1.05rem; }
.lb-x { position: absolute; top: 0.8rem; right: 0.9rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; }
html.lb-open { overflow: hidden; }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }

/* ---------- ritmo verticale uniforme (controllo spaziature) ---------- */
:root { --rhythm: clamp(2.6rem, 6vw, 4.5rem); }
.section, .band, .ticket-band, .acad-block, .photos, .academy { padding-block: var(--rhythm); }
.cd-sec { padding-block: clamp(1.6rem, 4vw, 2.6rem) 0; }
.acad-follow { padding-block: var(--rhythm); }
.section-head { align-items: center; margin-bottom: clamp(1.3rem, 3.5vw, 2.2rem); }
.section-head h2 { line-height: 1.1; }
.site-footer .f-brand .brand { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.7rem; margin-bottom: 1rem; }
.site-footer .f-brand .brand img { width: 2.6rem; height: 2.6rem; }
.site-footer .f-brand p { margin-top: 0; }
.facts div { align-items: baseline; }
.facts dd { flex: 1 1 12rem; }
.ticket-stage { gap: clamp(1.6rem, 4vw, 2.2rem); }
.ticket-band > .wrap > * + * { margin-top: clamp(1.2rem, 3vw, 1.8rem); }
@media (max-width: 760px) {
  :root { --rhythm: 2.6rem; }
  .section-head { margin-bottom: 1.3rem; gap: 0.4rem 1.2rem; }
  .page-head { padding-block: 1.4rem 2rem; }
  .page-head p { margin-top: 0.7rem; }
  .site-footer { padding-block: 2.4rem; }
  .site-footer .top { gap: 1.8rem; }
  .site-footer li { padding-block: 0.3rem; }
  .contact-list div { padding-block: 1rem; }
  .facts dd { flex-basis: 100%; text-align: left; font-weight: 700; }
  .facts dt { flex-basis: 100%; font-size: 0.95rem; }
  .facts div { gap: 0.15rem; }
}
.fi svg { display: block; flex: none; margin: 0; }
.fi, .site-footer .fi, .acad-follow .fi { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- galleria a gruppi (una partita per gruppo) ---------- */
.gal-group + .gal-group { margin-top: clamp(2.4rem, 6vw, 3.6rem); }
.gal-group h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin-bottom: 1rem; line-height: 1.15; }
.gal-group h2 span { display: block; margin-top: 0.3rem; font-family: var(--font); font-weight: 400; font-size: 1.05rem; letter-spacing: 0; color: var(--muted); }
.gal-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.gal-open .frame { transition: transform 0.2s ease; }
@media (hover: hover) { .gal-open:hover .frame { transform: scale(0.98); } }
.gal-open:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------- logo del fotografo, highlights, icone Academy ---------- */
.fi-mgs img { display: block; width: 2rem; height: auto; }
.acad-follow .fi { background: var(--navy); color: #fff; }
@media (hover: hover) { .acad-follow .fi:hover { background: var(--blue); } }
a.hl { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.8rem 0.25rem; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; line-height: 1.3; border: 0; background-image: none; }
a.hl::before { content: ""; width: 0; height: 0; border-left: 0.5rem solid currentColor; border-block: 0.32rem solid transparent; }
@media (hover: hover) { a.hl:hover { background: var(--blue); color: #fff; text-decoration: none; } }
.mrow .foot a.hl { margin-top: 0.1rem; }
.mcard .where a.hl { margin-left: auto; margin-right: 0.5rem; }
span.hl.off { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.8rem 0.25rem; border-radius: 999px; background: var(--tile); color: var(--muted); font-weight: 700; font-size: 0.9rem; line-height: 1.3; cursor: default; }
span.hl.off::before { content: ""; width: 0; height: 0; border-left: 0.5rem solid currentColor; border-block: 0.32rem solid transparent; }
.matches-track .mcard, .matches-track .mcard.past, .matches-track .mcard.first { opacity: 1 !important; will-change: auto; }

/* ---------- rosa: schede azzurre, nome sopra e cognome in grassetto sotto ---------- */
.roster li { background: var(--blue); color: var(--navy); border: 0; box-shadow: none; }
@media (hover: hover) { .roster li:hover { background: var(--blue); color: var(--navy); border: 0; box-shadow: none; } }
.roster .pn { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.roster .pf { font-weight: 400; font-size: 1.05rem; }
.roster .ps { font-weight: 700; font-size: 1.3rem; overflow-wrap: anywhere; }
.roster .cap-t { color: var(--navy); font-weight: 700; }
@media (max-width: 640px) { .roster .pf { font-size: 0.95rem; } .roster .ps { font-size: 1.1rem; } }

/* ---------- pagina Rosa: sfondo azzurro, schede bianche ---------- */
[data-page="rosa"] > .section { background: var(--blue); --fg: var(--navy); --muted: #1b2150; --line: rgba(32, 36, 74, 0.35); color: var(--navy); }
[data-page="rosa"] .roster li { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(32, 36, 74, 0.18); }
@media (hover: hover) { [data-page="rosa"] .roster li:hover { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(32, 36, 74, 0.18); } }
[data-page="rosa"] .role-group h2 span { color: var(--navy); }
[data-page="rosa"] .staff li { border-color: rgba(32, 36, 74, 0.35); }
main[data-page="rosa"] ~ #site-footer .site-footer { border-top: 2px solid rgba(255, 255, 255, 0.55); }

/* ---------- Rosa: foto di squadra in apertura (16:9 sul computer, foto intera sul telefono) ---------- */
.rosa-hero .acad-photo img.photo { object-position: 50% 50%; }
@media (max-width: 760px) {
  .rosa-hero.page-head { min-height: 0; aspect-ratio: 1400 / 1120; }
  .rosa-hero h1 { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .rosa-hero .wrap { padding-block: 1.1rem 1.2rem; }
  .rosa-hero p { margin-top: 0.4rem; }
}

/* Rosa: la foto sfuma morbida nell'azzurro della pagina (niente bordo netto) */
.rosa-hero.page-head { background: var(--blue); }
.rosa-hero::after { background: linear-gradient(180deg, rgba(32, 36, 74, 0.32) 0%, rgba(32, 36, 74, 0) 28%, rgba(32, 154, 215, 0) 46%, rgba(32, 154, 215, 0.78) 78%, var(--blue) 100%); }
.rosa-hero h1 { color: #fff; text-shadow: 0 3px 0 rgba(32, 36, 74, 0.22), 0 10px 28px rgba(32, 36, 74, 0.35); }
.rosa-hero p { color: var(--navy); text-shadow: none; }
.rosa-hero .acad-photo { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%); }
@media (max-width: 760px) { .rosa-hero .wrap { padding-block: 1rem 1.3rem; } }

/* ---------- schede partite bilanciate + pulsante Highlights animato ---------- */
.mcard { display: flex; flex-direction: column; }
.mcard .vs { flex: 1; align-items: center; }
.mcard .x { padding-top: 0; }
.mcard .where { margin-top: 0.8rem; }
a.hl { transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 10px rgba(32, 36, 74, 0.25); }
a.hl::before { transition: transform 0.2s ease; }
a.hl:focus-visible { transform: translateY(-2px) scale(1.06); background: var(--blue); box-shadow: 0 8px 16px rgba(32, 36, 74, 0.3); }
@media (hover: hover) { a.hl:hover { transform: translateY(-2px) scale(1.06); background: var(--blue); box-shadow: 0 8px 16px rgba(32, 36, 74, 0.3); } }
a.hl:focus-visible::before { transform: translateX(3px); }
@media (hover: hover) { a.hl:hover::before { transform: translateX(3px); } }
a.hl:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { a.hl, a.hl::before { transition: none; } a.hl:hover { transform: none; } }
.mcard .vs { align-items: start; align-content: center; }
.mcard .x { padding-top: 1.1rem; }
.mcard .score { align-self: start; padding-top: 0.9rem; }

/* ---------- tasto Indietro fisso: ti segue mentre scorri ---------- */
.back-fix { display: none; }
.back-spacer { visibility: hidden; pointer-events: none; }
@media (max-width: 1180px) {
  .back-fix { display: block; position: sticky; top: calc(var(--hh, 3.7rem) - 0.7rem); height: 0; z-index: 15; padding-inline: var(--gutter); }
  .back-fix .back { position: absolute; left: var(--gutter); top: 1.3rem; margin: 0; }
  .acad-hero .back-fix .back, [data-page="academy"] .back-fix .back, [data-page="rosa"] .back-fix .back { top: 1rem; }
}
.acad-hero .wrap > .back { display: none; }

/* ---------- pagina Privacy ---------- */
.legal-text { max-width: 46rem; }
.legal-text h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 2rem 0 0.5rem; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { margin: 0 0 1rem; }
.legal-text a { text-decoration: underline; text-underline-offset: 3px; }
.legal-text .legal-date { margin-top: 2rem; color: var(--muted); }

/* ---------- calendario: mostra altre partite ---------- */
.mrow[hidden] { display: none; }
.mmore { margin: 1.2rem 0 0; text-align: center; }
.mmore[hidden] { display: none; }
/* striscia partite sul computer: parte dal bordo, senza vuoto ai lati */
@media (min-width: 641px) { .matches-track { padding-left: var(--gutter); padding-right: var(--gutter); } }
/* sponsor: tutti insieme */
.sp-list.js-reveal > * { transition-delay: 0s; }

/* ---------- calendario e risultati a pagine ---------- */
.mrow[data-p][hidden] { display: none; }
.mpager { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin: 0 0 0.9rem; }
.mpager .pglabel { flex: 1; text-align: center; font-weight: 700; font-size: 1.1rem; }
.pgbtn { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--fg); background: transparent; color: var(--fg); font-size: 1.6rem; line-height: 1; padding: 0 0 0.15rem; cursor: pointer; box-shadow: 0 6px 14px rgba(32, 36, 74, 0.18); transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease; }
@media (hover: hover) { .pgbtn:hover:not(:disabled) { transform: translateY(-2px); background: var(--fg); color: var(--bg); } }
.pgbtn:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
@media (min-width: 900px) {
  .league { align-items: stretch; }
  .league .panel-prossime, .league .panel-risultati { align-self: stretch; }
  .league[data-tab="prossime"] .panel-prossime, .league[data-tab="risultati"] .panel-risultati { display: flex; flex-direction: column; }
  .league .mlist { flex: 1; grid-template-rows: repeat(5, 1fr); }
  .league .mrow { display: flex; flex-direction: column; justify-content: space-evenly; }
}
@media (min-width: 900px) { .league .league-tabs { align-self: start; } }

/* Academy: niente linea sotto la riga del Marianella nella classifica; titolo "Segui l'Academy" bianco */
.u19-table .rank tr.us td { border-bottom: 0; }
.sc-follow h3 { color: var(--fg); }

/* menu in Poppins */
.site-nav a { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; }
.site-nav a[aria-current="page"] { font-weight: 600; }
@media (max-width: 1180px) { .site-nav a { font-size: 1.15rem; } }

/* menu: voci un po' più a destra; stesso font su tasto Menu e pulsanti hero */
@media (max-width: 1180px) { .site-nav a { padding-left: 1.7rem; } }
.nav-toggle, .hero .btn { font-family: var(--font-head); font-weight: 500; }
.hero .btn { font-size: 1.05rem; }

/* classifica: nome squadra sempre su una riga */
.rank .tm span:last-child { white-space: nowrap; }
.rank th, .rank td { padding-inline: 0.35rem; }
.rank .tm { gap: 0.5rem; }
@media (max-width: 760px) {
  .u19-table .rank { font-size: 0.9rem; }
  .u19-table .rank th, .u19-table .rank td { padding-inline: 0.22rem; }
  .u19-table .rank th { font-size: 0.82rem; }
}
.u19-table .rank { font-size: 0.92rem; }
.u19-table .rank th, .u19-table .rank td { padding-inline: 0.22rem; }

/* calendario e risultati: spaziature piu' compatte */
.mlist { gap: 0.6rem; }
.mrow { padding: 0.55rem 0.9rem 0.6rem; }
.mrow .meta { margin-bottom: 0.25rem; }
.mrow .line { padding-block: 0.1rem; }
.mrow .foot { margin-top: 0.3rem; padding-top: 0.35rem; }
@media (min-width: 900px) { .league .mrow { justify-content: center; } }

/* nomi squadre: i numeri a larghezza fissa allargavano lo spazio tra le parole */
.rank .tm, .rank td.team, .u19-table .rank td.team { font-variant-numeric: normal; font-feature-settings: "tnum" 0; word-spacing: 0; }

/* logo del fotografo: sempre su bottone bianco, parti blu scuro */

/* logo del fotografo: come gli altri pulsanti al passaggio (si alza, diventa azzurro) e il logo torna grigio/bianco */
.fi-mgs { position: relative; }
.fi-mgs .mgs-hover { position: absolute; inset: 0; margin: auto; opacity: 0; transition: opacity 0.18s ease; }
.fi-mgs .mgs-base { transition: opacity 0.18s ease; }
@media (hover: hover) { .fi-mgs:hover .mgs-base { opacity: 0; } }
@media (hover: hover) { .fi-mgs:hover .mgs-hover { opacity: 1; } }

/* logo del fotografo: pulsante identico a Facebook e Instagram (stesso colore, stesso sollevamento, stessa durata); cambia solo il logo che sfuma */
.fi-mgs .mgs-base, .fi-mgs .mgs-hover { transition: opacity 0.18s ease; }
