/* ============================================================================
   PADEL WORLD CUP by Casanova — public theme
   Palette: navy #0b1f3a · teal #16c79a · gold #f5b301 · silver #c0c7d0
   Plain CSS only, mobile-responsive.
   ========================================================================== */

:root {
  --navy: #0b1f3a;
  --navy-2: #122a4d;
  --navy-3: #1c3a63;
  --teal: #16c79a;
  --teal-dark: #0fa37e;
  --gold: #f5b301;
  --gold-soft: rgba(245, 179, 1, 0.16);
  --silver: #c0c7d0;
  --silver-soft: rgba(192, 199, 208, 0.18);
  --ink: #0b1f3a;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #e2e8f1;
  --muted: #5a6a80;              /* >=4.5:1 su paper e card */
  --text: #1f2d44;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 22px rgba(11, 31, 58, 0.10);
  --shadow-lg: 0 14px 40px rgba(11, 31, 58, 0.18);
  --maxw: 1120px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.35);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 48px;
  height: 48px;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.30);
}
.brand__text { font-weight: 800; letter-spacing: -0.3px; color: #fff; line-height: 1; }
.brand__by { font-weight: 500; opacity: 0.7; }
.brand:hover { text-decoration: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #dfe7f1;
  font-weight: 600;
  padding: 11px 16px;   /* target touch ~44px */
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.10); color: #fff; text-decoration: none; }
.main-nav a:focus-visible, .foot-nav a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.main-nav a.nav-gold { color: var(--gold); }
.main-nav a.nav-silver { color: var(--silver); }
.main-nav a.nav-gold:hover { background: var(--gold-soft); }
.main-nav a.nav-silver:hover { background: var(--silver-soft); }

/* ------------------------------------------------------------------ Layout */
main { min-height: 60vh; padding: 30px 0 56px; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: 0.2px;
  color: var(--navy);
}
.page-head .sub { color: var(--muted); margin: 4px 0 0; }

/* breadcrumbs / back links */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* finals navigation — self-explaining qualification cards */
.finals-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 26px;
}
.fcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left-width: 6px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--navy);
  min-width: 0;               /* let the card shrink inside its grid cell */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fcard:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.fcard-gold { border-left-color: var(--gold); }
.fcard-silver { border-left-color: var(--silver); }
.fcard-groups { border-left-color: var(--teal); }
.fcard__medal { font-size: 1.9rem; line-height: 1; flex: none; }
.fcard__txt { min-width: 0; }
.fcard__txt strong { display: block; font-size: 1.02rem; line-height: 1.25; }
.fcard__txt > span { color: var(--muted); font-size: 0.84rem; }
.fcard .swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  vertical-align: -1px;
  margin-right: 3px;
}
.fcard .swatch-gold { background: var(--gold); }
.fcard .swatch-silver { background: var(--silver); }
.fcard__go {
  margin-left: auto;
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.fcard:hover .fcard__go { transform: translateX(2px); }
.fcard-gold .fcard__go { background: var(--gold-soft); color: #7a5a00; }
.fcard-silver .fcard__go { background: var(--silver-soft); color: #4a5665; }
.fcard-groups .fcard__go { background: rgba(22, 199, 154, 0.14); color: var(--teal-dark); }

/* not-yet-compiled bracket: same card, but inert */
.fcard--off { opacity: 0.75; cursor: default; }
.fcard--off:hover { transform: none; box-shadow: var(--shadow); }
.fcard--off .fcard__go { background: #eef2f8; color: var(--muted); }
.fcard--off:hover .fcard__go { transform: none; }

/* finals section at the end of the standings page */
.finals-cta { margin-top: 38px; }
.finals-cta__title { margin: 0 0 12px; font-size: 1.2rem; color: var(--navy); }
.finals-nav--bottom { margin: 26px 0 0; }

/* ------------------------------------------------------------------ Badges */
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy-3);
  color: #fff;
}
.badge-gold { background: var(--gold); color: #3a2a00; }
.badge-silver { background: var(--silver); color: #2a3340; }
.badge-teal { background: var(--teal); color: #043328; }
.badge-soft { background: #eef2f8; color: var(--muted); }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--teal);
  color: #04261d;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--teal-dark); color: #04261d; text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { background: transparent; border-color: #fff; color: #fff; }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }

/* ------------------------------------------------------------------ Hero */
/* Hero immersiva: la foto del club riempie tutto il riquadro, un velo navy
   dal basso tiene leggibile il testo in basso a sinistra; i tre punti forti
   del club stanno in pillole in basso a destra (sotto il testo su mobile). */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  padding: 44px;
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.55) 0%, rgba(11, 31, 58, 0) 60%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.10) 0%, rgba(11, 31, 58, 0.35) 45%, rgba(11, 31, 58, 0.92) 100%);
}
.hero__body { position: relative; z-index: 1; width: 100%; }
/* Lascia spazio a destra per le pillole (posizionate in assoluto). */
.hero__content { max-width: min(640px, calc(100% - 270px)); }
.hero .eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal);
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: 0.2px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.1rem; color: #d6e0ee; max-width: 560px; margin: 0 0 24px; }
.hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__facts {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.hero__facts svg { width: 18px; height: 18px; flex: none; color: var(--teal); }

/* ------------------------------------------------------- Home page sections */
.home-section { margin-top: 54px; }

/* ------------------------------------------ Home: ultimi match giocati */
/* striscia a scorrimento orizzontale sotto la hero: card compatte a larghezza
   fissa, scroll nativo con snap (mobile first: si scorre col dito, la card
   successiva fa capolino a destra); frecce solo dove c'è il mouse */
.recent { margin-top: 26px; }
.recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.recent__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--navy);
}
.recent__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 199, 154, 0.22);
}
.recent__nav { display: none; gap: 6px; }
@media (hover: hover) and (pointer: fine) { .recent__nav { display: flex; } }
.recent__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.recent__btn:hover { background: #eef2f8; border-color: #cfd8e4; }
.recent__track {
  list-style: none;
  margin: 0 -18px;            /* le card scorrono fino al bordo dello schermo */
  padding: 4px 18px 12px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.recent__track::-webkit-scrollbar { display: none; }
/* Ogni card porta i colori del suo torneo (--card-bg / --card-fg, inline
   dal template) in versione tenue: fondo bianco con un velo del colore del
   torneo in alto, filo del tema sul bordo superiore, etichetta del torneo e
   badge del vincitore nel colore d'accento. Il testo resta scuro per la
   leggibilità. */
.rcard {
  --card-bg: var(--navy);
  --card-fg: var(--teal);
  flex: 0 0 236px;
  scroll-snap-align: start;
  min-width: 0;
}
/* Condivisione a pressione prolungata (vedi lo script in home.html): mentre
   si tiene premuta la card, la barra in cima si riempie nel colore d'accento
   (durata = --hold-ms); a barra piena la card «si accende» e al rilascio
   parte la condivisione dell'immagine. Niente menu contestuale né selezione
   del testo durante la pressione. */
.rcard__hold {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  width: 100%;
  height: 3px;
  background: var(--card-fg);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.rcard.is-holding .rcard__hold {
  transform: scaleX(1);
  transition: transform var(--hold-ms, 7000ms) linear;
}
.rcard__link {
  -webkit-touch-callout: none;   /* niente anteprima/menu iOS sul link tenuto premuto */
  user-select: none;
}
.rcard.is-holding .rcard__link { transform: scale(0.97); }
.rcard.is-ready .rcard__link {
  transform: scale(1);
  box-shadow: 0 0 0 3px var(--card-fg), var(--shadow-lg);
}
.rcard.is-busy .rcard__link { animation: rcard-pulse 0.9s ease-in-out infinite; }
@keyframes rcard-pulse { 50% { opacity: 0.45; } }
.rcard__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 168px;
  padding: 16px 13px 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-bg) 7%, #fff), #fff 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--text);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* filo del tema lungo il bordo superiore: sfondo → accento */
.rcard__link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-bg), var(--card-fg));
}
.rcard__link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.rcard__link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.rcard__tour {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--card-fg) 55%, #000);   /* accento scurito: leggibile sulla tinta chiara */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcard__stage { font-size: 0.74rem; color: var(--muted); margin-bottom: 6px; }
.rcard__side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--text);
}
.rcard__name { min-width: 0; overflow-wrap: anywhere; }
.rcard__num {
  flex: none;
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rcard__side.is-win { font-weight: 800; color: var(--navy); }
.rcard__side.is-win .rcard__num {
  color: var(--card-fg);
  background: var(--card-bg);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-fg) 45%, transparent);
}
.rcard__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
}
.rcard__detail { font-weight: 600; }
.rcard__when { white-space: nowrap; }

.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head h2 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: 0.2px;
  color: var(--navy);
}
.section-head .section-sub { margin: 0; color: var(--muted); font-size: 1.02rem; }
.eyebrow--dark {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal-dark);
}
.accent-gold { color: var(--gold); }

/* feature cards: richiami compatti — miniatura quadrata a sinistra, testo a destra
   (mobile first: la foto non deve mai occupare tutta la larghezza dello schermo) */
.features { gap: 12px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  padding: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature__img {
  flex: none;
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  align-self: center;
}
.feature__body { padding: 2px 4px 2px 0; min-width: 0; }
.feature__body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
}
.feature__body h3 .f-ico { width: 18px; height: 18px; }
.feature__body p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
@media (min-width: 861px) {
  .feature { padding: 12px; gap: 16px; }
  .feature__img { width: 104px; height: 104px; }
}

/* inline SVG icons (feature headings + tournament card chips) */
.f-ico {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--teal-dark);
}
.chip__ico {
  width: 14px;
  height: 14px;
  flex: none;
}
.tcard__chips .chip { display: inline-flex; align-items: center; gap: 6px; }

/* booking band (Wansport) */
.book-band {
  margin-top: 54px;
  background:
    radial-gradient(900px 320px at 15% -20%, rgba(22, 199, 154, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 44px 34px;
  box-shadow: var(--shadow-lg);
}
.book-band h2 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: 0.2px;
}
.book-band p { color: #d6e0ee; max-width: 640px; margin: 0 0 22px; }
.book-steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.book-steps li {
  counter-increment: step;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px 18px 16px 56px;
  position: relative;
}
.book-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 16px;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #04261d;
  font-weight: 800;
  font-size: 0.95rem;
}
.book-steps li strong { display: block; color: #fff; margin-bottom: 2px; }
.book-steps li span { color: #b9c7da; font-size: 0.9rem; }

/* links under the tournament cards */
.event-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ------------------------------------------------------- Pagina Tornei */
/* variante club (tornei non gold/silver): accento teal */
.tcard-club::before {
  background: radial-gradient(closest-side, rgba(22, 199, 154, 0.5), transparent 72%);
}
.tcard-club::after {
  background: linear-gradient(90deg, #0a6b52, #16c79a 45%, #7bf0d3 70%, #16c79a);
}
.tcard-club .tcard__title {
  background: linear-gradient(180deg, #b8f5e4 8%, #16c79a 55%, #0a8666 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.2rem;
}
.tcard-club .tcard__cta { background: var(--teal); color: #04261d; }
.tcard__desc {
  margin: 10px 0 0;
  color: #b9c7da;
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* titoli di sezione della pagina Tornei (In corso / In arrivo / Conclusi) */
.tlist-section { margin-top: 34px; }
.tlist-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: var(--navy);
}
.dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot--live { background: var(--teal); box-shadow: 0 0 0 4px rgba(22, 199, 154, 0.18); }
.dot--upcoming { background: #3b82f6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.dot--done { background: #9aa7b8; box-shadow: 0 0 0 4px rgba(154, 167, 184, 0.18); }

/* ------------------------------------------------- Campionato (pubblico) */
.standings-legend {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.matchdays {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.matchday-card { padding: 14px 16px; }
.matchday-card .rr-round-head { margin-top: 0; }
@media (max-width: 860px) {
  .matchdays { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* INFO IMPORTANTI block */
.info-block {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.info-block h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 1.25rem;
  display: flex; align-items: center; gap: 10px;
}
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.info-list .ico { font-size: 1.4rem; line-height: 1; flex: none; }
.info-list .txt strong { display: block; color: var(--navy); }
.info-list .txt span { color: var(--muted); font-size: 0.92rem; }
.info-list li.prize {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.info-list li.prize .txt strong { color: #7a5a00; }

/* Big tournament cards on the home page — navy base + metallic accents */
.tcards { margin-top: 30px; }
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 256px;
  padding: 28px 28px 24px;
  border-radius: 20px;
  color: #fff;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tcard:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(11, 31, 58, 0.35);
}
.tcard:focus-visible, .fcard:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
/* metallic glow in the top-right corner */
.tcard::before {
  content: "";
  position: absolute;
  top: -45%; right: -18%;
  width: 72%; height: 130%;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.5;
  pointer-events: none;
}
.tcard-gold::before { background: radial-gradient(closest-side, rgba(245, 179, 1, 0.55), transparent 72%); }
.tcard-silver::before { background: radial-gradient(closest-side, rgba(192, 199, 208, 0.5), transparent 72%); }
/* metal band along the top edge */
.tcard::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}
.tcard-gold::after { background: linear-gradient(90deg, #8a5a00, #f5b301 45%, #ffe08a 70%, #f5b301); }
.tcard-silver::after { background: linear-gradient(90deg, #6e7887, #c0c7d0 45%, #f2f5f8 70%, #c0c7d0); }

/* diagonal shine sweep on hover */
.tcard__shine {
  position: absolute;
  top: -60%;
  left: -45%;
  z-index: 1;
  width: 55%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(18deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.tcard:hover .tcard__shine { left: 135%; }

/* medal anchor */
.tcard__medal {
  position: absolute;
  top: 20px; right: 22px;
  z-index: 2;
  font-size: 3.3rem;
  line-height: 1;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.18s ease;
}
.tcard:hover .tcard__medal { transform: rotate(-8deg) scale(1.07); }

.tcard__body, .tcard__cta { position: relative; z-index: 2; }
.tcard__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9fb0c8;
}
/* metallic title */
.tcard__title {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.05;
}
.tcard-gold .tcard__title {
  background: linear-gradient(180deg, #ffe9a8 8%, #f5b301 55%, #c98d00 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tcard-silver .tcard__title {
  background: linear-gradient(180deg, #ffffff 8%, #c9d1da 55%, #8d97a5 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tcard__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tcard__chips .chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e6edf6;
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
}
.tcard__cta {
  margin-top: 22px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: gap 0.15s ease, filter 0.15s ease;
}
.tcard-gold .tcard__cta { background: var(--gold); color: #3a2a00; }
.tcard-silver .tcard__cta { background: var(--silver); color: #232b36; }
.tcard:hover .tcard__cta { gap: 12px; filter: brightness(1.06); }
.tcard__cta .arrow { transition: transform 0.15s ease; }
.tcard:hover .tcard__cta .arrow { transform: translateX(3px); }

/* colori scelti dalla dashboard: --card-bg (sfondo) e --card-fg (testo)
   arrivano inline sulla card; le tinte intermedie sono derivate con color-mix */
.tcard-custom {
  color: var(--card-fg);
  background: linear-gradient(135deg, var(--card-bg) 0%, color-mix(in srgb, var(--card-bg) 86%, var(--card-fg)) 100%);
  border-color: color-mix(in srgb, var(--card-fg) 18%, transparent);
}
.tcard-custom::before {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--card-fg) 55%, transparent), transparent 72%);
}
.tcard-custom::after {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--card-fg) 60%, #000),
    var(--card-fg) 45%,
    color-mix(in srgb, var(--card-fg) 55%, #fff) 70%,
    var(--card-fg));
}
.tcard-custom .tcard__shine {
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--card-fg) 16%, transparent), transparent);
}
.tcard-custom .tcard__title {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--card-fg) 70%, #fff) 8%,
    var(--card-fg) 55%,
    color-mix(in srgb, var(--card-fg) 78%, #000) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.2rem;
}
.tcard-custom .tcard__eyebrow { color: color-mix(in srgb, var(--card-fg) 72%, var(--card-bg)); }
.tcard-custom .tcard__desc { color: color-mix(in srgb, var(--card-fg) 82%, var(--card-bg)); }
.tcard-custom .tcard__chips .chip {
  background: color-mix(in srgb, var(--card-fg) 12%, transparent);
  border-color: color-mix(in srgb, var(--card-fg) 28%, transparent);
  color: var(--card-fg);
}
.tcard-custom .tcard__cta { background: var(--card-fg); color: var(--card-bg); }

/* ------------------------------------------------------------------ Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

table.standings, table.matches {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 520px;
}
table.matches { min-width: 640px; }

.standings thead th, .matches thead th {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 11px 8px;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.standings thead th.team-col, .matches thead th.left { text-align: left; padding-left: 14px; }

.standings tbody td, .matches tbody td {
  text-align: center;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.standings tbody td.team-col {
  text-align: left;
  padding-left: 14px;
  white-space: normal;
  font-weight: 600;
  color: var(--navy);
}
.standings tbody tr:nth-child(even) td { background: #fafcff; }

.standings .pos { font-weight: 800; color: var(--navy); width: 44px; }
.standings .pts { font-weight: 800; color: var(--navy); }
.standings .flag { font-size: 1.15rem; margin-right: 7px; }
.standings .neg { color: #c0392b; }

/* two-line team label: nation on top (bold), couple below (smaller/muted) */
.team-label { display: inline-flex; flex-direction: column; vertical-align: middle; line-height: 1.15; min-width: 0; }
.team-nation { font-weight: 700; color: var(--navy); }
.team-players { font-size: 0.8em; font-weight: 500; color: var(--muted); white-space: normal; }
.standings .pos-neg { color: #c0392b; }

.standings .empty-row td {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 18px;
}

/* Mobile standings: drop the horizontal scroll and reorder so the points
   column (Pt) sits right after the team name — the first number you see. */
@media (max-width: 600px) {
  .table-wrap { overflow-x: visible; }
  .table-wrap table.standings { min-width: 0; width: 100%; display: block; font-size: 0.86rem; }
  .standings thead, .standings tbody { display: block; }
  /* 8 columns (no G): POS · SQUADRA · PT · V · S · GF · GS · DG */
  .standings thead tr, .standings tbody tr {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 28px repeat(5, 22px);
    align-items: stretch;   /* every cell fills the row height → borders & backgrounds line up */
  }
  /* each cell centres its own content, so numbers stay centred even when a
     name wraps AND the row separators/backgrounds stay perfectly aligned */
  .standings thead th, .standings tbody td {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 1px;
  }
  .standings thead th.team-col, .standings tbody td.team-col {
    justify-content: flex-start;
    gap: 5px;
    overflow-wrap: anywhere;
    padding-left: 6px;
  }
  .standings tbody td.team-col .flag-img { flex: none; margin-right: 0; }
  /* visual order: POS · SQUADRA · Pt · V · S · GF · GS · DG */
  .standings tr > *:nth-child(1) { order: 1; }  /* POS */
  .standings tr > *:nth-child(2) { order: 2; }  /* SQUADRA */
  .standings tr > *:nth-child(8) { order: 3; }  /* Pt */
  .standings tr > *:nth-child(3) { order: 4; }  /* V */
  .standings tr > *:nth-child(4) { order: 5; }  /* S */
  .standings tr > *:nth-child(5) { order: 6; }  /* GF */
  .standings tr > *:nth-child(6) { order: 7; }  /* GS */
  .standings tr > *:nth-child(7) { order: 8; }  /* DG */
  .standings .pos { width: auto; }
  /* keep the empty-row message spanning the full width */
  .standings .empty-row td { grid-column: 1 / -1; }

  /* Set-based tables (gironi a set, campionato, giallo): 9 columns
     # · SQUADRA · G · V · P · SET · DS · DG · PT
     visual order on mobile: # · SQUADRA · PT · G · V · P · SET · DS · DG */
  .standings--sets thead tr, .standings--sets tbody tr {
    grid-template-columns: 18px minmax(0, 1fr) 26px 18px 18px 18px 34px 26px 26px;
  }
  .standings--sets thead th { font-size: 0.66rem; letter-spacing: 0; }
  .standings--sets tbody td { font-size: 0.8rem; padding: 8px 0; }
  .standings--sets tbody td.team-col { padding-left: 6px; padding-right: 4px; font-size: 0.84rem; }
  .standings--sets tbody td.team-col .team-players { font-size: 0.78em; }
  .standings--sets tr > *:nth-child(1) { order: 1; }  /* # */
  .standings--sets tr > *:nth-child(2) { order: 2; }  /* SQUADRA */
  .standings--sets tr > *:nth-child(9) { order: 3; }  /* PT */
  .standings--sets tr > *:nth-child(3) { order: 4; }  /* G */
  .standings--sets tr > *:nth-child(4) { order: 5; }  /* V */
  .standings--sets tr > *:nth-child(5) { order: 6; }  /* P */
  .standings--sets tr > *:nth-child(6) { order: 7; }  /* SET */
  .standings--sets tr > *:nth-child(7) { order: 8; }  /* DS */
  .standings--sets tr > *:nth-child(8) { order: 9; }  /* DG */

  /* Classifica generale: same + GIR. column after the name (10 columns)
     # · SQUADRA · GIR · G · V · P · SET · DS · DG · PT
     visual order: # · SQUADRA · GIR · PT · G · V · P · SET · DS · DG */
  .standings--overall thead tr, .standings--overall tbody tr {
    grid-template-columns: 18px minmax(0, 1fr) 22px 26px 18px 18px 18px 34px 26px 26px;
  }
  .standings--overall tr > *:nth-child(1) { order: 1; }   /* # */
  .standings--overall tr > *:nth-child(2) { order: 2; }   /* SQUADRA */
  .standings--overall tr > *:nth-child(3) { order: 3; }   /* GIR */
  .standings--overall tr > *:nth-child(10) { order: 4; }  /* PT */
  .standings--overall tr > *:nth-child(4) { order: 5; }   /* G */
  .standings--overall tr > *:nth-child(5) { order: 6; }   /* V */
  .standings--overall tr > *:nth-child(6) { order: 7; }   /* P */
  .standings--overall tr > *:nth-child(7) { order: 8; }   /* SET */
  .standings--overall tr > *:nth-child(8) { order: 9; }   /* DS */
  .standings--overall tr > *:nth-child(9) { order: 10; }  /* DG */

  /* Gironi a set unico: niente SET / DS (coincidono con V / P), 7 columns
     # · NOME · G · V · P · DG · PT
     visual order: # · NOME · PT · G · V · P · DG */
  .standings--single thead tr, .standings--single tbody tr {
    grid-template-columns: 18px minmax(0, 1fr) 26px 18px 18px 18px 26px;
  }
  .standings--single tr > *:nth-child(7) { order: 3; }  /* PT */
  .standings--single tr > *:nth-child(3) { order: 4; }  /* G */
  .standings--single tr > *:nth-child(4) { order: 5; }  /* V */
  .standings--single tr > *:nth-child(5) { order: 6; }  /* P */
  .standings--single tr > *:nth-child(6) { order: 7; }  /* DG */

  /* ...e la sua classifica generale (8 columns, GIR. after the name) */
  .standings--overall.standings--single thead tr, .standings--overall.standings--single tbody tr {
    grid-template-columns: 18px minmax(0, 1fr) 22px 26px 18px 18px 18px 26px;
  }
  .standings--overall.standings--single tr > *:nth-child(3) { order: 3; }  /* GIR */
  .standings--overall.standings--single tr > *:nth-child(8) { order: 4; }  /* PT */
  .standings--overall.standings--single tr > *:nth-child(4) { order: 5; }  /* G */
  .standings--overall.standings--single tr > *:nth-child(5) { order: 6; }  /* V */
  .standings--overall.standings--single tr > *:nth-child(6) { order: 7; }  /* P */
  .standings--overall.standings--single tr > *:nth-child(7) { order: 8; }  /* DG */
}

/* group section headings */
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 12px;
  font-size: 1.2rem;
  color: var(--navy);
}
.group-title .letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--teal);
  color: #04261d;
  font-weight: 800;
}

.group-when {
  margin: -6px 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-dark);
}

.groups-grid { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); }
.groups-grid .group-block { min-width: 0; }

/* national flag images (local SVG, robust on all browsers incl. Windows) */
.flag-img {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 31, 58, 0.12);
  vertical-align: -2px;
  margin-right: 7px;
}
.flag-img--ph {
  background: repeating-linear-gradient(45deg, #e6e9f0, #e6e9f0 4px, #f1f4f9 4px, #f1f4f9 8px);
}
.bmatch .nm .flag-img, .rr-team .flag-img { margin-right: 0; }

/* expandable per-group results */
.group-results {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.group-results > summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 14px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  user-select: none;
}
.group-results > summary::-webkit-details-marker { display: none; }
.group-results > summary::marker { content: ""; }
.group-results > summary:hover { background: #f7f9fc; }
.group-results .gr-caret { color: var(--teal-dark); transition: transform 0.15s ease; }
.group-results[open] .gr-caret { transform: rotate(90deg); }
.group-results .gr-count {
  margin-left: auto;
  background: #eef2f8;
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.78rem;
  font-weight: 700;
}
.result-list {
  margin: 0;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.rr-round-head {
  margin: 0 0 4px;
  padding: 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.rr-round-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.rr-round-list .result-row:nth-child(odd) { background: #fafcff; }
.rr-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-home { justify-content: flex-start; }
.rr-away { justify-content: flex-end; text-align: right; }
.rr-win .rr-name { font-weight: 800; color: var(--navy); }
.rr-score { font-weight: 800; color: var(--navy); text-align: center; min-width: 56px; white-space: nowrap; }
.rr-dash { color: var(--muted); margin: 0 2px; }
.rr-vs { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.rr-tb { color: #b67c00; font-size: 0.6rem; margin-left: 2px; }
.rr-meta { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 0.76rem; }

/* calendario dei formati a set (campionato, gironi, giallo): coppie affiancate
   con un cognome per riga, così i nomi si leggono interi anche sui telefoni
   (mobile first) invece di essere troncati con i puntini */
.rr-stack { grid-template-columns: 1fr 72px 1fr; gap: 6px; padding: 8px 9px; }
.rr-stack .rr-team {
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text);
}
.rr-stack .rr-line { display: block; overflow-wrap: anywhere; }
.rr-stack .rr-line--sub { font-family: var(--font); font-weight: 600; font-size: 0.8rem; color: var(--muted); letter-spacing: 0; }
.rr-stack .rr-win { font-weight: 800; color: var(--navy); }
.rr-stack .rr-win .rr-line--sub { color: var(--text); }
.rr-stack .rr-win .rr-line:first-child::before,
.rr-stack .rr-win.rr-away .rr-line:first-child::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
}
.rr-stack .rr-win.rr-home .rr-line:first-child::before { margin-right: 6px; }
.rr-stack .rr-win.rr-away .rr-line:first-child::before { display: none; }
.rr-stack .rr-win.rr-away .rr-line:first-child::after { margin-left: 6px; }
.rr-stack .rr-score {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rr-stack .rr-dash { margin: 0; }
.rr-stack .rr-sets {
  display: block;
  margin-top: 3px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.66rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: normal;
}
.rr-stack .rr-vs { font-size: 0.8rem; font-weight: 700; }
.rr-stack .rr-meta { margin-top: 2px; }

/* ------------------------------------------------- Schedule (matches list) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 22px;
}
.filters .field { display: flex; flex-direction: column; gap: 5px; }
.filters label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.filters select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  color: var(--navy);
  min-width: 200px;
}
.filters .actions { display: flex; gap: 8px; }

.matches tbody tr:nth-child(even) td { background: #fafcff; }
.matches .when { text-align: left; padding-left: 14px; color: var(--navy); font-weight: 600; }
.matches .when small { display: block; color: var(--muted); font-weight: 500; }
.matches .vs-home, .matches .vs-away { text-align: left; }
.matches .vs-away { text-align: right; padding-right: 14px; }
.matches .flag { font-size: 1.1rem; }
.matches .score { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.matches .score .tb { font-size: 0.7rem; color: var(--gold); vertical-align: super; }
.matches .win { color: var(--teal-dark); font-weight: 800; }
.matches .pending { color: var(--muted); font-style: italic; }
.matches .phase-tag { font-size: 0.78rem; }
.matches .court { color: var(--muted); }

/* ------------------------------------------------------------------ Bracket */
/* Titolo di sezione quando il torneo ha più tabelloni (categorie Gold/Silver). */
.bracket-cat-title { margin: 26px 0 4px; font-size: 1.2rem; color: var(--navy); }
.bracket-scroll {
  overflow-x: auto;
  padding: 10px 4px 24px;
  -webkit-overflow-scrolling: touch;
}
.bracket {
  position: relative;
  display: flex;
  gap: 40px;
  min-width: max-content;
  align-items: stretch;
}
.bracket-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 210px;
  gap: 16px;
}
.bracket-col .round-name {
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.bmatch {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: auto 0;
}
.bmatch .side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
}
.bmatch .side + .side { border-top: 1px solid var(--line); }
.bmatch .side .nm {
  display: flex; align-items: center; gap: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bmatch .side .nm .flag { font-size: 1.05rem; flex: none; }
.bmatch .side .nm .label { overflow: hidden; text-overflow: ellipsis; }
.bmatch .side .g {
  font-weight: 800;
  color: var(--navy);
  min-width: 20px;
  text-align: center;
}
.bmatch .side.tbd .nm { color: var(--muted); font-style: italic; }
.bmatch .side.winner { background: rgba(22, 199, 154, 0.12); }
.bmatch .side.winner .nm { font-weight: 800; color: var(--navy); }
.bmatch .side.winner .g { color: var(--teal-dark); }
.bmatch .side.loser { opacity: 0.62; }
.bmatch .meta {
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--muted);
  background: #fafcff;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 8px;
}

/* connector lines between rounds (drawn by js/bracket-lines.js) */
.bracket-lines {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.bracket-lines path {
  fill: none;
  stroke: #c9d5e6;
  stroke-width: 2;
  stroke-linecap: round;
}
.bracket-lines path.adv { stroke: var(--teal); opacity: 0.65; }
.bracket.is-gold .bmatch { border-top: 3px solid var(--gold); }
.bracket.is-silver .bmatch { border-top: 3px solid var(--silver); }

/* Chip "testa di serie" nel tabellone a numeri (numero = posizione classifica generale) */
.bmatch .side .seed {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px;
  background: var(--navy); color: #fff;
  font-size: 0.82rem; font-weight: 800; line-height: 1;
}
.bracket.is-gold .bmatch .side .seed { background: var(--gold); color: var(--navy); }
.bracket.is-silver .bmatch .side .seed { background: var(--silver); color: var(--navy); }
.notice--seed { margin-bottom: 14px; }

/* Anteprima (accoppiamenti da PDF, prima della compilazione) */
.bmatch .side.ph .nm { color: #44536b; font-weight: 600; }
.bmatch .side.ph .g { color: var(--muted); font-weight: 400; }
.bracket--preview .bmatch--bye .side.ph { background: var(--gold-soft, #fdf3d7); }
.bmatch--bye .side.tbd .label { letter-spacing: 1px; }

/* Bye nel tabellone reale: la testa di serie evidenziata come nel PDF */
.bmatch--bye .side.bye-seed { background: var(--gold-soft, #fdf3d7); }
.bmatch--bye .side.bye-seed .nm { font-weight: 700; color: var(--navy); }

.bye-note {
  margin: 0 0 6px;
  padding: 10px 14px;
  background: #fffaf0;
  border: 1px solid #f2e3bb;
  border-radius: 10px;
  color: #6b5518;
  font-size: 0.9rem;
}

.bracket-empty {
  text-align: center;
  color: var(--muted);
  padding: 46px 24px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.bracket-empty .be-ico { display: block; font-size: 2.2rem; }
.bracket-empty h2 { margin: 10px 0 6px; color: var(--navy); font-size: 1.3rem; }
.bracket-empty p { margin: 0 auto 18px; max-width: 52ch; }

/* ------------------------------------------------------------------ Misc */
.notice {
  background: #eef6ff;
  border: 1px solid #cfe3fb;
  color: #1c456f;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 46px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ------------------------------------------------------------------ Footer */
.site-footer {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #aab8cc;
  padding: 34px 0 24px;
  margin-top: 48px;
  font-size: 0.9rem;
}
.site-footer a { color: #cfe7df; }

.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}
.foot-brand:hover { text-decoration: none; }
.foot-brand__by { opacity: 0.65; font-weight: 500; }
.foot-logo {
  width: 42px;
  height: 42px;
  padding: 5px;
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
  flex: none;
}

.foot-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: #dfe7f1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.foot-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; }
.foot-nav a.fn-gold { color: #ffd75e; }
.foot-nav a.fn-gold:hover { border-color: rgba(245, 179, 1, 0.5); }
.foot-nav a.fn-silver { color: #dde3ea; }
.foot-nav a.fn-silver:hover { border-color: rgba(192, 199, 208, 0.55); }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 16px;
  font-size: 0.84rem;
  opacity: 0.9;
}
.foot-credit a { color: var(--teal); font-weight: 600; }

@media (max-width: 640px) {
  .site-footer { text-align: center; padding: 28px 0 22px; }
  .foot-top { flex-direction: column; gap: 16px; }
  .foot-nav { justify-content: center; width: 100%; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}

/* ------------------------------------------------------------------ Responsive */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .info-list { grid-template-columns: 1fr; }
  .groups-grid { grid-template-columns: 1fr; }
  .finals-nav { grid-template-columns: 1fr; }
  .book-steps { grid-template-columns: 1fr; }
  .book-band { padding: 34px 22px; }
  .home-section { margin-top: 40px; }
  /* mobile: foto a tutta altezza, testo e pillole in colonna, CTA a tutta larghezza */
  .hero { min-height: 640px; padding: 24px 20px; }
  .hero__bg { object-position: 30% 40%; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.15) 0%, rgba(11, 31, 58, 0.45) 40%, rgba(11, 31, 58, 0.95) 100%);
  }
  .hero__content { max-width: none; }
  .hero p.lead { font-size: 1rem; margin-bottom: 14px; }
  .hero__facts {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
  }
  .hero__facts li { padding: 6px 11px; font-size: 0.8rem; gap: 7px; }
  .hero__facts svg { width: 15px; height: 15px; }
  .hero .hero-cta { gap: 8px; }
  .hero .hero-cta .btn:first-child { flex: 1 0 100%; padding: 14px 22px; }
  .hero .hero-cta .btn-ghost { flex: 1 1 0; }
}

@media (max-width: 560px) {
  .site-header .container { min-height: 56px; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__text { display: none; }
  .main-nav a { padding: 10px 12px; font-size: 0.92rem; }
  main { padding: 22px 0 40px; }
  .filters select { min-width: 100%; }
  .filters .field { width: 100%; }

  /* Finals card: the go-button drops to its own full-width line so a long
     label ("Anteprima accoppiamenti →") can never overflow the viewport. */
  .fcard { flex-wrap: wrap; gap: 6px 12px; }
  .fcard__txt { flex: 1 1 auto; }
  .fcard__go {
    margin-left: 0;
    flex: 1 0 100%;
    text-align: center;
    white-space: normal;
  }
}

/* ------------------------------------------------------- HEAD to HEAD */
/* Pagina del torneo 1vs1 «HEAD to HEAD»: video di presentazione, gironi e
   tabelloni Gold / Silver. Mobile first: il video (quadrato) apre il banner
   a tutta larghezza; da tablet in su sta a sinistra del titolo. */
.h2h-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.h2h-hero__media {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.h2h-hero__video { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; cursor: pointer; }
/* pulsante audio: solo un'icona tonda in basso a destra sul video
   (altoparlante barrato = muto, con le onde = audio attivo) */
.h2h-sound {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}
.h2h-sound svg { width: 18px; height: 18px; }
.h2h-sound .h2h-sound__on { display: none; }
.h2h-sound[aria-pressed="true"] .h2h-sound__on { display: inline; }
.h2h-sound[aria-pressed="true"] .h2h-sound__off { display: none; }
/* area di tocco più larga dell'icona, senza ingrandirla */
.h2h-sound::after { content: ''; position: absolute; inset: -6px; }
.h2h-sound:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.h2h-hero__head { min-width: 0; }
.h2h-kicker {
  margin: 0 0 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
}
.h2h-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 7vw, 3.2rem);
  line-height: 0.95;
}
.h2h-hero__mode {
  display: inline-block;
  margin: 8px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #3a2a00;
  font-size: 0.78rem;
  font-weight: 800;
}
.h2h-hero__when {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}
.h2h-hero__lead { margin: 2px 0 0; color: #c9d6e8; }
/* scorciatoie verso gironi e tabelloni (la pagina è lunga su telefono) */
.h2h-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.h2h-jump a {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}
.h2h-jump a:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.h2h-jump a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.h2h-sec { margin-top: 30px; scroll-margin-top: 76px; }
.h2h-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
}
.h2h-sub { margin: 4px 0 12px; font-size: 0.9rem; color: var(--muted); }

/* Classifica generale a fasce: una riga-intestazione per fascia (primi,
   secondi, …) col tabellone in cui finisce, e un filetto oro / argento. */
.standings.h2h-overall tr.band-row td {
  padding: 7px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-align: left;
  text-transform: uppercase;
}
.standings.h2h-overall tr.band-row--gold td { color: var(--gold); }
.standings.h2h-overall tr.band-row--silver td { color: var(--silver); }
.h2h-overall tr.in-gold td.pos { box-shadow: inset 3px 0 0 var(--gold); }
.h2h-overall tr.in-silver td.pos { box-shadow: inset 3px 0 0 var(--silver); }
@media (max-width: 600px) {
  .standings.h2h-overall tr.band-row td { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (min-width: 720px) {
  .h2h-hero {
    grid-template-columns: 320px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 8px 28px;
    padding: 26px;
  }
  .h2h-hero__media { grid-row: 1 / span 2; max-width: none; }
  .h2h-hero__head { align-self: end; }
  .h2h-hero__body { grid-column: 2; align-self: start; }
}

/* Tabellone a colonne (grafica «main draw»): card scura, partite su due
   righe (testa di serie · nome · punteggio), linee tra i turni in CSS,
   finale e campione nel colore della categoria (--acc).
   Ogni .hb-slot è alto --unit × --span: una partita del turno dopo occupa
   il doppio delle righe e cade a metà tra le due che la alimentano; le
   linee (::after a destra, ::before a sinistra) si appoggiano a quel passo.
   Su telefono le colonne hanno una larghezza minima e il tabellone scorre
   in orizzontale dentro la card (la pagina no). */
.hb {
  --acc: #d7f23f;
  --hb-bg: #0b1a33;
  --hb-box: #12284a;
  --hb-cell: #0f2242;
  --hb-line: #23406b;
  --hb-link: #34558a;
  --hb-muted: #8fa3c0;
  --row: 30px;
  --unit: 76px;
  --gap: 22px;
  --cmin: 160px;
  margin-top: 16px;
  padding: 18px 16px;
  background: var(--hb-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  color: #fff;
  scroll-margin-top: 76px;
}
.hb--gold { --acc: var(--gold); }
.hb--silver { --acc: var(--silver); }
.hb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 16px;
}
.hb-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--acc);
}
.hb-title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  font-weight: 800;
  line-height: 0.95;
  color: #fff;
}
.hb-meta {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b9c7da;
}
.hb-note { margin: 8px 0 0; font-size: 0.82rem; color: var(--hb-muted); }
.hb-hint { margin: 10px 0 0; font-size: 0.78rem; font-weight: 700; color: var(--hb-muted); }
.hb-scroll {
  margin-top: 14px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-color: var(--hb-link) transparent;
  scrollbar-width: thin;
}
/* primo turno più largo (ha i numeri di testa di serie), turni centrali
   uguali (--mid = quanti sono), vincitore più stretto */
.hb-grid {
  display: grid;
  grid-template-columns:
    minmax(calc(var(--cmin) + 20px), 1.2fr)
    repeat(var(--mid), minmax(var(--cmin), 1fr))
    minmax(max(0px, calc(var(--cmin) - 20px)), 0.8fr);
  column-gap: var(--gap);
}
.hb-col { min-width: 0; }
.hb-col__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9d6e8;
}
.hb-col--win .hb-col__title { color: var(--acc); }
.hb-slot {
  position: relative;
  display: flex;
  align-items: center;
  height: calc(var(--unit) * var(--span));
}
.hb-match {
  width: 100%;
  overflow: hidden;
  background: var(--hb-box);
  border: 1px solid var(--hb-line);
  border-radius: 6px;
}
.hb-col--final .hb-match { border: 1.5px solid var(--acc); }
.hb-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 30px;
  height: var(--row);
  font-size: 0.82rem;
}
.hb-row + .hb-row { border-top: 1px solid var(--hb-line); }
.hb-seed, .hb-score {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hb-cell);
  font-family: var(--font-display);
  font-weight: 700;
}
.hb-seed { border-right: 1px solid var(--hb-line); color: #c9d6e8; }
.hb-score { border-left: 1px solid var(--hb-line); font-size: 1rem; }
/* i nomi lunghi vanno su due righe invece di essere troncati */
.hb-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-self: center;
  overflow: hidden;
  padding: 0 7px;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.hb-row.is-tbd .hb-name { font-weight: 500; color: var(--hb-muted); }
.hb-row.is-win .hb-score { color: var(--acc); }
.hb-row.is-out .hb-name, .hb-row.is-out .hb-score { color: var(--hb-muted); }
/* gironi in corso: chi sarebbe lì con la classifica di adesso */
.hb-row.is-prov .hb-name { font-style: italic; font-weight: 600; color: #c9d6e8; }
.hb-prov-tag { color: var(--acc); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }

.hb-col--feeds .hb-slot::after {
  content: '';
  position: absolute;
  right: calc(var(--gap) / -2);
  width: calc(var(--gap) / 2);
  height: 50%;
  border: 0 solid var(--hb-link);
  border-right-width: 1.5px;
}
.hb-col--feeds .hb-slot:nth-child(odd)::after { top: 50%; border-top-width: 1.5px; }
.hb-col--feeds .hb-slot:nth-child(even)::after { bottom: 50%; border-bottom-width: 1.5px; }
.hb-col--fed .hb-slot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(var(--gap) / -2);
  width: calc(var(--gap) / 2);
  border-top: 1.5px solid var(--hb-link);
}
.hb-col--final .hb-slot::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(var(--gap) * -1);
  width: var(--gap);
  border-top: 1.5px solid var(--acc);
}

.hb-champ {
  width: 100%;
  padding: 14px 10px;
  text-align: center;
  background: var(--hb-box);
  border: 1.5px solid var(--acc);
  border-radius: 8px;
}
.hb-champ__ico { width: 30px; height: 30px; margin: 0 auto 4px; color: var(--acc); }
.hb-champ__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}
.hb-champ__name { margin: 2px 0 0; font-size: 0.85rem; color: var(--hb-muted); overflow-wrap: anywhere; }
.hb-champ.is-set .hb-champ__name { font-size: 1rem; font-weight: 800; color: var(--acc); }

@media (min-width: 720px) {
  .hb { --row: 36px; --unit: 92px; --gap: 30px; --cmin: 160px; padding: 24px; }
  .hb-row { grid-template-columns: 32px minmax(0, 1fr) 36px; font-size: 0.88rem; }
}
@media (min-width: 1000px) {
  .hb { --row: 38px; --unit: 100px; --gap: 36px; --cmin: 0px; padding: 28px 32px; }
  .hb-hint { display: none; }
}

/* Banner in home verso la pagina HEAD to HEAD (in cima, prima della hero). */
.h2h-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 14px 10px 10px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
}
.h2h-banner:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.h2h-banner:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.h2h-banner__img { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.h2h-banner__txt { display: flex; flex-direction: column; min-width: 0; }
.h2h-banner__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.h2h-banner strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.05; }
.h2h-banner__when { font-size: 0.84rem; color: #c9d6e8; }
.h2h-banner__go {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--gold);
  color: #3a2a00;
  font-weight: 800;
}

/* ------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .tcard:hover, .fcard:hover, .feature:hover { transform: none; }
  .tcard:hover .tcard__medal, .tcard:hover .tcard__shine { transform: none; left: -45%; }
}

/* archivio tornei: paginazione */
.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pager__info { color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------- Pronostici HEAD to HEAD */
/* Report dei più votati nella pagina del torneo: una card con le tre
   scelte (una sotto l'altra su telefono, in tre colonne da tablet), i primi
   tre per scelta con percentuale e barra. Filetto oro per il Gold, argento
   per il Silver. */
.fc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}
.fc-head .h2h-sub { margin-bottom: 0; }
.fc-cta { width: 100%; min-height: 48px; font-weight: 800; }
.fc-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fc-pick { padding: 10px 14px 12px; border-left: 4px solid var(--gold); }
.fc-pick + .fc-pick { border-top: 1px solid var(--line); }
.fc-pick--silver_finalist { border-left-color: var(--silver); }
.fc-pick__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
/* Barra che apre e chiude il report (details/summary): navy come la testata
   dei tabelloni; aperta, la card si attacca sotto senza angoli in alto. */
.fc-more__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.fc-more__bar::-webkit-details-marker { display: none; }
.fc-more__bar:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fc-more__hint { font-size: 0.8rem; font-weight: 700; color: var(--gold); white-space: nowrap; }
.fc-more__hint::after { content: 'Mostra ▾'; }
.fc-more[open] .fc-more__hint::after { content: 'Nascondi ▴'; }
.fc-more[open] .fc-more__bar { border-radius: var(--radius) var(--radius) 0 0; }
.fc-more[open] .fc-card { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.fc-rows { list-style: none; margin: 0; padding: 0; counter-reset: fc; }
/* Il resto della classifica di una scelta: chiuso, un tocco lo apre; la
   numerazione riparte dal 4. Il tasto è un link leggero, non un'altra barra. */
.fc-rows--more { counter-reset: fc 3; }
.fc-all { margin-top: 4px; }
.fc-all__bar {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.fc-all__bar::-webkit-details-marker { display: none; }
.fc-all__bar:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.fc-all__open::after { content: ' ▾'; }
.fc-all__close::after { content: ' ▴'; }
.fc-all__close, .fc-all[open] .fc-all__open { display: none; }
.fc-all[open] .fc-all__close { display: inline; }
.fc-row {
  display: grid;
  grid-template-columns: 1.3em minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 6px;
  padding: 4px 0;
  counter-increment: fc;
}
.fc-row::before { content: counter(fc); font-size: 0.82rem; font-weight: 800; color: var(--muted); }
.fc-row__name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
/* Voti ricevuti per questa scelta: il numerino accanto al nome. */
.fc-row__votes {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  vertical-align: 1px;
  font-variant-numeric: tabular-nums;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.fc-row__pct { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.fc-bar {
  grid-column: 2 / -1;
  height: 5px;
  margin-top: 3px;
  border-radius: 999px;
  background: #eef2f8;
  overflow: hidden;
}
.fc-bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.fc-pick--silver_finalist .fc-bar span { background: #8d99a8; }
.fc-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed #cfd8e5;
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--muted);
}
@media (min-width: 720px) {
  .fc-cta { width: auto; }
  .fc-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fc-pick + .fc-pick { border-top: 0; }
}

/* Form della schedina (/headtohead/pronostici/): una colonna, campi e
   tendine native da 48px, testo a 16px (iPhone non zooma). */
.pr-head, .pr-prize, .pr-mine, .pr-form, .pr-closed { max-width: 560px; margin-left: auto; margin-right: auto; }
/* Premio a sorpresa e i due criteri: riquadro compatto sotto la locandina. */
.pr-prize {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 0.9rem;
  color: var(--text);
}
.pr-prize p { margin: 0; }
.pr-prize .pr-prize__title {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.pr-prize__rules { margin: 8px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 0.85rem; }
.pr-prize__rules li + li { margin-top: 3px; }
/* Testata ChiccoBet: la locandina a tutta larghezza in cima alla card, sotto
   il titolo su un verde scuro che riprende quello della locandina. */
.pr-head {
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #123f2c 0%, var(--navy) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.pr-poster { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pr-head__txt { padding: 14px 16px 18px; }
.pr-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}
.pr-head p:last-child { margin: 8px 0 0; color: #c9d6e8; font-size: 0.95rem; }
.pr-mine {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 179, 1, 0.45);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}
.pr-mine strong { font-size: 0.75rem; letter-spacing: 0.4px; text-transform: uppercase; color: #6b4e00; }
.pr-mine a { font-weight: 700; color: var(--navy); }
.pr-form {
  margin-top: 16px;
  padding: 16px 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pr-field label, .pr-pick label { display: block; margin-bottom: 6px; font-weight: 800; color: var(--navy); }
.pr-pick label small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.pr-form input[type="text"], .pr-form select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #cfd8e5;
  border-radius: 10px;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.pr-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1f3a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.pr-form input:focus, .pr-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 199, 154, 0.22);
}
.pr-pick {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pr-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}
.pr-pick--silver .pr-badge { background: var(--silver); }
.pr-error { margin: 6px 0 0; color: #b3261e; font-size: 0.88rem; font-weight: 700; }
.pr-error--top { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fdecec; }
/* campo trappola per i bot: fuori schermo, mai visto né raggiunto col tab */
.pr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pr-submit { width: 100%; min-height: 52px; margin-top: 22px; font-size: 1.05rem; font-weight: 800; }
.pr-submit:disabled { opacity: 0.7; cursor: wait; }
.pr-note { margin: 10px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.pr-closed {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pr-closed strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.pr-closed p { margin: 4px 0 0; color: var(--muted); }

/* Pagina della schedina giocata: il PNG a tutta larghezza, i pulsanti sotto. */
.pr-ticket { max-width: 440px; margin: 0 auto; }
.pr-done {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #e3f6ee;
  color: #0c7a52;
  font-weight: 800;
  text-align: center;
}
.pr-ticket__img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.pr-actions { display: grid; gap: 10px; margin-top: 14px; }
.pr-actions .btn { min-height: 50px; font-weight: 800; }
.pr-actions .btn[hidden] { display: none; }
/* «Torna al torneo»: azione secondaria, solo contorno */
.pr-actions .pr-back { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.pr-actions .pr-back:hover { background: var(--navy); color: #fff; }
.pr-tip { margin: 10px 0 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.pr-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 16px; font-weight: 700; }
