/* Real Liburna — layout e componenti sopra liburna-theme.css */

*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; display: block; }

a { color: inherit; }

:root {
  --header-height: 76px;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--liburna-bordeaux-dark);
  color: var(--liburna-cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--liburna-bordeaux-dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Solo sulla home, con hero full-bleed, l'header parte trasparente finché JS non fa scrollare. */
body.has-hero-fullbleed .site-header:not(.is-scrolled) {
  background: transparent;
}

.site-header.is-scrolled {
  background: var(--liburna-bordeaux-dark);
  box-shadow: var(--shadow-md);
}

/* Pagine senza hero full-bleed: l'header è fixed, quindi il contenuto
   ha bisogno di uno spazio equivalente in cima per non finirci sotto. */
body:not(.has-hero-fullbleed) {
  padding-top: var(--header-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--liburna-cream);
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand span {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--liburna-gold);
  border-radius: var(--radius-sm);
  color: var(--liburna-cream);
  font-size: 1.3rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--liburna-cream);
  font-family: var(--font-headline);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--liburna-gold-light);
  border-color: var(--liburna-gold);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--liburna-bordeaux-dark);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 0.6rem 0; border-bottom: 1px solid rgba(245,238,221,0.1); }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--surface-brand-gradient);
  color: var(--liburna-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-4) var(--space-6);
}

.hero.hero-page {
  min-height: auto;
}

/* Carousel foto di sfondo: aggiungere altre .hero-slide man mano che arrivano nuove foto */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(110,18,32,0.55) 0%, rgba(74,12,22,0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

.hero-text {
  text-align: left;
}

.hero-matches {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  width: 100%;
  margin: 3rem auto 0;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--liburna-gold-light);
  margin-bottom: 0.9rem;
}

.hero-crest {
  width: clamp(140px, 18vw, 220px);
  height: clamp(140px, 18vw, 220px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--liburna-gold), var(--shadow-md);
  display: block;
}

.hero h1 {
  color: var(--liburna-cream);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 1.02;
  margin: 0 0 0.5rem;
}

.hero .liburna-accent { color: var(--liburna-gold-light); }

.hero p.subtitle {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 480px;
  margin: 0.5rem 0 0;
  color: var(--liburna-gold-light);
}

@media (max-width: 700px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text { text-align: center; }
  .hero p.subtitle { margin: 0.5rem auto 0; }
  .hero-kicker { justify-content: center; gap: 1rem; }
}

.hero-page {
  padding: var(--space-6) var(--space-4);
}

.hero-page h1 { color: var(--liburna-cream); margin-bottom: 0.4rem; }
.hero-page p { color: var(--liburna-cream); opacity: 0.9; margin: 0; }

/* ---------- Sezioni generiche ---------- */

section { padding: var(--space-6) 0; }

section.alt { background: var(--liburna-white); }

.section-title {
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: var(--liburna-black);
  opacity: 0.8;
}

/* ---------- Card ---------- */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.carosello-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carosello-wrap .grid {
  flex: 1;
  min-width: 0;
}

.carosello-freccia {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--liburna-hairline-strong);
  background: var(--liburna-white);
  color: var(--liburna-bordeaux, #6e1220);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carosello-freccia:hover {
  background: var(--liburna-gold, #d4af37);
  transform: scale(1.08);
}

.hero-matches .carosello-freccia {
  background: rgba(255,255,255,0.9);
}

@media (max-width: 560px) {
  .carosello-wrap {
    gap: 0.5rem;
  }
  .carosello-freccia {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

.card {
  background: var(--liburna-white);
  border: 1px solid var(--liburna-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card-body { padding: var(--space-4); }

.card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card p { margin: 0; color: var(--liburna-black); opacity: 0.85; font-size: 0.95rem; }

.card .liburna-badge { margin-bottom: 0.6rem; }

/* Placeholder fotografico in stile brand quando manca la foto reale */
.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--surface-brand-gradient);
  color: var(--liburna-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
}

/* ---------- Giocatori / Staff ---------- */

.player-card { text-align: center; }
.player-card .photo-placeholder { aspect-ratio: 1 / 1; font-size: 2.6rem; }
.player-card .number {
  display: inline-block;
  font-family: var(--font-headline);
  color: var(--liburna-bordeaux);
  font-size: 1.4rem;
  margin-top: 0.6rem;
}
.rosa-reparto {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--liburna-bordeaux);
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--liburna-gold);
}
.rosa-reparto:first-of-type { margin-top: 0; }

.player-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.player-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.player-photo:hover img,
.player-photo:focus-visible img { transform: scale(1.03); }

.player-card .role {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

/* ---------- Timeline (Storia) ---------- */

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  /* Centra il pallino (14px, border-box) sulla linea di 3px di .timeline:
     -2rem compensa il padding-left, -8.5px allinea il centro del pallino al centro del bordo. */
  left: calc(-2rem - 8.5px);
  top: 0.2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--liburna-gold);
  border: 3px solid var(--liburna-bordeaux-dark);
}

.timeline-item .year {
  font-family: var(--font-headline);
  color: var(--liburna-bordeaux);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.2rem;
}

/* Identità, "La nostra storia": colonna con l'evoluzione dello stemma a sinistra
   della timeline. Gli stemmi seguono un loro ritmo (distribuiti su tutta l'altezza),
   non sono allineati alle tappe. Su telefono diventano una riga sopra la timeline. */
.storia-layout {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.stemmi-evoluzione {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.stemma-tappa {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stemma-tappa img {
  /* stessa larghezza per tutti: gli stemmi con la corona crescono solo in altezza,
     così i cerchi hanno la stessa grandezza */
  width: 92px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.18));
}
/* Lo stemma del decennale ha l'alloro intorno: un po' più largo perché il cerchio
   interno abbia la stessa grandezza degli altri */
.stemma-tappa img[src$="stemma-2026.png"] { width: 120px; }

/* Freccia oro verso il basso: un'unica forma SVG (asta + punta) */
.stemma-freccia {
  display: flex;
  justify-content: center;
  margin: 0.7rem 0;
}
.stemma-freccia svg {
  display: block;
  width: 20px;
  height: 54px;
  fill: var(--liburna-gold);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}
@media (max-width: 700px) {
  .storia-layout { grid-template-columns: 1fr; gap: 2rem; }
  /* in riga allineati in basso: i cerchi (stessa larghezza) restano sulla stessa linea */
  .stemmi-evoluzione { flex-direction: row; justify-content: center; align-items: flex-end; }
  .stemma-tappa img { width: 50px; height: auto; }
  .stemma-tappa img[src$="stemma-2026.png"] { width: 64px; }
  /* su schermi stretti le frecce puntano a destra */
  .stemma-freccia { width: 30px; height: 30px; margin: 0 2px 10px; align-items: center; }
  .stemma-freccia svg { width: 12px; height: 30px; transform: rotate(-90deg); }
}

/* ---------- Tabelle (classifica) ---------- */

table.classifica {
  width: 100%;
  border-collapse: collapse;
  background: var(--liburna-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.92rem;
}

table.classifica th, table.classifica td {
  padding: 0.65rem 0.8rem;
  text-align: center;
  border-bottom: 1px solid var(--liburna-hairline);
}

table.classifica th {
  background: var(--liburna-bordeaux);
  color: var(--liburna-cream);
  font-family: var(--font-headline);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

table.classifica td:first-child, table.classifica th:first-child { text-align: left; }

table.classifica tr.us td { background: var(--liburna-surface-tint); font-weight: 700; }

/* ---------- Box partita ---------- */

.match-box {
  background: var(--liburna-white);
  border: 1px solid var(--liburna-hairline-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.match-box .teams {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--liburna-bordeaux);
  margin: 0.6rem 0;
  min-height: 3.2rem;
}

.match-box .teams .us {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.match-box .score {
  font-size: 1.8rem;
  color: var(--liburna-gold);
  font-family: var(--font-headline);
}

.match-box .meta {
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 0.4rem 0 0;
  min-height: 2.6em;
  color: var(--liburna-ink-soft);
}

/* ---------- News ---------- */

.news-card .date {
  display: block;
  font-family: var(--font-headline);
  color: var(--liburna-gold);
  background: var(--liburna-bordeaux-dark);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 1.25rem;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 1/1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid a:hover img { transform: scale(1.08); }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sponsor ---------- */

.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.sponsor-logos a {
  background: var(--liburna-white);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border: 1px solid var(--liburna-hairline);
  font-family: var(--font-headline);
  color: var(--liburna-bordeaux);
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .sponsor-logos { grid-template-columns: repeat(2, 1fr); }
}

.sponsor-tier {
  border: 2px solid var(--liburna-gold);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  background: var(--liburna-white);
}

.sponsor-tier h3 { color: var(--liburna-gold); }
.sponsor-tier.top { background: var(--liburna-bordeaux); }
.sponsor-tier.top h3, .sponsor-tier.top p, .sponsor-tier.top li { color: var(--liburna-cream); }
.sponsor-tier ul { text-align: left; padding-left: 1.2rem; font-size: 0.9rem; }

/* ---------- Sponsor showcase (home) ---------- */

.sponsor-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.sponsor-showcase-card {
  background: var(--liburna-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--liburna-hairline);
  text-align: center;
}

.sponsor-showcase-card .photo-placeholder { aspect-ratio: 16/10; font-size: 1.4rem; }

.sponsor-showcase-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.sponsor-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  background: var(--liburna-white);
  padding: 1.5rem;
}

.sponsor-logo-box img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 70%;
  aspect-ratio: auto;
  object-fit: contain;
}

.sponsor-showcase-card .card-body { padding: 1rem; }
.sponsor-showcase-card h3 { font-size: 1rem; margin: 0; }

@media (max-width: 560px) {
  .sponsor-showcase { grid-template-columns: 1fr; max-width: 320px; }
}

/* ---------- Form ---------- */

.form-box {
  background: var(--liburna-white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--liburna-hairline-strong);
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--liburna-bordeaux);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--liburna-hairline-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-field textarea { min-height: 130px; resize: vertical; }

/* ---------- Newsletter box ---------- */

.newsletter-box {
  background: var(--liburna-bordeaux-dark);
  color: var(--liburna-cream);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}

.newsletter-box h3 { color: var(--liburna-cream); }

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 420px;
  margin: 1rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--liburna-black);
  color: var(--liburna-cream);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: 1140px;
  margin: 0 auto;
}

.footer-grid h4 {
  font-family: var(--font-headline);
  color: var(--liburna-gold);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-grid a {
  display: block;
  color: var(--liburna-cream);
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-grid a:hover { opacity: 1; color: var(--liburna-gold-light); }

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(245,238,221,0.15);
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-5); }
.mb-2 { margin-bottom: var(--space-5); }

.btn-row {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.footer-tagline { opacity: 0.75; font-size: 0.9rem; }
.section-title--quote { font-size: clamp(2rem, 5vw, 3rem); }
.section-title--left { text-align: left; font-size: 1.4rem; }
.list-loose { line-height: 1.9; }
.vs-label { opacity: 0.5; font-size: 1rem; }

/* ---------- Lightbox (Rosa, Gallery) ---------- */

.js-lightbox { cursor: pointer; }

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 6, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-overlay.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--liburna-bordeaux-dark);
  box-shadow: var(--shadow-md);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.lightbox-overlay.is-open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-content .photo-placeholder {
  width: min(70vw, 420px);
  aspect-ratio: 1 / 1;
  font-size: 3rem;
  border-radius: var(--radius-md);
}

.lightbox-content .sponsor-logo-box {
  width: auto;
  max-width: min(90vw, 480px);
  aspect-ratio: auto;
  padding: 2rem;
}

.lightbox-content .sponsor-logo-box img {
  max-width: 100%;
  max-height: 60vh;
}

.lightbox-caption {
  color: var(--liburna-cream);
  text-align: center;
  max-width: min(70vw, 480px);
  padding: 0 1.2rem 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Lightbox Rosa: figurina + riassunto della presentazione */
.lightbox-content.has-bio {
  max-width: min(92vw, 900px);
  overflow-y: auto;
}
.lightbox-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
.lightbox-player img {
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
}
.lightbox-bio {
  padding: 2rem 2rem 2rem 1.5rem;
  color: var(--liburna-cream);
}
.lightbox-bio h3 {
  font-family: var(--font-headline);
  color: var(--liburna-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.8rem;
}
.lightbox-bio p {
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .lightbox-player { grid-template-columns: 1fr; }
  .lightbox-player img { max-height: 55vh; }
  .lightbox-bio { padding: 1.2rem 1.4rem 1.6rem; }
}

.lightbox-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--liburna-gold);
  color: var(--liburna-black);
  font-family: var(--font-headline);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.lightbox-close:hover { background: var(--liburna-gold-light); }

/* ---------- Calendario / Coppa: stati vuoti, archivio, fase finale ---------- */

[hidden] { display: none !important; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px dashed var(--liburna-hairline);
  border-radius: var(--radius-md);
  opacity: 0.85;
}
.empty-state:empty { display: none; }
.empty-state a { color: var(--liburna-bordeaux); font-weight: 700; }

.archivio-subtitle {
  font-family: var(--font-headline);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--liburna-bordeaux);
  margin: 2.5rem 0 1rem;
}

.coppa-intro { max-width: 760px; margin-left: auto; margin-right: auto; }
.coppa-fascia { text-align: center; margin-bottom: 1.2rem; }
.coppa-fascia .liburna-badge { font-size: 1rem; }

/* Su schermi stretti la classifica della coppa (9 colonne) resta larga quanto la
   pagina, con colonne più compatte; il nome squadra può andare a capo. Solo su
   schermi molto stretti, se proprio non ci sta, scorre in orizzontale nel suo box. */
.tabella-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); }
@media (max-width: 600px) {
  table.classifica-coppa { font-size: 0.8rem; }
  table.classifica-coppa th, table.classifica-coppa td { padding: 0.55rem 0.3rem; }
  table.classifica-coppa th { font-size: 0.68rem; letter-spacing: 0.02em; }
  table.classifica-coppa td:first-child, table.classifica-coppa th:first-child { padding-left: 0.6rem; }
}
