/* ============================================
   TROFEO 0.14 · Città di Treviso CMB
   Editorial sport design — multi-page
   ============================================ */

:root {
  --navy: #0A1F3D;
  --navy-2: #112C5C;
  --navy-3: #1B3A6B;
  --navy-deep: #050E1F;
  --blue: #1B5E94;
  --blue-l: #2E84C7;
  --red: #E63946;
  --red-dark: #C82B38;
  --red-deep: #8E1E29;
  --gold: #FFB800;
  --gold-2: #FFD45C;
  --gold-deep: #C68900;
  --green: #06A77D;
  --purple: #7B2CBF;
  --orange: #FF6B35;

  --ink: #0E1B2E;
  --ink-2: #2C3E5C;
  --muted: #6A7991;
  --muted-2: #9AA6B8;
  --line: #E6EBF2;
  --line-2: #F1F4F9;
  --bg: #F5F7FB;
  --bg-alt: #EFF2F8;
  --white: #FFFFFF;
  --cream: #FAF8F3;

  --grad-card: linear-gradient(135deg, #1B5E94 0%, #0A1F3D 100%);
  --grad-red: linear-gradient(135deg, #E63946 0%, #C82B38 100%);
  --grad-gold: linear-gradient(135deg, #FFD45C 0%, #FFB800 70%, #C68900 100%);
  --grad-live: linear-gradient(135deg, #E63946 0%, #FF6B35 100%);

  --sh-sm: 0 2px 6px rgba(10, 31, 61, 0.06);
  --sh-md: 0 6px 24px rgba(10, 31, 61, 0.1);
  --sh-lg: 0 14px 40px rgba(10, 31, 61, 0.14);
  --sh-xl: 0 24px 60px rgba(10, 31, 61, 0.22);
  --sh-glow-gold: 0 0 0 1px rgba(255, 184, 0, 0.3), 0 10px 30px rgba(255, 184, 0, 0.2);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --f-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --f-display: 'Bebas Neue', 'Inter', sans-serif;
  --f-mega: 'Archivo Black', 'Inter', sans-serif;

  --container: 1240px;
  --topbar-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 72px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; color: var(--ink); font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

*:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Live dot ---------- */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6);
  animation: liveDot 1.6s infinite;
  display: inline-block;
  flex-shrink: 0;
}
.live-dot--lg { width: 12px; height: 12px; }
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  60%, 100% { box-shadow: 0 0 0 10px rgba(230, 57, 70, 0); }
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s, background .2s, border-color .2s;
}
.topbar.is-scrolled {
  box-shadow: var(--sh-md);
  background: rgba(255, 255, 255, 0.96);
}
.topbar--sub {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--sh-sm);
}
/* Transparent topbar over hero */
.topbar--hero {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.topbar--hero.is-scrolled {
  background: rgba(10, 31, 61, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--sh-md);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand__logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__text strong {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--ink);
  line-height: 1;
}
.brand__text small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 3px;
}
/* Light variant for hero topbar */
.brand--light .brand__text strong { color: var(--white); }
.brand--light .brand__text small { color: rgba(255, 255, 255, 0.6); }

.topbar__nav { display: none; gap: 2px; flex: 1; justify-content: center; }
.topbar__link {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background .15s, color .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__link:hover { background: var(--line-2); color: var(--navy); }
.topbar__link.is-active { background: var(--navy); color: var(--white); }
.topbar__link--live { color: var(--red); }
.topbar__link--live.is-active { background: var(--grad-live); color: var(--white); }
/* Light variant */
.topbar__nav--light .topbar__link { color: rgba(255, 255, 255, 0.85); }
.topbar__nav--light .topbar__link:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.topbar__nav--light .topbar__link--live { color: #FFC9D0; }

.team-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-red);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.team-picker-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(230, 57, 70, 0.42); }
.team-picker-btn.has-team {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: var(--sh-glow-gold);
}
#teamPickerLabel { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.topbar__menu {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--line-2);
  border: 0;
  color: var(--ink);
}
.topbar__menu:hover { background: var(--line); }
.topbar__menu--light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.topbar__menu--light:hover { background: rgba(255, 255, 255, 0.18); }

@media (min-width: 1000px) {
  .topbar__nav { display: flex; }
  .topbar__menu { display: none; }
}
@media (max-width: 720px) {
  .team-picker-btn { display: none; }
}

/* ============================================
   DRAWER
   ============================================ */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 61, 0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: var(--white);
  display: flex;
  flex-direction: column;
  animation: slideInRight .25s ease;
  box-shadow: var(--sh-xl);
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.drawer__head strong { font-size: 16px; letter-spacing: 0.3px; }
.drawer__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--line-2);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.drawer__nav { display: flex; flex-direction: column; padding: 14px; gap: 4px; overflow-y: auto; }
.drawer__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.drawer__nav a:hover { background: var(--line-2); }
.drawer__nav a svg { color: var(--blue); }

/* ============================================
   CINEMA HERO (editorial design)
   ============================================ */
.cinema {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--topbar-h));
  padding-top: calc(var(--topbar-h) + 40px);
  padding-bottom: 56px;
  min-height: 100vh;
  background: linear-gradient(135deg, #050E1F 0%, #0A1F3D 35%, #1B3A6B 70%, #2E1B40 130%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cinema__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* Volleyball court line pattern */
.cinema__court {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent calc(100% - 1px), rgba(255, 255, 255, 0.04) calc(100% - 1px)),
    linear-gradient(90deg, transparent calc(100% - 1px), rgba(255, 255, 255, 0.04) calc(100% - 1px));
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 90%);
}
.cinema__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.cinema__glow--red {
  background: #E63946;
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -100px;
  opacity: 0.4;
}
.cinema__glow--gold {
  background: #FFB800;
  width: 500px;
  height: 500px;
  top: -150px;
  left: -100px;
  opacity: 0.35;
}

/* GIANT background "14" watermark */
.cinema__watermark {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-48%);
  font-family: var(--f-mega);
  font-size: clamp(280px, 50vw, 700px);
  line-height: 0.8;
  letter-spacing: -20px;
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.12) 0%, rgba(230, 57, 70, 0.06) 60%, transparent 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 880px) {
  .cinema__watermark {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    font-size: 60vw;
    opacity: 0.6;
  }
}

.cinema__inner {
  display: grid;
  gap: 30px;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
  padding-top: 30px;
}
@media (min-width: 880px) {
  .cinema__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    min-height: 70vh;
  }
}

/* Content side */
.cinema__content { position: relative; }
.cinema__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.cinema__eyebrow-dash {
  width: 32px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.cinema__title {
  font-family: var(--f-mega);
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
}
.cinema__title-trofeo {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.9;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
}
.cinema__title-num {
  font-size: clamp(110px, 18vw, 200px);
  line-height: 0.85;
  letter-spacing: -6px;
  background: linear-gradient(135deg, #FFE9A6 0%, #FFB800 45%, #E63946 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 30px rgba(255, 184, 0, 0.35));
  margin-top: -8px;
}

.cinema__subtitle {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: clamp(20px, 3.2vw, 30px);
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}
.cinema__chip {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 2px 14px;
  border-radius: 8px;
  font-size: 0.7em;
  letter-spacing: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Date block (split numbers) */
.cinema__date {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  margin-bottom: 28px;
}
.cinema__date-num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--f-mega);
  font-size: 36px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -1px;
}
.cinema__date-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
}
.cinema__date-text { display: flex; flex-direction: column; }
.cinema__date-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.3px;
}
.cinema__date-text span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cinema__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.cinema__countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--grad-gold);
  color: var(--navy);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(255, 184, 0, 0.4);
  letter-spacing: 0.4px;
}

/* Visual side (athlete) */
.cinema__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 440px;
}
@media (min-width: 880px) { .cinema__visual { min-height: 560px; align-items: center; } }

/* Soft halo behind athlete */
.cinema__halo {
  position: absolute;
  width: min(540px, 90%);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.35) 0%, rgba(230, 57, 70, 0.22) 30%, transparent 70%);
  filter: blur(30px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Geometric shape behind */
.cinema__shape {
  position: absolute;
  width: min(360px, 70%);
  height: min(440px, 80%);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, rgba(230, 57, 70, 0.35) 60%, rgba(230, 57, 70, 0.5) 100%);
  border-radius: 200px 200px 0 0;
  filter: blur(0);
  z-index: 0;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 100px 80px -60px rgba(255, 184, 0, 0.2);
}

/* Decorative grid lines */
.cinema__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.cinema__lines svg { width: 100%; height: 100%; }

.cinema__athlete {
  position: relative;
  height: 100%;
  max-height: 580px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 35px 50px rgba(0, 0, 0, 0.55));
  z-index: 2;
  animation: floatY 4.5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sponsor strip at bottom of hero (white chips, no destructive filter) */
.cinema__sponsors {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 760px) {
  .cinema__sponsors {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}
.cinema__sponsors-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.cinema__sponsors-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.cinema__sponsor-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform .2s, box-shadow .2s;
}
.cinema__sponsor-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 184, 0, 0.5);
}
.cinema__sponsor-chip img {
  height: 100%;
  max-height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}
.cinema__sponsor-chip--main {
  height: 60px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8F3 100%);
  box-shadow: 0 10px 26px rgba(255, 184, 0, 0.25), inset 0 0 0 1px rgba(255, 184, 0, 0.4);
}
.cinema__sponsor-chip--main img {
  max-height: 44px;
  max-width: 170px;
}
.cinema__sponsors-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.18);
  display: none;
}
@media (min-width: 760px) { .cinema__sponsors-divider { display: block; } }

/* Scroll indicator */
.cinema__scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: grid;
  place-items: center;
  z-index: 2;
  animation: bounceY 2s infinite;
}
@keyframes bounceY {
  0%, 20%, 60%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-6px); }
}

/* ============================================
   STATS BAR (horizontal)
   ============================================ */
.stats-bar {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  text-align: center;
}
@media (min-width: 640px) { .stats-bar__grid { grid-template-columns: repeat(5, 1fr); } }
.stats-bar__cell {
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  transition: background .15s;
}
.stats-bar__cell:nth-child(2n) { border-right: 0; }
@media (min-width: 640px) {
  .stats-bar__cell { border-right: 1px solid var(--line); }
  .stats-bar__cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .stats-bar__cell:last-child { border-right: 0; }
}
.stats-bar__cell:hover { background: var(--bg); }
.stats-bar__num {
  display: block;
  font-family: var(--f-mega);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--navy);
  letter-spacing: -1px;
  line-height: 1;
}
.stats-bar__lbl {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: 56px 0 100px;
  color: var(--white);
  background: linear-gradient(135deg, #050E1F 0%, #0A1F3D 50%, #1B3A6B 100%);
  overflow: hidden;
}
.page-hero--calendar { background: linear-gradient(135deg, #050E1F 0%, #1B5E94 80%); }
.page-hero--venues { background: linear-gradient(135deg, #050E1F 0%, #7B2CBF 90%); }
.page-hero--teams { background: linear-gradient(135deg, #050E1F 0%, #C68900 90%); }
.page-hero--live { background: linear-gradient(135deg, #050E1F 0%, #8E1E29 60%, #E63946 130%); }
.page-hero--results { background: linear-gradient(135deg, #050E1F 0%, #0A1F3D 50%, #C68900 130%); }
.page-hero--rules { background: linear-gradient(135deg, #050E1F 0%, #1B5E94 80%); }
.page-hero--sponsor { background: linear-gradient(135deg, #050E1F 0%, #C68900 60%, #FFB800 130%); }
.page-hero--info { background: linear-gradient(135deg, #050E1F 0%, #1B3A6B 100%); }

.page-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Use the same blob/grid utilities */
.hero-home__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 85%);
}
.hero-home__blob {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
}
.hero-home__blob--gold { background: #FFB800; top: -160px; right: -100px; }
.hero-home__blob--red { background: #E63946; bottom: -180px; left: -120px; }
.hero-home__blob--blue { background: #2E84C7; top: 30%; right: 35%; width: 280px; height: 280px; opacity: 0.3; }

.hero-home__cut {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}
.hero-home__cut svg { width: 100%; height: 60px; display: block; }

.page-hero__inner { position: relative; z-index: 1; }
.page-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}
.page-hero__pill--gold {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: var(--sh-glow-gold);
  border: 0;
}
.page-hero__title {
  font-family: var(--f-mega);
  font-size: clamp(36px, 7vw, 64px);
  line-height: 0.95;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--white);
}
.accent-gold {
  background: linear-gradient(135deg, #FFE9A6 0%, #FFB800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero__sub {
  max-width: 600px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 28px;
}
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: transform .15s, box-shadow .15s, background .2s;
  cursor: pointer;
  font-family: inherit;
}
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--primary {
  background: var(--grad-red);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(230, 57, 70, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn--ghost-dark { background: var(--line-2); color: var(--ink-2); }
.btn--ghost-dark:hover { background: var(--line); }
.btn--text { background: transparent; color: var(--ink-2); padding: 8px 14px; }
.btn--text:hover { background: var(--line-2); }
.btn--live {
  background: var(--grad-live);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.4);
}
.btn--live:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(230, 57, 70, 0.55); }
.btn--sm { padding: 10px 18px; font-size: 13px; border-radius: 999px; }

/* ============================================
   EDITORIAL CARDS (refined, less cartoonish)
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  min-height: 200px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: rgba(10, 31, 61, 0.15);
}
.card__accent {
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent, var(--navy));
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent, var(--navy)) 12%, transparent);
  color: var(--accent, var(--navy));
}
.card__body { flex: 1; }
.card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.card__arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--line-2);
  color: var(--ink);
  transition: background .2s, transform .2s;
}
.card:hover .card__arrow {
  background: var(--accent, var(--navy));
  color: var(--white);
  transform: translateX(3px);
}
.card--live {
  border-color: rgba(230, 57, 70, 0.2);
  background: linear-gradient(135deg, #FFF5F6 0%, #FFFFFF 60%);
}

/* ============================================
   DAYS SLIM
   ============================================ */
.days-slim {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) { .days-slim { grid-template-columns: 1fr 1fr; } }
.day-slim {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  box-shadow: var(--sh-sm);
  transition: transform .25s, box-shadow .25s;
}
.day-slim:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.day-slim__date {
  text-align: center;
  background: var(--grad-card);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--f-display);
  min-width: 96px;
  display: grid;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.day-slim__date::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 184, 0, 0.25));
  pointer-events: none;
}
.day-slim--alt .day-slim__date { background: var(--grad-red); }
.day-slim__day { font-size: 12px; letter-spacing: 1.5px; opacity: 0.85; position: relative; z-index: 1; }
.day-slim__num { font-size: 42px; line-height: 1; margin: 2px 0; position: relative; z-index: 1; }
.day-slim__month { font-size: 10px; letter-spacing: 1.2px; opacity: 0.85; position: relative; z-index: 1; }
.day-slim__body h3 {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}
.day-slim__body p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.day-slim__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.3px;
  transition: gap .2s;
}
.day-slim__link:hover { gap: 10px; color: var(--red-dark); }

/* ============================================
   MAIN SPONSOR FEATURE
   ============================================ */
.main-sponsor-feature {
  padding: 60px 0;
  background: var(--bg);
}
.main-sponsor-feature__card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: var(--sh-lg);
}
@media (min-width: 880px) {
  .main-sponsor-feature__card { grid-template-columns: 1.2fr 1fr; }
}
.main-sponsor-feature__text {
  padding: 40px 36px;
}
@media (min-width: 880px) {
  .main-sponsor-feature__text { padding: 48px 44px; }
}
.main-sponsor-feature__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.main-sponsor-feature__title {
  font-family: var(--f-mega);
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--ink);
}
.main-sponsor-feature__text p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 22px;
}
.main-sponsor-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.2px;
  padding-bottom: 4px;
  border-bottom: 2px solid rgba(230, 57, 70, 0.3);
  transition: gap .2s, border-color .2s;
}
.main-sponsor-feature__link:hover { gap: 12px; border-color: var(--red); }

.main-sponsor-feature__logo {
  background: linear-gradient(135deg, #FAF8F3 0%, #FFFFFF 100%);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.main-sponsor-feature__logo::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.18) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.main-sponsor-feature__logo img {
  position: relative;
  z-index: 1;
  max-height: 120px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

/* ============================================
   MY TEAM PANEL (unchanged structure)
   ============================================ */
.my-team { position: relative; margin-top: -40px; z-index: 5; }
.my-team__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.my-team__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-gold);
}
.my-team__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.my-team__title-wrap { min-width: 0; }
.my-team__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--red);
}
.my-team__eyebrow svg { color: var(--gold); }
.my-team__title {
  font-size: 26px;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -0.4px;
  line-height: 1.15;
}
.my-team__girone {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  background: var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--ink-2);
}
.my-team__change {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.my-team__change:hover { background: var(--line-2); }
.my-team__next { margin-top: 18px; }
.next-match {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF9E7 0%, #FFFFFF 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--r-md);
}
.next-match__time {
  text-align: center;
  padding: 12px 14px;
  background: var(--grad-card);
  color: var(--white);
  border-radius: var(--r-sm);
  min-width: 76px;
}
.next-match__time strong { display: block; font-family: var(--f-display); font-size: 26px; line-height: 1; }
.next-match__time small { display: block; font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 5px; opacity: 0.85; }
.next-match__main { min-width: 0; }
.next-match__teams {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.next-match__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-shrink: 0;
}
.next-match__main strong { font-size: 17px; font-weight: 800; display: block; line-height: 1.2; }
.next-match__main span { font-size: 13px; color: var(--muted); display: block; margin-top: 4px; }
.next-match__venue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.next-match__venue:hover { background: var(--navy-2); }
.next-match--none {
  grid-template-columns: 1fr;
  text-align: center;
  background: var(--line-2);
  border: 1px dashed var(--muted-2);
  color: var(--muted);
  padding: 22px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(27, 94, 148, 0.04), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(230, 57, 70, 0.04), transparent 50%);
  pointer-events: none;
}
.section--sm { padding: 40px 0 60px; }
.section__head {
  text-align: center;
  margin-bottom: 44px;
  max-width: 720px;
  margin-inline: auto;
}
.section__head--light .section__title { color: var(--white); }
.section__head--light .section__sub { color: rgba(255, 255, 255, 0.7); }
.section__eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 14px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 999px;
  margin-bottom: 16px;
}
.section__title {
  font-family: var(--f-mega);
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1;
}
.section__sub { font-size: 17px; color: var(--muted); line-height: 1.6; }

/* ============================================
   FILTER BAR + SCHEDULE
   ============================================ */
.filter-bar {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--sh-sm);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filter-bar__row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .filter-bar__row { grid-template-columns: 1fr 1fr; } }
.filter { display: flex; flex-direction: column; gap: 7px; }
.filter label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.filter select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--line-2) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%236A7991" d="M2 4l4 4 4-4"/></svg>') no-repeat right 14px center;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 38px 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
}
.filter select:focus { border-color: var(--blue); background-color: var(--white); outline: none; }
.day-tabs { display: flex; gap: 6px; padding: 4px; background: var(--line-2); border-radius: 999px; }
.day-tab {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.day-tab.is-active { background: var(--white); color: var(--navy); box-shadow: var(--sh-sm); }
.filter-bar__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.schedule { display: flex; flex-direction: column; gap: 36px; }
.day-block { display: flex; flex-direction: column; gap: 22px; }
.day-block__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}
.day-block__header h3 { font-family: var(--f-display); font-size: 26px; letter-spacing: 1px; }
.day-block__header span {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  background: var(--white);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.phase-block { display: flex; flex-direction: column; gap: 14px; }
.phase-block__title {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 14px;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 999px;
}
.match-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .match-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .match-grid { grid-template-columns: 1fr 1fr 1fr; } }
.match {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.match:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.match.is-mine {
  border-color: var(--gold);
  background: linear-gradient(135deg, #FFFDF6 0%, #FFFFFF 100%);
  box-shadow: 0 0 0 1px var(--gold), var(--sh-sm);
}
.match__num {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted-2);
}
.match__time {
  text-align: center;
  padding: 10px 6px;
  background: var(--line-2);
  border-radius: 12px;
}
.match.is-mine .match__time { background: var(--grad-gold); }
.match__time strong { display: block; font-family: var(--f-display); font-size: 24px; line-height: 1; letter-spacing: 0.5px; color: var(--navy); }
.match__time span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.match.is-mine .match__time span { color: var(--navy); opacity: 0.8; }
.match__main { min-width: 0; }
.match__teams {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  padding-right: 30px;
}
.match__teams .vs {
  font-family: var(--f-display);
  font-size: 11px;
  color: var(--red);
  background: rgba(230, 57, 70, 0.1);
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 1.5px;
}
.match__team-me { color: var(--red); font-weight: 800; }
.match__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.tag--girone { background: var(--line-2); color: var(--ink-2); }
.tag--final {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.08));
  color: var(--gold-deep);
  font-weight: 800;
}
.tag--venue { background: var(--navy); color: var(--white); }
.tag--venue:hover { background: var(--navy-2); }
.match--final-gold {
  background: linear-gradient(135deg, #FFF6E0 0%, #FFE9B0 100%);
  border-color: var(--gold);
}
.match--final-gold .match__time { background: var(--grad-gold); }
.schedule__empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px dashed var(--line);
  color: var(--muted);
}
.schedule__empty p strong { color: var(--ink); font-size: 16px; }
.schedule-hint {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(27, 94, 148, 0.08), rgba(27, 94, 148, 0.02));
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.schedule-hint svg { color: var(--blue); flex-shrink: 0; margin-top: 1px; }

/* ============================================
   PALESTRE
   ============================================ */
.zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.zone-chip {
  padding: 9px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
}
.zone-chip:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.zone-chip.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: var(--sh-md);
}
.venues { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .venues { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .venues { grid-template-columns: repeat(3, 1fr); } }
.venue {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--sh-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.venue:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.venue::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--venue-color, var(--navy));
}
.venue::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--venue-color, var(--navy));
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
}
.venue__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.venue__code {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 1.4px;
  background: var(--venue-color, var(--navy));
  color: var(--white);
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: var(--sh-sm);
}
.venue__final-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: rgba(255, 184, 0, 0.18);
  padding: 5px 10px;
  border-radius: 999px;
}
.venue__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.venue__zone {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.venue__zone svg { color: var(--venue-color, var(--navy)); }
.venue__address {
  flex: 1;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 14px 16px;
  background: var(--line-2);
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.venue__address strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 14px; }
.venue__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.venue__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
}
.venue__btn--primary {
  background: var(--grad-red);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(230, 57, 70, 0.28);
}
.venue__btn--primary:hover { transform: translateY(-2px); }
.venue__btn--ghost { background: var(--line-2); color: var(--ink-2); }
.venue__btn--ghost:hover { background: var(--line); }
.venue__matches {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.venue__matches strong { color: var(--ink); font-size: 14px; }

/* ============================================
   PUNTO RISTORO
   ============================================ */
.ristoro {
  max-width: 640px;
  margin: 0 auto;
}
.ristoro__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.ristoro__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-gold);
}
.ristoro__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.ristoro__icon {
  font-size: 32px;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--line-2);
  border-radius: 14px;
  flex-shrink: 0;
}
.ristoro__head strong {
  display: block;
  font-family: "Archivo Black", Inter, sans-serif;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.ristoro__head span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.ristoro__address {
  background: var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink-2);
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 16px;
}
.ristoro__address strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 3px;
}
.ristoro__meals {
  margin-bottom: 18px;
}
.ristoro__meals h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px 0;
}
.ristoro__meals ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ristoro__meals li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--line-2);
  border-radius: 11px;
  border-left: 3px solid var(--gold);
}
.ristoro__day {
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--navy);
  font-weight: 700;
}
.ristoro__meal {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}
.ristoro__meal small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.ristoro__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ============================================
   GIRONI
   ============================================ */
.gironi { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .gironi { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gironi { grid-template-columns: repeat(3, 1fr); } }
.girone {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}
.girone:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.girone__badge {
  position: absolute;
  top: -10px;
  right: 14px;
  font-family: var(--f-mega);
  font-size: 90px;
  line-height: 1;
  color: var(--girone-color, var(--navy));
  opacity: 0.08;
  letter-spacing: -2px;
  pointer-events: none;
}
.girone__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.girone__letter {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--girone-color, var(--navy));
  color: var(--white);
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 1px;
  box-shadow: var(--sh-sm);
}
.girone__label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.girone__teams { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--line-2);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  transition: background .15s, transform .15s, border-color .15s, box-shadow .15s;
}
.team-row:hover {
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--sh-sm);
  transform: translateX(2px);
}
.team-row.is-mine {
  background: linear-gradient(135deg, #FFF6E0 0%, #FFE9B0 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.2);
}
.team-row__logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-shrink: 0;
  padding: 4px;
  overflow: hidden;
  transition: border-color .15s;
}
.team-row__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.team-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--girone-color, var(--navy)); flex-shrink: 0; }
.team-row:hover .team-row__logo { border-color: var(--girone-color, var(--navy)); }
.team-row.is-mine .team-row__logo { border-color: var(--gold); background: #FFFBEC; }
.team-row__name { flex: 1; min-width: 0; line-height: 1.25; }
.team-row__region {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

/* ============================================
   RULES
   ============================================ */
.rules { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 880px) { .rules { grid-template-columns: repeat(3, 1fr); } }
.rule {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}
.rule:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.rule::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.06), transparent 70%);
  pointer-events: none;
}
.rule__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.14), rgba(230, 57, 70, 0.03));
  font-size: 26px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.rule h3 {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.rule ul { display: flex; flex-direction: column; gap: 11px; position: relative; z-index: 1; }
.rule li { font-size: 14px; color: var(--ink-2); line-height: 1.55; padding-left: 20px; position: relative; }
.rule li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* ============================================
   INFO CARDS
   ============================================ */
.info-cards-light {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .info-cards-light { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .info-cards-light { grid-template-columns: repeat(4, 1fr); } }
.info-cards-light .info-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.info-cards-light .info-card h3 { color: var(--ink); }
.info-cards-light .info-card p { color: var(--ink-2); }
.info-cards-light .info-card__sub { color: var(--red); }
.info-cards-light .info-card__address {
  background: var(--line-2);
  color: var(--ink);
  border: 0;
}
.info-cards-light .info-card__link { color: var(--red); border-bottom: 1px solid rgba(230, 57, 70, 0.3); }
.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.info-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 184, 0, 0.4); }
.info-cards-light .info-card:hover { background: var(--white); box-shadow: var(--sh-md); border-color: rgba(230, 57, 70, 0.3); }
.info-card__icon { font-size: 36px; margin-bottom: 14px; line-height: 1; }
.info-card h3 { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.6px; color: var(--white); margin-bottom: 4px; }
.info-card__sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.info-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.info-card__address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 14px;
}
.info-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 184, 0, 0.3);
  align-self: flex-start;
}
.info-card__link:hover { gap: 10px; }

/* Reuse cards on info page */
.quick-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .quick-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .quick-cards { grid-template-columns: repeat(3, 1fr); } }
.quick-cards--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .quick-cards--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .quick-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.quick-card {
  position: relative;
  display: block;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  color: var(--white);
  overflow: hidden;
  min-height: 200px;
  box-shadow: var(--sh-md);
}
.quick-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--sh-xl); }
.quick-card--blue { background: linear-gradient(135deg, #2E84C7, #1B5E94); }
.quick-card--purple { background: linear-gradient(135deg, #9D4EDD, #7B2CBF); }
.quick-card--gold { background: var(--grad-gold); color: var(--navy); }
.quick-card--red { background: var(--grad-live); }
.quick-card--green { background: linear-gradient(135deg, #14C39C, #06A77D); }
.quick-card--navy { background: var(--grad-card); }
.quick-card__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
}
.quick-card--gold .quick-card__icon {
  background: rgba(10, 31, 61, 0.12);
  border: 1px solid rgba(10, 31, 61, 0.15);
}
.quick-card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.8px;
  color: inherit;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quick-card p { font-size: 14px; color: inherit; opacity: 0.92; line-height: 1.5; }
.quick-card__arrow {
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ============================================
   SPONSOR PAGE
   ============================================ */
.sponsor-main {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 40px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF8F3 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.sponsor-main::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.18), transparent 70%);
  pointer-events: none;
}
.sponsor-main img {
  height: clamp(80px, 14vw, 140px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.08));
}

.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
.logo-grid--sm { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .logo-grid--sm { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .logo-grid--sm { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .logo-grid--sm { grid-template-columns: repeat(6, 1fr); } }
.logo-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 130px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.logo-cell:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: rgba(255, 184, 0, 0.3); }
.logo-cell img {
  max-height: 70px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.15);
}
.logo-cell:hover img { filter: grayscale(0); }
.logo-cell span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-align: center;
}
.logo-grid--sm .logo-cell { min-height: 110px; padding: 18px 14px; }
.logo-grid--sm .logo-cell img { max-height: 55px; }

/* ============================================
   FRAME (iframe wrapper)
   ============================================ */
.frame-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--grad-card);
  color: var(--white);
  flex-wrap: wrap;
}
.frame-bar__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.frame-bar__title svg { color: var(--gold); }
.frame-bar__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}
.frame-wrap iframe { width: 100%; border: 0; display: block; background: var(--white); min-height: 800px; }
.frame-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.frame-foot p { max-width: 640px; }

/* ============================================
   FOOTER (refined main sponsor block)
   ============================================ */
.footer {
  background: linear-gradient(180deg, #050E1F 0%, #03070F 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -100px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.08), transparent 70%);
  pointer-events: none;
}
.footer__brand-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}
@media (min-width: 760px) {
  .footer__brand-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 10px rgba(255, 184, 0, 0.2));
}
.footer__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer__brand strong {
  display: block;
  color: var(--white);
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.8px;
}
.footer__brand p { font-size: 13px; margin-top: 4px; color: rgba(255, 255, 255, 0.55); }

/* PROPER sponsor card in footer - white background, full color logo */
.footer__sponsor-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(255, 184, 0, 0.18);
  position: relative;
}
.footer__sponsor-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.4), transparent 60%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.footer__sponsor-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.footer__sponsor-card img {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.footer__links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  transition: color .15s;
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  padding-top: 24px;
  position: relative;
}
.footer__credit {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 8px;
  letter-spacing: 0.3px;
  position: relative;
}
.footer__credit a {
  color: rgba(255, 184, 0, 0.7);
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: color .15s;
  border-bottom: 1px dotted rgba(255, 184, 0, 0.3);
  padding-bottom: 1px;
}
.footer__credit a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Backward compat for footer__top (sub-pages still use it) */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
}
@media (min-width: 720px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer__sponsor {
  /* Replace inversion with a white pill */
  background: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  max-height: 56px;
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.15);
}

/* ============================================
   BOTTOM NAV (mobile)
   ============================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  text-decoration: none;
}
.bottom-nav__item:hover, .bottom-nav__item.is-active { color: var(--navy); background: var(--line-2); }
.bottom-nav__item--live { color: var(--red); }
.bottom-nav__item--live svg { color: var(--red); }
.bottom-nav__item svg { color: currentColor; }
.bottom-nav__img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}
@media (min-width: 1000px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* ============================================
   MODAL
   ============================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 61, 0.6);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: var(--white);
  border-radius: 28px 28px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s ease;
  box-shadow: var(--sh-xl);
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal__panel { border-radius: 28px; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0 }
  to { transform: translateY(0); opacity: 1 }
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 24px 24px 14px; }
.modal__head h2 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal__head p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--line-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.modal__body { padding: 0 24px 18px; overflow-y: auto; flex: 1; }
.modal__search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--line-2);
  border: 1px solid transparent;
  border-radius: 14px;
  margin-bottom: 16px;
}
.modal__search-wrap:focus-within { border-color: var(--blue); background: var(--white); }
.modal__search-wrap svg { color: var(--muted); }
.modal__search { flex: 1; border: 0; background: transparent; font-size: 15px; font-weight: 500; font-family: inherit; outline: none; }
.modal__teams { display: flex; flex-direction: column; gap: 6px; }
.modal-team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.modal-team:hover { border-color: var(--blue); transform: translateX(3px); }
.modal-team.is-selected { border-color: var(--gold); background: linear-gradient(135deg, #FFF6E0 0%, #FFFFFF 100%); }
.modal-team__logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.modal-team__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.modal-team.is-selected .modal-team__logo { border-color: var(--gold); background: #FFFBEC; }
.modal-team__girone {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--white);
  background: var(--girone-color, var(--navy));
  flex-shrink: 0;
}
.modal-team__info { min-width: 0; }
.modal-team__name { display: block; font-weight: 800; font-size: 14px; color: var(--ink); }
.modal-team__girone-label { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.modal__foot {
  padding: 16px 24px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

/* ============================================
   SALUTI (greetings page)
   ============================================ */
.greeting {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.greeting::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: var(--grad-red);
}
.greeting--reverse::before { background: var(--grad-gold); }
@media (min-width: 880px) {
  .greeting {
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px;
  }
  .greeting--reverse { grid-template-columns: 1fr 280px; }
  .greeting--reverse .greeting__person { order: 2; }
}
.greeting__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.greeting__person img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 14px 36px rgba(10, 31, 61, 0.18);
}
.greeting--reverse .greeting__person img {
  border-color: var(--gold-2);
  box-shadow: 0 14px 36px rgba(255, 184, 0, 0.28);
}
.greeting__person-info strong {
  display: block;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.greeting__person-info span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 4px;
}
.greeting--reverse .greeting__person-info span { color: var(--gold-deep); }
.greeting__content { position: relative; }
.greeting__quote-icon {
  position: absolute;
  top: -8px;
  left: -8px;
  color: var(--gold);
  opacity: 0.3;
  pointer-events: none;
}
.greeting__title {
  font-family: var(--f-mega);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 18px;
  padding-left: 8px;
}
.greeting__content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 14px;
  padding-left: 8px;
}
.greeting__content p em { color: var(--ink); font-style: italic; }
.greeting__closing {
  font-weight: 700;
  color: var(--ink) !important;
  font-size: 17px !important;
}
.greeting__signature {
  font-family: var(--f-display);
  font-size: 20px !important;
  letter-spacing: 0.8px;
  color: var(--red) !important;
  margin-top: 8px;
  font-weight: 400;
}
.greeting--reverse .greeting__signature { color: var(--gold-deep) !important; }

/* Storia */
.story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .story { grid-template-columns: 1fr 1fr; } }
.story__block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.story__block:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.story__year {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  padding: 6px 14px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 999px;
  margin-bottom: 14px;
}
.story__block p { font-size: 15px; color: var(--ink-2); line-height: 1.6; }

.story-foot {
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), rgba(255, 184, 0, 0.02));
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.story-foot p { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 700px; }

/* ============================================
   ITINERARI (Treviso tour)
   ============================================ */
.itinerary {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.itinerary__stop {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.itinerary__stop:hover {
  transform: translateX(4px);
  box-shadow: var(--sh-md);
  border-color: rgba(255, 184, 0, 0.4);
}
.itinerary__num {
  font-family: var(--f-mega);
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -2px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.12), transparent);
  border-radius: 14px;
  padding: 16px 8px;
  align-self: start;
}
.itinerary__body { min-width: 0; }
.itinerary__body h3 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-bottom: 4px;
}
.itinerary__lede {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.itinerary__body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.itinerary__map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  padding: 8px 14px;
  background: rgba(27, 94, 148, 0.08);
  border-radius: 999px;
  transition: background .15s, transform .15s;
}
.itinerary__map:hover { background: rgba(27, 94, 148, 0.16); transform: translateY(-1px); }

.itinerary-foot {
  margin-top: 28px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(6, 167, 125, 0.08), rgba(6, 167, 125, 0.02));
  border-left: 3px solid var(--green);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.itinerary-foot svg { color: var(--green); margin-top: 2px; flex-shrink: 0; }
.itinerary-foot p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* ============================================
   PDF DOWNLOAD button
   ============================================ */
.btn--pdf {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.btn--pdf:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--sh-glow-gold);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-login {
  min-height: calc(100vh - var(--topbar-h) - 200px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background:
    radial-gradient(800px 600px at 50% 30%, rgba(27, 94, 148, 0.06), transparent 70%),
    var(--bg);
}
.admin-login__card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.admin-login__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-red);
}
.admin-login__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad-card);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-md);
}
.admin-login h1 {
  font-family: var(--f-mega);
  font-size: 26px;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.admin-login p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.admin-login__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--line-2);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  outline: none;
  transition: border .15s, background .15s;
}
.admin-login__input:focus { border-color: var(--blue); background: var(--white); }
.admin-login__btn { width: 100%; padding: 14px 22px; }
.admin-login__error {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
}
.admin-login__hint {
  font-size: 12px !important;
  color: var(--muted) !important;
  margin: 22px 0 0 !important;
  line-height: 1.5;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.admin-login__hint code {
  background: var(--line-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
}

/* Admin dashboard hero */
.admin-hero {
  background: linear-gradient(135deg, #0A1F3D 0%, #1B3A6B 100%);
  color: var(--white);
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
}
.admin-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.18), transparent 70%);
  pointer-events: none;
}
.admin-hero__title {
  font-family: var(--f-mega);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -1px;
  color: var(--white);
  margin: 14px 0 10px;
}
.admin-hero__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 26px;
}
.admin-hero__sub code {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 13px;
  font-family: monospace;
  color: var(--gold-2);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.admin-toolbar .btn {
  font-size: 13px;
  padding: 11px 16px;
}
.admin-toolbar .btn--ghost-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.admin-toolbar .btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.18); }

.admin-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.admin-filter {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.admin-filter:hover { background: rgba(255, 255, 255, 0.16); }
.admin-filter.is-active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-stat {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
}
.admin-stat strong {
  color: var(--white);
  font-weight: 800;
  margin-right: 4px;
}
.admin-stat--accent { background: rgba(255, 184, 0, 0.18); border-color: rgba(255, 184, 0, 0.35); color: var(--gold-2); }
.admin-stat--accent strong { color: var(--gold-2); }
.admin-stat--warn {
  background: rgba(230, 57, 70, 0.2);
  border-color: rgba(230, 57, 70, 0.4);
  color: #FFD0D5;
}

/* Admin body */
.admin-body { padding: 40px 0 60px; background: var(--bg); }
.admin-block {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  padding: 22px;
  margin-bottom: 22px;
}
.admin-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}
.admin-block__head h2 {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.8px;
  color: var(--navy);
}
.admin-block__head span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--red);
  padding: 4px 10px;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 999px;
}
.admin-block__list { display: flex; flex-direction: column; gap: 14px; }

.admin-row {
  padding: 14px 16px;
  background: var(--line-2);
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.admin-row.has-placeholder { background: linear-gradient(135deg, #FFF6E0 0%, #FFFFFF 100%); border-color: rgba(255, 184, 0, 0.45); }
.admin-row.is-modified {
  background: linear-gradient(135deg, #ECF7F3 0%, #FFFFFF 100%);
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(6, 167, 125, 0.12);
}
.admin-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.admin-row__time {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--navy);
  background: var(--white);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.admin-row__num, .admin-row__venue, .admin-row__girone {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-transform: uppercase;
}
.admin-row__girone { background: var(--navy); color: var(--white); border-color: var(--navy); }

.admin-row__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
}
@media (max-width: 640px) {
  .admin-row__teams { grid-template-columns: 1fr; }
  .admin-vs { display: none; }
}
.admin-team { min-width: 0; }
.admin-team label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.admin-team__warn {
  color: var(--gold-deep);
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0.2px;
}
.admin-team select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%236A7991" d="M2 4l4 4 4-4"/></svg>') no-repeat right 14px center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 38px 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.admin-team select:focus { border-color: var(--blue); outline: none; }
.admin-team__current {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2px;
}
.admin-team__current strong { color: var(--ink); font-weight: 700; }

.admin-vs {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--red);
  background: rgba(230, 57, 70, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 2px;
  align-self: center;
  margin-top: 18px;
}

.admin-row__reset {
  margin-top: 12px;
  background: var(--line-2);
  border: 0;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  cursor: pointer;
}
.admin-row__reset:hover { background: rgba(230, 57, 70, 0.1); }

.admin-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}

/* Cloud status badge in admin */
.admin-cloud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
  line-height: 1.4;
}
.admin-cloud-badge strong { font-weight: 800; }
.admin-cloud-badge code {
  background: rgba(0,0,0,0.18);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
}
.admin-cloud-badge--ok {
  background: rgba(6, 167, 125, 0.18);
  color: #B4F0DC;
  border: 1px solid rgba(6, 167, 125, 0.4);
}
.admin-cloud-badge--warn {
  background: rgba(255, 184, 0, 0.18);
  color: #FFE7A0;
  border: 1px solid rgba(255, 184, 0, 0.4);
}
.admin-cloud-badge--off {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Tabs (placeholders / matches) */
.admin-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: var(--line-2);
  border-radius: 14px;
  margin-bottom: 22px;
  max-width: 460px;
}
.admin-tab {
  flex: 1;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.admin-tab.is-active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--sh-sm);
}

.admin-intro {
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(255, 184, 0, 0.02));
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.admin-intro code {
  background: var(--white);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 13px;
  font-family: monospace;
  border: 1px solid var(--line);
  color: var(--navy);
}

/* Placeholder resolver groups */
.ph-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  margin-bottom: 18px;
  overflow: hidden;
}
.ph-group__head {
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(27, 94, 148, 0.06), transparent);
  border-bottom: 1px solid var(--line);
}
.ph-group__head h3 {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--navy);
}
.ph-group__list { padding: 14px; display: flex; flex-direction: column; gap: 8px; }

.ph-row {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--line-2);
  border: 1px solid transparent;
  border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.ph-row.is-modified {
  background: linear-gradient(135deg, #ECF7F3 0%, #FFFFFF 100%);
  border-color: var(--green);
}
@media (max-width: 640px) {
  .ph-row { grid-template-columns: 1fr; gap: 8px; }
  .ph-row__arrow { display: none; }
}
.ph-row__placeholder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ph-row__badge {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.8px;
  color: var(--white);
  background: var(--navy);
  padding: 5px 12px;
  border-radius: 8px;
  align-self: flex-start;
}
.ph-row.is-modified .ph-row__badge { background: var(--green); }
.ph-row__count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.ph-row__arrow {
  font-size: 22px;
  color: var(--muted-2);
  text-align: center;
  font-weight: 300;
}
.ph-row__select { display: flex; gap: 6px; align-items: center; }
.ph-row__select select {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%236A7991" d="M2 4l4 4 4-4"/></svg>') no-repeat right 14px center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 38px 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.ph-row__select select:focus { border-color: var(--blue); outline: none; }
.ph-row__clear {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.ph-row__clear:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* Match editor refinements */
.admin-team label small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--muted-2);
  margin-top: 2px;
}

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--sh-xl);
  z-index: 200;
  animation: toastIn .25s ease;
}
.admin-toast svg { color: var(--green); }
.admin-toast[hidden] { display: none; }
@keyframes toastIn {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   Disabilita effetti pesanti su mobile per
   migliorare scrolling, fluidità e batteria.
   ============================================ */
@media (max-width: 880px) {
  /* Backdrop-filter è notoriamente lentissimo su mobile.
     Lo sostituiamo con uno sfondo solido leggermente translucido.
     IMPORTANTE: escludere la topbar--hero (home) perché è volutamente
     trasparente sopra il cinema scuro — altrimenti diventa bianco-su-bianco. */
  .topbar:not(.topbar--hero),
  .topbar--sub,
  .drawer__panel,
  .drawer__backdrop,
  .bottom-nav,
  .modal,
  .modal__panel,
  .admin-modal,
  .admin-modal__panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .topbar:not(.topbar--hero),
  .topbar--sub {
    background: rgba(255, 255, 255, 0.96);
  }
  /* Sulla home: rendiamo la topbar leggermente più dark da subito
     (gradient sottile blu→trasparente) così il testo bianco è sempre
     leggibile anche se per qualche frame il cinema non è ancora dipinto
     dietro. Quando l'utente scrolla, il rule .is-scrolled prende il
     sopravvento con il solido. */
  .topbar--hero {
    background: linear-gradient(180deg,
      rgba(5, 14, 31, 0.55) 0%,
      rgba(5, 14, 31, 0.20) 70%,
      transparent 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .topbar--hero.is-scrolled {
    background: rgba(10, 31, 61, 0.92) !important;
  }
  .bottom-nav {
    background: rgba(255, 255, 255, 0.98);
  }

  /* Blob hero: riduciamo blur e dimensioni — il blur 100-120px
     è la causa principale del jank su iPhone medio-bassi. */
  .hero-home__blob {
    filter: blur(60px);
    opacity: 0.35;
  }
  .hero-home__blob--gold {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -80px;
  }
  .hero-home__blob--red {
    width: 320px;
    height: 320px;
    bottom: -120px;
    left: -80px;
  }
  .hero-home__blob--blue {
    display: none;
  }

  /* Animazioni "decorative" infinite: spegnerle su mobile.
     L'utente non le nota e il GPU/battery ringrazia. */
  .hero__ball,
  .cinema__athlete,
  .hero-home__athlete {
    animation: none !important;
  }

  /* Ombre più "soft": le ombre con grandi blur radius costano. */
  .card,
  .venue,
  .ristoro__card,
  .stat-card,
  .gironi__card,
  .squad-card {
    box-shadow: 0 2px 8px rgba(10, 31, 61, 0.08);
  }

  /* Filtri/blur sui sub-hero — riduzione drastica. */
  .page-hero__bg .hero-home__blob {
    filter: blur(50px);
  }

  /* Riduciamo gradiente di sfondo body (meno repaint). */
  body {
    background-attachment: scroll !important;
  }

  /* Hint al browser per usare il compositor su elementi animati. */
  .live-dot,
  .bottom-nav__item--live {
    will-change: opacity;
  }
}

/* Connessioni lente / data-saver: stesso trattamento. */
@media (prefers-reduced-data: reduce) {
  .hero-home__blob {
    display: none;
  }
}
