/* ─── Banner emergenza globale ─── */
.global-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.global-banner.banner-info    { background: #dbeafe; color: #1e40af; border-bottom: 1px solid #bfdbfe; }
.global-banner.banner-warning { background: #fed7aa; color: #9a3412; border-bottom: 1px solid #fdba74; }
.global-banner.banner-error   { background: #fecaca; color: #7f1d1d; border-bottom: 1px solid #fca5a5; }
body.has-global-banner { padding-top: 44px; }

/* ─── Font Panton ─── */
@font-face {
  font-family: 'Panton';
  src: url('/fonts/Panton-Regular.woff2') format('woff2'),
       url('/fonts/Panton-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Panton';
  src: url('/fonts/Panton-Bold.woff2') format('woff2'),
       url('/fonts/Panton-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & base ─── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Panton', system-ui, sans-serif;
  background: #ffffff;
  color: #001155;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Focus ring welan */
:where(a, button, input, select, textarea, [tabindex]):focus { outline: none; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid #00BCD4;
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.18);
}

.container { max-width: 900px; margin: 0 auto; padding: 16px 12px 24px; }

/* ─── Sticky compact bar (appare al scroll) ─── */
.sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #0a0f1e;
  color: #fff;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.sticky-logo {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.sticky-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.sticky-pcts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}
.sticky-pct {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.sticky-pct b { font-size: 17px; font-weight: 800; }
.stk-init {
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 18%, transparent);
  align-self: center;
}
.sticky-sep { color: rgba(255,255,255,0.30); }
.sticky-live { background: rgba(0,188,212,0.16); }

/* ─── Countdown card ─── */
.countdown-card {
  background: #0a0f1e;
  border-radius: 16px;
  padding: 28px 28px 26px;
  margin-bottom: 16px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.countdown-card::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,188,212,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.cd-brand {
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.30);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.12em;
}
.cd-elezione {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  text-align: center;
}

/* Candidati nella countdown card — figure intere */
.cd-candidates {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 56px;
  max-width: 540px;
}
.cd-cand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}
.cd-cand-photo {
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 14px;
}
.cd-cand-photo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.cd-cand-photo img[data-lista="cambiamo-tursi"] {
  transform: scale(0.98);
  transform-origin: center bottom;
}
.cd-cand-lista {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lista);
  margin-bottom: 4px;
}
/* Override colori per leggibilità su sfondo dark del countdown */
.cd-cand-lista { color: #00BCD4; }
.cd-cand-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.cd-vs {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  padding-bottom: 80px;
}

@media (max-width: 560px) {
  .cd-candidates { gap: 14px; }
  .cd-cand-photo { height: 170px; }
  .cd-cand-name { font-size: 13px; }
  .cd-cand-lista { font-size: 10px; }
  .cd-vs { font-size: 11px; padding-bottom: 58px; }
}
.cd-title {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.2;
  margin-bottom: 22px;
}
.cd-timer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 600px;
}
.cd-live-unit {
  background: rgba(0,188,212,0.10) !important;
  border-color: rgba(0,188,212,0.28) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cd-live-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: #00BCD4;
}
.cd-live-dot {
  width: 10px; height: 10px;
  background: #00BCD4;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
.cd-unit {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 6px 12px;
}
.cd-num {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #00BCD4;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cd-unit small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin-top: 6px;
}
.cd-foot {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.cd-foot strong { color: #fff; font-weight: 700; text-transform: capitalize; }
@media (max-width: 560px) {
  .cd-title { font-size: 18px; }
  .cd-num { font-size: 26px; }
  .cd-unit { padding: 12px 4px 10px; }
}

/* Countdown mode: nasconde i contenuti dei risultati */
body.mode-countdown .sticky-bar,
body.mode-countdown .hero,
body.mode-countdown .candidates,
body.mode-countdown .sezioni-bar,
body.mode-countdown .schede-row,
body.mode-countdown .curiosity-strip,
body.mode-countdown .pref-header,
body.mode-countdown .section-pref,
body.mode-countdown #prefGrid,
body.mode-countdown .update-pill,
body.mode-countdown .breadcrumb,
body.mode-countdown .footer-text,
body.mode-countdown .footer-note { display: none !important; }
body.mode-countdown .wfoot { padding-top: 8px; }
body.mode-countdown .wfoot-legal { margin-top: 14px; }

/* ─── Hero dark welan ─── */
.hero {
  background: #0a0f1e;
  border-radius: 16px;
  padding: 28px 28px 22px;
  margin-bottom: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0,188,212,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

/* Breadcrumb back-link nella hero sezione */
.hero-sezione .breadcrumb {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  transition: color 0.15s;
}
.hero-sezione .breadcrumb:hover { color: #00BCD4; }

/* Sticky bar: tag sezione */
.sticky-section-tag {
  font-size: 11px;
  font-weight: 800;
  color: #00BCD4;
  background: rgba(0,188,212,0.12);
  border: 1px solid rgba(0,188,212,0.30);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* Brand strip: electo by welan + LIVE */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 12px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-electo {
  height: 36px;
  width: auto;
  display: block;
}
.brand-by {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.brand-welan {
  height: 22px;
  width: auto;
  display: block;
}
@media (max-width: 560px) {
  .brand-electo { height: 28px; }
  .brand-welan { height: 17px; }
  .brand-by { font-size: 10px; }
  .hero-brand { padding-bottom: 14px; margin-bottom: 14px; }
}
.hero-label {
  font-size: 13px;
  font-weight: 700;
  color: #00BCD4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Hero stats: affluenza prominente */
.hero-stats.hero-stats-2 { grid-template-columns: repeat(2, 1fr); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.hero-stat-accent .hero-stat-num { color: #00BCD4; }
.hero-stat-accent #leaderHeroName { color: #00BCD4; font-weight: 800; }
.hero-stat { padding: 0 4px; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.07); padding-left: 16px; }
.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-sym {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
}
.hero-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 6px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,188,212,0.12);
  border: 1px solid rgba(0,188,212,0.30);
  color: #00BCD4;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.12em;
}
.live-badge.definitivo {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.40);
  color: #22c55e;
}
.live-badge.definitivo .live-dot { background: #22c55e; animation: none; }
.hero-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.viewers-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  font-variant-numeric: tabular-nums;
}
.viewers-pill[hidden] { display: none; }
.viewers-pill svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 560px) {
  .viewers-pill b { font-size: 11px; }
}
.live-dot {
  width: 7px; height: 7px;
  background: #00BCD4;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── Label section (uppercase ciano) ─── */
.label-section {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00BCD4;
}

/* ─── Banner disclaimer servizio ─── */
.info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-left: 3px solid #00BCD4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.info-banner .info-icon {
  width: 22px;
  height: 22px;
  stroke: #00BCD4;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  flex-shrink: 0;
}
.info-banner p {
  font-size: 12.5px;
  color: #555;
  line-height: 1.45;
  margin: 0;
}
.info-banner strong { color: #001155; font-weight: 700; }
.info-banner a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #00BCD4;
  text-underline-offset: 2px;
  font-weight: inherit;
}
.info-banner a:hover { color: #00BCD4; }

/* Nota legale singola in fondo */
.footer-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #9ca3af;
  text-align: center;
}
.footer-note strong { color: #6b7280; font-weight: 700; }
.footer-note a {
  color: #6b7280;
  text-decoration: underline;
  text-decoration-color: #d1d5db;
  text-underline-offset: 2px;
}
.footer-note a:hover { color: #00BCD4; text-decoration-color: #00BCD4; }

/* ─── Sezioni bar: spoglio + progress + dots ─── */
.sezioni-bar {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px 12px;
  margin-bottom: 16px;
  border: 1px solid #e8ecf3;
}
.sezioni-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.sezioni-status { font-size: 13px; color: #555; }
.sezioni-status strong { color: #001155; font-size: 15px; font-weight: 800; }
.sezioni-pct { color: #00BCD4; font-weight: 800; }
.sezioni-progress {
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.sezioni-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00BCD4, #0891b2);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.sezioni-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}
.dot.has-votes { background: #00BCD4; color: #fff; }
.dot.empty { background: #f3f4f6; color: #9ca3af; border: 1px dashed #d1d5db; }
a.dot:hover { transform: scale(1.08); }
a.dot.has-votes:hover { background: #0891b2; }
.dot.current {
  background: #001155;
  color: #fff;
  outline: 2px solid #00BCD4;
  outline-offset: 2px;
}
.dot-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: #f3f4f6;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.dot-pill:hover {
  background: #00BCD4;
  color: #fff;
  transform: scale(1.04);
}

/* ─── Candidati hero cards ─── */
.candidates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 560px) { .candidates { grid-template-columns: 1fr; } }

.candidate-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 18px 22px;
  border: 1px solid #e8ecf3;
  border-left: 4px solid var(--lista);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.candidate-card.expandable { cursor: pointer; transition: border-color 0.2s; }
.candidate-card.expandable:hover { border-color: color-mix(in srgb, var(--lista) 40%, #e8ecf3); }
.candidate-card .cand-chev {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 12px;
  color: #c4c9d4;
  transition: color 0.2s;
}
.candidate-card.expandable { position: relative; }
.candidate-card.expanded .cand-chev { color: var(--lista); }
.sindaco-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding-top 0.28s ease, margin-top 0.28s ease, border-color 0.28s ease;
  border-top: 1px solid transparent;
}
.candidate-card.expanded .sindaco-detail {
  max-height: 140px;
  padding-top: 14px;
  margin-top: 4px;
  border-top-color: #f3f4f6;
}
.sindaco-detail .csez-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cand-top { display: flex; align-items: center; gap: 14px; }
.cand-top .percent-big {
  margin-left: auto;
  font-size: 36px;
  line-height: 1;
  align-self: center;
}
.cand-top .percent-big .pct-sym { font-size: 18px; }
.cand-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--lista);
  flex-shrink: 0;
  background: #f6f7fb;
  overflow: hidden;
  position: relative;
}
.cand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
/* Zoom-in per allineamento visivo delle due candidate */
.cand-photo img[data-lista="visione-comune"] {
  transform: scale(1.15);
  transform-origin: center center;
  object-position: center 0%;
}
.cand-photo img[data-lista="cambiamo-tursi"] {
  transform: scale(1.05);
  transform-origin: center center;
  object-position: center 10%;
}
.cand-info { flex: 1; min-width: 0; }
.lista-nome {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lista);
  margin-bottom: 4px;
}
.sindaco-nome {
  font-size: 18px;
  font-weight: 700;
  color: #001155;
  line-height: 1.2;
}
.sindaco-label {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}
.percent-big {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.pct-sym { font-size: 22px; font-weight: 700; opacity: 0.55; margin-left: 2px; }
.voti-count { font-size: 12px; color: #888; }

.progress-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--lista);
  transition: width 0.5s ease;
}

/* ─── Schede chips ─── */
.schede-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.scheda-chip {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  flex: 1;
  min-width: 96px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e8ecf3;
}
.scheda-chip .chip-icon {
  width: 20px;
  height: 20px;
  stroke: #00BCD4;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.chip-body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}
.scheda-chip strong {
  font-size: 18px;
  font-weight: 800;
  color: #001155;
  line-height: 1;
}
.scheda-chip span {
  font-size: 10.5px;
  font-weight: 700;
  color: #00BCD4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.scheda-chip small {
  font-size: 10.5px;
  color: #9ca3af;
  font-weight: 600;
  width: 100%;
}
.scarto-chip {
  border-left: 3px solid var(--leader, #1e3a8a);
}
.scarto-chip .chip-icon {
  stroke: var(--leader, #1e3a8a);
}
.bianche-chip {
  border-left: 3px solid #9ca3af;
}
.bianche-chip .chip-icon { stroke: #6b7280; }
.bianche-chip .chip-body span { color: #6b7280; }
.nulle-chip {
  border-left: 3px solid #b91c1c;
}
.nulle-chip .chip-icon { stroke: #b91c1c; }
.nulle-chip .chip-body span { color: #b91c1c; }

/* ─── Curiosity strip ─── */
.curiosity-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.curiosity-strip:empty { display: none; }
.curiosity-strip.curiosity-single { grid-template-columns: 1fr; }
@media (max-width: 480px) {
  .curiosity-strip { grid-template-columns: 1fr; }
}

.cur-card {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cur-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,188,212,0.10);
  border-radius: 8px;
  color: #00BCD4;
}
.cur-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cur-body { min-width: 0; flex: 1; }
.cur-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00BCD4;
  margin-bottom: 3px;
}
.cur-main {
  font-size: 14px;
  font-weight: 800;
  color: #001155;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cur-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
  line-height: 1.3;
}

/* MVP card — accento ambra/oro per il trofeo */
.cur-card.cur-mvp {
  border-left: 3px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245,158,11,0.06) 0%, transparent 60%);
}
.cur-card.cur-mvp .cur-icon {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}
.cur-card.cur-mvp .cur-label { color: #d97706; }

/* ─── Preferenze ─── */
.section-pref { margin-bottom: 12px; }
.lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .lists-grid { grid-template-columns: 1fr; } }

.list-block {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8ecf3;
}
.list-header {
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--lista);
}
.candidate-row {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid #f3f4f6;
  gap: 10px;
  transition: background 0.3s ease;
}
.candidate-row:last-child { border-bottom: none; }
.candidate-row .rank {
  font-size: 11px;
  font-weight: 800;
  color: #c4c9d4;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
  letter-spacing: 0.02em;
}
.candidate-row .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lista);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 0;
}
.cand-name {
  font-size: 13px;
  color: #444;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cand-mini-bar {
  height: 5px;
  background: #f3f4f6;
  border-radius: 3px;
  flex: 0 0 48px;
  overflow: hidden;
}
.cand-mini-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--lista);
  transition: width 0.4s ease;
}
.cand-votes {
  font-size: 13px;
  font-weight: 700;
  color: #001155;
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Eletti (top 8 maggioranza o top 4 minoranza) */
.candidate-row.eletto {
  background: color-mix(in srgb, var(--lista) 7%, transparent);
  border-bottom-color: transparent;
}
.candidate-row.eletto .rank { color: var(--lista); }
.candidate-row.eletto .cand-name { font-weight: 700; color: #001155; }
.candidate-row.eletto + .candidate-row:not(.eletto) {
  border-top: 1px dashed rgba(0,0,0,0.10);
}

/* Tag verde "eletto" */
.elt-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lista);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

/* Leader = rank 01 (sempre eletto, in più ha enfasi extra) */
.candidate-row.leader .cand-votes { font-size: 15px; font-weight: 800; }
.candidate-row.leader .avatar {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lista) 18%, transparent);
}
.candidate-row .star {
  color: #f59e0b;
  font-size: 11px;
  margin-left: 4px;
  vertical-align: 1px;
}

/* Riga espandibile */
.candidate-row.expandable { cursor: pointer; user-select: none; }
.candidate-row.expandable:hover { background: color-mix(in srgb, var(--lista) 4%, transparent); }
.candidate-row .cand-chev {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 4px;
  transition: transform 0.2s;
}
.candidate-row.expanded .cand-chev { color: var(--lista); }

/* Detail panel con voti per sezione */
.cand-detail {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--lista) 4%, transparent);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
}
.cand-detail.open {
  max-height: 110px;
  padding: 10px 14px 12px;
}
.csez-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.csez-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #9ca3af;
}
.csez-bar-wrap {
  position: relative;
  width: 100%;
  height: 30px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}
.csez-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--lista);
  border-radius: 0 0 3px 3px;
  transition: height 0.3s ease;
  min-height: 0;
}
.csez-empty .csez-bar-wrap { background: #fafbfd; }
.csez-num {
  font-size: 11px;
  font-weight: 700;
  color: #001155;
  font-variant-numeric: tabular-nums;
}
.csez-empty .csez-num { color: #c4c9d4; font-weight: 600; }

/* Header sezione preferenze + sottotesto consiglio */
.pref-header { margin-bottom: 12px; }
.pref-header .section-pref { margin-bottom: 4px; }
.pref-sub {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0;
}
.pref-sub strong { color: #001155; font-weight: 700; }
.pref-sub #seggiNote { color: #9ca3af; font-style: italic; margin-left: 4px; }

/* ─── Update pill ─── */
.update-pill {
  display: inline-block;
  margin: 20px auto 0;
  background: rgba(0,188,212,0.10);
  border: 1px solid rgba(0,188,212,0.22);
  color: #0891b2;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-align: center;
}
.update-pill strong { color: #001155; font-weight: 800; }
.update-pill { display: block; width: max-content; margin-left: auto; margin-right: auto; }

/* ─── Footer chiaro con logo welan ciano ─── */
.wfoot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 12px 16px;
}
.footer-text {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
}
.wfoot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wfoot-pre {
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.wfoot-electo-link {
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #d1d5db;
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.wfoot-electo-link:hover { color: #00BCD4; text-decoration-color: #00BCD4; }
.wfoot-logo {
  height: 18px;
  width: auto;
  display: block;
}
.wfoot-legal {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
  margin: 6px auto 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wfoot-logo-link {
  display: inline-block;
  transition: opacity 0.15s;
}
.wfoot-logo-link:hover { opacity: 0.7; }
.wfoot-legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(148,163,184,0.4); text-underline-offset: 2px; }
.wfoot-legal a:hover { text-decoration-color: currentColor; }

/* Disclaimer footer dettagliato */
.footer-disclaimer {
  max-width: 700px;
  margin: 4px auto 0;
  text-align: center;
}
.footer-disclaimer p {
  font-size: 11.5px;
  color: #9ca3af;
  line-height: 1.55;
  margin: 0 0 8px;
}
.footer-disclaimer p:last-child { margin-bottom: 0; }
.footer-disclaimer strong { color: #6b7280; font-weight: 700; }
.footer-disclaimer a {
  color: #00BCD4;
  text-decoration: none;
  font-weight: 600;
}
.footer-disclaimer a:hover { text-decoration: underline; }

/* ─── Mobile ─── */
@media (max-width: 560px) {
  .hero { padding: 22px 20px 18px; }
  .hero-title { font-size: 26px; }
  .hero-stats { gap: 8px; }
  .hero-stats.hero-stats-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-stat + .hero-stat { padding-left: 10px; }
  .hero-stat-num { font-size: 20px; }
  .sticky-pcts { font-size: 12px; }
  .sticky-bar-inner { gap: 10px; padding: 8px 12px; }

  /* Chip card su mobile: layout verticale per allineamento pulito */
  .scheda-chip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 12px 8px 10px;
  }
  .scheda-chip .chip-icon { margin-bottom: 2px; }
  .chip-body {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
  }
}
