/* ═══════════════════════════════════════════════════════════
   A.S.D. POLISPORTIVA STROVINA — stile giallo-amaranto
   Palette ricavata dallo stemma ufficiale
   ═══════════════════════════════════════════════════════════ */

:root {
  --giallo: #FFDD00;
  --giallo-vivo: #F6E400;
  --giallo-chiaro: #FFEE66;
  --amaranto: #8E1B30;
  --amaranto-vivo: #A32039;
  --amaranto-scuro: #5C0F1F;
  --notte: #1C070E;            /* quasi-nero con anima amaranto */
  --notte-2: #2A0B15;
  --crema: #FAF5E9;
  --crema-scura: #F1E9d6;
  --inchiostro: #241318;
  --grigio: #8A7A6E;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(28, 7, 14, .45);
  --transition: .35s cubic-bezier(.22, .8, .3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--inchiostro);
  background: var(--crema);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

section[id], [id="contatti"] { scroll-margin-top: 1rem; }

::selection { background: var(--giallo); color: var(--amaranto-scuro); }

/* ── Typography helpers ── */
.section__kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--amaranto-vivo);
  margin-bottom: .7rem;
}
.section--dark .section__kicker { color: var(--giallo); }
.section--giallo .section__kicker { color: var(--amaranto-scuro); }

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section__title em {
  font-style: normal;
  color: var(--amaranto);
  position: relative;
}
.section--dark .section__title em { color: var(--giallo); }
.section--giallo .section__title em { color: var(--amaranto-scuro); }

.section__intro {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--grigio);
  max-width: 56ch;
}
.section--dark .section__intro { color: rgba(250, 245, 233, .72); }
.section--giallo .section__intro { color: rgba(36, 19, 24, .75); }

.subsection-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1.15rem;
  color: var(--giallo);
  margin: 3.6rem 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.subsection-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 221, 0, .5), transparent);
}

/* ── Layout ── */
.container { width: min(var(--container), 92vw); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section__head { margin-bottom: clamp(2.4rem, 5vw, 4rem); }

.section--dark { background: var(--notte); color: var(--crema); }
.section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(142, 27, 48, .35), transparent 70%),
    radial-gradient(700px 380px at 0% 110%, rgba(142, 27, 48, .22), transparent 70%);
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }

.section--cream { background: var(--crema); }
.section--giallo {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 255, 255, .4), transparent 60%),
    var(--giallo-vivo);
  color: var(--inchiostro);
}

/* diagonal cuts, stile "club" */
.section--giallo { clip-path: polygon(0 2.2vw, 100% 0, 100% calc(100% - 2.2vw), 0 100%); padding-top: calc(clamp(4.5rem, 9vw, 7.5rem) + 2.2vw); padding-bottom: calc(clamp(4.5rem, 9vw, 7.5rem) + 2.2vw); margin-block: -2.2vw; z-index: 2; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .92rem;
  padding: .95rem 2.1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  position: relative;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--giallo { background: var(--giallo); color: var(--amaranto-scuro); }
.btn--giallo:hover { background: var(--giallo-chiaro); box-shadow: 0 14px 30px -10px rgba(255, 221, 0, .5); }
.btn--amaranto { background: var(--amaranto); color: var(--crema); }
.btn--amaranto:hover { background: var(--amaranto-vivo); box-shadow: 0 14px 30px -10px rgba(142, 27, 48, .55); }
.btn--ghost { border: 2px solid rgba(250, 245, 233, .6); color: var(--crema); clip-path: none; border-radius: 4px; }
.btn--ghost:hover { border-color: var(--giallo); color: var(--giallo); }
.btn--outline-light { border: 1.5px solid rgba(250, 245, 233, .35); color: var(--crema); clip-path: none; }
.btn--outline-light:hover { border-color: var(--giallo); color: var(--giallo); }
.btn--small { padding: .65rem 1.3rem; font-size: .8rem; }

/* ═══════════ TOPBAR (striscia utility) ═══════════ */
.topbar {
  background: #080103;
  border-bottom: 1px solid rgba(250, 245, 233, .07);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 clamp(1.2rem, 3vw, 3.5rem);
}
.topbar__note {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250, 245, 233, .5);
}
.topbar__right { display: flex; align-items: center; gap: 1rem; }
.topbar__right a {
  color: rgba(250, 245, 233, .55);
  display: grid; place-items: center;
  transition: color var(--transition);
}
.topbar__right a:hover { color: var(--giallo); }
.topbar__right svg { width: 16px; height: 16px; }
.topbar__sep {
  width: 1px; height: 16px;
  background: rgba(250, 245, 233, .2);
  transform: rotate(15deg);
}
.topbar__stai {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--giallo);
}

/* ═══════════ HEADER (barra principale) ═══════════ */
/* Non sticky: scorre via con la pagina (evita il distacco nei browser in-app come Telegram) */
.header {
  position: static;
  background: #14050B;
  border-bottom: 1px solid rgba(250, 245, 233, .1);
}
.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.8vw, 3rem);
  padding: .6rem clamp(1.2rem, 3vw, 3.5rem);
  min-height: 78px;
}
.burger { margin-left: auto; }
.header__brand {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; color: var(--crema);
  flex-shrink: 0;
}
.header__crest { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition: transform var(--transition); }
.header__brand:hover .header__crest { transform: scale(1.08) rotate(-3deg); }
.header__name strong {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem; letter-spacing: .18em;
}

.nav { flex: 1; display: flex; align-items: center; }
.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 245, 233, .78);
  padding: .6rem clamp(1rem, 1.6vw, 1.7rem);
  position: relative;
  transition: color var(--transition);
}
/* separatore "/" tra le voci, stile club */
.nav__link:not(:first-child):not(.nav__link--cta)::before {
  content: "/";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(14deg);
  font-size: 1.05rem;
  color: rgba(250, 245, 233, .2);
  font-weight: 400;
  pointer-events: none;
}
.nav__link:hover { color: var(--giallo); }
.nav__link--cta {
  margin-left: auto;
  background: var(--giallo);
  color: var(--amaranto-scuro);
  font-weight: 600;
  padding: .78rem 1.8rem;
  border-radius: 4px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.nav__link--cta:hover { color: var(--amaranto); background: var(--giallo-chiaro); transform: translateY(-2px); }

.burger { display: none; flex-direction: column; gap: 5px; padding: .6rem; z-index: 110; }
.burger span { width: 26px; height: 2.5px; background: var(--crema); transition: transform var(--transition), opacity var(--transition); border-radius: 2px; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  /* prima schermata = topbar (40) + header (78) + hero + matchbar (~92) */
  min-height: calc(100svh - 210px);
  color: var(--crema);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(28, 7, 14, .94) 0%, rgba(64, 12, 26, .78) 45%, rgba(28, 7, 14, .45) 100%),
    linear-gradient(0deg, var(--notte) 0%, transparent 30%);
}

.hero__layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 20vw, 390px);
  align-items: stretch;
  min-height: calc(100svh - 210px);
}
.hero__content {
  align-self: center;
  padding: 2.6rem clamp(2rem, 4vw, 4rem) 2.4rem clamp(2.5rem, 6vw, 7rem);
}

/* ── Rail laterale a tutta altezza (stile club) ── */
.hero-rail {
  display: flex;
  flex-direction: column;
  background: rgba(12, 3, 7, .82);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(250, 245, 233, .12);
  padding: 1.6rem 0 1.4rem;
}
.hero-rail__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--giallo);
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 0 1.6rem;
  margin-bottom: 1.2rem;
}
.hero-rail__title::after { content: ""; flex: 1; height: 1px; background: rgba(255, 221, 0, .3); }

.hero-rail__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 221, 0, .45) transparent;
  border-top: 1px solid rgba(250, 245, 233, .08);
}
.hero-rail__list::-webkit-scrollbar { width: 5px; }
.hero-rail__list::-webkit-scrollbar-thumb { background: rgba(255, 221, 0, .45); border-radius: 3px; }

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid rgba(250, 245, 233, .08);
  transition: background var(--transition);
  /* con poche partite gli item si distribuiscono su tutta la colonna */
  flex: 1 0 auto;
  min-height: 82px;
}
.rail-item::before {
  content: "";
  position: absolute;
  left: 0; top: 16%; bottom: 16%;
  width: 3px;
  background: transparent;
  transition: background var(--transition);
}
.rail-item:hover { background: rgba(250, 245, 233, .06); }
.rail-item:hover::before { background: rgba(255, 221, 0, .5); }
.rail-item--first::before { background: var(--giallo); }
.rail-item--first { background: linear-gradient(90deg, rgba(255, 221, 0, .09), transparent 70%); }

.rail-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 58px;
  background: linear-gradient(160deg, var(--amaranto), var(--amaranto-scuro));
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55);
}
.rail-item__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--giallo);
}
.rail-item__month {
  font-family: var(--font-display);
  font-size: .62rem;
  letter-spacing: .2em;
  color: rgba(250, 245, 233, .85);
  margin-top: .2rem;
}
.rail-item__info { display: flex; flex-direction: column; gap: .18rem; min-width: 0; flex: 1; }
.rail-item__info strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--crema);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rail-item__info span { font-size: .8rem; color: rgba(250, 245, 233, .58); }
.rail-item__chip {
  font-family: var(--font-display);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  padding: .3rem .55rem;
  border-radius: 4px;
  background: rgba(255, 221, 0, .14);
  color: var(--giallo);
  flex-shrink: 0;
}

/* placeholder in attesa del calendario */
.rail-item--tbd .rail-item__date {
  background: transparent;
  border: 1.5px dashed rgba(250, 245, 233, .28);
  box-shadow: none;
}
.rail-item--tbd .rail-item__day { color: rgba(250, 245, 233, .38); }
.rail-item--tbd .rail-item__info strong { color: rgba(250, 245, 233, .5); }
.rail-item--tbd:hover { background: transparent; }
.rail-item--tbd:hover::before { background: transparent; }

.hero-rail__more {
  display: block;
  margin-top: auto;
  padding: 1.2rem 1.6rem .2rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 245, 233, .65);
  transition: color var(--transition);
}
.hero-rail__more:hover { color: var(--giallo); }

/* ═══════════ MATCHBAR — prossima partita + countdown ═══════════ */
.matchbar {
  position: relative;
  z-index: 3;
  background: #0E0308;
  border-top: 1px solid rgba(250, 245, 233, .1);
  border-bottom: 3px solid var(--giallo);
}
.matchbar__inner {
  width: min(var(--container), 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: 1.1rem 0;
}
.matchbar__label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 160px;
}
.matchbar__label strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--giallo);
}
.matchbar__label span { font-size: .82rem; color: rgba(250, 245, 233, .6); }

.matchbar__match {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
}
.matchbar__team {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.matchbar__team--away { flex-direction: row-reverse; }
.matchbar__crest {
  width: 52px; height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5));
}
.matchbar__crest--tbd {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: rgba(250, 245, 233, .35);
  border: 2px dashed rgba(250, 245, 233, .3);
  border-radius: 50%;
}
.matchbar__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--crema);
}

.matchbar__count { display: flex; gap: .5rem; }
.matchbar__vs { display: none; }  /* solo mobile */
.count-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: .45rem .5rem .4rem;
  background: rgba(250, 245, 233, .06);
  border: 1px solid rgba(250, 245, 233, .12);
  border-radius: 6px;
}
.count-cell b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--giallo);
  font-variant-numeric: tabular-nums;
}
.count-cell i {
  font-style: normal;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(250, 245, 233, .55);
  margin-top: .3rem;
}

.matchbar__cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--crema);
  border: 1.5px solid rgba(250, 245, 233, .3);
  padding: .7rem 1.4rem;
  border-radius: 4px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.matchbar__cta:hover { color: var(--giallo); border-color: var(--giallo); }
.hero__kicker {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--giallo);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  line-height: .98;
  letter-spacing: .005em;
  margin-bottom: 1.6rem;
}
.hero__line { display: block; }
.hero__line--accent {
  color: var(--giallo);
  -webkit-text-stroke: 0;
  text-shadow: 0 10px 40px rgba(255, 221, 0, .25);
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(250, 245, 233, .85);
  max-width: 62ch;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__stats {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(250, 245, 233, .16);
  border: 1px solid rgba(250, 245, 233, .16);
}
.stat {
  background: rgba(28, 7, 14, .55);
  backdrop-filter: blur(6px);
  padding: 1.4rem 1.6rem;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--giallo);
  display: block;
  line-height: 1.1;
}
.stat__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(250, 245, 233, .65);
}

/* ═══════════ MATCH CENTER ═══════════ */
.match-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
}
.match-card {
  background: linear-gradient(160deg, var(--notte-2), rgba(42, 11, 21, .4));
  border: 1px solid rgba(250, 245, 233, .12);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.match-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 221, 0, .45);
  box-shadow: var(--shadow);
}
.match-card__tag {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--giallo);
  display: flex; align-items: center; gap: .8rem;
}
.match-card__tag::after { content: ""; flex: 1; height: 1px; background: rgba(255, 221, 0, .25); }

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .8rem 0;
  /* assorbe lo spazio verticale: gli stemmi restano centrati nella card */
  flex: 1;
}
.match-team { display: flex; flex-direction: column; align-items: center; gap: .7rem; flex: 1; }
.match-team__crest {
  width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5));
}
.match-team__crest--tbd {
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 700;
  color: rgba(250, 245, 233, .35);
  border: 2px dashed rgba(250, 245, 233, .3);
  border-radius: 50%;
}
.match-team__name {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1rem;
}
.match-team__name--tbd { color: rgba(250, 245, 233, .45); }
.match-card__vs span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--amaranto-vivo);
  text-shadow: 0 0 30px rgba(163, 32, 57, .8);
}
.match-card__meta {
  display: flex; flex-direction: column; gap: .2rem;
  text-align: center;
  font-size: .92rem;
  color: rgba(250, 245, 233, .7);
  border-top: 1px solid rgba(250, 245, 233, .12);
  padding-top: 1rem;
}
.match-card__date { font-weight: 600; color: var(--crema); }
.match-card__note { font-size: .85rem; color: rgba(250, 245, 233, .55); text-align: center; }

/* ── Pannello promo accanto alla prossima partita (full-bleed, stile club) ── */
.match-media {
  display: block;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0A0104;
  transition: box-shadow var(--transition), transform var(--transition);
}
/* l'immagine detta l'altezza della riga: nessun ritaglio, nessuna cornice */
.match-media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s cubic-bezier(.22, .8, .3, 1);
}
.match-media:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.match-media:hover img { transform: scale(1.02); }

/* ═══════════ LA SOCIETÀ ═══════════ */
.societa-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.quote {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.55;
  font-weight: 500;
  font-style: italic;
  color: var(--amaranto-scuro);
  border-left: 4px solid var(--giallo);
  background: linear-gradient(90deg, rgba(255, 221, 0, .14), transparent 70%);
  padding: 1.4rem 1.6rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.6rem;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-size: .85rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--amaranto);
}
.societa-text p { margin-bottom: 1rem; font-size: 1.04rem; }

.societa-photos {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.societa-photo {
  position: relative;
  margin: 0;
}
.societa-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  transition: transform var(--transition);
  border: 6px solid #fff;
}
/* la seconda foto pende dal lato opposto */
.societa-photo--alt img { transform: rotate(-1.5deg); }
.societa-photo:hover img { transform: rotate(0deg) scale(1.02); }
.societa-photo figcaption {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--grigio);
  text-align: center;
  font-style: italic;
}

/* Timeline */
.timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 1.15rem;
  color: var(--amaranto);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.timeline__title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(142, 27, 48, .4), transparent); }

.timeline__list {
  list-style: none;
  position: relative;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.timeline__item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 34px -18px rgba(28, 7, 14, .25);
  border-top: 4px solid var(--giallo);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.timeline__item:hover {
  transform: translateY(-6px);
  border-top-color: var(--amaranto);
  box-shadow: 0 22px 44px -18px rgba(28, 7, 14, .35);
}
.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--amaranto);
  display: block;
  margin-bottom: .5rem;
}
.timeline__body h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1rem;
  margin-bottom: .4rem;
}
.timeline__body p { font-size: .92rem; color: #5d4c50; }

/* ═══════════ SIMBOLI ═══════════ */
.simboli-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.simbolo-card {
  background: rgba(255, 255, 255, .55);
  border: 1.5px solid rgba(92, 15, 31, .18);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  backdrop-filter: blur(4px);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.simbolo-card:hover {
  transform: translateY(-6px) rotate(-.5deg);
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 24px 44px -20px rgba(92, 15, 31, .4);
}
.simbolo-card__icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  background: var(--amaranto);
  color: var(--giallo);
  border-radius: 50%;
  margin-bottom: 1.3rem;
  box-shadow: 0 10px 24px -8px rgba(92, 15, 31, .5);
}
.simbolo-card__icon svg { width: 40px; height: 40px; }

/* Zanzara e spiga: disegni originali dello stemma (tratto amaranto su fondo
   trasparente). Usati come maschera e riempiti di giallo, cosi' restano
   leggibili dentro il cerchio amaranto come le altre icone. */
.simbolo-card__icon--art::before {
  content: "";
  display: block;
  background-color: var(--giallo);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
}
.simbolo-card__icon--zanzara::before {
  width: 48px; height: 27px;
  -webkit-mask-image: url("../assets/img/simbolo-zanzara.png");
  mask-image: url("../assets/img/simbolo-zanzara.png");
}
.simbolo-card__icon--spiga::before {
  width: 34px; height: 42px;
  -webkit-mask-image: url("../assets/img/simbolo-spiga.png");
  mask-image: url("../assets/img/simbolo-spiga.png");
}
.simbolo-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.2rem;
  color: var(--amaranto-scuro);
  margin-bottom: .6rem;
}
.simbolo-card p { font-size: .96rem; color: rgba(36, 19, 24, .8); }
.simbolo-card em { font-weight: 600; }

.territorio {
  background: var(--amaranto-scuro);
  color: var(--crema);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}
.territorio h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--giallo);
  margin-bottom: .8rem;
}
.territorio p { max-width: 90ch; font-size: 1.02rem; color: rgba(250, 245, 233, .88); }
.territorio strong { color: var(--giallo-chiaro); }

/* ═══════════ SQUADRA ═══════════ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.staff-card {
  background: linear-gradient(165deg, var(--notte-2), rgba(42, 11, 21, .35));
  border: 1px solid rgba(250, 245, 233, .12);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem 1.4rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.staff-card::before {
  content: "";
  position: absolute;
  top: -40%; left: -40%;
  width: 90%; height: 90%;
  background: radial-gradient(circle, rgba(255, 221, 0, .12), transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
}
.staff-card:hover { transform: translateY(-6px); border-color: rgba(255, 221, 0, .4); box-shadow: var(--shadow); }
.staff-card:hover::before { opacity: 1; }
.staff-card__monogram {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--amaranto);
  color: var(--giallo);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .04em;
  border: 2px solid rgba(255, 221, 0, .5);
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .5);
}
.staff-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.staff-card__role {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(250, 245, 233, .55);
  margin-top: .3rem;
}
.staff-card__role--top { color: var(--giallo); }

.rosa-placeholder {
  border: 2px dashed rgba(250, 245, 233, .25);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.rosa-placeholder__shirts {
  display: flex; justify-content: center; gap: .7rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.shirt {
  display: grid; place-items: center;
  width: 58px; height: 62px;
  background: linear-gradient(180deg, rgba(255, 221, 0, .16), rgba(255, 221, 0, .05));
  border: 1.5px solid rgba(255, 221, 0, .35);
  clip-path: polygon(25% 0, 75% 0, 100% 18%, 88% 32%, 88% 100%, 12% 100%, 12% 32%, 0 18%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: rgba(255, 221, 0, .6);
}
.rosa-placeholder h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 1.3rem;
  color: var(--giallo);
  margin-bottom: .6rem;
}
.rosa-placeholder p { color: rgba(250, 245, 233, .65); max-width: 58ch; margin-inline: auto; }

/* ═══════════ STADIUM ═══════════ */
.stadium-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: stretch;
}
.stadium-facts { list-style: none; margin-bottom: 1.8rem; }
.stadium-facts li {
  display: flex; flex-direction: column;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(36, 19, 24, .12);
}
.stadium-facts strong {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amaranto);
  margin-bottom: .2rem;
}
.stadium-facts span { font-size: 1.02rem; }
.stadium-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  min-height: 380px;
}
.stadium-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ═══════════ GALLERY ═══════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0;
  display: block;
}
.gallery-item::after {
  content: "⊕";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 2rem;
  color: var(--giallo);
  background: rgba(28, 7, 14, .45);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .8, .3, 1);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-more { margin-top: 2rem; text-align: center; color: rgba(250, 245, 233, .6); }
.gallery-more a { color: var(--giallo); font-weight: 600; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 4, 8, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem;
  animation: fadeIn .25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  color: var(--crema);
  font-size: 2rem;
  padding: .6rem 1rem;
  transition: color var(--transition), transform var(--transition);
  z-index: 2;
}
.lightbox__close:hover, .lightbox__nav:hover { color: var(--giallo); transform: scale(1.15); }
.lightbox__close { top: 1rem; right: 1.4rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 3.4rem; }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.15); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ═══════════ SPONSOR ═══════════ */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 3rem;
}
.sponsor-card {
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem;
  min-height: 200px;
  transition: transform var(--transition), box-shadow var(--transition);
}
/* etichetta "Sponsor tecnico" sul logo Joma */
.sponsor-card__badge {
  position: absolute;
  top: .55rem;
  left: .55rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amaranto-scuro);
  background: var(--giallo);
  padding: .3rem .6rem;
  border-radius: 4px;
}

/* card logo: fondo bianco, logo contenuto senza deformazioni */
.sponsor-card--logo {
  background: #fff;
  padding: 1.6rem;
  box-shadow: 0 12px 34px -18px rgba(92, 15, 31, .5);
}
.sponsor-card--logo img {
  width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  transition: transform var(--transition);
}
.sponsor-card--logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -20px rgba(92, 15, 31, .55);
}
.sponsor-card--logo:hover img { transform: scale(1.04); }

/* loghi con fondo pieno: la card prende il colore del brand, niente cornice bianca */
.sponsor-card--tile {
  position: relative;   /* ancora per l'etichetta */
  background: var(--brand);
  padding: 0;
  overflow: hidden;
}
.sponsor-card--tile img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.sponsor-cta {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.sponsor-cta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.7rem;
  color: var(--amaranto-scuro);
  margin-bottom: .7rem;
}
.sponsor-cta p { margin-bottom: 1.6rem; color: rgba(36, 19, 24, .8); }

/* ═══════════ CONTATTI ═══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  text-decoration: none;
  display: flex; flex-direction: column; gap: .3rem;
  box-shadow: 0 10px 34px -20px rgba(28, 7, 14, .3);
  border-bottom: 4px solid transparent;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  word-break: break-word;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--giallo);
  box-shadow: 0 24px 46px -20px rgba(28, 7, 14, .4);
}
.contact-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--amaranto), var(--amaranto-scuro));
  color: var(--giallo);
  margin-bottom: .7rem;
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--amaranto);
}
.contact-card span:last-child { font-size: .92rem; color: #5d4c50; }
.sede { text-align: center; color: var(--grigio); font-size: .95rem; }
.sede strong { color: var(--amaranto-scuro); }

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--notte);
  color: rgba(250, 245, 233, .75);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--giallo) 0 33%, var(--amaranto) 33% 66%, var(--giallo) 66%);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  align-items: start;
}
.footer__brand img { margin-bottom: 1rem; }
.footer__motto { font-style: italic; font-size: .98rem; line-height: 1.6; }
.footer__nav { display: flex; flex-direction: column; gap: .55rem; }
.footer__nav a {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  color: rgba(250, 245, 233, .65);
  transition: color var(--transition), transform var(--transition);
  width: fit-content;
}
.footer__nav a:hover { color: var(--giallo); transform: translateX(4px); }
.footer__meta { font-size: .9rem; line-height: 1.7; }
.footer__fiscal { margin-top: .8rem; color: rgba(250, 245, 233, .45); }
.footer__bar {
  border-top: 1px solid rgba(250, 245, 233, .12);
  padding: 1.2rem 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(250, 245, 233, .5);
}
.footer__credit { margin-top: .4rem; color: rgba(250, 245, 233, .4); }
.footer__credit a {
  color: rgba(250, 245, 233, .7);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.footer__credit a:hover { color: var(--giallo); }

/* ═══════════ TO TOP ═══════════ */
.to-top {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--giallo);
  color: var(--amaranto-scuro);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--giallo-chiaro); }

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s cubic-bezier(.22, .8, .3, 1), transform .45s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero entrance (senza scroll) */
.hero .reveal { transform: translateY(22px); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  /* ── Menu hamburger gia' da qui: sotto i ~960px le voci non entrano piu'
     nell'header (il bottone Contatti veniva tagliato e la pagina scorreva
     lateralmente). Su telefono e desktop non cambia nulla. ── */
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(28, 7, 14, .97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.22, .8, .3, 1);
    z-index: 105;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.3rem; }
  .nav__link--cta { margin-left: 0; }
  .nav__link:not(:first-child):not(.nav__link--cta)::before { display: none; }
  .burger {
    display: flex;
    position: relative;   /* tiene il pulsante sopra l'overlay del menu aperto */
    z-index: 110;
    background: rgba(250, 245, 233, .12);
    border: 1px solid rgba(250, 245, 233, .18);
    border-radius: 8px;
    padding: .62rem .58rem;
    transition: background var(--transition);
  }
  .burger:hover, .burger.is-open { background: rgba(250, 245, 233, .2); }

  .hero__layout { grid-template-columns: 1fr; min-height: 0; }
  .hero { min-height: 0; }
  .hero__content { padding-top: 2.8rem; align-self: start; }
  .hero-rail { border-left: none; border-top: 1px solid rgba(250, 245, 233, .12); padding-top: 1.6rem; }
  .hero-rail__list { max-height: 340px; flex: 0 0 auto; }
  .rail-item { flex: 0 0 auto; min-height: 0; }
  .hero-rail__more { margin-top: 0; padding-bottom: .4rem; }
  .matchbar__inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .matchbar__label { align-items: center; min-width: 0; width: 100%; }
  .match-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* (le regole di nav e hamburger stanno nel blocco 1024px qui sopra) */

  /* ── Foto: banda in alto che sfuma nel fondo scuro ──
     Prima copriva tutta la sezione hero (altissima su mobile): con object-fit
     cover l'immagine veniva ingrandita a dismisura e se ne vedeva una fetta.
     Ora e' una banda, e sotto (prossima partita, incontri) c'e' fondo pieno. */
  .hero { background: var(--notte); }
  .hero__bg {
    inset: 0 0 auto 0;
    height: 400px;
  }
  .hero__bg img { object-position: center 32%; }
  .hero__overlay {
    inset: 0 0 auto 0;
    height: 400px;
    background: linear-gradient(180deg,
      rgba(10, 2, 6, .60) 0%,
      rgba(10, 2, 6, .42) 38%,
      rgba(14, 4, 9, .86) 76%,
      var(--notte) 100%);
  }

  /* ── Header essenziale: via la striscia utility e la scritta STROVINA ── */
  .topbar { display: none; }
  .header__name { display: none; }

  /* Header sovrapposto alla foto, con sfumatura che si fonde nell'immagine */
  .header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: linear-gradient(180deg,
      rgba(10, 2, 6, .92) 0%,
      rgba(10, 2, 6, .68) 45%,
      rgba(10, 2, 6, .28) 78%,
      rgba(10, 2, 6, 0) 100%);
    border-bottom: 0;
  }
  .header__inner { padding-bottom: 1.4rem; }

  /* ── Via i 4 riquadri; al loro posto sale la "Prossima partita" ──
     .hero__layout diventa trasparente cosi' hero-content / matchbar / rail
     sono tutti figli flex di .hero e posso riordinarli. */
  .hero__stats { display: none; }
  .hero { display: flex; flex-direction: column; }
  .hero__layout { display: contents; }
  /* padding-top ampio: l'header e' assoluto e sta sopra la foto */
  .hero__content { order: 1; align-self: stretch; padding-top: 7rem; }
  .matchbar { order: 2; }
  .hero-rail { order: 3; }
  /* display:contents azzera il z-index di .hero__layout: senza questo il velo
     scuro dell'hero (.hero__overlay, z-index 1) coprirebbe testo e rail. */
  .hero__content, .hero-rail { position: relative; z-index: 2; }

  /* ── "Prossima partita": card ordinata e staccata dalle CTA ── */
  .matchbar {
    margin: 2.6rem 1.1rem .6rem;
    background: rgba(16, 5, 10, .92);
    border: 1px solid rgba(250, 245, 233, .14);
    border-bottom: 1px solid rgba(250, 245, 233, .14);
    border-radius: 14px;
    box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .8);
  }
  .matchbar__inner {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding: 1.5rem 1rem;
  }
  .matchbar__label { align-items: center; text-align: center; gap: .3rem; }

  /* riga squadre (con VS) + riga countdown, entrambe centrate */
  .matchbar__match {
    flex: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .9rem;
  }
  /* squadre come due colonne simmetriche (stemma sopra, nome sotto) */
  .matchbar__team,
  .matchbar__team--away {
    flex-direction: column;
    gap: .5rem;
    flex: 1;
    max-width: 130px;
  }
  .matchbar__name { font-size: .92rem; text-align: center; line-height: 1.2; }
  .matchbar__vs {
    display: block;
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .1em;
    color: var(--amaranto-vivo);
  }
  .matchbar__count {
    order: 3;              /* va a capo, sotto le squadre */
    width: 100%;
    justify-content: center;
    gap: .45rem;
    padding-top: .3rem;
    border-top: 1px solid rgba(250, 245, 233, .1);
    margin-top: .2rem;
  }
  .count-cell { min-width: 62px; }
  .matchbar__cta { width: 100%; max-width: 240px; text-align: center; }

  /* ── Prossimi incontri: 3 barre fisse, nessuno scorrimento interno ── */
  .hero-rail__list { max-height: none; overflow: visible; }
  .rail-item:nth-child(n + 4) { display: none; }

  .match-grid { grid-template-columns: 1fr; }
  .societa-grid { grid-template-columns: 1fr; }
  .societa-photos { max-width: 480px; margin-inline: auto; }
  .simboli-grid { grid-template-columns: 1fr; }
  .stadium-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .lightbox { padding: 1rem; }
  .lightbox__nav { font-size: 2.4rem; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline__list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .staff-card { padding: 1.3rem 1rem 1.1rem; }
  .match-card__teams { gap: .4rem; }
  .match-team__crest, .match-team__crest--tbd { width: 72px; height: 72px; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .stat { padding: 1rem 1.1rem; }
  .matchbar__match { flex-wrap: wrap; }
  .matchbar__count { order: 3; width: 100%; justify-content: center; }
  .matchbar__crest, .matchbar__crest--tbd { width: 42px; height: 42px; }
  .rail-item { padding: 1rem 1.1rem; }
}

/* ═══════════ ACCESSIBILITÀ / MOTION ═══════════ */
:focus-visible {
  outline: 3px solid var(--giallo);
  outline-offset: 2px;
}
.section--cream :focus-visible, .section--giallo :focus-visible { outline-color: var(--amaranto); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
