/* Seetizen · versione "dati per i cittadini": home, settori e zone */

/* ---------- Testata dei settori ---------- */
.settore-hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 5vw, 56px); color: #f5f3ea; background: #103326; isolation: isolate; }
.settore-hero::after { content: ''; position: absolute; inset: auto -10% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(159, 216, 67, .28), transparent 65%); z-index: -1; }
.settore-hero .kicker { color: rgba(245, 243, 234, .7); }
.settore-hero h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(40px, 6.4vw, 84px); line-height: .98; letter-spacing: -.035em; margin: 18px 0 18px; }
.settore-hero h1 em { color: #9fd843; }
.settore-hero p.intro { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: rgba(245, 243, 234, .82); max-width: 640px; }
.hero-numeri { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 32px; }
.hero-numero { background: rgba(245, 243, 234, .07); border: 1px solid rgba(245, 243, 234, .12); border-radius: 18px; padding: 16px 18px; }
.hero-numero b { display: block; font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -.02em; color: #f5f3ea; white-space: nowrap; }
.hero-numero > span { font-size: 13px; color: rgba(245, 243, 234, .65); line-height: 1.35; display: block; margin-top: 6px; }

/* Navigazione tra i settori: pillole come i filtri del sito; il settore aperto è verde scuro */
.settori-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.sett-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(16, 51, 38, .14); background: #fffdf6; font-size: 14px; font-weight: 500; color: #17261f; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.sett-tab:hover { border-color: #1d5c45; color: #1d5c45; }
.sett-ico { display: inline-grid; place-items: center; font-size: 13px; color: #1d5c45; }
.sett-tab.attivo { background: #103326; border-color: #103326; color: #f5f3ea; font-weight: 600; }
.sett-tab.attivo .sett-ico { color: #9fd843; }
.sett-nome .corto { display: none; }
.sett-indicatore { display: none; }
/* Telefono: tutte le voci visibili insieme, su una griglia */
@media (max-width: 767px) {
    .settori-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .sett-tab { justify-content: center; gap: 6px; padding: 9px 6px; font-size: 13px; }
    .sett-nome .lungo { display: none; }
    .sett-nome .corto { display: inline; }
}
/* ---------- Blocchi della pagina ---------- */
.blocco { margin-top: clamp(48px, 7vw, 88px); }
.blocco-testa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.blocco-testa h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.025em; color: #103326; margin-top: 12px; }
.blocco-testa h2 em { color: #1d5c45; }
.blocco-testa p { max-width: 520px; color: #5f6b63; font-size: 15px; line-height: 1.6; }
.carta { background: #fffdf6; border: 1px solid rgba(16, 51, 38, .09); border-radius: 22px; padding: 24px; min-width: 0; }
.carta h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 22px; color: #103326; line-height: 1.2; }
.carta .sotto { font-size: 13px; color: #5f6b63; margin-top: 4px; line-height: 1.5; }
.nota { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: #5f6b63; background: #f5f3ea; border-radius: 14px; padding: 12px 14px; }
.nota i { color: #f47b38; margin-top: 2px; }

/* Pulsanti a pillola (filtri) */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(16, 51, 38, .14); background: #fffdf6; color: #17261f; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.pill:hover { border-color: #1d5c45; color: #1d5c45; }
.pill.attiva { background: #103326; border-color: #103326; color: #f5f3ea; }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.pill .n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---------- Mappa delle zone ---------- */
.zone-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) { .zone-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
.zone-mappa { position: relative; height: 560px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(16, 51, 38, .09); background: #f5f3ea; }
@media (max-width: 640px) { .zone-mappa { height: 420px; } }
.zone-mappa .leaflet-container { height: 100%; background: #f5f3ea; font-family: 'Inter', sans-serif; }
.tiles-tenui { filter: grayscale(1) contrast(.85) brightness(1.08); opacity: .55; }
.zona-tip { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: #17261f; border-radius: 10px; border: 0; box-shadow: 0 8px 20px -10px rgba(16, 51, 38, .4); }
.zone-legenda { position: absolute; left: 14px; bottom: 14px; z-index: 500; background: rgba(255, 253, 246, .94); backdrop-filter: blur(6px); border-radius: 14px; padding: 10px 12px; min-width: 200px; box-shadow: 0 10px 30px -18px rgba(16, 51, 38, .5); }
.leg-t { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5f6b63; margin-bottom: 6px; }
.leg-bar { display: block; height: 8px; border-radius: 999px; }
.leg-v { display: flex; justify-content: space-between; font-size: 11px; color: #5f6b63; margin-top: 4px; font-variant-numeric: tabular-nums; }
.zone-anno { position: absolute; right: 14px; top: 14px; z-index: 500; font-family: 'Fraunces', serif; font-size: clamp(34px, 5vw, 56px); line-height: 1; color: #103326; background: rgba(255, 253, 246, .9); border-radius: 16px; padding: 8px 14px; pointer-events: none; }

/* Pannello della zona scelta */
.zona-pannello { background: #103326; color: #f5f3ea; border-radius: 22px; padding: 24px; min-height: 260px; }
.zona-pannello .kicker { color: rgba(245, 243, 234, .6); }
.zona-pannello h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 30px; line-height: 1.05; margin: 12px 0 4px; color: #f5f3ea; }
.zona-pannello .sotto { color: rgba(245, 243, 234, .6); font-size: 13px; }
.zona-righe { display: grid; gap: 10px; margin-top: 18px; }
.zona-riga { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(245, 243, 234, .1); }
.zona-riga b { font-family: 'Fraunces', serif; font-weight: 400; font-size: 20px; color: #9fd843; white-space: nowrap; }
.zona-vuota { display: grid; place-items: center; text-align: center; min-height: 220px; color: rgba(245, 243, 234, .7); font-size: 14px; line-height: 1.6; }
.zona-vuota i { font-size: 28px; color: #9fd843; margin-bottom: 10px; }

/* Barre orizzontali */
.barre { display: grid; gap: 12px; }
.barra-t { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 5px; }
.barra-t span:first-child { font-weight: 600; color: #17261f; display: inline-flex; align-items: center; gap: 7px; }
.barra-t span:last-child { color: #5f6b63; white-space: nowrap; font-variant-numeric: tabular-nums; }
.barra-b { height: 9px; border-radius: 999px; background: #f0ede3; overflow: hidden; }
.barra-b > i { display: block; height: 100%; border-radius: 999px; }
.zona-pannello .barra-t span:first-child { color: #f5f3ea; }
.zona-pannello .barra-t span:last-child { color: rgba(245, 243, 234, .6); }
.zona-pannello .barra-b { background: rgba(245, 243, 234, .1); }

/* Riproduzione nel tempo + barra del periodo */
.tempo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; background: #fffdf6; border: 1px solid rgba(16, 51, 38, .09); border-radius: 22px; padding: 16px 20px; margin-bottom: 16px; }
.play { width: 54px; height: 54px; border-radius: 50%; background: #103326; color: #9fd843; display: grid; place-items: center; font-size: 18px; transition: transform .2s, background-color .2s; box-shadow: 0 10px 24px -12px rgba(16, 51, 38, .6); }
.play:hover { transform: scale(1.06); background: #1d5c45; }
.play.in-riproduzione { background: #f47b38; color: #fffdf6; }
.per-testa { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.per-etichetta { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5f6b63; }
.per-valore { font-family: 'Fraunces', serif; font-size: 22px; color: #103326; }
.per-estremi { display: flex; justify-content: space-between; font-size: 11px; color: #5f6b63; }
.doppio-range { position: relative; height: 34px; }
.doppio-range-track { position: absolute; left: 9px; right: 9px; top: 50%; height: 6px; margin-top: -3px; border-radius: 999px; background: rgba(16, 51, 38, .12); }
.doppio-range-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: #1d5c45; }
.doppio-range input[type="range"] { position: absolute; left: 0; top: 0; width: 100%; height: 34px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.doppio-range input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 34px; }
.doppio-range input[type="range"]::-moz-range-track { background: transparent; }
.doppio-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 7px; border-radius: 50%; background: #103326; border: 3px solid #9fd843; cursor: grab; }
.doppio-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #103326; border: 3px solid #9fd843; cursor: grab; }

.grafico { position: relative; height: 300px; }
@media (max-width: 640px) { .grafico { height: 240px; } }

/* Elenchi di classifica */
.classifica { display: grid; gap: 2px; counter-reset: pos; }
.classifica button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 12px; font-size: 14px; transition: background-color .2s; }
.classifica button:hover { background: #f5f3ea; }
.classifica button::before { counter-increment: pos; content: counter(pos); font-family: 'Fraunces', serif; color: #5f6b63; font-size: 15px; }
.classifica .nome { font-weight: 600; color: #17261f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classifica .nome small { display: block; font-weight: 400; font-style: italic; color: #5f6b63; font-size: 12px; }
.classifica .val { font-variant-numeric: tabular-nums; color: #103326; font-weight: 600; white-space: nowrap; }

/* "Da dove vengono questi dati" */
.fonti { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fonte { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: #fffdf6; border: 1px solid rgba(16, 51, 38, .09); transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .2s; }
.fonte:hover { transform: translateY(-3px); border-color: #1d5c45; }
.fonte .ico { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: rgba(159, 216, 67, .25); color: #1d5c45; }
.fonte b { display: block; font-size: 14px; color: #17261f; line-height: 1.35; }
.fonte span { font-size: 12.5px; color: #5f6b63; }

/* Segnaposto "in preparazione" */
.in-arrivo { border: 1.5px dashed rgba(16, 51, 38, .25); border-radius: 22px; padding: 28px; text-align: center; color: #5f6b63; background: rgba(255, 253, 246, .6); }
.in-arrivo i { font-size: 26px; color: #f47b38; margin-bottom: 10px; }

/* ---------- Home ---------- */
.home-hero { position: relative; padding: clamp(36px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.home-hero h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(48px, 8.6vw, 128px); line-height: .92; letter-spacing: -.045em; color: #103326; }
.home-hero h1 em { color: #1d5c45; }
.home-hero h1 .riga { display: block; overflow: hidden; padding-bottom: .06em; }
.home-hero h1 .riga > span { display: inline-block; }
.home-domanda { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.settori-griglia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.settore-card { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 260px; border-radius: 24px; padding: 26px; isolation: isolate; transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s; }
.settore-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(16, 51, 38, .55); }
.settore-card .ico-big { position: absolute; right: -12px; bottom: -22px; font-size: 150px; opacity: .1; z-index: -1; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.settore-card:hover .ico-big { transform: rotate(-8deg) scale(1.08); }
.settore-card h3 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.settore-card .big { font-family: 'Fraunces', serif; font-size: clamp(42px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.settore-card .lbl { font-size: 13.5px; opacity: .78; max-width: 260px; line-height: 1.45; margin-top: 6px; }
.settore-card .vai { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s; }
.settore-card:hover .vai { transform: rotate(-45deg); }
.sc-bio { grid-column: span 7; background: #103326; color: #f5f3ea; }
.sc-bio .vai { background: #9fd843; color: #103326; }
.sc-verde { grid-column: span 5; background: #dbe88f; color: #103326; }
.sc-verde .vai { background: #103326; color: #dbe88f; }
.sc-clima { grid-column: span 4; background: #ffd9bf; color: #7a2e10; }
.sc-clima .vai { background: #f47b38; color: #fffdf6; }
.sc-aria { grid-column: span 4; background: #fffdf6; color: #103326; border: 1px solid rgba(16, 51, 38, .09); }
.sc-aria .vai { background: #103326; color: #9fd843; }
.sc-pop { grid-column: span 4; background: #f0ede3; color: #103326; }
.sc-pop .vai { background: #fffdf6; color: #103326; }
@media (max-width: 1023px) { .sc-bio, .sc-verde { grid-column: span 12; } .sc-clima, .sc-aria, .sc-pop { grid-column: span 6; } }
@media (max-width: 640px) { .sc-clima, .sc-aria, .sc-pop { grid-column: span 12; } .settore-card { min-height: 220px; } }

/* Verona nel tempo: di base è un riquadro verde; con le animazioni attive (.tempo-attivo) occupa tutto lo schermo
   e il riquadro si allarga fino a coprire l'intero sfondo mentre si scorre, poi si richiude */
.tempo-wrap { padding: 0 20px; }
@media (min-width: 1024px) { .tempo-wrap { padding: 0 32px; } }
.tempo-sezione { position: relative; max-width: 1216px; margin: 0 auto; background: #103326; color: #f5f3ea; border-radius: 32px; overflow: hidden; }
.tempo-dentro { display: grid; grid-template-rows: auto 1fr auto; padding: clamp(28px, 5vw, 56px); gap: 24px; min-height: 640px; }
.tempo-attivo.tempo-wrap { padding: 0; }
.tempo-attivo .tempo-sezione { max-width: none; height: 100vh; border-radius: 0; will-change: clip-path; }
.tempo-attivo .tempo-dentro { height: 100%; min-height: 0; padding-top: calc(var(--tempo-alto, 7vh) + 36px); padding-bottom: calc(var(--tempo-alto, 7vh) + 32px); gap: clamp(12px, 2.4vh, 24px); }
.tempo-attivo .tempo-anno { font-size: clamp(72px, min(15vw, 22vh), 220px); }
.tempo-attivo .tempo-barre { min-height: 0; }
.tempo-anno { font-family: 'Fraunces', serif; font-size: clamp(90px, 18vw, 240px); line-height: .85; letter-spacing: -.05em; color: #9fd843; font-variant-numeric: tabular-nums; }
.tempo-barre { display: flex; align-items: flex-end; gap: 3px; height: 100%; min-height: 200px; }
.tempo-attivo .tempo-barre { min-height: 0; max-height: 40vh; }
.tempo-barre span { flex: 1; min-width: 0; height: calc(var(--px, 0px) * var(--k, 1)); background: rgba(245, 243, 234, .14); border-radius: 4px 4px 0 0; transition: background-color .2s; }
.tempo-barre span.acceso { background: #9fd843; }
.tempo-barre span.scelto { background: #f5f3ea; }
.tempo-assi { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: rgba(245, 243, 234, .5); font-variant-numeric: tabular-nums; }
.tempo-dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.tempo-dati b { display: block; font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); color: #f5f3ea; line-height: 1; }
.tempo-dati span { font-size: 13px; color: rgba(245, 243, 234, .62); }

/* ---------- Telefono ---------- */
@media (max-width: 640px) {
    .settore-hero { border-radius: 22px; padding: 26px 20px; }
    .hero-numeri { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
    .hero-numero { padding: 12px 14px; border-radius: 14px; }
    .hero-numero b { font-size: 26px; white-space: normal; }
    .hero-numero > span { font-size: 12px; }
    .zone-anno { font-size: 26px; padding: 6px 10px; border-radius: 12px; right: 10px; top: 10px; }
    .zone-legenda { left: 10px; bottom: 10px; min-width: 150px; padding: 8px 10px; }
    .zona-pannello { min-height: 0; padding: 20px; }
    .zona-vuota { min-height: 90px; }
    .zona-vuota i { font-size: 20px; margin-bottom: 6px; }
    .tempo { grid-template-columns: auto minmax(0, 1fr); padding: 12px 14px; gap: 12px; }
    .play { width: 46px; height: 46px; font-size: 15px; }
    .blocco { margin-top: 56px; }
    .carta { padding: 18px; border-radius: 18px; }
    .classifica button { padding: 8px 6px; font-size: 13.5px; }
    .tempo-anno { font-size: clamp(72px, 26vw, 120px); }
    .tempo-dati { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tempo-dati b { font-size: 28px; }
}

/* Il contenitore dell'istogramma occupa tutta l'altezza disponibile (sennò le barre, alte in %, spariscono) */
.tempo-barre-box { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.tempo-barre-box .tempo-barre { flex: 1; }
.tempo-attivo .tempo-barre-box .tempo-barre { min-height: 160px; }

/* Verona nel tempo su telefono: l'istogramma si "sfoglia" col dito */
@media (max-width: 767px) {
    .tempo-barre-box .tempo-barre { flex: none; touch-action: pan-y; height: 200px; min-height: 0; cursor: pointer; }
    .tempo-barre.in-uso span.acceso:not(.scelto) { background: rgba(159, 216, 67, .55); }
    #tempo-anno { transform-origin: left bottom; display: inline-block; }
}

/* ---------- Verde e suolo: approfondimenti ---------- */
.scheda-num { background: #f5f3ea; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.scheda-num-v { font-family: 'Fraunces', serif; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; color: #103326; }
.scheda-num-l { font-size: 12px; color: #5f6b63; line-height: 1.3; }
.circ-barre button { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 10px; }
.circ-barre button.scelta { background: #f5f3ea; }
.circ-barre .nome small { font-style: normal; }
.circ-b { display: block; height: 7px; border-radius: 999px; background: rgba(16, 51, 38, .07); margin-top: 6px; overflow: hidden; }
.circ-b i { display: block; height: 100%; border-radius: 999px; }
.rilievo h3 { font-size: 19px; }
.rilievo-riga + .rilievo-riga { margin-top: 12px; }
.rilievo-b { height: 7px; border-radius: 999px; background: rgba(16, 51, 38, .07); overflow: hidden; margin-top: 3px; }
.rilievo-b i { display: block; height: 100%; border-radius: 999px; }
.rilievo-sig { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: #fffdf6; background: #1d5c45; border-radius: 999px; padding: 1px 7px; }
.citta-verona .barra-t span:first-child { color: #103326; }
