/* risultati.css */

/* Google Font (Roboto) — usato da .vr-risultati */
@import url(‘https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap’);

/* ================================================================
   VR — RISULTATI VOTAZIONI  (v3.2)
   Tre layout: .vr-classico / .vr-moderno / .vr-cards
   Tutti i colori su --votazioni-colore e --votazioni-colore-testo
   ================================================================ */

/* --- BASE COMUNE --- */
.vr-risultati {
  font-family: 'Roboto', sans-serif;
  max-width: 100%;
  margin: 0 auto;
}
.vr-titolo {
  font-size: calc(1.8cqw * var(--vr-scale));
  font-weight: 700;
  text-align: center;
  margin: 0 0 20px;
  color: #333;
}
.vr-sottotitolo {
  font-size: calc(1.2cqw * var(--vr-scale));
  font-weight: normal;
  color: #333;
  text-align: center;
  margin-top: 0rem;
  margin-bottom: 1rem;
}

/* ================================================================
   ESITO DELIBERA (comune a tutti e 3 i layout)
   ================================================================ */
.vr-esito-box {
  background: var(--votazioni-colore);
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 18px;
  text-align: center;
}
.vr-esito-label {
  font-size: calc(1.5cqw * var(--vr-scale));
  color: var(--votazioni-colore-testo);
  opacity: 0.8;
  margin-bottom: 4px;
  padding-bottom: 10px;
}
.vr-esito-approvata,
.vr-esito-non-approvata {
  font-size: calc(1.5cqw * var(--vr-scale));
  font-weight: 700;
  color: var(--votazioni-colore-testo);
  padding-top: 4px;
  padding-bottom: 10px;
}
.vr-esito-dettaglio {
  font-size: calc(0.8cqw * var(--vr-scale));
  color: var(--votazioni-colore-testo);
  opacity: 0.85;
  margin-top: 4px;
  padding-top: 4px;
  padding-bottom: 2px;
}
.vr-esito-warning {
  font-size: calc(0.8cqw * var(--vr-scale));
  color: var(--votazioni-colore-testo);
  opacity: 0.9;
  margin-top: 4px;
  padding-top: 4px;
}
.vr-esito-nota {
  font-size: calc(1.0cqw * var(--vr-scale));
  color: var(--votazioni-colore-testo);
  opacity: 0.75;
  margin-top: 4px;
  padding-top: 4px;
}

/* ================================================================
   LAYOUT CLASSICO
   ================================================================ */
.vr-classico .vr-tabella {
  width: 100%;
  border-collapse: collapse;
  font-size: calc(1.3cqw * var(--vr-scale));
}
.vr-classico .vr-tabella thead tr {
  background-color: var(--votazioni-colore);
}
.vr-classico .vr-tabella thead th {
  color: var(--votazioni-colore-testo);
  padding: 10px 30px;
  text-align: left;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.1);
}
.vr-classico .vr-tabella tbody td {
  padding: 10px 30px;
  border: 1px solid #ddd;
  color: #333;
}
.vr-classico .vr-row-presenti td {
  font-weight: 700;
  background: #f9f9f9;
}
.vr-classico .vr-row-divider td {
  text-align: center;
  font-style: italic;
  font-size: 20px;
  color: #888;
  background: #fafafa;
  padding: 6px;
}
.vr-classico .vr-indent {
  padding-left: 28px !important;
}

/* ================================================================
   LAYOUT MODERNO
   ================================================================ */
.vr-moderno .vr-mod-meta {
  font-size: calc(1.1cqw * var(--vr-scale));
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}
.vr-moderno .vr-titolo {
  text-align: left;
  margin-bottom: 24px;
}
.vr-moderno .vr-mod-row {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fff;
}
.vr-moderno .vr-mod-row.vr-mod-winner {
  border-color: var(--votazioni-colore);
  border-width: 2px;
}
.vr-moderno .vr-mod-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.vr-moderno .vr-mod-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: calc(1.2cqw * var(--vr-scale));
  font-weight: 700;
  color: #333;
  letter-spacing: .04em;
}
.vr-moderno .vr-mod-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.vr-moderno .vr-mod-icon.vr-fav  { background: #d4edda; color: #1a6b3a; }
.vr-moderno .vr-mod-icon.vr-cont { background: #f8d7da; color: #7b1c1c; }
.vr-moderno .vr-mod-icon.vr-ast  { background: #e8e8e8; color: #555; }
.vr-moderno .vr-mod-pct {
  font-size: calc(1.5cqw * var(--vr-scale));
  font-weight: 700;
  color: #333;
}
.vr-moderno .vr-mod-bar-bg {
  height: 8px;
  background: #efefef;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.vr-moderno .vr-mod-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}
.vr-moderno .vr-mod-bar-fill.vr-fav  { background: var(--votazioni-colore); }
.vr-moderno .vr-mod-bar-fill.vr-cont { background: #c0392b; }
.vr-moderno .vr-mod-bar-fill.vr-ast  { background: #aaa; }
.vr-moderno .vr-mod-sub {
  font-size: calc(1.0cqw * var(--vr-scale));
  color: #888;
}
.vr-moderno .vr-mod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #e8e8e8;
  font-size: calc(1cqw * var(--vr-scale));
  color: #888;
}
.vr-moderno .vr-mod-badge-ok {
  font-weight: 700;
  color: #1a6b3a;
}

/* ================================================================
   LAYOUT CARDS
   ================================================================ */
.vr-cards .vr-titolo {
  margin-bottom: 6px;
}
.vr-cards .vr-cards-sub {
  text-align: center;
  font-size: calc(1.0cqw * var(--vr-scale));
  color: #888;
  margin-bottom: 12px;
}
.vr-cards .vr-cards-winner {
  text-align: center;
  font-size: calc(1.1cqw * var(--vr-scale));
  color: #333;
  background: #f0f9f4;
  border: 1px solid #b7dfc7;
  border-radius: 4px;
  padding: 6px 12px;
  display: inline-block;
  margin: 0 auto 20px;
  width: 100%;
  box-sizing: border-box;
}
.vr-cards .vr-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.vr-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}
.vr-card.vr-card-active {
  border-color: var(--votazioni-colore);
  border-width: 2px;
}
.vr-card .vr-card-label {
  font-size: calc(1.0cqw * var(--vr-scale));
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}
.vr-card .vr-card-pct {
  font-size: calc(2cqw * var(--vr-scale));
  font-weight: 700;
  line-height: 1;
  margin-bottom: calc(0.8cqw * var(--vr-scale));
  color: #333;
}
.vr-card.vr-card-active .vr-card-pct {
  color: var(--votazioni-colore);
}
.vr-card .vr-card-voti {
  font-size: calc(1.1cqw * var(--vr-scale));
  color: #555;
  margin-bottom: calc(1cqw * var(--vr-scale));
}
.vr-card .vr-card-count {
  font-size: calc(1cqw * var(--vr-scale));
  color: #888;
  margin-bottom: calc(1cqw * var(--vr-scale));
}
.vr-card .vr-card-bar {
  height: 4px;
  background: #efefef;
  border-radius: 2px;
  overflow: hidden;
}
.vr-card .vr-card-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--votazioni-colore);
}
.vr-cards .vr-cards-total {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: calc(1.1cqw * var(--vr-scale));
  color: #555;
}
.vr-cards .vr-cards-total span:last-child {
  font-weight: 700;
  color: #333;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .vr-cards .vr-cards-grid {
    grid-template-columns: 1fr;
  }
  .vr-card .vr-card-pct {
    font-size: 28px;
  }
  .vr-titolo {
    font-size: 18px;
  }
}

/* ===============================
   Messaggio "Risultati non ancora disponibili"
   (Pannello Segreteria - gate risultati)
   =============================== */
.votazioni-risultati-bloccati {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px 30px;
    text-align: center;
    background: #fff8e1;
    border: 1px solid #ffd54f;
    border-radius: 8px;
    color: #5d4037;
}

.votazioni-risultati-bloccati p {
    margin: 8px 0;
    font-size: 16px;
}

.votazioni-risultati-bloccati p strong {
    font-size: 20px;
    display: block;
    margin-bottom: 10px;
}

/* ===============================
   Messaggio "Accesso riservato"
   (Chiusura pagine risultati - STEP 4A)
   =============================== */
.votazioni-accesso-negato {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px 30px;
    text-align: center;
    background: #fff;
    border: 2px solid #c0392b;
    border-radius: 8px;
}

.votazioni-accesso-negato h2 {
    color: #c0392b;
    margin: 0 0 15px;
    font-size: 24px;
}

.votazioni-accesso-negato p {
    margin: 0;
    color: #555;
    font-size: 16px;
}