/* GS Tertenia Calcio — layout "mezza e mezza" come la prima maglia 26/27 (metà rosso, metà bianco),
   banda nera a triangoli presa dal vaso dello stemma, titoli condensati da cartellone di stadio. */
:root {
  --red: #C90025;          /* rosso sociale: fondi, bottoni */
  --red-deep: #99001C;     /* hover/pressed */
  --red-ink: #C90025;      /* rosso usato come testo */
  --paper: #FFFFFF;        /* bianco sociale: fondo pagina */
  --mist: #F7F2F2;         /* superfici alternate, neutro con bias rosso */
  --line: #E7DCDD;
  --ink: #1A1315;
  --muted: #6A5C5F;
  --band: #141011;         /* nero dello stemma: bande e footer, uguale nei due temi */
  --on-dark: #FFFFFF;
  --on-dark-muted: #BDB1B3;
  --on-red: #FFFFFF;
  --logo-bg: #FFFFFF;      /* i loghi sponsor hanno fondo bianco: restano su bianco */
  --todo-bg: #FFF6E5;
  --todo-line: #D49A2A;
  --todo-ink: #6E4600;

  --font-display: "Big Shoulders Display", "Big Shoulders", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(3.6rem, 10.5vw, 8.75rem);
  --fs-h1: clamp(3rem, 8.5vw, 6.75rem);
  --fs-h2: clamp(2.25rem, 5vw, 3.75rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 1.875rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  --wrap: 1240px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(56px, 8vw, 104px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red-deep: #E01E3E; --red-ink: #FF5A6E;
    --paper: #110D0E; --mist: #1A1415; --line: #2F2527; --ink: #F4EDED; --muted: #AE9FA2;
    --band: #050404;
    --todo-bg: #2A1F0E; --todo-line: #B8862C; --todo-ink: #F2CB7C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red-deep: #E01E3E; --red-ink: #FF5A6E;
  --paper: #110D0E; --mist: #1A1415; --line: #2F2527; --ink: #F4EDED; --muted: #AE9FA2;
  --band: #050404;
  --todo-bg: #2A1F0E; --todo-line: #B8862C; --todo-ink: #F2CB7C;
  color-scheme: dark;
}

/* ---------- base ---------- */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }
.page-head :focus-visible, .hero-red :focus-visible, .menu-panel :focus-visible, .on-red :focus-visible { outline-color: var(--on-red); }
.site-footer :focus-visible, .band :focus-visible { outline-color: var(--on-dark); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sr-only { 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: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

.label {
  font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.display {
  font-stretch: condensed;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  line-height: .88; letter-spacing: -.004em;
}
.lead { font-size: 1.1875rem; line-height: 1.55; max-width: 58ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- preview bar ---------- */
.preview {
  background: var(--todo-bg); color: var(--todo-ink);
  border-bottom: 1px dashed var(--todo-line); font-size: .8125rem;
}
.preview .wrap { padding-block: 7px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.preview strong { letter-spacing: .12em; text-transform: uppercase; font-size: .6875rem; }

/* ---------- utility bar ---------- */
.utility { background: var(--band); color: var(--on-dark); font-size: .75rem; }
.utility .wrap { display: flex; align-items: center; gap: 20px; min-height: 36px; padding-block: 6px; }
.utility .season { letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-muted); }
.utility nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.utility a { text-decoration: none; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.utility a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand .crest { width: 38px; }
.brand-word { display: block; line-height: 0; }
.brand-word img { display: block; height: 38px; width: auto; }
.brand-word .wm-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-word .wm-ink { display: none; }
  :root:not([data-theme="light"]) .brand-word .wm-light { display: block; }
}
:root[data-theme="dark"] .brand-word .wm-ink { display: none; }
:root[data-theme="dark"] .brand-word .wm-light { display: block; }
.brand-name { white-space: nowrap; font-stretch: condensed; font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; line-height: .82; text-transform: uppercase; }
.brand-name span { display: block; font-family: var(--font-body); font-size: .625rem; font-weight: 700; letter-spacing: .34em; color: var(--red-ink); margin-top: 5px; }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav a {
  position: relative; text-decoration: none; padding: 10px 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--red-ink); }
.header-cta { flex-shrink: 0; }
.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: 2px;
  padding: 9px 14px; font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.menu-toggle .bars { width: 18px; height: 12px; display: grid; align-content: space-between; }
.menu-toggle .bars i { display: block; height: 2px; background: currentColor; }
@media (max-width: 1320px) {
  .nav, .header-row .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* mobile / full menu */
.menu-panel {
  position: fixed; inset: 0; z-index: 100; background: var(--red); color: var(--on-red);
  overflow-y: auto; overscroll-behavior: contain;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.menu-panel .wrap { padding-block: 18px 48px; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.menu-top .brand-name span { color: var(--on-red); }
.menu-close {
  background: none; border: 2px solid var(--on-red); color: var(--on-red); border-radius: 2px;
  padding: 9px 14px; font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.menu-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; margin-top: 36px; }
.menu-groups h2 { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .8; margin-bottom: 10px; }
.menu-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu-groups a {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.02;
  text-transform: uppercase; text-decoration: none;
}
.menu-groups a:hover, .menu-groups a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
body.menu-open { overflow: hidden; }

/* ---------- greca (banda a triangoli dello stemma) ---------- */
.greca {
  height: 18px; background-color: var(--band);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='18'%3E%3Cpath d='M2 3h22L13 15z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: 2px solid currentColor;
  border-radius: 2px; text-decoration: none; cursor: pointer; background: none; color: inherit;
  font: 700 .8125rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn .arr { font-size: 1.05em; transition: transform .15s ease; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-white { background: var(--on-red); border-color: var(--on-red); color: #C90025; }
.btn-white:hover { background: var(--band); border-color: var(--band); color: var(--on-dark); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-red .btn-ghost:hover, .hero-red .btn-ghost:hover, .page-head .btn-ghost:hover { background: var(--on-red); color: #C90025; border-color: var(--on-red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  justify-self: start; align-self: start; width: fit-content;
  display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .8125rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--red-ink);
  border-bottom: 2px solid currentColor; padding-bottom: 4px;
}
.link-arrow:hover { color: var(--ink); }

/* ---------- placeholder "da completare" ---------- */
.todo {
  border: 1.5px dashed var(--todo-line); background: var(--todo-bg); color: var(--todo-ink);
  border-radius: 4px; padding: 16px 18px; font-size: .9375rem; line-height: 1.5;
}
.todo-tag, .chip-todo {
  display: inline-block; font-size: .625rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  border: 1px dashed var(--todo-line); background: var(--todo-bg); color: var(--todo-ink);
  padding: 3px 7px; border-radius: 3px; vertical-align: middle; line-height: 1.4;
}
.todo .todo-tag { margin-bottom: 8px; }
.todo p + p { margin-top: 6px; }
.todo ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- home hero ---------- */
.hero { background: linear-gradient(90deg, var(--red) 50%, var(--paper) 50%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; }
.hero-red { color: var(--on-red); padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px) clamp(48px, 7vw, 88px) 0; display: grid; gap: 26px; align-content: center; }
.hero-red .eyebrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero-red .eyebrow i { width: 28px; height: 3px; background: var(--on-red); display: inline-block; }
.hero h1 { font-size: var(--fs-hero); }
.hero h1 .dot { color: var(--band); }
.hero-red .lead { max-width: 34ch; }
.hero-white { position: relative; display: grid; place-items: center; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px) clamp(24px, 4vw, 56px); overflow: hidden; }
.hero-white .season-big {
  position: absolute; right: -0.04em; bottom: -0.12em; font-family: var(--font-display); font-weight: 900;
  font-size: clamp(6rem, 13vw, 12rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--line);
  user-select: none; pointer-events: none; letter-spacing: -.02em;
}
.hero-white figure { margin: 0; position: relative; display: grid; gap: 18px; justify-items: center; }
.hero-white img { width: min(320px, 70%); filter: drop-shadow(0 18px 30px rgba(20, 16, 17, .22)); }
.hero-white figcaption { color: var(--muted); }
@media (max-width: 860px) {
  .hero { background: var(--red); }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-red { padding-right: 0; padding-bottom: 8px; }
  .hero-white { display: none; }
}

/* ---------- page head (pagine interne) ---------- */
.page-head { background: var(--red); color: var(--on-red); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 7%; width: min(26%, 300px); opacity: .13; pointer-events: none;
  background: linear-gradient(90deg, var(--on-red) 0 30%, transparent 30% 70%, var(--on-red) 70% 100%);
}
.page-head .wrap { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 72px) clamp(44px, 6vw, 76px); display: grid; gap: 18px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.crumbs a { text-decoration: none; opacity: .85; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.page-head h1 { font-size: var(--fs-h1); max-width: 14ch; }
.page-head .lead { max-width: 52ch; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section.alt { background: var(--mist); border-block: 1px solid var(--line); }
.section.dark { background: var(--band); color: var(--on-dark); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { font-size: var(--fs-h2); }
.sec-head .kicker { color: var(--red-ink); margin-bottom: 10px; display: block; }
.sec-head p { max-width: 52ch; color: var(--muted); margin-top: 12px; }
.sec-head p.sec-note { font-size: .875rem; line-height: 1.55; max-width: 64ch; }
.stack { display: grid; gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > * { min-width: 0; }
.split.split-75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .split, .split.split-75 { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.prose h3 { font-size: var(--fs-h3); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1; }

/* ---------- match bar ---------- */
.matchbar { background: var(--mist); border-bottom: 1px solid var(--line); }
.matchbar .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.match-cell { padding: 26px 24px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); }
.match-cell:first-child { border-left: 0; padding-left: 0; }
.match-cell .label { color: var(--muted); }
.fixture { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; line-height: 1; }
.fixture .vs { font-family: var(--font-body); font-size: .75rem; font-weight: 700; color: var(--muted); letter-spacing: .14em; }
.fixture .tbd { color: var(--muted); }
.match-cell .meta { font-size: var(--fs-small); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.price-inline { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: .9; color: var(--red-ink); }
@media (max-width: 860px) {
  .matchbar .wrap { grid-template-columns: 1fr; }
  .match-cell { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .match-cell:first-child { border-top: 0; }
}

/* ---------- link tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.tile {
  display: grid; gap: 10px; align-content: start; padding: 26px 26px 30px 0; text-decoration: none;
  border-bottom: 1px solid var(--line); position: relative;
}
.tile + .tile { padding-left: 26px; border-left: 1px solid var(--line); }
.tiles .tile:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.tile h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 2.25rem; line-height: .9; display: flex; justify-content: space-between; gap: 12px; }
.tile h3 .arr { color: var(--red-ink); font-family: var(--font-body); font-size: 1.25rem; transition: transform .15s ease; }
.tile:hover h3 { color: var(--red-ink); }
.tile:hover .arr { transform: translate(3px, -3px); }
.tile p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile + .tile, .tiles .tile:nth-child(3n+1) { padding: 22px 18px 24px 0; border-left: 0; }
  .tiles .tile:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .tiles .tile:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.news-card { display: grid; gap: 14px; align-content: start; }
.news-media {
  aspect-ratio: 16 / 10; max-width: 100%; position: relative; overflow: hidden; background: var(--red);
  display: grid; place-items: end start; padding: 14px; color: var(--on-red);
}
.news-media::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background: repeating-linear-gradient(90deg, var(--on-red) 0 34px, transparent 34px 78px);
}
.news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.news-media .big { position: relative; font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: clamp(3rem, 11vw, 4.5rem); line-height: .85; text-transform: uppercase; }
.news-media.photo { background: #000; }
.news-media.photo::before { display: none; }
.news-media.overlay::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 6, 7, .78) 0%, rgba(10, 6, 7, .25) 45%, transparent 70%); }
.news-media.overlay .big { z-index: 2; color: #FFFFFF; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.news-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.news-meta .cat { color: var(--red-ink); }
.news-card h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
.news-card p { color: var(--muted); font-size: .9688rem; }
.news-card .link-arrow { justify-self: start; margin-top: 4px; }
.news-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.news-feature h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.25rem, 4.6vw, 3.5rem); line-height: .92; }
.news-feature .news-card { gap: 16px; }
@media (max-width: 860px) { .news-feature { grid-template-columns: 1fr; } }

/* ---------- categorie settore giovanile ---------- */
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.cat-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line); transition: background-color .2s ease;
}
.cat-row .name { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 3.6vw, 2.5rem); text-transform: uppercase; line-height: .95; }
.cat-row .years { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.cat-row .extra { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cat-row.is-match { background: var(--red); color: var(--on-red); padding-inline: 16px; }
.cat-row.is-match .years, .cat-row.is-match .extra { color: var(--on-red); }

.finder { background: var(--band); color: var(--on-dark); padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; border-radius: 2px; }
.finder h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: .95; }
.finder form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.finder label { display: grid; gap: 6px; font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.finder input {
  width: 9ch; font: 800 2rem/1 var(--font-display); padding: 10px 12px; border-radius: 2px;
  border: 2px solid var(--on-dark); background: transparent; color: var(--on-dark); font-variant-numeric: tabular-nums;
}
.finder input:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.finder .result { min-height: 1.6em; font-size: 1.0625rem; }
.finder .result strong { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; color: var(--on-dark); }

/* ---------- ticket ---------- */
.ticket {
  --cut: var(--paper);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 34%); max-width: 760px;
  filter: drop-shadow(0 14px 28px rgba(20, 16, 17, .16));
}
.section.alt .ticket { --cut: var(--mist); }
.ticket-main { background: var(--red); color: var(--on-red); padding: clamp(22px, 4vw, 34px); display: grid; gap: 12px; position: relative; border-radius: 6px 0 0 6px; }
.ticket-main h3 { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3rem); line-height: .9; text-transform: uppercase; }
.ticket-main .includes { font-weight: 600; }
.ticket-stub {
  background: var(--band); color: var(--on-dark); padding: 22px 18px; display: grid; place-items: center; text-align: center; gap: 4px;
  border-left: 3px dashed var(--on-dark-muted); position: relative; border-radius: 0 6px 6px 0;
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -15px; width: 26px; height: 26px; border-radius: 50%; background: var(--cut);
}
.ticket-stub::before { top: -13px; }
.ticket-stub::after { bottom: -13px; }
.ticket-stub .price { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: clamp(3rem, 6vw, 4.5rem); line-height: .85; font-variant-numeric: tabular-nums; }
.ticket-stub .label { color: var(--on-dark-muted); }
@media (max-width: 520px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { border-radius: 6px 6px 0 0; }
  .ticket-stub { border-left: 0; border-top: 3px dashed var(--on-dark-muted); border-radius: 0 0 6px 6px; }
  .ticket-stub::before, .ticket-stub::after { left: auto; top: -15px; bottom: auto; }
  .ticket-stub::before { left: -13px; }
  .ticket-stub::after { right: -13px; }
}

/* ---------- people / staff ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: var(--on-red);
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; letter-spacing: .02em;
}
.avatar.empty { background: var(--mist); color: var(--muted); border: 1.5px dashed var(--todo-line); }
.person .role { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.person .who { font-weight: 700; font-size: 1.125rem; line-height: 1.25; }

/* rosa per ruolo */
.roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.role-col { display: grid; gap: 12px; align-content: start; }
.role-col h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.875rem; line-height: 1; border-bottom: 3px solid var(--ink); padding-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.role-col h3 small { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); }
.shirt-num { font-family: var(--font-display); font-weight: 900; color: var(--red-ink); font-variant-numeric: tabular-nums; }

/* ---------- tabella calendario ---------- */
.table-wrap { overflow-x: auto; border-top: 3px solid var(--ink); }
table.fixtures { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.fixtures th { text-align: left; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.fixtures td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fixtures .g { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; width: 3.5rem; }
.fixtures .team-home { font-weight: 700; }
.fixtures .score { font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; white-space: nowrap; }
.fixtures tr.example td { color: var(--muted); }
.pill { display: inline-block; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; border: 1px solid currentColor; }
.pill.home { color: var(--red-ink); }

/* ---------- stadio ---------- */
.pitch { background: var(--red); padding: clamp(14px, 2.4vw, 24px); border-radius: 2px; }
.pitch svg { display: block; width: 100%; height: auto; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.facts li { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts .k { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts .v { font-weight: 600; }

/* ---------- galleria ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.album { display: grid; gap: 12px; align-content: start; }
.album-cover {
  aspect-ratio: 4 / 3; max-width: 100%; position: relative; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--mist) 0 16px, var(--paper) 16px 32px); border: 1px solid var(--line);
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover.contain img { object-fit: contain; padding: 18px; background: var(--logo-bg); }
.album-cover .cam { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: 6px 10px; border: 1px solid var(--line); }
.album h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.album .count { font-size: var(--fs-small); color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- shop ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.product-media { background: var(--logo-bg); border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); display: grid; place-items: center; }
.product-media img { width: min(100%, 440px); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

/* ---------- sponsor ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.sponsor-grid.main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .sponsor-grid.main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sponsor-grid.main { grid-template-columns: 1fr; } .sponsor-grid:not(.main) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.sponsor-card.main .name { font-size: 1rem; font-weight: 700; color: var(--ink); }
.sp-thanks { max-width: 64ch; margin: 0 0 clamp(32px, 5vw, 48px); }
.sp-group + .sp-group { margin-top: clamp(40px, 6vw, 64px); }
.sp-group-title { display: flex; align-items: center; gap: 14px; margin: 0 0 20px; font-size: var(--fs-small); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.sp-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sponsor-card { display: grid; gap: 8px; align-content: start; min-width: 0; text-align: center; }
.sponsor-logo { display: grid; place-items: center; aspect-ratio: 16 / 10; max-width: 100%; }
.sponsor-logo img { height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.sponsor-card .name { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }

.sponsor-strip { border-top: 1px solid var(--line); background: var(--paper); padding-block: 28px 32px; overflow: hidden; }
.sponsor-strip .head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sponsor-strip .head .label { color: var(--muted); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 130s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track a { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 112px; }
.marquee-track img { display: block; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 24px)); } }
/* zona loghi: sempre su bianco (i loghi hanno il fondo bianco), anche col tema scuro */
.logo-zone { background: var(--logo-bg); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-zone { --paper: #FFFFFF; --mist: #F7F2F2; --line: #E7DCDD; --ink: #1A1315; --muted: #6A5C5F; --red-ink: #C90025; --red-deep: #99001C; color-scheme: light; }
}
:root[data-theme="dark"] .logo-zone { --paper: #FFFFFF; --mist: #F7F2F2; --line: #E7DCDD; --ink: #1A1315; --muted: #6A5C5F; --red-ink: #C90025; --red-deep: #99001C; color-scheme: light; }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--on-red); }
.cta-band .wrap { padding-block: clamp(40px, 6vw, 64px); display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 16ch; }
.cta-band p { max-width: 46ch; margin-top: 10px; }

/* ---------- info cards (contatti, biglietteria) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); background: var(--paper); padding: 24px; display: grid; gap: 12px; align-content: start; }
.card h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 1.875rem; line-height: .95; }
.card .label { color: var(--red-ink); }
.card.feature { background: var(--band); color: var(--on-dark); border-color: var(--band); }
.card.feature .label { color: var(--on-dark-muted); }
.card.feature .link-arrow { color: var(--on-dark); }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { font-family: var(--font-body); font-weight: 600; overflow-wrap: anywhere; }
.copy-btn { background: none; border: 1px solid currentColor; color: inherit; border-radius: 2px; padding: 5px 9px; font: 700 .6875rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.pillar { padding: 24px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line); }
.pillar h3 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: .95; }
.pillar p { color: var(--muted); }
@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.crest-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.crest-panel img { width: clamp(140px, 22vw, 230px); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.swatch { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 600; }
.swatch i { width: 28px; height: 28px; border: 1px solid var(--line); display: inline-block; }
@media (max-width: 600px) { .crest-panel { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--band); color: var(--on-dark); }
.site-footer .wrap { padding-block: clamp(48px, 7vw, 80px) 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; }
.footer-claim { display: grid; gap: 22px; align-content: start; }
.footer-claim .display { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.footer-claim .display em { font-style: normal; color: var(--red); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 700; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; font-weight: 600; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--on-dark-muted); }
.footer-bottom a { color: var(--on-dark); }
.site-footer .btn-ghost:hover { background: var(--on-dark); color: var(--band); border-color: var(--on-dark); }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .header-row { gap: 12px; min-height: 64px; }
  .brand .crest { width: 30px; }
  .brand-word img { height: 32px; }
  .menu-toggle { padding: 8px 10px; gap: 8px; }
  .utility .season { display: none; }
  .utility nav { margin-left: 0; gap: 14px; }
}

/* =====================================================================
   v2 — hero "stadio" con figurine, partite, numeri, staff, rosa
   ===================================================================== */
:root {
  --stage-1: #A1001B; --stage-2: #5E0010; --stage-3: #1E0407; --stage-4: #0A0506;  /* bagliore rosso delle grafiche del club */
  --fig-a: #4A000D; --fig-b: #C90025; --fig-c: #D9613F;                          /* fascia nome delle figurine */
  --win: #1E7A3E; --draw: #7C7072; --loss: #1A1315;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --win: #3FB56B; --draw: #9C9092; --loss: #F4EDED; } }
:root[data-theme="dark"] { --win: #3FB56B; --draw: #9C9092; --loss: #F4EDED; }

/* hero */
.hero2 {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(120% 95% at 74% 42%, var(--stage-1) 0%, var(--stage-2) 30%, var(--stage-3) 62%, var(--stage-4) 100%);
}
.hero2::before {
  content: ""; position: absolute; inset: auto -10% -55% 35%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .07); pointer-events: none;
}
.hero2 .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: 24px 40px; align-items: center; padding-block: clamp(44px, 6vw, 88px) clamp(52px, 7vw, 96px); }
.hero2 .copy { display: grid; gap: 22px; align-content: center; }
.hero2 .eyebrow { display: flex; gap: 8px; flex-wrap: wrap; }
.hero2 .eyebrow span { border: 1px solid rgba(255, 255, 255, .35); padding: 6px 10px; border-radius: 2px; }
.hero2 h1 { font-size: var(--fs-hero); }
.hero2 h1 .dot { color: var(--red); }
.hero2 .lead { max-width: 36ch; color: rgba(255, 255, 255, .86); }
.fan { position: relative; height: clamp(320px, 40vw, 520px); }
.fan .figurina { position: absolute; top: 50%; left: 50%; width: clamp(150px, 16vw, 214px); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.fan .f1 { transform: translate(-136%, -38%) rotate(-9deg); }
.fan .f2 { transform: translate(-50%, -60%); z-index: 2; }
.fan .f3 { transform: translate(36%, -38%) rotate(9deg); }
.fan:hover .f1 { transform: translate(-142%, -40%) rotate(-11deg); }
.fan:hover .f3 { transform: translate(42%, -40%) rotate(11deg); }
@media (max-width: 860px) {
  .hero2 .wrap { grid-template-columns: 1fr; }
  .fan { height: 310px; }
  .fan .figurina { width: 120px; }
  .fan .f1 { transform: translate(-126%, -38%) rotate(-8deg); }
  .fan .f3 { transform: translate(26%, -38%) rotate(8deg); }
}

/* figurina */
.figurina {
  display: block; background: #000; border: 5px solid #FFFFFF; border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 34px rgba(10, 5, 6, .38); text-decoration: none; color: #FFFFFF;
}
.figurina img { width: 100%; height: auto; aspect-ratio: 480 / 689; object-fit: cover; display: block; }
.figurina .fig-name {
  display: block; background: linear-gradient(90deg, var(--fig-a), var(--fig-b) 55%, var(--fig-c));
  padding: 8px 8px 9px; text-align: center; font-family: var(--font-display); font-stretch: condensed;
  font-weight: 800; text-transform: uppercase; font-size: 1.2rem; line-height: 1;
}
.figurina .fig-role { display: block; font-family: var(--font-body); font-size: .5625rem; font-weight: 700; letter-spacing: .16em; margin-top: 5px; opacity: .88; }
a.figurina:hover { box-shadow: 0 22px 40px rgba(10, 5, 6, .5); }
a.figurina:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; }

.fig-rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 16vw, 176px); gap: 16px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.fig-rail .figurina { scroll-snap-align: start; transition: transform .2s ease; }
.fig-rail .figurina, .fig-grid .figurina { box-shadow: 0 6px 14px rgba(10, 5, 6, .16); }
.fig-rail .figurina:hover { transform: translateY(-4px); }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 20px; }
@media (max-width: 420px) { .fig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .figurina .fig-name { font-size: 1rem; } }

/* partite */
.matchday { padding-block: clamp(36px, 5vw, 56px); }
.matchday .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.matchday .foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 860px) { .matchday .wrap { grid-template-columns: 1fr; } }
.mcard { border: 1px solid var(--line); background: var(--paper); padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.mcard.next { background: var(--band); color: var(--on-dark); border-color: var(--band); }
.mcard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mcard-top .label { color: var(--muted); }
.mcard.next .mcard-top .label { color: var(--on-dark-muted); }
.chip-count { background: var(--red); color: var(--on-red); padding: 5px 10px; border-radius: 2px; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.teams { display: grid; gap: 6px; }
.teams .t { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-stretch: condensed; font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: .92; overflow-wrap: anywhere; }
.teams .t img { width: 26px; flex-shrink: 0; }
.teams .vs { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.mcard-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: var(--fs-small); }
.mcard.next .mcard-meta { color: var(--on-dark-muted); }
.mcard-meta strong { color: inherit; font-weight: 700; }
.score-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.score-line .team { font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 8px; min-width: 0; }
.score-line .team img { width: 20px; flex-shrink: 0; }
.score-line .team.r { justify-content: flex-end; text-align: right; }
.score { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: clamp(3.2rem, 7vw, 4.75rem); line-height: .8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.esito { display: inline-flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.esito::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.esito.v { color: var(--win); } .esito.n { color: var(--draw); } .esito.p { color: var(--loss); }
.scorers-line { font-size: var(--fs-small); color: var(--muted); }
.scorers-line strong { color: var(--ink); }
.mcard.next .scorers-line, .mcard.next .scorers-line strong { color: var(--on-dark); }

/* numeri stagione */
.numeri-band { background: var(--red); color: var(--on-red); }
.numeri-band .wrap { padding-block: 8px; }
.numeri { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.numeri > div { padding: 22px 14px; display: grid; gap: 8px; border-left: 1px solid rgba(255, 255, 255, .28); }
.numeri > div:first-child { border-left: 0; padding-left: 0; }
.numeri .n { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: .82; font-variant-numeric: tabular-nums; }
.numeri .l { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.forma { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0 18px; font-size: var(--fs-small); }
.forma .label { opacity: .9; }
.forma b { width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 2px; font-size: .75rem; font-weight: 800; background: var(--on-red); color: #C90025; }
.forma b.p { background: var(--band); color: var(--on-dark); }
.forma b.n { background: rgba(255, 255, 255, .35); color: var(--on-red); }
@media (max-width: 760px) {
  .numeri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numeri > div:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .numeri > div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .28); }
}

/* home: anteprima prima squadra */
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.ps-box { border-top: 3px solid var(--ink); padding-top: 16px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.ps-box > .label { color: var(--red-ink); }
@media (max-width: 900px) { .ps-grid { grid-template-columns: 1fr; } }
.mini-staff { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; text-decoration: none; }
.mini-staff img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 18%; background: var(--logo-bg); border: 1px solid var(--line); }
.mini-staff .who { font-weight: 700; line-height: 1.25; }
.mini-staff .role { font-size: var(--fs-small); color: var(--muted); }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; }
.next-list li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.next-list .d { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: 1.5rem; line-height: .9; text-transform: uppercase; text-align: center; }
.next-list .d small { display: block; font-family: var(--font-body); font-size: .625rem; letter-spacing: .14em; font-weight: 700; color: var(--muted); }
.next-list .m { font-weight: 600; line-height: 1.3; min-width: 0; }
.next-list .m small { display: block; color: var(--muted); font-weight: 500; font-size: var(--fs-small); }
.topscorer { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; }
.topscorer .figurina { border-width: 3px; border-radius: 6px; }
.topscorer .figurina .fig-name { display: none; }
.topscorer .gol { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: 3.6rem; line-height: .8; color: var(--red-ink); }
.topscorer .who { font-weight: 700; font-size: 1.125rem; }

/* staff tecnico */
.staff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
@media (max-width: 860px) { .staff-grid { grid-template-columns: 1fr; } }
.staff-card { border: 1px solid var(--line); background: var(--paper); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); min-width: 0; }
.staff-card .photo { background: var(--logo-bg); border-right: 1px solid var(--line); }
.staff-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 4 / 5; }
.staff-card .body { padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; align-content: start; min-width: 0; }
.staff-card .role { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-ink); }
.staff-card h3 { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: .9; }
.staff-card .tag { color: var(--muted); font-size: .9688rem; }
@media (max-width: 520px) { .staff-card { grid-template-columns: 1fr; } .staff-card .photo { border-right: 0; border-bottom: 1px solid var(--line); } .staff-card .photo img { aspect-ratio: 1 / 1; } }
.bio { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.bio summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px clamp(18px, 3vw, 28px); font-weight: 700; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-ink);
}
.bio summary::-webkit-details-marker { display: none; }
.bio summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .2s ease; }
.bio[open] summary::after { transform: rotate(45deg); }
.bio summary:hover { background: var(--mist); }
.bio .bio-body { padding: 0 clamp(18px, 3vw, 28px) 24px; display: grid; gap: 14px; max-width: 70ch; }
.career { list-style: none; margin: 4px 0 0; padding: 0 0 0 18px; border-left: 3px solid var(--red); display: grid; gap: 10px; }
.career li { font-size: .9688rem; }
.career strong { display: block; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.signoff { font-family: var(--font-display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; color: var(--red-ink); }

/* reparti rosa */
.reparto { display: grid; gap: 18px; }
.reparto + .reparto { margin-top: clamp(32px, 5vw, 48px); }
.reparto h3 { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: 1; border-bottom: 3px solid var(--ink); padding-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.reparto h3 small { font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: .14em; color: var(--muted); }

/* marcatori */
.scorers { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.scorers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.scorers .nm { font-weight: 600; }
.scorers .g { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.scorers .bar { grid-column: 1 / -1; height: 6px; background: var(--mist); }
.scorers .bar i { display: block; height: 100%; background: var(--red); }

/* calendario */
.fixtures tr.is-next td { background: var(--mist); }
.fixtures tr.is-next td:first-child { box-shadow: inset 4px 0 0 var(--red); padding-left: 10px; }
.fixtures tr.played td { color: var(--ink); }
.fixtures .us { font-weight: 800; }
.fixtures .when { white-space: nowrap; }
.fixtures .res { display: flex; align-items: center; gap: 12px; }
.next-tag { display: inline-block; margin-left: 8px; background: var(--red); color: var(--on-red); font-size: .5625rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 3px 6px; border-radius: 2px; vertical-align: middle; }
.cal-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-tabs button { font: 700 .75rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 11px 16px; border: 2px solid var(--ink); background: none; color: var(--ink); border-radius: 2px; cursor: pointer; }
.cal-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.teams-list { columns: 2 220px; column-gap: 32px; list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.teams-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.teams-list li.us { color: var(--red-ink); }

/* quote / manifesto club */
.manifesto { background: var(--band); color: var(--on-dark); }
.manifesto .wrap { padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 24px; }
.manifesto blockquote { margin: 0; font-family: var(--font-display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: .98; max-width: 22ch; text-wrap: balance; }
.manifesto blockquote em { font-style: normal; color: var(--red); }
.manifesto p { color: var(--on-dark-muted); max-width: 58ch; }
.manifesto .manifesto-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.manifesto-text { display: grid; gap: 24px; align-content: start; }
.manifesto-photo { margin: 0; }
.manifesto-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border-radius: 2px; }
@media (max-width: 900px) {
  .manifesto .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-photo { max-width: 520px; }
}

.next-tag.nota { background: var(--ink); color: var(--paper); }
.news-media.graphic img { object-position: left center; }

/* icone social (Font Awesome: da cdnjs nell'anteprima, SVG nella pagina nella versione per hosting) */
.social { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.social a {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 2px solid currentColor; color: inherit; text-decoration: none; font-size: 1.1rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.social a:hover { background: var(--red); border-color: var(--red); color: var(--on-red); }
.social .fallback { font-size: .6875rem; font-weight: 800; letter-spacing: .06em; }
html.fontawesome-i2svg-active .social .fallback, html.fontawesome-i2svg-complete .social .fallback { display: none; }
.social.sm { gap: 6px; }
.social.sm a { width: 26px; height: 26px; border-width: 1px; font-size: .75rem; }
.social.sm .fallback { font-size: .5rem; }
.social svg.ico { height: 1em; width: 1em; display: block; overflow: visible; }
.social.lg a { width: 52px; height: 52px; font-size: 1.35rem; }
.social.xl { gap: 16px; }
.social.xl a { width: 84px; height: 84px; font-size: 2.1rem; border-width: 3px; }
.social.on-red a:hover { background: var(--on-red); border-color: var(--on-red); color: #C90025; }
.utility .social { margin-left: 14px; }
@media (max-width: 420px) { .utility .social { margin-left: auto; } }

/* galleria: cartelle partite */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.folder { border: 1.5px dashed var(--todo-line); background: var(--mist); padding: 24px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.folder h3 { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; text-transform: uppercase; font-size: 1.75rem; line-height: .95; }
.folder-icon { width: 56px; height: 42px; position: relative; background: var(--red); border-radius: 0 4px 4px 4px; margin-top: 8px; }
.folder-icon::before { content: ""; position: absolute; left: 0; top: -8px; width: 24px; height: 10px; background: var(--red); border-radius: 4px 4px 0 0; }

/* v5 — figurine su due righe, staff in aggiornamento, giovanili, classifica */
.figurina .fig-name .fn, .figurina .fig-name .ln { display: block; }
.figurina .fig-name .fn { font-size: .78em; font-weight: 700; opacity: .92; }
.staff-todo .photo { display: grid; place-items: center; background: var(--mist); min-height: 220px; }
.staff-todo .avatar { width: 96px; height: 96px; font-size: 2.6rem; }
.mini-staff .avatar { width: 64px; height: 64px; }
.pillars.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .pillars.two { grid-template-columns: 1fr; } }
.split.split-57 { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
@media (max-width: 900px) { .split.split-57 { grid-template-columns: 1fr; } }
table.standings { min-width: 520px; }
.standings td, .standings th { padding-right: 10px; }
.standings td:nth-child(n+3), .standings th:nth-child(n+3) { text-align: center; }
.standings .pt { font-family: var(--font-display); font-stretch: condensed; font-weight: 900; font-size: 1.3rem; }
.standings tr.is-us td { background: var(--mist); font-weight: 800; }
.standings tr.is-us td:first-child { box-shadow: inset 4px 0 0 var(--red); padding-left: 10px; }
.standings td.us { color: var(--red-ink); }
.fixtures tr.riposo td { color: var(--muted); font-style: italic; }
.yt-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin: 8px 0 20px; }
.yt-head h3 { font-size: clamp(2rem, 4vw, 2.75rem); margin-top: 6px; }
.yt-head h3 .muted { font-size: .5em; letter-spacing: .02em; }
.yt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.yt-cards .teams .t { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.yt-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.yt-grid > * { min-width: 0; }
@media (max-width: 960px) { .yt-cards, .yt-grid { grid-template-columns: 1fr; } }
.stack > * { min-width: 0; }
table.standings { min-width: 400px; }
.yt-grid .standings td, .yt-grid .standings th { padding-right: 6px; }
.yt-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 960px) { .yt-grid { grid-template-columns: 1fr; } }

/* anchor: lascia spazio sotto la testata fissa */
[id] { scroll-margin-top: 92px; }

/* galleria: cartelle con foto, griglia e foto a schermo intero */
.folder.has-photos { border: 1px solid var(--line); background: var(--paper); padding: 0 0 22px; color: inherit; text-decoration: none; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.folder.has-photos > :not(.folder-cover) { margin-inline: 22px; }
.folder.has-photos:hover { box-shadow: 0 10px 28px rgba(20, 16, 17, .12); transform: translateY(-2px); }
.folder.has-photos:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.folder-cover { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); margin-bottom: 6px; }
.folder-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transition: transform .4s ease; }
.folder.has-photos:hover .folder-cover img { transform: scale(1.04); }
.chip-photos { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--red); color: var(--on-red); font-size: var(--fs-label); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-radius: 2px; }
.album-score { color: var(--red-ink); white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
@media (max-width: 520px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } }
.photo-grid a { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--line); border-radius: 2px; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-grid a:hover img { transform: scale(1.05); }
.photo-grid a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: #0B0708; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; touch-action: pan-y; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; height: 100%; display: grid; align-content: center; justify-items: center; gap: 12px; min-width: 0; }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-count { color: #FFFFFF; font: 700 .8125rem/1 var(--font-body); letter-spacing: .14em; }
.lightbox button { width: 56px; height: 56px; display: grid; place-items: center; justify-self: center; background: none; border: 0; border-radius: 50%; color: #FFFFFF; font: 400 2.75rem/1 var(--font-body); cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .12); }
.lightbox button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); font-size: 2.25rem !important; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); }
  .lb-prev, .lb-next { position: absolute; bottom: max(14px, env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .1) !important; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-fig img { max-height: calc(100dvh - 150px); }
}

.photo-grid.landscape { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.photo-grid.landscape a { aspect-ratio: 3 / 2; }
@media (max-width: 520px) { .photo-grid.landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.photo-credit { margin: 6px 0 0; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.folder.has-photos .photo-credit { margin-top: -4px; }
