/* ============================================================
   PUBBLICO2.CSS — Nuove viste pubbliche approvate
   Home, Gironi, Live, Risultati, Classifiche, Cannonieri,
   Tabellone, Contatti+Campi, Voti Pubblico, Schermata Voto
   ============================================================ */

/* ------------------------------------------------------------
   BOTTONE AGGIORNA VERDE (riquadro verde + pulse)
   ------------------------------------------------------------ */
.btn-aggiorna-verde {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EAF3DE;
  color: #27500A;
  border: 1.5px solid #639922;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  animation: pulse-verde 1.6s ease-in-out infinite;
}
@keyframes pulse-verde {
  0%   { box-shadow: 0 0 0 0 rgba(99,153,34,0.4); }
  55%  { box-shadow: 0 0 0 7px rgba(99,153,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,153,34,0); }
}

/* ------------------------------------------------------------
   NAV PUBBLICA 6 BOTTONI (3x2)
   ------------------------------------------------------------ */
.pub-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0.5rem;
}
.pub-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--bordo);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--testo);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: var(--trans-s);
  gap: 4px;
}
.pub-nav-btn.attivo {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}
.pub-nav-btn-live {
  border-color: #E24B4A;
  background: #FCEBEB;
  color: #A32D2D;
}
.pub-nav-btn-live.attivo {
  border-color: #E24B4A;
  background: #E24B4A;
  color: #fff;
}
.pv-live-dot {
  width: 7px; height: 7px;
  background: #E24B4A;
  border-radius: 50%;
  display: inline-block;
  animation: pv-blink 1s ease-in-out infinite;
}
.pub-nav-btn-live.attivo .pv-live-dot { background: #fff; }
@keyframes pv-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ------------------------------------------------------------
   LINK CONTATTI + CAMPI DA GIOCO sotto la nav
   ------------------------------------------------------------ */
.pub-link-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 2px 0 12px;
}
.pub-link-sec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--testo);
  cursor: pointer;
  background: var(--s1);
  border: 1.5px solid var(--bordo-f);
  border-radius: 20px;
  padding: 7px 16px;
}

/* ------------------------------------------------------------
   RIQUADRO CELESTE VOTO (home)
   ------------------------------------------------------------ */
.pv-voto-banner {
  border-radius: var(--raggio-l);
  border: 1.5px solid #378ADD;
  background: #E6F1FB;
  overflow: hidden;
  margin-bottom: 0.625rem;
}
.pv-voto-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 6px;
}
.pv-voto-icona {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #B5D4F4;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
  color: #185FA5;
}
.pv-voto-titolo { font-size: 0.8125rem; font-weight: 700; color: #0C447C; line-height: 1.35; }
.pv-voto-sub    { font-size: 0.6875rem; color: #185FA5; margin-top: 2px; }
.pv-voto-istruzione {
  font-size: 0.6875rem;
  color: #185FA5;
  padding: 0 12px 6px;
}
.pv-voto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px 10px;
  border-top: 1px solid #B5D4F4;
}
.pv-voto-timer { font-size: 0.6875rem; color: #185FA5; }
.pv-voto-btn {
  background: #185FA5;
  color: #E6F1FB;
  border: none;
  border-radius: var(--raggio);
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bottone Risultati Votazione Pubblico */
.pv-btn-votazioni {
  width: 100%;
  border-radius: var(--raggio-l);
  border: 1.5px solid #378ADD;
  background: var(--bg);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 0.875rem;
  text-align: left;
}
.pv-btn-votazioni-testo { font-size: 0.8125rem; font-weight: 700; color: #185FA5; }
.pv-btn-votazioni-sub   { font-size: 0.6875rem; color: var(--testo-m); margin-top: 2px; }

/* ------------------------------------------------------------
   BARRA "TORNA" per pagine interne
   ------------------------------------------------------------ */
.pv-back-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--testo-m);
  cursor: pointer;
}

/* ------------------------------------------------------------
   GIRONI — card header nero, collassabili
   ------------------------------------------------------------ */
.pv-girone-card {
  border-radius: var(--raggio-l);
  border: 1px solid var(--bordo);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 10px;
}
.pv-girone-header {
  background: #1a1a1a;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.pv-girone-nome { font-size: 0.8125rem; font-weight: 700; color: #fff; }
.pv-girone-cat  { font-size: 0.6875rem; color: #aaa; }
.pv-sq-riga {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--bordo);
}
.pv-sq-riga:last-child { border-bottom: none; }
.pv-sq-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--s1);
  border: 1px solid var(--bordo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--testo-m);
}
.pv-sq-logo img { width: 100%; height: 100%; object-fit: contain; }
.pv-sq-nome { font-size: 0.8125rem; font-weight: 600; color: var(--testo); flex: 1; }
.pv-sq-naz  { font-size: 0.6875rem; color: var(--testo-m); }

/* ------------------------------------------------------------
   LIVE — card bordo rosso compatte (no minuti)
   ------------------------------------------------------------ */
.pv-contatore-live {
  background: #FCEBEB;
  color: #A32D2D;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pv-live-card {
  border-radius: var(--raggio-l);
  border: 1.5px solid #E24B4A;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 10px;
  cursor: pointer;
}
.pv-live-header {
  background: #FCEBEB;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F7C1C1;
}
.pv-live-info { font-size: 0.6875rem; color: #791F1F; }
.pv-badge-live {
  background: #E24B4A;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pv-badge-live .pv-live-dot { background: #fff; }
.pv-live-body { padding: 12px; }
.pv-live-row { display: flex; align-items: center; gap: 8px; }
.pv-live-sq {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pv-live-sq-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--s1);
  border: 1px solid var(--bordo);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--testo-m);
}
.pv-live-sq-logo img { width: 100%; height: 100%; object-fit: contain; }
.pv-live-sq-nome { font-size: 0.75rem; font-weight: 600; color: var(--testo); text-align: center; line-height: 1.2; }
.pv-live-score { display: flex; align-items: center; gap: 6px; }
.pv-live-gol { font-size: 1.75rem; font-weight: 800; color: var(--testo); min-width: 30px; text-align: center; }
.pv-live-sep { font-size: 1.125rem; color: var(--testo-l); }
.pv-live-marcatori {
  padding: 0 12px 10px;
  font-size: 0.6875rem;
  color: var(--testo-m);
}
.pv-live-vota {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #E6F1FB;
  border-top: 1px solid #B5D4F4;
  font-size: 0.75rem;
  font-weight: 600;
  color: #185FA5;
}

/* Prossime partite */
.pv-prossima-card {
  border-radius: var(--raggio-l);
  border: 1px solid var(--bordo);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  margin-bottom: 8px;
}
.pv-prossima-sq   { font-size: 0.75rem; font-weight: 600; color: var(--testo); }
.pv-prossima-info { font-size: 0.6875rem; color: var(--testo-m); margin-top: 2px; }
.pv-prossima-ora  { font-size: 0.8125rem; font-weight: 700; color: var(--testo); background: var(--s1); border-radius: 8px; padding: 4px 10px; }

/* ------------------------------------------------------------
   PILLOLE FILTRO (Risultati, Classifiche)
   ------------------------------------------------------------ */
.pv-pillole {
  display: flex;
  gap: 6px;
  padding: 4px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pv-pillole::-webkit-scrollbar { display: none; }
.pv-pillola {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--bordo);
  background: var(--s1);
  color: var(--testo-m);
  cursor: pointer;
  white-space: nowrap;
}
.pv-pillola.attiva {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* ------------------------------------------------------------
   RISULTATI — raggruppati per data, vincente blu
   ------------------------------------------------------------ */
.pv-data-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--testo-m);
  padding: 8px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pv-data-line { flex: 1; height: 1px; background: var(--bordo); }
.pv-ris-card {
  border-radius: var(--raggio-l);
  border: 1px solid var(--bordo);
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 6px;
}
.pv-ris-header {
  padding: 5px 12px;
  background: var(--s1);
  border-bottom: 1px solid var(--bordo);
  font-size: 0.6875rem;
  color: var(--testo-m);
}
.pv-ris-body {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  gap: 8px;
}
.pv-ris-sq {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--testo);
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.pv-ris-sq.destra { flex-direction: row-reverse; text-align: right; }
.pv-ris-sq.vincente { color: #0C447C; }
.pv-mini-logo {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--s1);
  border: 1px solid var(--bordo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--testo-m);
}
.pv-mini-logo img { width: 100%; height: 100%; object-fit: contain; }
.pv-ris-punteggio {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--s1);
  border-radius: 8px;
  padding: 4px 10px;
  flex-shrink: 0;
}
.pv-ris-gol { font-size: 1rem; font-weight: 700; color: var(--testo); min-width: 16px; text-align: center; }
.pv-ris-gol.vincente { color: #185FA5; }
.pv-hint {
  text-align: center;
  padding: 8px 14px;
  font-size: 0.6875rem;
  color: var(--testo-m);
}

/* ------------------------------------------------------------
   CLASSIFICHE — header blu, nessuna colorazione qualificate
   ------------------------------------------------------------ */
.pv-cls-card {
  border-radius: var(--raggio-l);
  border: 1px solid var(--bordo);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 12px;
}
.pv-cls-header {
  background: #185FA5;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pv-cls-nome { font-size: 0.8125rem; font-weight: 700; color: #E6F1FB; }
.pv-cls-cat  { font-size: 0.6875rem; color: #85B7EB; }
.pv-cls-table { width: 100%; border-collapse: collapse; }
.pv-cls-table th {
  font-size: 0.625rem;
  color: var(--testo-m);
  font-weight: 600;
  text-align: center;
  padding: 7px 3px;
  border-bottom: 1px solid var(--bordo);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.pv-cls-table th.sx { text-align: left; padding-left: 12px; }
.pv-cls-table td {
  font-size: 0.75rem;
  color: var(--testo);
  text-align: center;
  padding: 8px 3px;
  border-bottom: 1px solid var(--bordo);
}
.pv-cls-table td.sx { text-align: left; padding-left: 12px; }
.pv-cls-table tr:last-child td { border-bottom: none; }
.pv-cls-table tr { cursor: pointer; }
.pv-pos-badge {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--s1);
  color: var(--testo-m);
}
.pv-cls-sq { font-size: 0.75rem; font-weight: 600; color: var(--testo); }
.pv-col-pt { font-size: 0.8125rem; font-weight: 700; color: #185FA5; }

/* ------------------------------------------------------------
   CANNONIERI — podio top 3 + lista
   ------------------------------------------------------------ */
.pv-podio {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 16px;
}
.pv-podio-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.pv-podio-avatar {
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.pv-podio-1 .pv-podio-avatar { width: 64px; height: 64px; border-color: #EF9F27; font-size: 1.25rem; color: #854F0B; background: #FAEEDA; }
.pv-podio-2 .pv-podio-avatar { width: 52px; height: 52px; border-color: #B4B2A9; font-size: 1rem; color: #5F5E5A; background: #F1EFE8; }
.pv-podio-3 .pv-podio-avatar { width: 52px; height: 52px; border-color: #F0997B; font-size: 1rem; color: #993C1D; background: #FAECE7; }
.pv-podio-pos {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.pv-podio-1 .pv-podio-pos { background: #FAC775; color: #633806; }
.pv-podio-2 .pv-podio-pos { background: #D3D1C7; color: #444441; }
.pv-podio-3 .pv-podio-pos { background: #F5C4B3; color: #712B13; }
.pv-podio-nome { font-size: 0.75rem; font-weight: 600; color: var(--testo); text-align: center; line-height: 1.2; }
.pv-podio-sq   { font-size: 0.625rem; color: var(--testo-m); text-align: center; }
.pv-podio-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.8125rem;
  font-weight: 700;
}
.pv-badge-gol  { background: #FCEBEB; color: #A32D2D; }
.pv-badge-voti { background: #E6F1FB; color: #185FA5; }

.pv-lista-riga {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--bordo);
}
.pv-lista-riga:last-child { border-bottom: none; }
.pv-lista-pos {
  width: 24px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--testo-m);
  text-align: center;
  flex-shrink: 0;
}
.pv-lista-maglia {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--s1);
  border: 1px solid var(--bordo);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--testo-m);
  flex-shrink: 0;
}
.pv-lista-info { flex: 1; min-width: 0; }
.pv-lista-nome { font-size: 0.8125rem; font-weight: 600; color: var(--testo); }
.pv-lista-sq   { font-size: 0.6875rem; color: var(--testo-m); }

/* ------------------------------------------------------------
   TABELLONE — switch, turni, finale oro
   ------------------------------------------------------------ */
.pv-tab-switch { display: flex; gap: 8px; padding: 4px 0 10px; }
.pv-tab-sw {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  border: 1.5px solid var(--bordo);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--testo-m);
  text-align: center;
  cursor: pointer;
}
.pv-tab-sw.attivo {
  background: #185FA5;
  color: #fff;
  border-color: #185FA5;
}
.pv-turno-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--testo-m);
  padding: 8px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pv-match-card {
  border-radius: var(--raggio-l);
  border: 1px solid var(--bordo);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 6px;
}
.pv-match-card.finale { border: 1.5px solid #EF9F27; }
.pv-match-header {
  background: var(--s1);
  padding: 5px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--bordo);
  font-size: 0.6875rem;
  color: var(--testo-m);
}
.pv-match-header.finale-h { background: #FAEEDA; border-bottom-color: #FAC775; color: #633806; }
.pv-badge-done { background: #EAF3DE; color: #27500A; font-size: 0.625rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.pv-badge-prog { background: var(--s1); color: var(--testo-m); font-size: 0.625rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--bordo); }
.pv-badge-finale { background: #FAC775; color: #633806; font-size: 0.625rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.pv-match-body { padding: 8px 12px; }
.pv-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}
.pv-match-sq {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--testo);
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.pv-match-sq.win { color: #0C447C; }
.pv-match-sq.tbd { color: var(--testo-m); font-style: italic; font-weight: 400; }
.pv-match-gol { font-size: 0.9375rem; font-weight: 700; color: var(--testo); min-width: 18px; text-align: center; }
.pv-match-gol.win { color: #185FA5; }
.pv-match-gol.vuoto { color: var(--testo-l); }

/* ------------------------------------------------------------
   CONTATTI + CAMPI DA GIOCO
   ------------------------------------------------------------ */
.pv-contatto-card {
  border-radius: var(--raggio-l);
  border: 1px solid var(--bordo);
  background: var(--bg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.pv-contatto-icona {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #E6F1FB;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  color: #185FA5;
}
.pv-contatto-info { flex: 1; min-width: 0; }
.pv-contatto-label  { font-size: 0.6875rem; color: var(--testo-m); text-transform: uppercase; letter-spacing: 0.4px; }
.pv-contatto-valore { font-size: 0.875rem; font-weight: 600; color: var(--testo); margin-top: 1px; word-break: break-word; }
.pv-contatto-azione {
  font-size: 0.75rem;
  font-weight: 600;
  color: #185FA5;
  background: #E6F1FB;
  border-radius: 20px;
  padding: 5px 12px;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
}
.pv-div-sezione {
  height: 8px;
  background: var(--s1);
  border-top: 1px solid var(--bordo);
  border-bottom: 1px solid var(--bordo);
  margin: 10px -14px;
}
.pv-campo-card {
  border-radius: var(--raggio-l);
  border: 1px solid var(--bordo);
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 8px;
}
.pv-campo-body {
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pv-campo-icona {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #EAF3DE;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
  color: #3B6D11;
}
.pv-campo-info { flex: 1; min-width: 0; }
.pv-campo-nome      { font-size: 0.875rem; font-weight: 600; color: var(--testo); }
.pv-campo-indirizzo { font-size: 0.75rem; color: var(--testo-m); margin-top: 2px; line-height: 1.4; }
.pv-campo-note      { font-size: 0.6875rem; color: var(--testo-m); margin-top: 3px; }
.pv-campo-footer { display: flex; border-top: 1px solid var(--bordo); }
.pv-campo-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #185FA5;
  cursor: pointer;
  text-decoration: none;
  background: none;
  border: none;
}
.pv-campo-btn + .pv-campo-btn { border-left: 1px solid var(--bordo); }

/* ------------------------------------------------------------
   RISULTATI VOTAZIONE PUBBLICO (classifica totale)
   ------------------------------------------------------------ */
.pv-premio-banner {
  border-radius: var(--raggio-l);
  background: #FAEEDA;
  border: 1.5px solid #EF9F27;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pv-premio-icona {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #FAC775;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.0625rem;
  color: #633806;
}
.pv-premio-titolo { font-size: 0.8125rem; font-weight: 700; color: #633806; }
.pv-premio-sub    { font-size: 0.6875rem; color: #854F0B; margin-top: 1px; }
.pv-nota-info {
  border-radius: var(--raggio);
  background: var(--s1);
  padding: 9px 12px;
  font-size: 0.6875rem;
  color: var(--testo-m);
  line-height: 1.4;
  margin-top: 10px;
}

/* ------------------------------------------------------------
   SCHERMATA VOTO
   ------------------------------------------------------------ */
.pv-voto-match {
  padding: 12px 0;
  border-bottom: 1px solid var(--bordo);
  margin-bottom: 0;
}
.pv-voto-match-meta {
  font-size: 0.6875rem;
  color: var(--testo-m);
  text-align: center;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pv-voto-match-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pv-voto-score { font-size: 1.375rem; font-weight: 800; color: var(--testo); }
.pv-voto-header2 {
  background: #E6F1FB;
  border-bottom: 1px solid #B5D4F4;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -14px;
}
.pv-sq-tabs { display: flex; gap: 8px; padding: 12px 0 8px; }
.pv-sq-tab {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  border: 1.5px solid var(--bordo);
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--testo-m);
  text-align: center;
  cursor: pointer;
}
.pv-sq-tab.attivo {
  background: #185FA5;
  color: #fff;
  border-color: #185FA5;
}
.pv-gioc-riga {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--bordo);
  cursor: pointer;
}
.pv-gioc-riga.sel { background: #E6F1FB; border-radius: var(--raggio); }
.pv-gioc-maglia {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--s1);
  border: 1px solid var(--bordo);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--testo-m);
  flex-shrink: 0;
}
.pv-gioc-riga.sel .pv-gioc-maglia { background: #185FA5; color: #fff; border-color: #185FA5; }
.pv-gioc-nome { flex: 1; font-size: 0.8125rem; font-weight: 600; color: var(--testo); }
.pv-gioc-riga.sel .pv-gioc-nome { color: #0C447C; }
.pv-gioc-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--bordo);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.8125rem;
  color: transparent;
}
.pv-gioc-riga.sel .pv-gioc-check {
  background: #185FA5;
  border-color: #185FA5;
  color: #fff;
}
.pv-voto-conferma {
  width: 100%;
  background: #185FA5;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}
.pv-voto-conferma:disabled { opacity: 0.45; cursor: default; }
.pv-voto-nota-timer {
  font-size: 0.6875rem;
  color: var(--testo-m);
  text-align: center;
  margin-top: 8px;
}

/* ------------------------------------------------------------
   RESPONSIVE — desktop limita larghezza contenuti pubblici
   ------------------------------------------------------------ */
@media (min-width: 641px) {
  .pub-nav { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ------------------------------------------------------------
   MOTTO VOTO — banner evidenziato nella schermata di voto
   ------------------------------------------------------------ */
.pv-motto-voto {
  margin: 10px 0 2px;
  border-radius: var(--raggio-l);
  background: #FAEEDA;
  border: 1.5px solid #EF9F27;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-style: italic;
  color: #633806;
  text-align: center;
  line-height: 1.45;
}

/* ------------------------------------------------------------
   PATTERN HONEYCOMB (nido d'ape) — opacity 0.07
   Applicato a home pubblica e login
   ------------------------------------------------------------ */
.pub-layout,
.schermata-login {
  position: relative;
}
.pub-layout::before,
.schermata-login::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23000000' stroke-width='2'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23000000' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
/* Contenuto sopra il pattern */
.pub-layout > *,
.schermata-login > * {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------
   HOME PUBBLICA — testi più scuri (+30% opacità percepita)
   Porta il colore testo dal grigio-scuro #111827 al nero puro
   e aumenta il font-weight dei testi principali
   ------------------------------------------------------------ */
.pub-layout {
  --testo:   #000000;
  --testo-s: #1a1a1a;
}
.pub-layout .pub-nav-btn,
.pub-layout .pv-girone-nome,
.pub-layout .pv-sq-nome,
.pub-layout .pv-live-sq-nome,
.pub-layout .pv-ris-sq,
.pub-layout .pv-cls-sq,
.pub-layout .pv-lista-nome,
.pub-layout .pv-match-sq,
.pub-layout .pv-campo-nome,
.pub-layout .pv-contatto-valore,
.pub-layout .pv-prossima-sq,
.pub-layout .pv-podio-nome,
.pub-layout .hero-nome {
  color: #000000;
}

/* ------------------------------------------------------------
   LISTA GARA CONFERMATA — visibile nella sezione Live pubblica
   ------------------------------------------------------------ */
.pv-lista-gara-live {
  border-top: 0.5px solid #F7C1C1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pv-lista-gara-squadra {}
.pv-lista-gara-header {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #791F1F;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.pv-lista-gara-giocatori {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pv-lista-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FCEBEB;
  border: 0.5px solid #E24B4A;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.6875rem;
  color: #A32D2D;
  font-weight: 500;
}
.pv-maglia-chip {
  font-weight: 700;
  font-size: 0.625rem;
  background: #E24B4A;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ============================================================
   MODIFICA CONTATORE — barra aggiorna + striscia contatori
   ============================================================ */

/* Riga aggiorna dentro l'hero */
.pub-aggiorna-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 7px;
}
.pub-ultimo-agg-testo {
  font-size: 10px;
  color: #9CA3AF;
}
.pub-aggiorna-sep {
  font-size: 10px;
  color: #D1D5DB;
}
.pub-btn-aggiorna-txt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pub-aggiorna-ico {
  font-size: 11px;
  font-weight: 700;
  color: #27500A;
}
.pub-aggiorna-parola {
  font-size: 11px;
  font-weight: 700;
  color: #27500A;
  animation: pub-blink-aggiorna 1.4s ease-in-out infinite;
}
@keyframes pub-blink-aggiorna {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* Striscia contatore */
.pub-cnt-strip {
  display: flex;
  align-items: center;
  background: #F3F4F6;
  border-top: 0.5px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}
.pub-cnt-i {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 3px;
  border-right: 1px solid #E5E7EB;
}
.pub-cnt-i:last-child { border-right: none; }
.pub-cnt-n {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.pub-cnt-blu  { color: #185FA5; }
.pub-cnt-gial { color: #BA7517; }
.pub-cnt-teal { color: #0F6E56; }
.pub-cnt-l {
  font-size: 9px;
  font-weight: 500;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Motto voto — sostituisce il timer */
.pv-voto-motto {
  font-size: 10.5px;
  font-style: italic;
  color: #185FA5;
  padding: 0 12px 6px;
  line-height: 1.5;
}


/* ============================================================
   VOTAZIONI — 1° classificato celeste, lista lineare
   ============================================================ */
.pv-voti-primo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #E6F1FB;
  border: 1.5px solid #378ADD;
  border-radius: 12px;
  margin-bottom: 6px;
}
.pv-voti-primo-pos {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #185FA5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.pv-voti-primo-info { flex: 1; min-width: 0; }
.pv-voti-primo-nome {
  font-size: 13px;
  font-weight: 700;
  color: #0C447C;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pv-voti-primo-sq {
  font-size: 10px;
  color: #185FA5;
  margin-top: 1px;
}
.pv-voti-badge-1 {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #185FA5;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-left: auto;
}


/* ============================================================
   BANNER PREMIO CAPOCANNONIERE — identico al banner votazioni
   ============================================================ */
.pv-premio-banner {
  margin: 10px 0 12px;
  border-radius: 12px;
  background: #FAEEDA;
  border: 1.5px solid #EF9F27;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pv-premio-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FAC775;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.pv-premio-titolo {
  font-size: 13px;
  font-weight: 700;
  color: #633806;
}
.pv-premio-desc {
  font-size: 11px;
  color: #854F0B;
  margin-top: 2px;
  line-height: 1.4;
}

/* ============================================================
   HINT RISULTATI — lampeggiante rosso, più grande
   ============================================================ */
.pv-hint-lampeggiante {
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  color: #E24B4A !important;
  text-align: center;
  padding: 12px 16px;
  animation: hint-pulse 1.5s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}


/* ============================================================
   CLASSIFICHE — colori posizioni oro / argento
   ============================================================ */
.pv-cls-table tr.cls-oro {
  background: #FFFBEA;
}
.pv-cls-table tr.cls-oro td {
  border-bottom-color: #F5E090;
}
.pv-cls-table tr.cls-oro .pv-pos-badge {
  background: #F5C400;
  color: #5a3e00;
  font-weight: 700;
}
.pv-cls-table tr.cls-oro .pv-cls-sq {
  color: #7A5800;
  font-weight: 600;
}
.pv-cls-table tr.cls-oro .pv-col-pt {
  color: #9B6E00;
  font-weight: 700;
}

.pv-cls-table tr.cls-argento {
  background: #F6F7F8;
}
.pv-cls-table tr.cls-argento td {
  border-bottom-color: #E0E3E8;
}
.pv-cls-table tr.cls-argento .pv-pos-badge {
  background: #B0B8C1;
  color: #2e3a45;
  font-weight: 700;
}
.pv-cls-table tr.cls-argento .pv-cls-sq {
  color: #3D4E5C;
  font-weight: 600;
}
.pv-cls-table tr.cls-argento .pv-col-pt {
  color: #4A5568;
  font-weight: 700;
}


/* ============================================================
   CAROUSEL SNAP — gironi e classifiche
   ============================================================ */
.pv-carousel-wrap {
  width: 100%;
  overflow-x: hidden;       /* nasconde le slide non attive */
  overflow-y: visible;
  position: relative;
  /* NO scroll-snap-type qui — gestito da JS */
  -webkit-overflow-scrolling: touch;
}
.pv-carousel-track {
  display: flex;
  flex-direction: row;
  /* larghezza = n_gironi * 100% — impostata inline da JS se serve,
     ma con le slide width:100% del wrap è automatica */
}
.pv-carousel-slide {
  width: 100%;
  flex-shrink: 0;
  min-width: 100%;
}
