/* Atlante del mondo: le basi stanno in comune/stile-base.css; qui solo ciò che serve alla mappa del mondo. */
.slm-atl .mappa::before { background-image: none; }
.slm-atl .controlli-alto { display: flex; flex-direction: column; gap: 8px; width: min(320px, calc(100% - var(--slm-lato) - 80px)); }
.slm-atl .scelta-vista label, .slm-atl .ricerca label { display: block; margin-bottom: 4px; font-size: 0.78rem; color: var(--slm-tenue); }
.slm-atl .scelta-vista select, .slm-atl .ricerca input { width: 100%; padding: 8px 10px; font: inherit; color: var(--slm-forte); background: var(--slm-ink); border: 1px solid var(--slm-linea); border-radius: 8px !important; }
.slm-atl .scelta-vista select { font-weight: 600; }
.slm-atl .ricerca input::placeholder { color: var(--slm-tenue); }

/* Cursore degli anni: l'ultima posizione è il totale del periodo */
.slm-atl .slm-atl-cursore { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 0 12px; min-width: min(420px, 100%); }
.slm-atl .slm-atl-cursore input[type="range"] { width: 100%; accent-color: var(--slm-giallo); }
.slm-atl .slm-atl-cursore .tacche { display: flex; justify-content: space-between; grid-column: 1; font-size: 0.72rem; color: var(--slm-tenue); }
.slm-atl .slm-atl-cursore output { grid-column: 2; grid-row: 1 / span 2; min-width: 8.5em; font-size: 0.85rem; font-weight: 600; color: var(--slm-forte); }

.slm-atl .legenda { max-width: 380px; }
.slm-atl .legenda .slm-atl-voce-larga { grid-column: 1 / -1; }

/* Pannello: classifica e strati */
.slm-atl #slm-classifica { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--slm-ink3); }
.slm-atl .classifica { margin: 8px 0 0; padding-left: 1.4em; }
.slm-atl .classifica button, .slm-atl .slm-atl-italia button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 0; text-align: left; color: var(--slm-testo); border-bottom: 1px solid var(--slm-ink3); cursor: pointer; }
.slm-atl .slm-atl-italia button { display: inline; width: auto; border: 0; }
.slm-atl .classifica button:hover, .slm-atl .slm-atl-italia button:hover { color: var(--slm-giallo); }
.slm-atl .classifica strong, .slm-atl .slm-atl-italia strong { color: var(--slm-forte); font-variant-numeric: tabular-nums; }
.slm-atl .classifica .vuota { list-style: none; margin-left: -1.4em; color: var(--slm-tenue); font-size: 0.9rem; }
.slm-atl .slm-atl-italia { margin: 10px 0 0; font-size: 0.9rem; }
.slm-atl .slm-atl-strato { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--slm-forte); cursor: pointer; }
.slm-atl .slm-atl-strato input { accent-color: var(--slm-giallo); width: 18px; height: 18px; }

/* Scheda del paese */
.slm-atl .slm-atl-valore { margin: 6px 0 4px; }
.slm-atl .slm-atl-valore strong { display: block; font: 700 2rem/1.15 var(--slm-titoli); color: var(--slm-giallo); font-variant-numeric: tabular-nums; }
.slm-atl .slm-atl-valore span { color: var(--slm-testo); font-size: 0.9rem; }
.slm-atl .slm-atl-nd { font-weight: 700; color: var(--slm-forte); }
.slm-atl .slm-atl-confronto, .slm-atl .slm-atl-parziale { margin: 6px 0; font-size: 0.9rem; }
.slm-atl .slm-atl-confronto strong, .slm-atl .slm-atl-parziale strong { color: var(--slm-forte); }
.slm-atl .slm-atl-grafico { margin: 12px 0 4px; color: var(--slm-giallo); }
.slm-atl .slm-atl-grafico svg { display: block; width: 100%; height: auto; background: var(--slm-ink); border-radius: 8px; }
.slm-atl .slm-atl-grafico figcaption { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--slm-tenue); }
.slm-atl .slm-atl-settori, .slm-atl .slm-atl-link { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.slm-atl .slm-atl-settori li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--slm-ink3); }
.slm-atl .slm-atl-settori strong { color: var(--slm-forte); }
.slm-atl .slm-atl-link li { padding: 3px 0; }
.slm-atl .slm-atl-acn { margin-top: 14px; }
.slm-atl .slm-atl-tabella { max-height: 220px; overflow-y: auto; margin: 8px 0; }
.slm-atl .slm-atl-tabella table, .slm-atl .testo table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.slm-atl .slm-atl-tabella th, .slm-atl .slm-atl-tabella td, .slm-atl .testo th, .slm-atl .testo td { padding: 4px 6px; text-align: left; border-bottom: 1px solid var(--slm-ink3); }
.slm-atl .slm-atl-tabella td, .slm-atl .testo td.numero { text-align: right; font-variant-numeric: tabular-nums; }

/* Testi sotto la mappa */
.slm-atl .tabella { overflow-x: auto; }
.slm-atl .slm-citazione { margin: 12px 0 24px; padding: 12px 16px; border-left: 3px solid var(--slm-giallo); background: var(--slm-ink2); }
.slm-atl .slm-citazione-testo { margin: 0 0 8px; overflow-wrap: anywhere; }
.slm-atl .slm-citazione .esito-copia { font-size: 0.85rem; color: var(--slm-tenue); }
.slm-atl .slm-avvertenza { padding: 12px 14px; border-radius: 10px; background: rgba(255, 222, 1, 0.08); border: 1px solid rgba(255, 222, 1, 0.25); }
.slm-atl .domande details { padding: 10px 0; border-bottom: 1px solid var(--slm-ink3); }
.slm-atl .domande summary { font-weight: 600; color: var(--slm-forte); cursor: pointer; }
.slm-atl .slm-ritorno { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--slm-ink3); font-size: 0.95rem; }

@media (max-width: 760px) {
  .slm-atl .controlli-alto { width: auto; }
  .slm-atl .slm-atl-cursore { min-width: 0; width: 100%; }
}
