/* ============================================================
   Torneo Città di Molveno - mobile-first
   Palette estratta dal logo
   ============================================================ */

:root {
  /* Palette logo */
  --navy:        #14384D;
  --navy-deep:   #0E2330;
  --navy-soft:   #2A546B;
  --verde:       #3DA76B;
  --verde-scuro: #2F8A55;
  --verde-chiaro:#7FE89A;
  --giallo:      #F0E5A0;
  --azzurro:     #7BCDE8;
  --azzurro-scuro: #4FA3C2;

  /* Neutri */
  --bg:          #F4F7F9;
  --card:        #FFFFFF;
  --text:        #14384D;
  --text-soft:   #5A7384;
  --border:      #E4ECF0;
  --shadow:      0 2px 10px rgba(20, 56, 77, 0.06), 0 1px 3px rgba(20, 56, 77, 0.04);
  --shadow-lg:   0 8px 28px rgba(20, 56, 77, 0.12), 0 2px 6px rgba(20, 56, 77, 0.06);
  --shadow-xl:   0 16px 40px rgba(20, 56, 77, 0.18);

  /* Stati */
  --success:     #3DA76B;
  --warning:     #E8A93D;
  --danger:      #D85555;
  --info:        #4FA3C2;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   22px;

  /* Layout */
  --nav-h:       68px;
  --header-h:    72px;
  --max-w:       560px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

a { color: var(--azzurro-scuro); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ============ HEADER ============ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(135deg, #0E2330 0%, #14384D 60%, #1F4F65 100%);
  color: white;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(20, 56, 77, 0.2);
}
.app-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #3DA76B 30%, #7BCDE8 70%, transparent 100%);
  opacity: 0.65;
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  flex: 1;
  min-width: 0;
}
.app-header .brand:hover { text-decoration: none; }
.app-header .logo {
  width: 46px;
  height: 46px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 16px rgba(127, 232, 154, 0.25);
}
.app-header .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.app-header .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.app-header .brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #FFFFFF 0%, #B9E8CE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header .brand-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}
.app-header .brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(127, 232, 154, 0.16);
  border: 1px solid rgba(127, 232, 154, 0.3);
  padding: 3px 9px;
  border-radius: 8px;
  text-transform: uppercase;
}
.app-header .brand-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verde-chiaro);
  box-shadow: 0 0 6px var(--verde-chiaro);
  animation: pulse 2s infinite;
}

/* Hamburger */
.hamburger {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ DRAWER ============ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 84%;
  max-width: 320px;
  background: linear-gradient(160deg, #1A3A4A 0%, #0E2632 100%);
  color: white;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 201;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drawer-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
}
.drawer-close {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}
.drawer-item:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: white;
}
.drawer-ico {
  font-size: 22px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.drawer-ico-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.drawer-ico-svg svg {
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  display: block;
}
.drawer-item-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.drawer-item-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-top: 2px;
}
.drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 14px;
}
.drawer-item-admin {
  background: rgba(127, 232, 154, 0.08);
  border: 1px solid rgba(127, 232, 154, 0.18);
}
.drawer-item-admin:hover {
  background: rgba(127, 232, 154, 0.15);
}
.drawer-foot {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============ TUTORIAL ============ */
.tutorial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 56, 77, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tutorial-overlay.show {
  display: flex;
  opacity: 1;
}
.tutorial-card {
  background: white;
  border-radius: 22px;
  width: 100%;
  max-width: 380px;
  max-height: 88vh;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tut-skip {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tut-skip:hover { color: var(--navy); }
.tut-steps {
  flex: 1;
  overflow-y: auto;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}
.tut-step {
  display: none;
  width: 100%;
  text-align: center;
  animation: tutFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.tut-step.active { display: block; }
@keyframes tutFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tut-emoji {
  font-size: 52px;
  margin-bottom: 12px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(20,56,77,0.15));
}
.tut-step h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
  margin: 0 0 10px;
}
.tut-step p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 8px;
}
.tut-step b { color: var(--navy); }

.tut-nav-list, .tut-install {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  text-align: left;
}
.tut-nav-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.tut-nav-list li:last-child { border-bottom: none; }
.tut-nav-list .tn-ico {
  font-size: 22px;
  text-align: center;
  line-height: 1;
}
.tut-nav-list .tn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tut-nav-list .tn-text b {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.1px;
}
.tut-nav-list .tn-text span {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.3;
}

.tut-install {
  counter-reset: step;
}
.tut-install li {
  padding: 10px 0 10px 38px;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
  position: relative;
}
.tut-install li:last-child { border-bottom: none; }
.tut-install li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tut-icon-share {
  display: inline-block;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 13px;
  vertical-align: middle;
}
.tut-mini {
  display: inline-block;
  background: var(--navy);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  text-align: center;
  line-height: 22px;
  font-weight: 700;
  font-size: 14px;
  vertical-align: middle;
}

.tut-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tut-dots {
  display: flex;
  gap: 6px;
}
.tut-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.25s ease;
}
.tut-dot.active {
  background: var(--verde);
  width: 22px;
  border-radius: 4px;
}
.tut-nav-btns {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: space-between;
}
.tut-nav-btns .btn {
  flex: 1;
  max-width: 50%;
}

/* ============ CONTAINER ============ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  margin: 12px 0 18px;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.page-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin: -12px 0 18px;
  font-weight: 500;
}

/* ============ CARD ============ */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(228, 236, 240, 0.6);
}
.card-hero {
  background: linear-gradient(135deg, #2F8A55 0%, #3DA76B 50%, #7FE89A 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(47, 138, 85, 0.25);
  position: relative;
  overflow: hidden;
}
.card-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-header h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.card-header .badge {
  background: var(--verde-chiaro);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ============ MATCH CARD ============ */
.match {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 10px;
  display: block;
  color: inherit;
  border: 1px solid rgba(228, 236, 240, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.match:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  border-color: var(--verde-chiaro);
}
.match:active { transform: translateY(0); }
.match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.match-fase {
  background: linear-gradient(135deg, var(--azzurro) 0%, var(--azzurro-scuro) 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.4px;
}
.match-stato.live {
  background: linear-gradient(135deg, var(--danger) 0%, #b94545 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
  box-shadow: 0 0 12px rgba(216, 85, 85, 0.4);
}
.match-stato.conclusa {
  color: var(--text-soft);
  font-weight: 700;
}
.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.match-team img, .team-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 4px rgba(20, 56, 77, 0.15));
}
.match-team .nome {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.1px;
}
.match-score {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  min-width: 70px;
  text-align: center;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.match-score.vs {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 800;
  letter-spacing: 1.5px;
}
.match-ora {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* ============ TEAM GRID ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.team-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px;
  text-align: center;
  color: inherit;
  display: block;
}
.team-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.team-card .team-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
}
.team-card .nome {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.team-card .girone-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ============ TABELLA CLASSIFICA ============ */
.tabella {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.tabella th {
  background: var(--navy);
  color: white;
  padding: 10px 6px;
  font-weight: 600;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3px;
}
.tabella th.left { text-align: left; padding-left: 12px; }
.tabella td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.tabella td.left { text-align: left; padding-left: 12px; }
.tabella tr:last-child td { border-bottom: none; }
.tabella tr:nth-child(even) td { background: rgba(127, 232, 154, 0.05); }
.tabella .pos {
  font-weight: 800;
  color: var(--verde);
  width: 28px;
}
.tabella .punti {
  font-weight: 800;
  color: var(--navy);
}
.tabella .team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
}
.tabella .team-cell img {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg);
}

/* ============ MARCATORI / MVP LIST ============ */
.player-row {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-row .pos {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--verde-chiaro);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.player-row .pos.gold { background: linear-gradient(135deg, #FFD700, #F0B83A); color: white; }
.player-row .pos.silver { background: linear-gradient(135deg, #C0C0C0, #9A9A9A); color: white; }
.player-row .pos.bronze { background: linear-gradient(135deg, #CD7F32, #A56828); color: white; }
.player-row .info { flex: 1; min-width: 0; }
.player-row .nome { font-weight: 700; color: var(--navy); }
.player-row .squadra {
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.player-row .squadra img { width: 16px; height: 16px; border-radius: 50%; }
.player-row .count {
  font-size: 20px;
  font-weight: 800;
  color: var(--verde);
  flex-shrink: 0;
  min-width: 60px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F4FBF6, #E6F0EA);
  border: 1.5px solid var(--verde);
  text-align: center;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}
.player-row .count::before {
  content: "⚽";
  font-size: 18px;
}
.player-row .count small {
  display: none;  /* etichetta "gol" ridondante con l'emoji pallone */
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  min-height: var(--nav-h);
  height: auto;
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: content-box;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  box-shadow: 0 -4px 16px rgba(20, 56, 77, 0.06);
}
.bottom-nav a {
  flex: 1;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  position: relative;
  transition: all 0.2s ease;
  padding: 4px 2px;
  min-width: 0;
}
.bottom-nav a:hover { text-decoration: none; }
.bottom-nav a .nav-icon {
  font-size: 22px;
  line-height: 1;
  filter: grayscale(0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}
.bottom-nav a .nav-icon-img {
  filter: grayscale(0.55) brightness(0.95);
  opacity: 0.82;
}
.bottom-nav a .nav-icon-img img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav a .nav-icon-svg {
  filter: none;
  color: var(--text-soft);
}
.bottom-nav a .nav-icon-svg svg {
  width: 24px;
  height: 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav a .nav-label {
  font-size: 9px;
  line-height: 1;
}
.bottom-nav a.active {
  color: var(--verde);
}
.bottom-nav a.active .nav-icon {
  filter: grayscale(0);
  transform: translateY(-2px) scale(1.15);
  text-shadow: 0 4px 10px rgba(61, 167, 107, 0.4);
}
.bottom-nav a.active .nav-icon-img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}
.bottom-nav a.active .nav-icon-img img {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(61, 167, 107, 0.4));
}
.bottom-nav a.active .nav-icon-svg {
  color: var(--verde);
}
.bottom-nav a.active .nav-icon-svg svg {
  transform: translateY(-2px) scale(1.15);
  filter: drop-shadow(0 3px 8px rgba(61, 167, 107, 0.4));
}
.bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: 4px;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--verde) 0%, var(--verde-chiaro) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(61, 167, 107, 0.5);
}

/* ============ EMPTY STATE ============ */
.empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-soft);
}
.empty .icon { font-size: 36px; margin-bottom: 8px; }

/* ============ ADMIN ============ */
.admin-nav {
  background: var(--navy);
  padding: 8px 16px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
  color: rgba(255,255,255,0.7);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.admin-nav a.active, .admin-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  min-height: 42px;
}
.btn-primary { background: var(--verde); color: white; }
.btn-primary:hover { background: var(--verde-scuro); text-decoration: none; color: white; }
.btn-secondary { background: var(--bg); color: var(--navy); border: 1px solid var(--border); }
.btn-secondary:hover { background: white; text-decoration: none; }
.btn-light { background: white; color: var(--navy); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-light:hover { background: #F4F8FA; color: var(--navy); text-decoration: none; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b94545; color: white; text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; min-height: 32px; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: white;
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(61, 167, 107, 0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flash {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}
.flash-success { background: rgba(61, 167, 107, 0.12); color: var(--verde-scuro); }
.flash-error { background: rgba(216, 85, 85, 0.12); color: var(--danger); }

/* Stat tile (dashboard) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.stat-tile {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}
.stat-tile .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  font-weight: 600;
}
.stat-tile .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 4px;
}

/* Login centered */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--verde-scuro) 100%);
}
.login-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-card .logo {
  text-align: center;
  margin-bottom: 18px;
}
.login-card .logo img { width: 80px; margin: 0 auto; }
.login-card h2 { text-align: center; color: var(--navy); margin: 0 0 18px; }

/* ===== Login barista (responsive desktop + mobile) ===== */
.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--navy);
}
.login-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #14384D 0%, #0E2632 60%, #0A1F2A 100%);
  z-index: 0;
}
.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(232, 169, 61, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(61, 167, 107, 0.15), transparent 50%);
  pointer-events: none;
}
.login-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.login-page .login-card {
  background: white;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.30);
  position: relative;
}
@media (max-width: 480px) {
  .login-page .login-card { padding: 28px 22px; border-radius: 16px; }
  .login-content { padding: 20px 14px; }
}
.login-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: white;
  padding: 8px;
  box-shadow: 0 8px 22px rgba(232, 169, 61, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-title {
  text-align: center;
  color: var(--navy);
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}
.login-sub {
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 24px;
}
.login-back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
}
.login-back:hover { color: var(--navy); }
/* ===== End login barista ===== */

/* MVP badge */
.mvp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFD700, #F0B83A);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============ TABELLONE ============ */
.section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--navy);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--verde-chiaro), transparent);
}

.girone-block {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(228, 236, 240, 0.6);
}
.girone-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.tabella-mini th, .tabella-mini td {
  padding: 7px 4px;
  font-size: 12px;
}

/* Bracket eliminatorio */
.round-block {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(228, 236, 240, 0.6);
}
.round-block.round-finale {
  background: linear-gradient(135deg, #FFF7D9 0%, #FFE6A0 100%);
  border-color: #F0B83A;
  box-shadow: 0 8px 24px rgba(240, 184, 58, 0.25);
}
.round-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.round-icon { font-size: 22px; }
.round-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
  flex: 1;
}
.round-count {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
}

.bracket-match {
  display: block;
  background: var(--bg);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  color: inherit;
  position: relative;
  transition: all 0.2s ease;
  text-decoration: none;
}
.round-finale .bracket-match {
  background: rgba(255, 255, 255, 0.5);
}
.bracket-match:hover {
  background: white;
  transform: translateX(2px);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.bracket-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: white;
  margin-bottom: 4px;
}
.bracket-team:last-child { margin-bottom: 0; }
.bracket-team.winner {
  background: linear-gradient(90deg, rgba(127, 232, 154, 0.25) 0%, white 100%);
  font-weight: 700;
}
.bracket-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.bracket-team .ph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--verde);
  flex-shrink: 0;
}
.bracket-name {
  flex: 1;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: -0.1px;
}
.bracket-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  min-width: 24px;
  text-align: center;
}
.bracket-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.bracket-badge.live {
  background: var(--danger);
  color: white;
  animation: pulse 2s infinite;
}
.bracket-badge.done {
  background: var(--verde);
  color: white;
}
.bracket-badge.upcoming {
  background: var(--bg);
  color: var(--text-soft);
}

/* ============ REGOLAMENTO ============ */
.regolamento-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.regolamento-content h1,
.regolamento-content h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 18px 0 10px;
  letter-spacing: -0.2px;
}
.regolamento-content h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 8px;
}
.regolamento-content p { margin: 0 0 10px; }
.regolamento-content ul,
.regolamento-content ol {
  margin: 8px 0 12px;
  padding-left: 22px;
}
.regolamento-content li { margin-bottom: 4px; }
.regolamento-content strong { color: var(--navy); }

/* ============ TORNEO BANNER ============ */
.torneo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #14384D 0%, #2F8A55 100%);
  color: white;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(47, 138, 85, 0.25);
  position: relative;
  overflow: hidden;
}
.torneo-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(127, 232, 154, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.torneo-banner-left { position: relative; z-index: 1; }
.torneo-banner-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.75;
}
.torneo-banner-date {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 3px;
}
.torneo-banner-right {
  text-align: center;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 1;
}
.torneo-banner-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.torneo-banner-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ============ CALENDARIO ============ */
.cal-day {
  margin-bottom: 22px;
}
.cal-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--verde-chiaro);
}
.cal-day-date {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-day-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--verde-scuro);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(127, 232, 154, 0.2);
  padding: 4px 10px;
  border-radius: 10px;
}
.cal-match {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 236, 240, 0.6);
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}
.cal-match:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  border-color: var(--verde-chiaro);
}
.cal-match-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-time {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}
.cal-time-tbd {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 600;
}
.cal-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.cal-badge.live {
  background: var(--danger);
  color: white;
  animation: pulse 2s infinite;
}
.cal-badge.done {
  background: var(--verde);
  color: white;
}
.cal-match-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cal-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg);
}
.cal-team img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: white;
}
.cal-ph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--verde);
  flex-shrink: 0;
}
.cal-team-name {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.cal-score {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  min-width: 22px;
  text-align: center;
}
.cal-match-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
}
.cal-fase {
  background: linear-gradient(135deg, var(--azzurro) 0%, var(--azzurro-scuro) 100%);
  color: white;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 10px;
  font-weight: 700;
}

/* ============ PANNELLO GIUDICE ============ */
.giud-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(135deg, #14384D 0%, #1F4F65 100%);
  color: white;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(20, 56, 77, 0.2);
}
.giud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  min-width: 0;
}
.giud-brand:hover { text-decoration: none; color: white; }
.giud-logo {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.giud-logo img { width: 100%; height: 100%; object-fit: contain; }
.giud-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.65;
}
.giud-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-top: 2px;
}
.giud-logout {
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.18);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.giud-logout:hover { background: rgba(255,255,255,0.18); text-decoration: none; color: white; }

.giud-main {
  padding-bottom: 40px;
  min-height: calc(100vh - 70px);
  background: var(--bg);
}

/* Login */
.giud-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.giud-login-card {
  background: white;
  border-radius: 22px;
  padding: 32px 26px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}
.giud-login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
}
.giud-login-logo img { width: 100%; height: 100%; object-fit: contain; }
.giud-login-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde-scuro);
}
.giud-login-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 6px 0 22px;
  letter-spacing: -0.3px;
}
.giud-login-form { text-align: left; }
.giud-login-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Dashboard partite */
.giud-match {
  display: block;
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.giud-match:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  border-color: var(--verde-chiaro);
}
.giud-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.giud-match-time {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.giud-match-campo {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  background: var(--bg);
  padding: 4px 9px;
  border-radius: 8px;
}
.giud-match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.giud-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
.giud-team img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid var(--bg);
}
.giud-team span {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.giud-match-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}
.giud-match-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.giud-match-fase { flex: 1; }
.giud-match-arrow { color: var(--verde); font-weight: 800; }
.giud-match-arbitri {
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: none;
  color: white;
  white-space: nowrap;
}
/* Palette coppie giudici (colori distinti per riconoscere a colpo d'occhio) */
.coppia-ciro   { background: linear-gradient(135deg, #1ABC9C, #16A085); }  /* Teal */
.coppia-daniel { background: linear-gradient(135deg, #8B5FBF, #6B3F9F); }  /* Viola */
.coppia-enrico { background: linear-gradient(135deg, #E67E22, #C25010); }  /* Arancione */
/* Fallback per coppie non mappate */
.giud-match-arbitri:not(.coppia-ciro):not(.coppia-daniel):not(.coppia-enrico) {
  background: linear-gradient(135deg, #5C7080, #3E5866);
}

/* Filtro dropdown coppie */
.giud-filtro {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.giud-filtro-lab {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}
.giud-filtro-btn {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.giud-filtro-btn:hover { background: white; }
.giud-filtro-btn.is-active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.giud-filtro-btn.coppia-ciro.is-active   { background: #16A085; border-color: #16A085; color: white; }
.giud-filtro-btn.coppia-daniel.is-active { background: #6B3F9F; border-color: #6B3F9F; color: white; }
.giud-filtro-btn.coppia-enrico.is-active { background: #C25010; border-color: #C25010; color: white; }

/* Pannello singola partita */
.giud-partita-head {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.giud-ph-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.giud-ph-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.giud-ph-team {
  text-align: center;
}
.giud-ph-team img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 3px solid var(--bg);
  margin-bottom: 6px;
}
.giud-ph-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.giud-ph-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.giud-ph-score-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  line-height: 1;
}
.giud-ph-score-sep {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-soft);
  opacity: 0.5;
}
.giud-ph-state {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.state-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.state-pill.state-programm { background: var(--bg); color: var(--navy); }
.state-pill.state-live { background: linear-gradient(135deg, #D85555, #b94545); color: white; }
.state-pill.state-live .lp { width: 7px; height: 7px; border-radius: 50%; background: white; animation: pulse 1.4s infinite; }
.state-pill.state-done { background: var(--verde); color: white; }

.giud-section {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.giud-section summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  padding: 6px 0;
}
.giud-score-form { margin-top: 12px; }
.giud-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.giud-score-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.giud-score-row label span {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.giud-score-row input {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.giud-gol-form { margin-top: 8px; }
.giud-gol-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.giud-gol-row:last-child { border-bottom: none; }
.giud-gol-info { font-size: 14px; color: var(--navy); }
.giud-autogol {
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}
.btn-icon-trash {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--danger);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.btn-icon-trash:hover { background: #FFE5E5; border-color: var(--danger); }
.giud-mvp-current {
  background: linear-gradient(135deg, #FFF7D9, #FFE6A0);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mvp-badge {
  background: linear-gradient(135deg, #FFD700, #F0B83A);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ============ STATE TABS HOME ============ */
.state-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.state-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-soft);
  transition: all 0.2s ease;
  text-align: left;
  min-width: 0;
}
.state-tab .state-ico {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.state-tab .state-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.state-tab .state-count {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  margin-top: 2px;
}

.state-tab.active {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(61, 167, 107, 0.3);
}
.state-tab.active .state-count { color: white; }
.state-tab-live.active {
  background: linear-gradient(135deg, #D85555 0%, #b94545 100%);
  box-shadow: 0 3px 10px rgba(216, 85, 85, 0.4);
}

.state-panel {
  display: none;
}
.state-panel.active {
  display: block;
  animation: panelIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.empty-panel {
  text-align: center;
  padding: 36px 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-soft);
}
.empty-ico { font-size: 42px; margin-bottom: 10px; opacity: 0.6; }
.empty-text { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.empty-sub { font-size: 12px; }

/* ============ MATCH CARD HOME ============ */
.match-card {
  background: var(--card);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 56, 77, 0.10), 0 1px 0 rgba(20, 56, 77, 0.04);
  border: 2px solid #DCE5EA;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.match-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 56, 77, 0.14);
  border-color: #B8C7CF;
}

.match-card-inner {
  display: block;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}
.match-card-inner:hover { text-decoration: none; color: inherit; }

/* ============ SLOT ORARI: codice colore per pillola time ============
   Mappatura ascendente: pomeriggio caldo → sera fredda */

/* Sabato pomeriggio - tonalità calde */
.slot-1440 { background: linear-gradient(135deg, #E8A93D 0%, #C88A2C 100%) !important; box-shadow: 0 3px 8px rgba(200, 138, 44, 0.32) !important; }
.slot-1520 { background: linear-gradient(135deg, #D87A45 0%, #B36230 100%) !important; box-shadow: 0 3px 8px rgba(179, 98, 48, 0.32) !important; }

/* Venerdì sera - palette con differenze nette tra slot */
.slot-2000 { background: linear-gradient(135deg, #5BC4A5 0%, #3A9C7F 100%) !important; box-shadow: 0 3px 8px rgba(58, 156, 127, 0.32) !important; }
.slot-2040 { background: linear-gradient(135deg, #156843 0%, #0C4A2F 100%) !important; box-shadow: 0 3px 8px rgba(12, 74, 47, 0.45) !important; }
.slot-2120 { background: linear-gradient(135deg, #4F9BC9 0%, #2D6D95 100%) !important; box-shadow: 0 3px 8px rgba(45, 109, 149, 0.32) !important; }
.slot-2200 { background: linear-gradient(135deg, #6A5CD8 0%, #4C42A6 100%) !important; box-shadow: 0 3px 8px rgba(76, 66, 166, 0.32) !important; }

/* Eliminatorie pomeriggio/sera */
.slot-1600 { background: linear-gradient(135deg, #C66E6E 0%, #A75151 100%) !important; box-shadow: 0 3px 8px rgba(167, 81, 81, 0.32) !important; }
.slot-1630 { background: linear-gradient(135deg, #BD5C5C 0%, #9A4444 100%) !important; box-shadow: 0 3px 8px rgba(154, 68, 68, 0.32) !important; }
.slot-1700 { background: linear-gradient(135deg, #B35050 0%, #8C3838 100%) !important; box-shadow: 0 3px 8px rgba(140, 56, 56, 0.32) !important; }
.slot-1740 { background: linear-gradient(135deg, #A04545 0%, #7D2E2E 100%) !important; box-shadow: 0 3px 8px rgba(125, 46, 46, 0.32) !important; }
.slot-2020 { background: linear-gradient(135deg, #5C46B0 0%, #3C2D88 100%) !important; box-shadow: 0 3px 8px rgba(60, 45, 136, 0.32) !important; }
.slot-2100 { background: linear-gradient(135deg, #3E3490 0%, #25216A 100%) !important; box-shadow: 0 3px 8px rgba(37, 33, 106, 0.32) !important; }

/* Override per LIVE: rosso sempre prevale */
.match-card.match-live .match-time {
  background: linear-gradient(135deg, #D85555 0%, #b94545 100%) !important;
}
.cal-card-in_corso .cal-time {
  background: linear-gradient(135deg, #D85555 0%, #b94545 100%) !important;
}
.cal-card-in_corso .cal-time .cal-campo-sub {
  color: rgba(255,255,255,0.85) !important;
}

/* ============ MATCH CARD: time strip prominente ============ */
.match-timestrip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: -4px -4px 10px;
  padding: 0;
}
.match-time {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0E2632 0%, #1A3A4A 100%);
  color: white;
  padding: 9px 12px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  box-shadow: 0 3px 8px rgba(14, 38, 50, 0.22);
}
.ts-clock {
  font-size: 14px;
  filter: grayscale(0.2);
  opacity: 0.85;
}
.ts-hhmm {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ts-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
.ts-live .lp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF4040;
  box-shadow: 0 0 0 3px rgba(255, 64, 64, 0.25), 0 0 12px rgba(255, 64, 64, 0.7);
  animation: pulse 1.4s infinite;
}
.match-card.match-live .match-time {
  background: linear-gradient(135deg, #D85555 0%, #b94545 100%);
  box-shadow: 0 3px 10px rgba(216, 85, 85, 0.35);
}
.match-card.match-live .ts-live .lp {
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 0 12px rgba(255, 255, 255, 0.6);
}
.ts-done {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #7FE89A;
  text-transform: uppercase;
}
.match-campo-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #7FE89A 0%, #3DA76B 100%);
  color: #0E2632;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 13px;
  border-radius: 10px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(61, 167, 107, 0.28);
  min-width: 0;
}
.match-campo-pill .cp-ico {
  font-size: 13px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

.match-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  text-align: center;
  text-transform: uppercase;
}

/* compat: regole vecchie per altre pagine che usano ancora match-head */
.match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.match-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.match-campo {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  background: var(--bg);
  padding: 4px 9px;
  border-radius: 8px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.match-fase {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
}
.match-orario {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}
.match-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #D85555 0%, #b94545 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(216, 85, 85, 0.3);
}
.match-badge-live .lp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.4s infinite;
}
.match-badge-done {
  font-size: 11px;
  font-weight: 800;
  color: var(--verde-scuro);
  background: rgba(127, 232, 154, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
.match-team img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.match-team-ph {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg);
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--verde-scuro);
}
.match-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.match-score {
  min-width: 80px;
  text-align: center;
}
.match-score-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.match-score-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text-soft);
  line-height: 1;
}
.match-score-num.winner { color: var(--navy); }
.match-score-sep {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-soft);
  opacity: 0.5;
}
.match-vs {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.6;
}

/* Variante LIVE: sfondo rosso/scuro */
.match-card.match-live {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFE5E5 100%);
  border-color: #E58585;
  box-shadow: 0 6px 18px rgba(216, 85, 85, 0.22);
  position: relative;
}
.match-card.match-live::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D85555, #b94545, #D85555);
  animation: liveSlide 2s linear infinite;
  background-size: 200% 100%;
}
@keyframes liveSlide {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
.match-live .match-score-num.winner { color: #D85555; }
.match-live .match-score-num:not(.winner) { color: #c08080; }

/* Strisci sondaggio sotto la card */
.match-pronostico-wrap {
  display: block;
  text-decoration: none;
  border-top: 1.5px solid #DCE5EA;
}
.match-pronostico-wrap:hover { text-decoration: none; }
.match-pronostico-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--bg);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.2px;
}
.match-pronostico-label .mpl-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-pronostico-label .mpl-text::before {
  content: "📊";
  font-size: 12px;
}
.match-pronostico-label .mpl-arrow {
  font-size: 16px;
  font-weight: 800;
  color: var(--verde);
  line-height: 1;
}
.match-pronostico {
  display: flex;
  width: 100%;
  height: 24px;
  background: var(--bg);
  overflow: hidden;
}
.mp-seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: white;
  min-width: 32px;
  border-right: 1px solid rgba(255,255,255,0.25);
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-seg:last-child { border-right: none; }
.mp-seg .mp-lab {
  font-size: 11px;
  opacity: 0.95;
}
.mp-seg .mp-pct {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.mp-1 { background: linear-gradient(135deg, #3DA76B 0%, #2B8855 100%); }
.mp-x { background: linear-gradient(135deg, #7BCDE8 0%, #5BAFCB 100%); color: #0E2632; }
.mp-2 { background: linear-gradient(135deg, #1A3A4A 0%, #14384D 100%); }
.match-pronostico:has(.mp-pct:contains('—')) .mp-seg { /* fallback per browser senza :has */ }
.mp-pct { letter-spacing: 0.2px; }
/* Quando non ci sono voti, sezioni piatte e label centrale */
.match-pronostico.mp-empty .mp-pct { opacity: 0.55; }

/* ============ CLASSIFICA TABELLONE ============ */
.girone-card { padding: 16px; }
.girone-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.girone-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 10px;
  color: white;
}
.gb-A { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%); }
.gb-B { background: linear-gradient(135deg, var(--azzurro) 0%, var(--azzurro-scuro) 100%); color: #0E2632; }
.gb-C { background: linear-gradient(135deg, #F0B83A 0%, #E0A82E 100%); color: #4A3A0E; }

/* Girone unico Champions League */
.girone-badge-cl {
  background: linear-gradient(135deg, #14384D 0%, #1F4F65 100%);
  font-size: 12px;
}

/* Legenda posizioni qualificazione */
.legenda-posizioni {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}
.lp-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.lp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-dot-quarti { background: linear-gradient(135deg, #3DA76B 0%, #2B8855 100%); box-shadow: 0 0 4px rgba(61, 167, 107, 0.4); }
.lp-dot-playin-78 { background: linear-gradient(135deg, #F0B83A 0%, #E0A82E 100%); box-shadow: 0 0 4px rgba(224, 168, 46, 0.4); }
.lp-dot-playin { background: linear-gradient(135deg, #C66E6E 0%, #A75151 100%); box-shadow: 0 0 4px rgba(167, 81, 81, 0.4); }

/* Classifica con bordo colorato a sinistra per posizione */
.classifica-cl .classifica-data {
  border-left: 3px solid transparent;
}
.classifica-cl .pos-quarti {
  border-left-color: #3DA76B;
  background: linear-gradient(90deg, rgba(127, 232, 154, 0.05) 0%, white 60%);
}
.classifica-cl .pos-quarti .cl-pos {
  background: linear-gradient(135deg, #3DA76B 0%, #2B8855 100%);
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin: 0 auto;
}
.classifica-cl .pos-playin-78 {
  border-left-color: #E0A82E;
}
.classifica-cl .pos-playin-78 .cl-pos {
  color: #B07842;
}
.classifica-cl .pos-playin {
  border-left-color: #C66E6E;
  background: linear-gradient(90deg, rgba(216, 90, 90, 0.04) 0%, white 60%);
}
.classifica-cl .pos-playin .cl-pos {
  color: #A75151;
}

/* Divider con etichetta */
.cl-divider {
  position: relative;
  height: 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.cl-divider span {
  background: var(--bg);
  padding: 0 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-soft);
}

.classifica-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.classifica-row {
  display: grid;
  grid-template-columns: 28px 1fr 38px 44px;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.classifica-row:last-child { border-bottom: none; }
.classifica-row.classifica-head {
  background: var(--bg);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  padding: 8px 10px;
}
.classifica-data {
  background: white;
  font-weight: 700;
}
.classifica-data:hover {
  background: rgba(127, 232, 154, 0.06);
  text-decoration: none;
  color: var(--navy);
}
.cl-pos {
  text-align: center;
  font-weight: 800;
  color: var(--text-soft);
}
.classifica-row .cl-squadra {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.classifica-row .cl-squadra img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.classifica-row .cl-squadra span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.cl-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.cl-gd { color: var(--text-soft); }
.cl-pti { color: var(--verde-scuro); font-weight: 800; }
.cl-pti strong { font-size: 15px; }

/* Header girone con link */
.girone-header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.girone-detail-link {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--verde-scuro);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.girone-detail-link:hover { text-decoration: none; color: var(--verde); }
.girone-detail-link span { font-size: 16px; }

/* Dettaglio girone */
.girone-detail-header {
  margin-bottom: 14px;
  text-align: center;
}
.girone-badge-big {
  display: inline-block;
  padding: 10px 22px;
  font-size: 16px;
  letter-spacing: 2.5px;
  border-radius: 14px;
}
.rotate-hint {
  background: rgba(123, 205, 232, 0.12);
  border: 1px solid rgba(123, 205, 232, 0.3);
  color: var(--azzurro-scuro);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  text-align: center;
}
.classifica-full {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  min-width: 460px;
}
.classifica-full th,
.classifica-full td {
  padding: 9px 6px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.classifica-full th {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  background: var(--bg);
}
.classifica-full .cf-pos { width: 32px; font-weight: 800; }
.classifica-full .cf-squadra {
  text-align: left;
  padding-left: 10px;
  min-width: 180px;
}
.classifica-full .cf-squadra a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.classifica-full .cf-squadra img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  flex-shrink: 0;
}
.classifica-full .cf-pti {
  color: var(--verde-scuro);
  font-weight: 800;
  font-size: 15px;
}
.classifica-full .cf-dr { color: var(--text-soft); }
.classifica-full tr.cf-leader {
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.15) 0%, rgba(245, 200, 66, 0.06) 100%);
}
.classifica-full tr.cf-leader .cf-pos {
  color: #B07842;
}

/* Bracket card fase finale */
.match-card-bracket {
  display: block;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}
.match-card-bracket:hover { text-decoration: none; color: inherit; }
.bracket-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bracket-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.bracket-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.bracket-team.bracket-tbd span {
  font-style: italic;
  color: var(--text-soft);
  opacity: 0.85;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #F4F8FA 0%, #EAF1F5 100%);
  border-radius: 6px;
  border: 1px dashed #B8C8D0;
  display: inline-block;
  white-space: normal;
}
.bracket-team.bracket-tbd::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F4F8FA;
  color: #B8C8D0;
  border: 1.5px dashed #C8D5DC;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.7;
}

/* Match card e calendario: squadra TBD (da definire) - solo testo, no cerchio */
.match-team.match-team-tbd .match-team-name {
  font-style: italic;
  color: var(--text-soft);
  opacity: 0.85;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  background: linear-gradient(135deg, #F4F8FA 0%, #EAF1F5 100%);
  border-radius: 8px;
  border: 1px dashed #B8C8D0;
  text-align: center;
  letter-spacing: 0.2px;
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}
.cal-team-tbd {
  font-style: italic;
  color: var(--text-soft);
  opacity: 0.85;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: linear-gradient(135deg, #F4F8FA 0%, #EAF1F5 100%);
  border-radius: 6px;
  border: 1px dashed #B8C8D0;
  letter-spacing: 0.2px;
  display: inline-block;
  white-space: normal;
}
.bracket-team img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
  background: white;
  border: 2px solid var(--bg);
}
.bracket-team span {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.bracket-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  min-width: 60px;
  text-align: center;
}

/* Variante CONCLUSA: tinge il vincitore in verde */
.match-concluse .match-score-num.winner { color: var(--verde-scuro); }

/* Variante PROGRAMMATA: orario in evidenza */
.match-programm {
  background: linear-gradient(135deg, #F4F8FA 0%, #FFFFFF 100%);
}

/* Admin quick action bar */
.match-admin-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(20,56,77,0.04) 0%, rgba(20,56,77,0.08) 100%);
  border-top: 1px dashed rgba(20,56,77,0.15);
}
.btn-admin {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-admin:hover { text-decoration: none; transform: translateY(-1px); }
.btn-admin-start { background: var(--verde); color: white; }
.btn-admin-stop  { background: var(--danger); color: white; }
.btn-admin-edit  { background: var(--navy); color: white; flex: 0 0 auto; padding: 8px 12px; }
.btn-admin-reopen { background: var(--text-soft); color: white; }

/* ============ TAB SWITCH (gironi/finale) ============ */
.tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

/* ============ TAB GIORNATE CALENDARIO ============ */
.giornate-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow-x: auto;
}
.giornata-tab {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-soft);
  transition: all 0.2s ease;
  background: transparent;
}
.giornata-tab:hover {
  color: var(--navy);
  text-decoration: none;
}
.giornata-tab .gt-day {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}
.giornata-tab .gt-month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: lowercase;
  opacity: 0.7;
  margin-top: 1px;
}
.giornata-tab.active {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(61, 167, 107, 0.32);
}
.giornata-tab.active .gt-month { opacity: 1; }

/* ============ CALENDARIO CARD COMPATTE ============ */
.cal-card {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card);
  border-radius: 12px;
  border: 1.5px solid #DCE5EA;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}
.cal-card:hover {
  text-decoration: none;
  color: inherit;
  border-color: #B8C7CF;
  transform: translateX(2px);
  box-shadow: 0 4px 10px rgba(20, 56, 77, 0.08);
}

.cal-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(135deg, #0E2632 0%, #1A3A4A 100%);
  color: white;
  padding: 9px 6px;
  border-radius: 10px;
  min-height: 58px;
  box-shadow: 0 3px 8px rgba(14, 38, 50, 0.18);
}
.cal-hhmm {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cal-campo-sub {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-top: 2px;
}
.cal-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
  animation: liveBlink 1.4s ease-in-out infinite;
}
.cal-card-in_corso .cal-live .lp {
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3), 0 0 6px rgba(255,255,255,0.6);
  animation: pulse 1.4s infinite;
}
.cal-done {
  font-size: 13px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.5px;
}
.cal-card-conclusa .cal-time {
  background: linear-gradient(135deg, #3DA76B 0%, #2B8855 100%);
}

.cal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cal-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.cal-team img,
.cal-team-ph {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-soft);
  flex-shrink: 0;
}
.cal-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cal-score {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  padding-left: 8px;
}
.cal-card-in_corso .cal-score { color: #D85555; }

.cal-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cal-campo {
  background: linear-gradient(135deg, #7FE89A 0%, #3DA76B 100%);
  color: #0E2632;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.cal-arrow {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-soft);
  line-height: 1;
}

/* ============ CALENDARIO CARD COMPATTE END ============ */

/* ============ RICERCA CALENDARIO ============ */
.calendar-search {
  margin-bottom: 12px;
}
.search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1.5px solid #DCE5EA;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}
.search-trigger:hover {
  border-color: var(--verde);
  background: rgba(127, 232, 154, 0.04);
  color: var(--navy);
}
.search-icon { font-size: 18px; }
.search-label { font-weight: 700; }
.search-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(61, 167, 107, 0.12) 0%, rgba(61, 167, 107, 0.04) 100%);
  border: 1.5px solid var(--verde);
  border-radius: 12px;
  padding: 10px 14px;
}
.search-active-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.search-active-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--verde-scuro);
  background: rgba(61, 167, 107, 0.2);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.search-active-logo {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.search-active strong {
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-clear {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: 10px;
}
.search-clear:hover { color: var(--danger); text-decoration: none; }

/* Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.search-modal.open { display: flex; }
.search-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 38, 50, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: searchFadeIn 0.2s ease-out;
}
.search-modal-content {
  position: relative;
  background: white;
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: searchSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes searchFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes searchSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.search-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.search-modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}
.search-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  font-weight: 700;
}
.search-modal-body {
  padding: 14px 18px 18px;
  overflow-y: auto;
}
.search-label-input {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.search-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 50vh;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  transition: background 0.15s ease;
  border: 1px solid transparent;
}
.search-result-item:hover {
  background: rgba(127, 232, 154, 0.08);
  border-color: rgba(61, 167, 107, 0.2);
  text-decoration: none;
}
.search-result-item img,
.search-result-ph {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-soft);
  flex-shrink: 0;
}

/* ============ RICERCA CALENDARIO END ============ */

/* ============ HEADER PARTITE + BOTTONE MAPPA ============ */

.day-header-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 18px 0 12px;
}
.day-heading-half {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
}

.map-btn {
  flex: 0 0 auto;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(61, 167, 107, 0.32);
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.map-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(61, 167, 107, 0.45);
}
.map-btn:active {
  transform: translateY(0);
}
.map-btn-ico {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.map-btn-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Modal mappa */
.mappa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 30px;  /* padding-top maggiore: l'immagine si abbassa, no scontro con status bar */
  overflow-y: auto;
}
@media (max-width: 600px) {
  .mappa-overlay {
    padding-top: 80px;  /* su mobile: ancora più giù per evitare notch/status bar */
  }
}
.mappa-overlay.show {
  display: flex;
}
.mappa-modal {
  background: white;
  border-radius: 16px;
  padding: 16px;
  max-width: 720px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: mappaModalIn 0.22s ease;
}
@keyframes mappaModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.mappa-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
}
.mappa-close:hover { background: #E0E8EC; }
.mappa-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  padding-right: 40px;
}
.mappa-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Legenda spogliatoi sotto la mappa */
.mappa-spog {
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #F4FBF6 0%, #FFFFFF 100%);
  border-radius: 12px;
  border: 1.5px solid #DCE5EA;
}
.mappa-spog-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.mappa-spog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.mappa-spog-card {
  background: white;
  border-radius: 10px;
  padding: 10px;
  border: 2px solid var(--border);
  position: relative;
}
.mappa-spog-1, .mappa-spog-2 {
  border-color: #E78A3E;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF7F0 100%);
}
.mappa-spog-3, .mappa-spog-4 {
  border-color: #14384D;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FA 100%);
}
.mappa-spog-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}
.mappa-spog-1 .mappa-spog-num, .mappa-spog-2 .mappa-spog-num {
  background: linear-gradient(135deg, #E78A3E 0%, #C36A1E 100%);
}
.mappa-spog-3 .mappa-spog-num, .mappa-spog-4 .mappa-spog-num {
  background: linear-gradient(135deg, #14384D 0%, #0A2433 100%);
}
.mappa-spog-team {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding: 6px 0;
  border-top: 2px solid #DCE5EA;
}
.mappa-spog-team:first-child { border-top: none; padding-top: 2px; }

/* ============ END MAPPA ============ */

@media (max-width: 380px) {
  .map-btn {
    padding: 8px 10px;
  }
  .map-btn-ico { font-size: 18px; }
  .map-btn-lbl { font-size: 11px; }
}

/* ============ FASI ELIMINATORIE: HEADER + CARD COLORATE ============ */

.fase-header {
  position: relative;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 22px 0 14px;
  color: white;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}
.fase-header::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
}
.fase-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.fase-header-ico {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.fase-header-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.3px;
  color: white;
}
.fase-header-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
  margin-left: 34px;
  position: relative;
  z-index: 1;
}

/* Card match con bordo + accent colorato per fase */
.match-card-bracket {
  border-left-width: 4px;
  border-left-style: solid;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.match-card-bracket:hover { transform: translateY(-2px); }

/* PLAY-IN: rosso/arancio */
.fase-header.fase-playin {
  background: linear-gradient(135deg, #C66E6E 0%, #A75151 100%);
}
.match-card-bracket.fase-playin {
  border-left-color: #C66E6E;
  background: linear-gradient(135deg, #FFFFFF 0%, #FDF4F4 100%);
}

/* QUARTI: verde acqua */
.fase-header.fase-quarti {
  background: linear-gradient(135deg, #3DA76B 0%, #2B8855 100%);
}
.match-card-bracket.fase-quarti {
  border-left-color: #3DA76B;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4FBF6 100%);
}

/* SEMIFINALE: viola */
.fase-header.fase-semi {
  background: linear-gradient(135deg, #8B5FBF 0%, #6B449C 100%);
}
.match-card-bracket.fase-semi {
  border-left-color: #8B5FBF;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F4FC 100%);
}

/* FINALE 3-4: bronzo */
.fase-header.fase-finale34 {
  background: linear-gradient(135deg, #C28856 0%, #9E6B3D 100%);
}
.match-card-bracket.fase-finale34 {
  border-left-color: #C28856;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF6F0 100%);
}

/* FINALE: oro */
.fase-header.fase-finale {
  background: linear-gradient(135deg, #E0B53A 0%, #B8932B 50%, #DAA520 100%);
}
.match-card-bracket.fase-finale {
  border-left-color: #E0B53A;
  border-left-width: 5px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFBEC 100%);
  box-shadow: 0 4px 16px rgba(224, 181, 58, 0.18);
}

/* DEFAULT (fasi non standard) */
.fase-header.fase-default {
  background: linear-gradient(135deg, #5BB5D0 0%, #4691A8 100%);
}
.match-card-bracket.fase-default {
  border-left-color: #5BB5D0;
}

/* Badge slot bracket (PI1, QF1, SF1...) nella meta della card */
.bracket-slot-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.06);
  color: var(--navy);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  border-radius: 8px;
  margin-left: 4px;
  font-family: -apple-system, ui-monospace, "SF Mono", "Menlo", monospace;
}

/* ============ FASI ELIMINATORIE END ============ */

/* ============ REGOLAMENTO UFFICIALE ============ */
.reg-hero {
  text-align: center;
  padding: 24px 20px 28px;
  background: linear-gradient(135deg, #0E2632 0%, #1A3A4A 60%, #14384D 100%);
  color: white;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(14, 38, 50, 0.30);
  position: relative;
  overflow: hidden;
}
.reg-hero::after {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(ellipse, rgba(127, 232, 154, 0.12), transparent 70%);
  pointer-events: none;
}
.reg-hero-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  background: white;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}
.reg-hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #7FE89A;
  text-transform: uppercase;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.reg-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}
.reg-hero-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.reg-toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
  position: sticky;
  top: 60px;
  z-index: 10;
}
.reg-toc a {
  display: block;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  transition: all 0.15s ease;
}
.reg-toc a:hover {
  background: var(--verde);
  color: white;
}

.reg-section {
  margin-bottom: 28px;
  scroll-margin-top: 80px;
}
.reg-section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #7FE89A 0%, #3DA76B 100%);
  color: #0E2632;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.reg-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 18px;
  letter-spacing: -0.4px;
  border-bottom: 2px solid var(--verde);
  padding-bottom: 8px;
}
.reg-h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--verde-scuro);
  margin: 22px 0 10px;
  letter-spacing: -0.2px;
}
.reg-h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 8px;
}
.reg-h5 {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 6px;
}
.reg-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy);
  margin: 0 0 10px;
}
.reg-section p strong { color: var(--navy); font-weight: 700; }
.reg-list, .reg-ordered {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.reg-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--navy);
}
.reg-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--verde);
  font-weight: 800;
}
.reg-ordered {
  counter-reset: regList;
}
.reg-ordered li {
  position: relative;
  padding: 6px 0 6px 30px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--navy);
  counter-increment: regList;
}
.reg-ordered li::before {
  content: counter(regList);
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-card {
  background: linear-gradient(135deg, white 0%, #F8FCFA 100%);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.reg-card-points {
  background: white;
}
.reg-point-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px dashed var(--border);
}
.reg-point-row:last-child { border-bottom: none; }
.reg-point-row > span:nth-child(2) {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.reg-point-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: white;
}
.reg-point-badge.win { background: linear-gradient(135deg, #3DA76B, #2B8855); }
.reg-point-badge.draw { background: linear-gradient(135deg, #F0B83A, #E0A82E); color: #4A3A0E; }
.reg-point-badge.loss { background: linear-gradient(135deg, #C66E6E, #A75151); }
.reg-point-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--verde-scuro);
  font-variant-numeric: tabular-nums;
}

.reg-callout {
  background: linear-gradient(135deg, #F4FBF6 0%, #FFFFFF 100%);
  border: 1px solid #C5E3CC;
  border-left: 4px solid var(--verde);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--navy);
}
.reg-callout-info {
  background: linear-gradient(135deg, #F0F8FB 0%, #FFFFFF 100%);
  border-color: #BAE0EC;
  border-left-color: var(--azzurro-scuro);
}
.reg-callout-warning {
  background: linear-gradient(135deg, #FDF6E7 0%, #FFFFFF 100%);
  border-color: #F3DDA1;
  border-left-color: #E0A82E;
}

.reg-bracket-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
}
.reg-match {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--border);
  text-align: center;
}
.reg-vs {
  color: var(--verde-scuro);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 8px;
}

.reg-pdf-box {
  margin: 28px 0 14px;
}
.reg-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  font-style: italic;
  color: var(--text-soft);
  letter-spacing: 0.5px;
}

/* ============ REGOLAMENTO END ============ */

/* ============ COPPA BANCONE ============ */

/* Tile in home pubblica */
.cb-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4FBF6 100%);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 2.5px solid var(--verde);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(61, 167, 107, 0.18);
}
.cb-tile::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(127, 232, 154, 0.15) 50%, transparent 100%);
  animation: cbShine 3.5s ease-in-out infinite;
}
@keyframes cbShine {
  0%, 60% { left: -100%; }
  100%    { left: 100%; }
}
.cb-tile:hover {
  text-decoration: none;
  color: inherit;
  border-color: var(--verde-scuro);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(61, 167, 107, 0.30);
}
.cb-tile-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
  padding: 2px;
  filter: drop-shadow(0 2px 6px rgba(20, 56, 77, 0.18));
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cb-tile-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.cb-tile-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--verde-scuro);
  margin-bottom: 2px;
}
.cb-tile-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.1;
  margin-bottom: 2px;
}
.cb-tile-sub {
  font-size: 12px;
  color: var(--text-soft);
}
.cb-tile-arrow {
  font-size: 28px;
  font-weight: 800;
  color: var(--verde);
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Hero con logo grande in evidenza */
.cb-hero {
  text-align: center;
  padding: 12px 16px 20px;
  margin-bottom: 16px;
}
.cb-hero-logo {
  display: block;
  width: min(60vw, 240px);
  height: auto;
  margin: 0 auto 14px;
  filter:
    drop-shadow(0 8px 24px rgba(20, 56, 77, 0.18))
    drop-shadow(0 0 32px rgba(127, 232, 154, 0.18));
}
/* Versione compatta per liberare spazio verticale (logo + tagline più piccoli) */
.cb-hero.cb-hero-compact {
  padding: 8px 12px 10px;
  margin-bottom: 10px;
}
.cb-hero.cb-hero-compact .cb-hero-logo {
  width: min(42vw, 170px);
  margin-bottom: 6px;
}
.cb-hero.cb-hero-compact .cb-hero-text {
  font-size: 13px;
  line-height: 1.35;
  max-width: 340px;
}
.cb-hero-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cb-hero-text strong { color: var(--verde-scuro); }

/* Box "Premio in palio" con il pallone Adidas Trionda */
.cb-prize {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0E2632 0%, #14384D 55%, #1A5040 100%);
  color: white;
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(20, 56, 77, 0.25);
}
/* Versione compatta: padding, testi e pallone ridotti (~25% meno spazio verticale) */
.cb-prize.cb-prize-compact {
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  gap: 8px;
}
.cb-prize.cb-prize-compact .cb-prize-img { width: 78px; height: 78px; }
.cb-prize.cb-prize-compact .cb-prize-label {
  font-size: 9px;
  margin-bottom: 3px;
  letter-spacing: 1.2px;
}
.cb-prize.cb-prize-compact .cb-prize-title {
  font-size: 17px;
  margin-bottom: 2px;
}
.cb-prize.cb-prize-compact .cb-prize-sub { font-size: 11px; }
.cb-prize.cb-prize-compact .cb-prize-glow {
  width: 140px;
  height: 140px;
  right: -20px;
}
/* Glow oro pulsante dietro il pallone */
.cb-prize-glow {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 169, 61, 0.35) 0%, transparent 65%);
  animation: prizeGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes prizeGlow {
  0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
  50%      { opacity: 1; transform: translateY(-50%) scale(1.15); }
}
.cb-prize-content {
  flex: 1;
  min-width: 0;
  z-index: 2;
  position: relative;
}
.cb-prize-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #E8A93D;
  margin-bottom: 6px;
}
.cb-prize-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: 4px;
}
.cb-prize-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.35;
}
.cb-prize-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  animation: prizeFloat 4s ease-in-out infinite;
}
@keyframes prizeFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-6px) rotate(3deg); }
}
@media (max-width: 380px) {
  .cb-prize-img { width: 88px; height: 88px; }
  .cb-prize-title { font-size: 18px; }
  .cb-prize-sub { font-size: 12px; }
}

/* Info card pagina Terzo Tempo Cup */
.cb-info {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #0E2632 0%, #1A3A4A 100%);
  color: white;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(14, 38, 50, 0.25);
}
.cb-info-logo {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: white;
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
.cb-info-body { flex: 1; min-width: 0; }
.cb-info-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(127, 232, 154, 0.9);
  margin-bottom: 4px;
}
.cb-info-text {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.cb-info-text strong { color: #FFD97A; }

/* Regolamento (3 righe) */
.cb-rules {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 6px;
  margin-bottom: 16px;
}
.cb-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px dashed var(--border);
}
.cb-rule:last-child { border-bottom: none; }
.cb-rule-ico {
  font-size: 22px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.cb-rule-text {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.cb-rule-stars {
  font-size: 14px;
  letter-spacing: 1px;
}

/* Versione compatta: pill affiancate invece di 3 righe.
   3 pill in 3 col, 4 pill in 4 col (2x2 su mobile stretto). */
.cb-rules.cb-rules-compact {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px;
  margin-bottom: 12px;
}
.cb-rules.cb-rules-compact.cb-rules-4col {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 480px) {
  .cb-rules.cb-rules-compact.cb-rules-4col {
    grid-template-columns: 1fr 1fr;  /* 2x2 su mobile */
  }
}
.cb-rules.cb-rules-compact .cb-rule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  background: var(--bg);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.2;
}
.cb-rules.cb-rules-compact .cb-rule-ico {
  font-size: 20px;
  width: auto;
  line-height: 1;
}
.cb-rules.cb-rules-compact .cb-rule-stars {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--verde-scuro);
}

/* Card regolamento partecipazione (sotto le regole consumo) */
.cb-info-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(20, 56, 77, 0.05);
}
.cb-info-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.cb-info-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}
.cb-info-list li { margin-bottom: 8px; }
.cb-info-list li:last-child { margin-bottom: 0; }
.cb-info-list strong { color: var(--navy); font-weight: 700; }

/* Regolamento collassabile: usa <details><summary> nativo con chevron animato */
.cb-info-collapsible {
  padding: 0;
  margin-bottom: 14px;
}
.cb-info-collapsible > .cb-info-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.3px;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Rimuovo il triangolino default di <summary> */
.cb-info-collapsible > .cb-info-summary::-webkit-details-marker { display: none; }
.cb-info-collapsible > .cb-info-summary::marker { content: none; }

.cb-info-chevron {
  font-size: 16px;
  color: var(--verde);
  transition: transform 0.2s ease;
  line-height: 1;
}
.cb-info-collapsible[open] > .cb-info-summary > .cb-info-chevron {
  transform: rotate(180deg);
}
/* Quando aperto: mostra la lista con padding */
.cb-info-collapsible[open] > .cb-info-list {
  padding: 0 16px 14px 34px;
}
.cb-info-collapsible > .cb-info-list {
  padding: 0;
}

/* Classifica pubblica */
.cb-classifica {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: 12px;
  border: 1.5px solid #DCE5EA;
}
.cb-leader {
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.15) 0%, white 70%);
  border-color: #F5C842;
  box-shadow: 0 4px 14px rgba(245, 200, 66, 0.25);
}
.cb-pos {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  flex-shrink: 0;
}
.cb-leader .cb-pos {
  background: linear-gradient(135deg, #F5C842 0%, #E0A82E 100%);
  color: #4A3A0E;
}
.cb-squadra {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cb-squadra img,
.cb-squadra-ph {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-soft);
  flex-shrink: 0;
}
.cb-squadra-ph {
  border-radius: 8px;
  background: var(--bg);
}
.cb-squadra-info { min-width: 0; flex: 1; }
.cb-squadra-nome {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cb-squadra-cnt {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 3px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.cb-stelline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cb-stars-count {
  font-size: 30px;
  font-weight: 800;
  color: #B07842;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.cb-stars-icon { font-size: 26px; }
.cb-stars-empty { color: var(--text-soft); font-size: 18px; }

/* ============ BARISTA DASHBOARD ============ */
.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
}
.bar-legend-item { white-space: nowrap; }

.bar-team-card {
  background: white;
  border-radius: 14px;
  border: 1.5px solid #DCE5EA;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(20, 56, 77, 0.06);
}
.bar-team-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bar-team-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}
.bar-team-ph {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--verde-scuro));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.bar-team-info { flex: 1; min-width: 0; }
.bar-team-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-team-meta {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 1px;
  letter-spacing: 0.2px;
}
.bar-team-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(245, 200, 66, 0.18) 0%, rgba(245, 200, 66, 0.06) 100%);
  border-radius: 10px;
}
.bar-stars-n {
  font-size: 18px;
  font-weight: 800;
  color: #B07842;
  font-variant-numeric: tabular-nums;
}
.bar-stars-i { font-size: 14px; }

.bar-team-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 600px) {
  .bar-team-buttons { grid-template-columns: repeat(4, 1fr); }
}
.bar-btn-form { margin: 0; }
.bar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.bar-btn:active { transform: scale(0.94); }
.bar-btn-piccola {
  background: linear-gradient(135deg, #E8A93D 0%, #C88A2C 100%);
  box-shadow: 0 4px 12px rgba(200, 138, 44, 0.3);
}
.bar-btn-media {
  background: linear-gradient(135deg, #D87A45 0%, #B36230 100%);
  box-shadow: 0 4px 12px rgba(179, 98, 48, 0.3);
}
.bar-btn-spritz {
  background: linear-gradient(135deg, #F27B3D 0%, #D9541C 100%);
  box-shadow: 0 4px 12px rgba(217, 84, 28, 0.3);
}
.bar-btn-carriola {
  background: linear-gradient(135deg, #B71C1C 0%, #7F1010 100%);
  box-shadow: 0 4px 12px rgba(127, 16, 16, 0.35);
}
.bar-btn-cocktail {
  background: linear-gradient(135deg, #5BC4A5 0%, #3A9C7F 100%);
  box-shadow: 0 4px 12px rgba(58, 156, 127, 0.3);
}
.bar-btn-ico { font-size: 20px; }
.bar-btn-lab { font-size: 14px; }

.bar-storico {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 4px;
}
.bar-storico-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px dashed var(--border);
}
.bar-storico-row:last-child { border-bottom: none; }
.bar-storico-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--navy);
}
.bar-storico-info strong { font-weight: 700; }
.bar-storico-tipo { color: var(--text-soft); }
.bar-storico-time {
  font-family: monospace;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  color: var(--text-soft);
}
.bar-storico-by {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--verde-scuro);
}
.bar-storico-cancel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  color: var(--text-soft);
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}
.bar-storico-cancel:hover { color: var(--danger); background: rgba(216, 85, 85, 0.1); }

/* ============ COPPA BANCONE END ============ */

/* ============ CHI SIAMO - IN ALLESTIMENTO ============ */
.chi-allestimento {
  text-align: center;
  padding: 50px 24px;
  background: linear-gradient(135deg, #F4F8FA 0%, #FFFFFF 100%);
  border: 1.5px dashed #C8D5DC;
  margin-top: 30px;
}
.chi-allestimento-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(20, 56, 77, 0.12));
}
.chi-allestimento-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}
.chi-allestimento-text {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ============ CHI SIAMO ============ */
.chi-hero {
  text-align: center;
  background: linear-gradient(135deg, #0E2632 0%, #1A3A4A 100%);
  color: white;
  padding: 26px 18px;
  border: none;
  box-shadow: 0 8px 22px rgba(14, 38, 50, 0.28);
}
.chi-hero-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  background: white;
  border-radius: 50%;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.chi-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.chi-hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}
.chi-hero-tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(127, 232, 154, 0.95);
}
.chi-section { padding: 16px 18px; }
.chi-section-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.chi-section p {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.55;
  margin: 0 0 10px;
}
.chi-section p:last-child { margin-bottom: 0; }
.chi-section p strong { font-weight: 700; }
.chi-section a { color: var(--verde-scuro); text-decoration: none; font-weight: 700; }
.chi-section a:hover { text-decoration: underline; }

.chi-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.chi-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}
.chi-social-link:hover {
  text-decoration: none;
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 56, 77, 0.10);
}
.chi-social-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.1px;
}
.chi-social-handle {
  font-size: 10px;
  color: var(--text-soft);
  font-weight: 600;
}
@media (max-width: 380px) {
  .chi-social { grid-template-columns: 1fr; }
}
.tab-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-soft);
  background: transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.22s ease;
  position: relative;
}
.tab-switch-btn:hover {
  text-decoration: none;
  color: var(--navy);
}
.tab-switch-btn.active {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(61, 167, 107, 0.32);
}
.tab-switch-btn.active:hover { color: white; }
.tab-switch-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
.tab-switch-ico {
  font-size: 14px;
  letter-spacing: -2px;
  filter: saturate(0.85);
}
.tab-switch-btn.active .tab-switch-ico { filter: saturate(1) brightness(1.1); }

/* ============ FASCIA SELECT (admin squadre) ============ */
.fascia-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 6px 22px 6px 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231A3A4A'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 14px;
  min-width: 56px;
  text-align: center;
}
.fascia-select[data-fascia="A"] {
  background-color: rgba(61, 167, 107, 0.18);
  border-color: var(--verde);
  color: var(--verde-scuro);
}
.fascia-select[data-fascia="B"] {
  background-color: rgba(123, 205, 232, 0.22);
  border-color: var(--azzurro);
  color: var(--azzurro-scuro);
}
.fascia-select[data-fascia="C"] {
  background-color: rgba(240, 184, 58, 0.22);
  border-color: #E0A82E;
  color: #8B6A1F;
}
.fascia-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 167, 107, 0.18);
}

/* ============ ARCHIVIO EDIZIONI ============ */
.archivio-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.archivio-anno {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--verde-scuro);
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.archivio-podio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.podio-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 12px;
  position: relative;
}
.podio-1 {
  background: linear-gradient(135deg, #FFF7D9 0%, #FFD97A 100%);
  order: 2;
  padding-top: 20px;
  padding-bottom: 18px;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.25);
}
.podio-2 {
  background: linear-gradient(135deg, #F0F0F0 0%, #D0D0D0 100%);
  order: 1;
  margin-top: 16px;
}
.podio-3 {
  background: linear-gradient(135deg, #F4D5A8 0%, #DD9F5E 100%);
  order: 3;
  margin-top: 24px;
}
.podio-medaglia {
  font-size: 26px;
  line-height: 1;
}
.podio-pos {
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  margin: 4px 0;
}
.podio-nome {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.podio-1 .podio-nome { font-size: 12px; }

.archivio-premi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.archivio-premio {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border-radius: 10px;
  padding: 9px 10px;
}
.archivio-premio .ap-ico {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}
.archivio-premio .ap-text { min-width: 0; }
.archivio-premio .ap-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
}
.archivio-premio .ap-nome {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-top: 1px;
}

@media (max-width: 380px) {
  .archivio-premi { grid-template-columns: 1fr; }
}

/* ============ VOTI 1-X-2 ============ */
.voti-widget {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.voti-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.voti-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.voti-total {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.voti-message {
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.voti-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.voti-btn {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 92px;
}
.voti-btn:hover:not(:disabled) {
  border-color: var(--verde);
  background: rgba(127, 232, 154, 0.08);
  transform: translateY(-1px);
}
.voti-btn:disabled { cursor: default; opacity: 0.85; }
.voti-btn .voti-label {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.voti-btn-x .voti-label { color: var(--verde-scuro); }
.voti-btn .voti-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.voti-btn .voti-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 18px;
  height: 4px;
  background: rgba(20, 56, 77, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.voti-btn .voti-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--verde) 0%, var(--verde-chiaro) 100%);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.voti-btn .voti-pct {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.voti-done .voti-btn { cursor: default; }
.voti-done .voti-btn.voted {
  background: linear-gradient(135deg, rgba(127, 232, 154, 0.2) 0%, rgba(127, 232, 154, 0.1) 100%);
  border-color: var(--verde);
  border-width: 2px;
}
.voti-done .voti-btn.voted::after {
  content: "✓ Il tuo voto";
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 800;
  background: var(--verde);
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* ============ POPUP EVENTO ============ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.popup-box {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  max-width: 100%;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.popup-overlay.show .popup-box {
  transform: scale(1);
}
.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.popup-close:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.08);
}
.popup-content {
  display: block;
  color: inherit;
  text-decoration: none;
}
.popup-content:hover { text-decoration: none; color: inherit; }
.popup-image {
  width: 100%;
  display: block;
  max-height: 60vh;
  object-fit: contain;
  background: var(--bg);
}
.popup-meta {
  padding: 16px 20px 18px;
  background: linear-gradient(180deg, white 0%, #F4F8FA 100%);
}
.popup-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.popup-sub {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  margin-top: 4px;
}
.popup-info {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-top: 8px;
}
.popup-cta {
  margin-top: 12px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(61, 167, 107, 0.25);
}

/* ============ COUNTDOWN ============ */
.countdown-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FA 100%);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 236, 240, 0.6);
  text-align: center;
}
.countdown-box-big {
  background: linear-gradient(135deg, #0E2632 0%, #1A3A4A 50%, #1F4F65 100%);
  color: white;
  padding: 14px 16px;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(14, 38, 50, 0.25);
}
.countdown-box-big::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(127, 232, 154, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.countdown-box-big::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 50%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(123, 205, 232, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.countdown-box-big .countdown-label {
  color: rgba(127, 232, 154, 0.9);
  font-size: 10px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.countdown-box-big .cd-num {
  font-size: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #B8E6C8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(127, 232, 154, 0.3);
  position: relative;
  z-index: 1;
}
.countdown-box-big .cd-lab {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  letter-spacing: 0.8px;
  position: relative;
  z-index: 1;
}
.countdown-box-big .cd-sep {
  color: rgba(127, 232, 154, 0.35);
  position: relative;
  z-index: 1;
  font-size: 18px;
}

/* Heading sezione (Prossime/Oggi/Ultime partite + data) */
.day-heading {
  margin: 8px 0 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #F4F8FA 0%, #ffffff 100%);
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.day-heading-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--verde-scuro);
  text-transform: uppercase;
}
.day-heading-date {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  text-transform: capitalize;
}

.countdown-box.cd-live {
  background: linear-gradient(135deg, #D85555 0%, #b94545 100%);
  color: white;
  border-color: transparent;
}
.countdown-box.cd-done {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: white;
  border-color: transparent;
}
.countdown-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.cd-live .countdown-label,
.cd-done .countdown-label {
  color: white;
  font-size: 16px;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}
.cd-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--verde-scuro) 0%, var(--azzurro-scuro) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cd-lab {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-top: 3px;
}
.cd-sep {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-soft);
  opacity: 0.4;
  align-self: flex-start;
  margin-top: 2px;
}

/* ============ PREMI ============ */
.premio-box {
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: white;
}
.premio-box::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.premio-oro {
  background: linear-gradient(135deg, #F5C842 0%, #E8A93D 50%, #C88A2C 100%);
}
.premio-azzurro {
  background: linear-gradient(135deg, #7BCDE8 0%, #4FA3C2 50%, #2A7A98 100%);
}
.premio-verde {
  background: linear-gradient(135deg, #7FE89A 0%, #3DA76B 50%, #2F8A55 100%);
}
.premio-attaccante {
  background: linear-gradient(135deg, #E8703A 0%, #C8551E 50%, #A03D10 100%);
}
.premio-giovane {
  background: linear-gradient(135deg, #A8E6CF 0%, #5FBF8E 50%, #3D9466 100%);
}

/* ============ PREMI IN DENARO TOP 3 ============ */
.premio-cash {
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F8FA 100%);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(20, 56, 77, 0.08);
}
.cash-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px dashed var(--border);
}
.cash-row:last-child { border-bottom: none; }
.cash-medal {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cash-1 { background: linear-gradient(135deg, #F5C842 0%, #E0A82E 100%); box-shadow: 0 3px 10px rgba(224, 168, 46, 0.4); }
.cash-2 { background: linear-gradient(135deg, #D8D8D8 0%, #A8A8A8 100%); box-shadow: 0 3px 10px rgba(168, 168, 168, 0.4); }
.cash-3 { background: linear-gradient(135deg, #D88A60 0%, #B86A40 100%); box-shadow: 0 3px 10px rgba(184, 106, 64, 0.4); }
.cash-label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.cash-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--verde-scuro);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* ============ CAPOCANNONIERE CARD ============ */
.capocann-card {
  background: linear-gradient(135deg, #0E2632 0%, #1A3A4A 100%);
  color: white;
  border: none;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(14, 38, 50, 0.3);
  position: relative;
  overflow: hidden;
}
.capocann-card::after {
  content: "⚽";
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 140px;
  opacity: 0.05;
  pointer-events: none;
}
.capocann-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  position: relative;
}
.capocann-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-scuro) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(61, 167, 107, 0.4);
}
.capocann-eyebrow {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(127, 232, 154, 0.85);
}
.capocann-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.capocann-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.cc-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-leader {
  background: linear-gradient(135deg, rgba(127, 232, 154, 0.18) 0%, rgba(127, 232, 154, 0.06) 100%);
  border-color: rgba(127, 232, 154, 0.35);
  box-shadow: 0 4px 12px rgba(127, 232, 154, 0.15);
}
.cc-pos {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
}
.cc-leader .cc-pos {
  background: linear-gradient(135deg, #F5C842 0%, #E8A93D 100%);
  color: #4A3A0E;
  box-shadow: 0 2px 8px rgba(245, 200, 66, 0.5);
}
.cc-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.cc-name strong {
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.cc-name .cc-squad {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
.cc-gol {
  font-size: 22px;
  font-weight: 900;
  color: var(--verde-chiaro);
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-width: 60px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(127, 232, 154, 0.15);
  border: 1.5px solid rgba(127, 232, 154, 0.55);
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}
.cc-gol::before {
  content: "⚽";
  font-size: 18px;
}
.cc-leader .cc-gol {
  color: #FFD97A;
  background: rgba(255, 217, 122, 0.15);
  border-color: rgba(255, 217, 122, 0.65);
}
.cc-gol-lab {
  display: none;  /* etichetta "gol" ridondante con l'emoji pallone */
}

.premio-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.premio-box-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  line-height: 1;
}
.premio-box-titolo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.premio-box-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  background: rgba(255,255,255,0.18);
  padding: 4px 9px;
  border-radius: 8px;
}
.premio-box-body {
  position: relative;
  z-index: 1;
}

.premio-vincitore {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 14px;
}
.premio-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.premio-vincitore-nome {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.premio-vincitore-squadra {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 600;
  margin-top: 2px;
}

.premio-attesa-box {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  opacity: 0.92;
}

/* Capocannoniere lista */
.capo-lista {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 6px;
}
.capo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.capo-row:last-child { border-bottom: none; }
.capo-row.capo-leader {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  border-bottom-color: transparent;
  margin-bottom: 2px;
}
.capo-pos {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.capo-pos.gold {
  background: linear-gradient(135deg, #FFD700, #F0B83A);
  color: #14384D;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}
.capo-pos.silver { background: linear-gradient(135deg, #E5E5E5, #B0B0B0); color: #14384D; }
.capo-pos.bronze { background: linear-gradient(135deg, #DD9F5E, #B07842); color: white; }

.capo-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  object-fit: cover;
  flex-shrink: 0;
}
.capo-logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--verde-scuro);
  background: white;
}
.capo-info { flex: 1; min-width: 0; }
.capo-nome {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.1px;
}
.capo-squadra {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
  margin-top: 1px;
}
.capo-gol {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.capo-gol small {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ SOCIAL PROFILE CARDS (pagina /foto) ============ */
.social-profile {
  display: block;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  text-decoration: none;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.social-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(20, 56, 77, 0.2);
  text-decoration: none;
  color: white;
}

.social-profile.social-ig {
  background: linear-gradient(135deg, #FFDC80 0%, #FCAF45 18%, #F77737 33%, #F56040 50%, #FD1D1D 68%, #E1306C 82%, #833AB4 100%);
}
.social-profile.social-fb {
  background: linear-gradient(135deg, #4267B2 0%, #1877F2 50%, #0D5BD8 100%);
}

.social-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 0;
}
.social-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.social-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.social-profile-logo {
  background: white;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  line-height: 0;
}
.social-profile-body {
  padding: 14px 18px 4px;
}
.social-profile-handle {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.social-profile-name {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.95;
  margin-top: 2px;
}
.social-profile-bio {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 6px;
}
.social-profile-cta {
  margin: 14px 14px 14px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.social-profile-cta .arr {
  font-size: 18px;
  transition: transform 0.2s ease;
}
.social-profile:hover .social-profile-cta .arr {
  transform: translateX(4px);
}

/* ============ BACHECA EVENTI ============ */
.bacheca-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px;
}
.bacheca-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.bacheca {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.evento-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
  color: inherit;
  border: 1px solid rgba(228, 236, 240, 0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.evento-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--verde-chiaro);
}
.evento-card:active { transform: translateY(0); }
.evento-locandina {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  overflow: hidden;
}
.evento-locandina img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.evento-card:hover .evento-locandina img {
  transform: scale(1.04);
}
.evento-locandina.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,0.4);
}
.evento-info {
  padding: 14px 16px;
}
.evento-titolo {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.evento-meta {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Detail page locandina */
.evento-detail-locandina {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  cursor: zoom-in;
}
.evento-detail-locandina img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  border: none;
  font-size: 28px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

/* ============ DAY NAVIGATOR ============ */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F7F9 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(228, 236, 240, 0.6);
}
.day-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.day-nav-btn:hover {
  background: var(--verde);
  color: white;
  text-decoration: none;
  transform: scale(1.08);
}
.day-nav-btn svg { width: 22px; height: 22px; }
.day-nav-btn.disabled { opacity: 0.2; pointer-events: none; }

.day-nav-label {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.day-nav-date {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  text-transform: capitalize;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.day-nav-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--verde);
  margin-top: 3px;
}
.day-nav-tag.link { color: var(--azzurro-scuro); }
.day-nav-tag.link:hover { text-decoration: underline; }

/* Desktop tweaks */
@media (min-width: 768px) {
  .container { padding: 24px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === BANNER FINALE TORNEO === */
.banner-finale {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.banner-finale.is-visible { opacity: 1; }
.banner-finale-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(14, 38, 50, 0.88) 0%, rgba(0, 0, 0, 0.94) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.banner-finale-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #14384D 0%, #1F5470 50%, #1A5040 100%);
  color: white;
  border-radius: 22px;
  padding: 28px 24px 22px;
  max-width: 420px;
  width: 100%;
  box-shadow:
    0 0 0 2px rgba(255, 217, 122, 0.35),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(255, 217, 122, 0.25);
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.banner-finale.is-visible .banner-finale-card {
  transform: translateY(0) scale(1);
}
.banner-finale-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}
.banner-finale-close:hover { background: rgba(255, 255, 255, 0.3); }
.banner-finale-fireworks {
  font-size: 28px;
  letter-spacing: 8px;
  margin-bottom: 8px;
  animation: bannerBounce 2s ease-in-out infinite;
}
@keyframes bannerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.banner-finale-title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FFD97A, #FFA733);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFD97A;  /* fallback */
}
.banner-finale-sub {
  font-size: 15px;
  opacity: 0.88;
  margin: 0 0 22px;
}
.banner-finale-podium {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.banner-finale-winner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  text-align: left;
}
.banner-finale-winner-1 {
  background: linear-gradient(135deg, rgba(255, 217, 122, 0.20), rgba(255, 167, 51, 0.12));
  border-color: rgba(255, 217, 122, 0.55);
  box-shadow: 0 0 20px rgba(255, 217, 122, 0.18);
}
.banner-finale-winner-2 {
  background: linear-gradient(135deg, rgba(232, 169, 61, 0.18), rgba(200, 138, 44, 0.10));
  border-color: rgba(232, 169, 61, 0.45);
}
.banner-finale-w-medal {
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
}
.banner-finale-w-info { flex: 1; min-width: 0; }
.banner-finale-w-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2px;
}
.banner-finale-w-name {
  font-size: 19px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.3px;
}
.banner-finale-ok {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(135deg, #FFD97A, #FFA733);
  color: #14384D;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 167, 51, 0.35);
}
.banner-finale-ok:hover { transform: translateY(-1px); }
.banner-finale-ok:active { transform: translateY(0); }

/* === POST-TORNEO: riepilogo premi in home === */
.post-hero {
  text-align: center;
  padding: 20px 12px 24px;
}
.post-hero-fireworks {
  font-size: 36px;
  letter-spacing: 10px;
  margin-bottom: 8px;
  animation: bannerBounce 2s ease-in-out infinite;
}
.post-hero-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 4px;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #FFD97A, #FFA733);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #C88A2C;
}
.post-hero-sub {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  font-weight: 600;
}

.post-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 22px 0 10px;
  padding-left: 4px;
}

.post-podium {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}
.post-podium-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: white;
  border-radius: 14px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 14px rgba(20, 56, 77, 0.06);
}
.post-podium-gold {
  border-color: rgba(232, 169, 61, 0.6);
  background: linear-gradient(135deg, #FFFCF3, #FFF7E0);
  box-shadow: 0 6px 22px rgba(232, 169, 61, 0.22);
}
.post-podium-silver {
  border-color: rgba(180, 180, 180, 0.55);
  background: linear-gradient(135deg, #FAFAFA, #EFEFEF);
}
.post-podium-bronze {
  border-color: rgba(205, 127, 50, 0.5);
  background: linear-gradient(135deg, #FFF9F4, #F8ECDF);
}
.post-podium-medal {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}
.post-podium-body { flex: 1; min-width: 0; }
.post-podium-pos {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.post-podium-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.post-podium-name a {
  color: inherit;
  text-decoration: none;
}
.post-podium-name a:hover { text-decoration: underline; }
.post-podium-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.post-podium-stats {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.post-podium-stats span { white-space: nowrap; }

.post-prize-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #F4FBF6, #E6F0EA);
  border: 2px solid rgba(61, 167, 107, 0.35);
  border-radius: 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}
.post-prize-card-tt {
  background: linear-gradient(135deg, rgba(232, 169, 61, 0.16), rgba(232, 169, 61, 0.04));
  border-color: rgba(232, 169, 61, 0.55);
}
.post-prize-medal {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.post-prize-body { flex: 1; min-width: 0; }
.post-prize-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.post-prize-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}
.post-prize-name:last-child { margin-bottom: 0; }
.post-prize-squadra {
  font-size: 12px;
  font-weight: 700;
  color: var(--verde-scuro);
  margin-left: 6px;
}
.post-prize-detail {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  margin-top: 3px;
}
.post-prize-arrow {
  font-size: 24px;
  color: var(--text-soft);
  font-weight: 700;
  flex-shrink: 0;
}

.post-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 22px;
}
@media (min-width: 600px) {
  .post-links { grid-template-columns: repeat(3, 1fr); }
}
.post-link {
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: all 0.15s;
}
.post-link:hover {
  border-color: var(--verde);
  background: var(--bg);
}

/* Grid premi individuali (MVP, portiere, giovane, attaccante) */
.post-prizes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
@media (min-width: 600px) {
  .post-prizes-grid { grid-template-columns: 1fr 1fr; }
}
.post-prize-card-mini {
  padding: 12px 14px;
  gap: 10px;
  background: white;
  border-color: var(--border);
}
.post-prize-card-mini .post-prize-medal { font-size: 28px; }
.post-prize-card-mini .post-prize-name { font-size: 15px; }
