/* 1. VARIABILI E FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Playfair+Display:wght@700&display=swap');

/* 0. ACCESSIBILITÀ — skip link e link al documento sorgente */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--accent);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 0;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;   /* diventa visibile solo quando riceve il focus da tastiera */
}
.source-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--blue-500);
    text-decoration: none;
    word-break: break-all;
}
.source-link:hover { text-decoration: underline; }

:root {
    --accent: #E74C3C;
    --accent-dark: #C0392B;
    --green-500: #1E8449;
    --blue-500: #2980B9;
    --primary-dark: #0F172A;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-500: #475569;
    --slate-800: #1E293B;
    --bg: #EEF2F7;
    --card-radius: 22px;
    /* Travel 2026 */
    --terra: #E07A5F;
    --crema: #F4F1DE;
    --night: #3D405B;
    --gold:  #E9C46A;
}

/* 2. RESET E BASE */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    margin: 0;
    color: var(--slate-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 3. TOPBAR (sticky, compatta) */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #0B1524;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.topbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-logo {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.topbar-logo b { color: var(--accent); font-weight: 800; }
.topbar-nav { display: flex; gap: 8px; }
.topbar-nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.topbar-nav a:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.topbar-nav a.active { background: var(--accent-dark); color: #fff; }

/* 4. HERO */
.hero {
    background: linear-gradient(135deg, #0F172A 0%, #1a2e4a 60%, #1e3a58 100%);
    color: white;
    padding: 80px 24px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.hero-content { position: relative; max-width: 780px; margin: 0 auto; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -0.04em;
    line-height: 1.15;
}
.hero-sub {
    font-size: 1.05rem;
    opacity: 0.75;
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-stat {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 14px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(4px);
    min-width: 90px;
}
.hs-num { font-size: 1.8rem; font-weight: 800; line-height: 1; color: #fff; }
.hs-lbl { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; opacity: 0.6; letter-spacing: 0.08em; }

/* 4b. DATA PROVENANCE BAND */
.provenance-band {
    max-width: 1080px;
    margin: 56px auto 0;
    padding: 0 24px;
}
.prov-inner {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 24px;
    padding: 40px 36px 32px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.prov-eyebrow {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin: 0 0 6px;
}
.prov-heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900, #0f172a);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.prov-lead {
    text-align: center;
    font-size: 0.92rem;
    color: var(--slate-500);
    max-width: 520px;
    margin: 0 auto 30px;
    line-height: 1.55;
}

/* Flusso a 4 step — CSS Grid, frecce come connettori (no wrap scomposto) */
.prov-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 26px;
}
.prov-node {
    position: relative;
    background: #fff;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 16px;
    padding: 22px 18px 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prov-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
}
/* freccia connettore tra una card e la successiva */
.prov-node:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -26px;
    width: 26px;
    transform: translateY(-50%);
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--slate-300, #cbd5e1);
    z-index: 1;
}
.prov-step {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.prov-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 6px auto 0;
    border-radius: 14px;
    background: var(--slate-100, #f1f5f9);
    font-size: 1.5rem;
}
.prov-node b { display: block; font-size: 1rem; margin: 10px 0 5px; color: var(--slate-800, #1e293b); }
.prov-node small { font-size: 0.78rem; color: var(--slate-500); line-height: 1.5; }

/* Formula — footer separato da un divisore */
.prov-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0 0;
    padding-top: 24px;
    border-top: 1px dashed var(--slate-200, #e2e8f0);
    font-size: 0.85rem;
    font-weight: 700;
}
.prov-formula-lbl { color: var(--slate-700, #334155); font-weight: 800; }
.prov-eq { color: var(--slate-400, #94a3b8); font-weight: 800; }
.prov-seg {
    border-radius: 999px;
    padding: 6px 14px;
    color: #fff;
    display: inline-flex;
    gap: 5px;
    align-items: baseline;
}
.prov-seg i { font-style: normal; font-weight: 600; opacity: 0.85; font-size: 0.78rem; }
.prov-safety { background: var(--accent); }
.prov-green  { background: var(--green-500); }
.prov-cost   { background: #f59e0b; }
.prov-plus   { color: var(--slate-400, #94a3b8); font-weight: 800; }
.prov-formula-link {
    margin-left: 8px;
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.prov-formula-link:hover { text-decoration: underline; }

/* Tablet: 2×2, frecce solo orizzontali tra le coppie */
@media (max-width: 860px) {
    .prov-flow { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
    .prov-node:nth-child(2)::after { display: none; }
}
/* Mobile: colonna singola, frecce verso il basso */
@media (max-width: 560px) {
    .prov-inner { padding: 32px 20px 26px; }
    .prov-flow { grid-template-columns: 1fr; gap: 30px; }
    .prov-node:not(:last-child)::after {
        content: "↓";
        top: auto;
        bottom: -26px;
        right: 50%;
        transform: translateX(50%);
    }
    .prov-node:nth-child(2)::after { display: block; }
}

/* 5. VIRTUAL ANALYST PANEL */
.analyst-panel {
    max-width: 820px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid var(--slate-200);
}
.analyst-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.analyst-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0F172A, #1e3a58);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.analyst-title { font-weight: 800; font-size: 1rem; margin: 0; color: var(--slate-800); }
.analyst-sub   { font-size: 0.75rem; color: var(--slate-500); margin: 2px 0 0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.analyst-input-row { display: flex; gap: 10px; margin-bottom: 12px; }
.analyst-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--slate-200);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.analyst-input:focus { border-color: var(--accent); }
.analyst-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.analyst-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.analyst-output {
    background: var(--slate-50);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--slate-500);
    min-height: 48px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.analyst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
    padding: 5px 14px;
    border-radius: 99px;
    border: 1.5px solid var(--slate-200);
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--slate-800);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent); background: var(--accent); color: white; }
.analyst-details {
    border-top: 1px solid var(--slate-100);
    padding-top: 12px;
    margin-top: 4px;
}
.analyst-details summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate-500);
    list-style: none;
    padding: 4px 0;
    user-select: none;
}
.analyst-details summary::-webkit-details-marker { display: none; }
.analyst-details summary::before { content: '▸ '; color: var(--accent); }
details[open] .analyst-details summary::before { content: '▾ '; }
.analyst-details p {
    font-size: 0.85rem;
    color: var(--slate-500);
    line-height: 1.65;
    margin: 10px 0 0;
}
.analyst-details code {
    background: var(--slate-100);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ── VIRTUAL ANALYST FLOTTANTE ─────────────────────────────────────────── */
/* Launcher: pillola fissa in basso a destra, segue lo scroll su ogni pagina */
.va-launcher {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 22px 15px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: vaPulse 2.4s ease-out 3;          /* alone pulsante per attirare l'occhio (3 volte) */
}
.va-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(231, 76, 60, 0.55); }
.va-launcher-ico { font-size: 1.35rem; line-height: 1; }
.va-launcher.is-open { opacity: 0; pointer-events: none; transform: scale(0.85); }   /* nascosto quando il pannello è aperto */
@keyframes vaPulse {
    0%   { box-shadow: 0 10px 30px rgba(231, 76, 60, 0.45), 0 0 0 0 rgba(231, 76, 60, 0.55); }
    70%  { box-shadow: 0 10px 30px rgba(231, 76, 60, 0.45), 0 0 0 18px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 10px 30px rgba(231, 76, 60, 0.45), 0 0 0 0 rgba(231, 76, 60, 0); }
}
@media (prefers-reduced-motion: reduce) { .va-launcher { animation: none; } }

/* Popup: pannello flottante ancorato al launcher */
.va-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1201;
    width: 390px;
    max-width: calc(100vw - 32px);
    max-height: min(78vh, 640px);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: vaIn 0.22s ease;
}
@keyframes vaIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Il pannello interno riusa .analyst-panel ma senza i margini da sezione */
.va-widget .va-panel {
    max-width: none;
    margin: 0;
    padding: 20px 20px 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.26);
}
.va-widget .analyst-header { margin-bottom: 14px; }
.va-head-txt { flex: 1; min-width: 0; }
.va-widget .analyst-output { max-height: 240px; overflow-y: auto; }
.va-widget .analyst-details { margin-top: 4px; }

.va-close {
    margin-left: auto;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: none;
    border-radius: 9px;
    background: var(--slate-100);
    color: var(--slate-500);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.va-close:hover { background: var(--slate-200); color: var(--slate-800); }

@media (max-width: 480px) {
    .va-launcher { right: 14px; bottom: 14px; padding: 12px; }
    .va-launcher-txt { display: none; }            /* su mobile solo l'icona */
    .va-widget { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: 82vh; }
}

/* Footer sito */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--slate-500);
    font-size: 0.82rem;
    border-top: 1px solid var(--slate-200);
    margin-top: 20px;
    line-height: 1.8;
}
/* accent-dark (#C0392B, 5.44:1 su bianco) anziché accent (#E74C3C, 3.82:1): contrasto AA per testo piccolo */
.site-footer a { color: var(--accent-dark); text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: 0.88rem;
}
.footer-nav a {
    color: var(--slate-700);
    font-weight: 700;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    transition: 0.15s;
}
.footer-nav a:hover, .footer-nav a[aria-current="page"] {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    text-decoration: none;
}
.footer-sep { color: var(--slate-300); font-weight: 400; }

/* 5. GRID E LAYOUT CARDS */
.container {
    display: grid;
    /* Adattivo e a prova di cross-platform: ~5 colonne su desktop ampi,
       4 su laptop, meno su schermi piccoli — senza mai tagliare le card.
       min(100%, 300px) evita overflow anche su viewport molto stretti. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    padding: 20px 32px 80px;
    max-width: 1700px;
    margin: auto;
}

.city-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--slate-200);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0; /* consente alla card di restringersi nella traccia grid senza overflow */
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
}

.city-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

/* 5b. LANDMARK IMAGE CON OVERLAY GRADIENTE */
.landmark-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.landmark-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.city-card:hover .landmark-img {
    transform: scale(1.06);
}

.city-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(5,10,25,0.88));
    padding: 32px 12px 12px;
}

.city-title-overlay {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.city-overlay-link {
    color: white;
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.city-overlay-link:hover { text-decoration: underline; }

.city-score-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    padding: 5px 11px;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(231,76,60,0.5);
    text-align: center;
}

.city-score-badge small {
    font-size: 0.58rem;
    font-weight: 600;
    opacity: 0.85;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5c. CORPO DELLA CARD */
.city-card-body {
    padding: 18px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 6. STATS — lista verticale pulita, stile sito di viaggi.
   Ogni metrica è una riga: icona + etichetta a sinistra, valore a destra,
   barra sottile a tutta larghezza sotto (quando presente).
   Niente colonne fisse → nessun testo tagliato a qualsiasi larghezza. */
.stats-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.stat-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
    padding: 8px 8px;
    margin: 0 -8px;
    border-radius: 10px;
    border-bottom: 1px solid var(--slate-100);
    background: transparent;
    text-align: left;
    transition: background 0.15s ease;
}

.stat-item:last-child { border-bottom: none; }
.city-card:hover .stat-item:hover { background: var(--slate-50); }

.stat-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    text-transform: uppercase;
    color: var(--slate-500);
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.stat-val {
    justify-self: end;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--slate-800, #1e293b);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Icone per metrica — ordine fisso delle card della landing (.city-card).
   Non si applicano alle pagine città, dove l'ordine è diverso. */
.city-card .stat-label::before {
    font-size: 0.95rem;
    line-height: 1;
}
.city-card .stat-item:nth-child(1) .stat-label::before { content: "🛏️"; }
.city-card .stat-item:nth-child(2) .stat-label::before { content: "🛡️"; }
.city-card .stat-item:nth-child(3) .stat-label::before { content: "🌱"; }
.city-card .stat-item:nth-child(4) .stat-label::before { content: "🍸"; }
.city-card .stat-item:nth-child(5) .stat-label::before { content: "💰"; }
.city-card .stat-item:nth-child(6) .stat-label::before { content: "🏛️"; }

/* Stesse icone sulle pagine delle singole città (.city-detail),
   ma con l'ordine metriche diverso: Appeal, Budget, Safety, Green, Venues, Cost of living. */
.city-detail .stat-label::before {
    font-size: 0.95rem;
    line-height: 1;
}
.city-detail .stat-item:nth-child(1) .stat-label::before { content: "⭐"; }
.city-detail .stat-item:nth-child(2) .stat-label::before { content: "🛏️"; }
.city-detail .stat-item:nth-child(3) .stat-label::before { content: "🛡️"; }
.city-detail .stat-item:nth-child(4) .stat-label::before { content: "🌱"; }
.city-detail .stat-item:nth-child(5) .stat-label::before { content: "🍸"; }
.city-detail .stat-item:nth-child(6) .stat-label::before { content: "💰"; }

/* Pannello statistiche sulle pagine città: 2 colonne dentro un riquadro,
   più ordinato e compatto rispetto alla lista singola della landing. */
.city-detail .stats-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: 0;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 8px 22px;
    margin-bottom: 30px;
}
.city-detail .stat-item {
    margin: 0;
    padding: 11px 0;
    border-radius: 0;
}
/* Niente bordo sotto l'ultima riga (gli ultimi due item in 2 colonne) */
.city-detail .stat-item:nth-last-child(-n+2) { border-bottom: none; }
.city-detail .stat-item:hover { background: transparent; }

@media (max-width: 560px) {
    .city-detail .stats-box { grid-template-columns: 1fr; column-gap: 0; }
    .city-detail .stat-item:nth-last-child(2) { border-bottom: 1px solid var(--slate-100); }
}

/* La barra punteggio occupa l'intera larghezza, sotto etichetta+valore */
.stat-item .score-bar-wrap {
    grid-column: 1 / -1;
    margin-top: 8px;
}

/* Equivalente in valuta locale sotto al Budget (solo capitali non-euro) */
.stat-local {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b45309;
    margin-top: 1px;
    font-variant-numeric: tabular-nums;
}

/* Nota valuta locale sulle pagine città fuori area euro */
.currency-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 22px 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #78350f;
}
.currency-note .cur-ico { font-size: 1.3rem; line-height: 1; }
.currency-note b { color: #92400e; }

/* PULSANTE CTA */
.card-cta {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    text-align: center;
    padding: 13px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    margin-top: auto;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(231,76,60,0.22);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.card-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(231,76,60,0.38);
}

/* 6b. TITOLO CITTÀ (pagine individuali) */
.city-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 25px 0;
    font-size: 2rem;
    font-weight: 800;
}

/* 7. INFO BLOCKS */
.info-block {
    margin-bottom: 28px;
    padding: 20px 22px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.transport-block {
    background: #EFF6FF;
    border-left: 4px solid var(--blue-500);
    color: #1E40AF;
}

.hotel-block {
    background: var(--slate-50);
    border-left: 4px solid var(--slate-500);
}

.district-block {
    background: #F0FDF4;
    border-left: 4px solid var(--green-500);
}

.block-title {
    display: block;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    opacity: 0.82;
}

/* Hotel/bar listings dentro i blocchi (esclusa la griglia card della nightlife) */
.hotel-block ul, .info-block ul:not(.nightlife-grid) {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.hotel-block li, .info-block ul:not(.nightlife-grid) li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.87rem;
}
.hotel-block li:last-child, .info-block ul:not(.nightlife-grid) li:last-child {
    border-bottom: none;
}

/* 8. DESCRIZIONI */
.desc-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
}

.source-tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

/* 9. ATTRAZIONI */
.attractions {
    margin-top: auto;
    padding-top: 25px;
    border-top: 2px solid var(--slate-100);
}

.attr-item {
    list-style: none;
    margin-bottom: 18px;
}

.attr-name {
    color: var(--accent);
    font-weight: 800;
    font-size: 0.95rem;
    display: block;
}

.attr-desc {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 4px 0 8px 0;
}

.maps-link {
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--blue-500);
    border: 1px solid var(--blue-500);
    padding: 3px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.maps-link:hover {
    background: var(--blue-500);
    color: white;
}

/* Tabella attrazioni (city pages) */
.attr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 12px;
}
.attr-table thead th {
    padding: 8px 10px;
    text-align: left;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--slate-500);
    font-weight: 700;
    border-bottom: 2px solid var(--slate-100);
}
.attr-table tbody tr { transition: background 0.15s; }
.attr-table tbody tr:hover { background: var(--slate-50); }
.attr-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: top;
}
.attr-table .atn {
    width: 28px;
    text-align: center;
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 700;
}
.attr-table .atn-name {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    padding-right: 8px;
}
.attr-table .atn-desc {
    color: var(--slate-500);
    line-height: 1.5;
    max-width: 420px;
}
.attr-table .atn-map {
    width: 52px;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .attr-table .atn             { display: none; }
    .attr-table .atn-desc        { display: none; }
    .attr-table thead th:nth-child(1),
    .attr-table thead th:nth-child(3) { display: none; }
}

/* 10. MAP CTA (sostituisce mappa inline) */
.map-cta {
    max-width: 1900px;
    margin: 0 auto 40px;
    padding: 0 32px;
}
.map-cta-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    flex-wrap: wrap;
}
.map-cta-icon { font-size: 2.8rem; flex-shrink: 0; }
.map-cta-text { flex: 1; min-width: 200px; }
.map-cta-text h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}
.map-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}
.btn-map-cta {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.btn-map-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}
@media (max-width: 700px) {
    .map-cta-inner { flex-direction: column; text-align: center; padding: 24px; }
    .btn-map-cta { width: 100%; text-align: center; }
}

/* Popup e marker capitale (usati da Leaflet inline e mappa standalone) */
.cap-mk {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 20px;
    font-weight: 800; font-size: 0.72rem; color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35); white-space: nowrap;
}
.venue-mk { font-size: 20px; line-height: 32px; width: 32px; text-align: center; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35)); }
.mp { min-width: 190px; max-width: 260px; }
.mp h4 { font-size: 0.9rem; margin: 0 0 2px; }
.pl {
    display: inline-block; margin-top: 7px;
    color: #E74C3C; font-weight: 700; font-size: 0.78rem; text-decoration: none;
}
.pl:hover { text-decoration: underline; }

/* NAVIGAZIONE PAGINE INDIVIDUALI */
.city-nav {
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-weight: 700;
    font-size: 0.9rem;
}

.city-nav a { color: var(--accent); text-decoration: none; }
.city-nav a:hover { text-decoration: underline; }
.city-nav .city-nav-title { color: var(--slate-800); }

/* DOWNLOAD XML */
.download-block {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--slate-100);
    text-align: center;
}

.download-link {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
}

.download-link:hover { background: var(--accent); color: white; }

/* PAGINA DETTAGLIO CITTÀ */
.city-detail {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container { padding: 16px; gap: 16px; }
    header h1 { font-size: 2.2rem; }
    header { padding: 70px 20px 80px; }
}

@media (max-width: 480px) {
    .container { grid-template-columns: 1fr; padding: 12px; gap: 14px; }
    header { padding: 50px 16px 60px; }
    header h1 { font-size: 1.6rem; }
    .chat-section { padding: 18px; margin: -20px 12px 30px; }
    #map-frame { height: 260px; }
    .city-nav { font-size: 0.8rem; padding: 10px 14px; }
}

/* ============================================================
   RESTYLING — animazioni, progress bar, navigazione, team
   ============================================================ */

/* Scroll fluido globale */
html { scroll-behavior: smooth; }

/* Progress bar punteggi */
.score-bar-wrap {
    background: var(--slate-200);
    border-radius: 99px;
    height: 6px;
    overflow: hidden;
    margin-top: 5px;
}
.score-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 0.85s cubic-bezier(.4,0,.2,1) 0.25s;
}
.score-bar-fill.green { background: linear-gradient(90deg,#27AE60,#2ecc71); }
.score-bar-fill.blue  { background: linear-gradient(90deg,#3498db,#5dade2); }
.score-bar-fill.amber { background: linear-gradient(90deg,#f39c12,#f7dc6f); }
.score-bar-fill.red   { background: linear-gradient(90deg,#e74c3c,#ec7063); }

/* Animazioni entrata card (attivate da JS con classe .js-loaded sul body) */
.js-loaded .city-card {
    opacity: 0;
    transform: translateY(28px);
}
.js-loaded .city-card.visible {
    opacity: 1;
    transform: translateY(0);
}
/* mantieni la transizione esistente (transform hover) + aggiungi opacity */
.js-loaded .city-card {
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1),
                transform 0.5s cubic-bezier(.4,0,.2,1),
                box-shadow 0.3s ease;
}
.js-loaded .city-card.visible:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
}

/* Back-to-top */
#back-to-top {
    position: fixed;
    bottom: 28px;            /* angolo opposto all'analista (a destra): nessuna sovrapposizione */
    left: 28px;
    z-index: 1199;
    background: #0F172A;     /* scuro: distinto dal launcher rosso */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.2s;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover   { background: #1e3a58; transform: translateY(-3px); }

/* Filter bar (index.html) */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 40px;
    max-width: 1600px;
    margin: 0 auto 20px;
}
/* Filter chips — tema scuro: chiari su sfondo blu notte, terracotta da attivi */
.filter-btn {
    padding: 8px 15px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    color: #E2E8F0;
    line-height: 1;
    transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
}
.filter-btn:hover  {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-1px);
}
.filter-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(224, 122, 95, .45);
}

/* Filter & sort toolbar (index.html) — "hero scuro coeso" */
.filter-toolbar {
    max-width: 1700px;
    margin: 4px auto 32px;
    padding: 24px 28px 18px;
    background: linear-gradient(135deg, #0F172A 0%, #1a2e4a 60%, #1e3a58 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--accent);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
}
.ft-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ft-main { justify-content: space-between; padding-bottom: 18px; }
.ft-search { flex: 1 1 340px; position: relative; max-width: 520px; }
.ft-search-ico {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1rem; opacity: .6; pointer-events: none; line-height: 1;
}
.ft-search input {
    width: 100%;
    padding: 14px 22px 14px 50px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ft-search input::placeholder { color: rgba(226, 232, 240, 0.6); }
.ft-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.13);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224,122,95,.28);
}
.ft-sort {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.07); border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px; padding: 4px 6px 4px 16px;
}
.ft-sort label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(226, 232, 240, 0.65); }
.ft-sort select {
    padding: 8px 38px 8px 14px;
    border: none;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.92);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none; appearance: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-800);
    cursor: pointer;
    transition: background-color 0.18s, box-shadow 0.18s;
}
.ft-sort select:hover { background-color: #fff; }
.ft-sort select:focus { outline: none; box-shadow: 0 0 0 3px rgba(224,122,95,.28); }

/* Facet rows: one dimension per row */
.ft-facets { display: flex; flex-direction: column; }
.ft-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ft-group:first-child { border-top: none; padding-top: 4px; }
.ft-glabel {
    flex: 0 0 96px;
    text-align: left;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--gold);
}
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }

/* Bottom row: count + reset */
.ft-meta {
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
    margin-top: 6px;
}
.ft-count {
    font-size: 0.82rem; font-weight: 700;
    color: rgba(226, 232, 240, 0.85);
    letter-spacing: .01em;
}
.ft-reset {
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.ft-reset:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ft-sr {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Breadcrumb (city pages) */
.breadcrumb {
    font-size: 0.82rem;
    color: var(--slate-500);
    margin: 0 0 20px;
}
.breadcrumb a { color: var(--blue-500); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Team cards (report page) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.team-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 2px 16px rgba(15,23,42,0.08);
    border: 1px solid var(--slate-200);
    transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(15,23,42,0.14);
}
.team-initials {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.team-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 5px;
    color: var(--slate-800);
}
.team-github {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--slate-800);
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    transition: 0.2s;
}
.team-github:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Testo introduttivo sezioni (report) */
.section-intro {
    color: var(--slate-500);
    font-size: 0.95rem;
    margin: 0 0 20px;
    line-height: 1.7;
}
.section-intro a { color: var(--accent); font-weight: 600; text-decoration: none; }
.section-intro a:hover { text-decoration: underline; }

/* Responsive extra */
@media (max-width: 768px) {
    .filter-bar { padding: 0 20px; }
    .filter-toolbar { padding: 16px 20px 10px; }
    .ft-main { flex-direction: column; align-items: stretch; }
    .ft-group { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ft-glabel { flex: none; text-align: left; }
    .team-card   { flex-direction: column; align-items: center; text-align: center; }
}

/* ============================================================
   TRAVEL 2026 — City Detail Redesign
   Tutte le regole hanno prefisso .city-detail o .city-hero
   per non impattare index, report, mappa.
   ============================================================ */

/* --- Hero full-width --- */
.city-hero {
    position: relative;
    height: clamp(260px, 40vw, 420px);
    overflow: hidden;
    margin-bottom: 32px;
    border-radius: 0 0 24px 24px;
}
.city-hero img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.city-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(15,23,42,.88) 0%,
        rgba(15,23,42,.12) 55%,
        transparent 100%);
}
.city-hero-info {
    position: absolute;
    bottom: clamp(16px, 3vw, 32px);
    left:   clamp(16px, 4vw, 40px);
    right:  clamp(16px, 4vw, 40px);
    color: #fff;
}
.city-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.city-hero-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
}
.city-hero-badge.badge-green  { background: rgba(16,185,129,.28); border-color: rgba(16,185,129,.5); }
.city-hero-badge.badge-safe   { background: rgba(59,130,246,.28);  border-color: rgba(59,130,246,.5); }
.city-hero-badge.badge-top    { background: rgba(234,179,8,.28);   border-color: rgba(234,179,8,.5); }
.city-hero-badge.badge-budget { background: rgba(224,122,95,.28);  border-color: rgba(224,122,95,.5); }
.city-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700; margin: 0; line-height: 1.1;
    text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.city-hero-sub {
    font-size: 0.85rem; opacity: .75;
    margin-top: 4px; font-weight: 400;
}

/* --- Metric cards (rimpiazzano .city-detail .stats-box) --- */
.city-detail .stats-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 18px 18px 14px;
    display: flex; flex-direction: column; gap: 4px;
}
.stat-card-top {
    display: flex; align-items: center; justify-content: space-between;
}
.stat-card-label {
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--slate-500); margin-bottom: 4px;
}
.stat-card-val {
    font-size: 1.5rem; font-weight: 800;
    font-variant-numeric: tabular-nums; line-height: 1;
}
.stat-card-val.val-accent { color: var(--accent); }
.stat-card-val.val-green  { color: var(--green-500); }
.stat-card-val.val-blue   { color: var(--blue-500); }
.stat-card-val.val-gold   { color: #b45309; }

/* Circular progress ring (Safety & Green) */
.circular-ring {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: conic-gradient(
        currentColor calc(var(--pct, 0) * 3.6deg),
        var(--slate-200) 0deg
    );
    display: flex; align-items: center; justify-content: center;
    position: relative; flex-shrink: 0;
}
.circular-ring::after {
    content: ''; position: absolute; inset: 7px;
    border-radius: 50%; background: var(--slate-50);
}
.circular-ring.ring-safe  { color: var(--blue-500); }
.circular-ring.ring-green { color: var(--green-500); }

/* Pill bars */
.pill-bar-wrap {
    height: 8px; border-radius: 99px;
    background: var(--slate-200); overflow: hidden; margin-top: 8px;
}
.pill-bar-fill {
    height: 100%; border-radius: 99px;
    width: var(--bar-w, 0%);
    transition: width 0.8s cubic-bezier(.4,0,.2,1);
}
.pill-bar-fill.bar-red   { background: linear-gradient(90deg, #f87171, var(--accent)); }
.pill-bar-fill.bar-amber { background: linear-gradient(90deg, var(--gold), #f59e0b); }
.pill-bar-fill.bar-blue  { background: linear-gradient(90deg, #60a5fa, var(--blue-500)); }

/* --- Tab system --- */
.city-tabs-nav {
    display: flex; gap: 4px;
    background: var(--slate-100);
    padding: 4px; border-radius: 14px;
    margin: 0 0 24px;
}
.city-tab-btn {
    flex: 1; padding: 9px 6px;
    background: transparent; border: none; border-radius: 10px;
    font-weight: 600; font-size: 0.8rem; color: var(--slate-500);
    cursor: pointer; transition: all 0.18s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: inherit;
}
.city-tab-btn.active {
    background: #fff; color: var(--night);
    box-shadow: 0 1px 5px rgba(0,0,0,.12);
}
.city-tab-btn:hover:not(.active) {
    background: rgba(255,255,255,.6); color: var(--slate-800);
}
.city-tab-panel { display: none; }
.city-tab-panel.active { display: block; animation: tabIn 0.22s ease; }
@keyframes tabIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* --- Attractions card grid --- */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px; margin-top: 14px;
}
.attr-card {
    background: var(--slate-50); border: 1px solid var(--slate-200);
    border-radius: 14px; padding: 16px;
    display: flex; flex-direction: column; gap: 6px;
    transition: transform 0.18s, box-shadow 0.18s;
}
.attr-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.attr-card-num  { font-size: 0.62rem; font-weight: 800; color: var(--slate-500); text-transform: uppercase; }
.attr-card-name { font-weight: 700; font-size: 0.93rem; line-height: 1.3; }
.attr-card-desc { font-size: 0.78rem; color: var(--slate-500); line-height: 1.55; flex: 1; }
.attr-card-link {
    align-self: flex-start; font-size: 0.78rem;
    color: var(--accent); text-decoration: none;
    font-weight: 600; margin-top: 4px;
}
.attr-card-link:hover { text-decoration: underline; }

/* --- Nightlife card grid --- */
.nightlife-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px; margin-top: 14px;
    list-style: none; padding: 0;
}
.venue-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-top: 3px solid var(--slate-300);
    border-radius: 12px;
    padding: 14px 16px 13px;
    min-height: 108px;
    display: flex; flex-direction: column; gap: 10px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.venue-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.venue-card.cat-nightclub { border-top-color: #6d28d9; }
.venue-card.cat-pub       { border-top-color: #92400e; }
.venue-card.cat-bar       { border-top-color: #9d174d; }
.venue-card-name {
    font-weight: 700; font-size: 0.92rem;
    color: var(--night); line-height: 1.32;
    overflow-wrap: anywhere;
}
.venue-card-footer {
    margin-top: auto;
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.venue-map-link {
    font-size: 1.1rem; text-decoration: none; opacity: .5;
    transition: opacity 0.18s, transform 0.18s; flex-shrink: 0;
}
.venue-map-link:hover { opacity: 1; transform: scale(1.15); }
.venue-cat {
    display: inline-block; font-size: 0.66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    padding: 3px 10px; border-radius: 99px;
    background: var(--slate-100); color: var(--slate-500);
}
.venue-cat.cat-nightclub { background: #ede9fe; color: #6d28d9; }
.venue-cat.cat-pub       { background: #fef9c3; color: #854d0e; }
.venue-cat.cat-bar       { background: #fce7f3; color: #9d174d; }

/* --- Utility classes (rimpiazzano inline styles) --- */
.block-p  { margin: 0; }
.block-ul { margin: 8px 0 0; padding: 0; list-style: none; }
.desc-section.strategic {
    border-left: 3px solid var(--blue-500);
    padding-left: 15px; background: #f0f9ff;
}
.desc-strategic-p { font-weight: 600; margin: 0; }
.desc-wiki-p      { font-size: 0.85rem; margin: 0; }
.city-map-block   { padding: 0; overflow: hidden; border-radius: 16px; }
.city-map-title   { display: block; padding: 14px 18px; }
.city-map-div     { height: 380px; width: 100%; }
.download-note    { color: var(--slate-500); font-size: 0.85rem; margin-bottom: 12px; }
.download-uri-note { color: var(--slate-500); font-size: 0.85rem; margin: 14px 0 0; }
.city-footer      { text-align: center; padding: 40px; color: var(--slate-500); font-size: 0.82rem; }
.val-local {
    display: block; font-size: 0.72rem; font-weight: 600;
    color: #b45309; margin-top: 2px; font-variant-numeric: tabular-nums;
}

/* --- Report page hero --- */
.report-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1a2e4a 60%, #1e3a58 100%);
    color: #fff;
    padding: clamp(32px, 6vw, 64px) 24px clamp(42px, 7vw, 72px);
    text-align: center;
    border-bottom: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}
.report-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(224,122,95,.14) 0%, transparent 65%);
    pointer-events: none;
}
.report-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -.01em;
    position: relative;
}
.report-hero-sub {
    opacity: .72;
    font-size: 1rem;
    margin: 0;
    position: relative;
}

/* --- Report nav pills --- */
.report-nav a:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* --- Responsive Travel 2026 --- */
@media (max-width: 600px) {
    .city-detail .stats-box    { grid-template-columns: 1fr; }
    .city-tabs-nav             { gap: 2px; }
    .city-tab-btn              { font-size: 0.72rem; padding: 8px 4px; }
    .attractions-grid          { grid-template-columns: 1fr; }
    .nightlife-grid            { grid-template-columns: 1fr; }
}
