:root{--ink:#132b35;--forest:#102e38;--teal:#146c76;--bright:#d2eeeb;--sky:#f1f7f8;--line:#d9e5e8;--muted:#667b84;--orange:#df7844}*{box-sizing:border-box}html{background:#edf3f4}body{margin:0;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.42}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #e69d49;outline-offset:2px}a{color:#126473}.top{background:var(--forest);color:white;padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 14px max(16px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:12px;align-items:center}.brand img{width:49px;height:49px;border-radius:13px;object-fit:contain;background:white}.brand strong{display:block;font-size:22px;letter-spacing:-.6px}.brand small{color:#b3d6db;font-size:12px}.round{border:1px solid #55747d;color:white;background:transparent;border-radius:100%;width:35px;height:35px;font-size:22px}main{max-width:1260px;margin:auto;background:white;min-height:100vh}.toolbar{padding:14px 15px 12px}.sectionlabel,.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:var(--muted)}.hscroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:9px -15px 0;padding:0 15px 5px}.hscroll::-webkit-scrollbar{display:none}.area{flex:0 0 auto;border:1px solid #d8e4e5;border-radius:13px;padding:9px 13px;color:#49626b;background:white;font-size:13px;font-weight:700;white-space:nowrap}.area.active{background:#102e38;color:white;border-color:#102e38}.toolbarline{display:flex;align-items:center;gap:12px;margin-top:11px;flex-wrap:wrap}.daygroup,.activities{display:flex;gap:6px;flex:1}.daygroup button,.activities button{background:#f1f5f6;border:1px solid transparent;border-radius:11px;padding:8px 10px;font-size:12px;font-weight:700;color:#4a6570;flex:1}.daygroup button.active,.activities button.active{background:var(--bright);border-color:#92c0bd;color:#0c565a}.mapsection{height:min(49vh,510px);min-height:280px;position:relative;background:#dce8e7}.mapsection #map{height:100%;width:100%;z-index:0}.maptop,.mapbottom{position:absolute;left:12px;right:12px;z-index:400;display:flex;justify-content:space-between;align-items:center;gap:8px;pointer-events:none}.maptop{top:10px}.mapbottom{bottom:15px;justify-content:flex-start}.maptop>*,.mapbottom>*{pointer-events:auto}.mapbadge{font-size:11px;font-weight:700;color:#24454e;background:rgba(255,255,255,.92);padding:7px 9px;border-radius:9px;max-width:57%;box-shadow:0 2px 9px #152e2830}.mapbutton,.radarbtn{border:1px solid #d9e8e7;background:#fff;color:#244b50;border-radius:10px;padding:8px 11px;box-shadow:0 2px 9px #102e3836;font-size:12px;font-weight:700}.radarbtn.on{background:#194f61;color:white}.radartime{font-size:10px;color:#204750;background:#fffffff0;padding:6px 8px;border-radius:7px}.radarcontrols{position:absolute;bottom:60px;left:12px;z-index:450;display:flex;gap:7px;background:white;padding:5px;border-radius:12px;box-shadow:0 3px 12px #102e3840}.radarcontrols[hidden]{display:none}.radarcontrols button{background:#e5f2f1;border:0;border-radius:8px;padding:6px 11px;color:#173d42}.wx-marker{background:white;border:2px solid #88afb0;border-radius:15px;box-shadow:0 2px 7px #163d4140;display:flex;flex-direction:column;align-items:center;justify-content:center;white-space:nowrap;padding:2px 6px;min-width:54px}.wx-marker .wmain{font-size:18px;font-weight:850;line-height:20px}.wx-marker .wmain em{font-style:normal;font-size:17px}.wx-marker .wname{font-size:10px;font-weight:800;max-width:88px;overflow:hidden;text-overflow:ellipsis}.wx-marker.hot{border-color:#e5a15e}.wx-marker.rain{border-color:#5596bf}.wx-marker.selected{border:3px solid #102e38;background:#def1ee}.wx-marker.pending{opacity:.8}.leaflet-div-icon{background:transparent;border:0}.dashboard{padding:20px 17px 16px}.locationbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.locationbar h1{margin:3px 0 0;font-size:29px;letter-spacing:-1.2px;line-height:1.1}.subline{font-size:12px;color:#789094;margin-top:6px}.primary{border:0;border-radius:11px;background:var(--teal);color:white;font-weight:800;font-size:12px;padding:11px;max-width:155px}.loading{background:#eff6f6;padding:14px;color:#54747c;border-radius:12px;margin-top:16px;font-size:13px}.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:18px}.metric{border:1px solid #e0e9eb;border-radius:14px;padding:12px 7px;background:#f8fbfb;text-align:center}.metric span{display:block;font-size:11px;color:#5e7a82}.metric strong{display:block;font-size:23px;letter-spacing:-.8px;line-height:1.3;margin-top:4px}.metric small{font-size:10px;color:#728c92}.dashboard h2{font-size:17px;letter-spacing:-.35px;margin:20px 0 10px}.hourly{display:flex;gap:9px;overflow-x:auto;padding:0 0 9px;scrollbar-width:thin}.hour{min-width:89px;border:1px solid #e1eaeb;border-radius:13px;padding:9px 7px;text-align:center;background:#fafcfc}.hour strong{display:block;font-size:11px}.hour .icon{font-size:25px;margin:5px 0}.hour .temp{font-size:19px;font-weight:800}.hour small{display:block;font-size:11px;color:#567580;margin-top:4px}.sectionend{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;color:#6d848c;font-size:11px}.quiet{border:0;background:#ecf5f5;border-radius:9px;padding:8px;color:#215d65;font-weight:700;white-space:nowrap}.footnotes{background:#eff5f5;padding:18px;color:#576d73;font-size:12px}.footnotes>div{margin-bottom:8px}.credits{font-size:11px}.modal[hidden]{display:none}.modal{position:fixed;inset:0;z-index:3000;display:flex;align-items:flex-end;justify-content:center}.modalshade{position:absolute;inset:0;background:#071e26a8}.modalsheet{position:relative;background:#fff;border-radius:22px 22px 0 0;padding:20px;max-width:680px;width:100%;max-height:87vh;overflow:auto;padding-bottom:calc(20px + env(safe-area-inset-bottom))}.modalheading{display:flex;align-items:center;justify-content:space-between}.modalheading h2{font-size:23px;margin:0}.modalheading button{border:0;background:#edf4f4;padding:9px 12px;border-radius:9px}.modalbody p{font-size:14px}.modalbody h3{font-size:16px;margin-top:22px}.modalactions{display:flex;gap:9px;margin-top:20px}.modalactions button{border:0;border-radius:10px;background:#d9eeec;color:#15545e;padding:11px;font-weight:700;flex:1}.modalactions button:first-child{background:#165c65;color:white}.map-warning{font-size:11px;color:#566d76;background:#ecf3f4;padding:10px;border-radius:9px;margin-top:12px}@media(min-width:800px){body{background:#e4eced}.toolbar{padding:18px 24px}.hscroll{margin-left:0;margin-right:0;padding-left:0}.mapsection{height:490px}.dashboard{padding:26px}.summary{max-width:840px}.top{padding:14px 30px}.footnotes{padding:20px 26px}}@media(max-width:370px){.dashboard{padding:15px 10px}.metric{padding:10px 3px}.metric strong{font-size:19px}.area{padding:8px 10px}.activities button{font-size:11px;padding:7px}.mapbadge{max-width:48%}}

.sources{padding:22px 17px 20px;border-top:1px solid var(--line);background:#fafcfc}.sourceshead h2{font-size:20px;letter-spacing:-.5px;margin:5px 0}.sourceshead p{color:#647b83;font-size:12px;line-height:1.5;margin:4px 0 14px}.sourcegrid{display:grid;grid-template-columns:1fr;gap:11px}.sourcecard{border:1px solid #dce7e9;border-radius:14px;background:white;padding:13px 14px;display:flex;flex-direction:column;gap:9px}.sourcecard h3{font-size:14px;margin:0 0 2px;color:#244b52}.sourcecard a{display:block;text-decoration:none;background:#f0f7f7;border-radius:9px;padding:10px 11px;font-size:12px;font-weight:650;color:#155f67}.sourcecard a:active{background:#d8efed}.sourcehint{font-size:11px;line-height:1.4;color:#687e85;margin:2px 0 0}.sourceother{margin-top:14px;font-size:12px;line-height:1.5}.sourceother span{color:#788d92}@media(min-width:800px){.sources{padding:24px 26px}.sourcegrid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.contextlinks{padding:13px 17px 15px;background:#eaf5f5;border-bottom:1px solid #cfe3e3}.quicklinks{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;margin:8px 0}.quicklinks a{white-space:nowrap;display:inline-flex;align-items:center;border-radius:10px;border:1px solid #bbd8d8;background:white;color:#12555d;padding:8px 10px;font-weight:750;font-size:12px;text-decoration:none}.contextlinks small{color:#667e83;font-size:10px;display:block}.contextlinks .eyebrow{color:#36646a}@media(min-width:800px){.contextlinks{padding:16px 26px}}

/* v1.4: etichette non sovrapposte, gruppi apribili e leggibilità da smartphone */
.wx-marker.clustered{position:relative;border-color:#2c7a83;background:#eff9f9;padding-right:16px}
.cluster-count{position:absolute;right:-10px;top:-11px;min-width:23px;height:23px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:#143d47;color:#fff;font-size:11px;font-weight:800;border:2px solid white;padding:0 4px}
.spot-chooser{min-width:188px;max-height:235px;overflow:auto;display:flex;flex-direction:column;gap:4px;font:inherit}
.spot-chooser strong{font-size:12px;padding:3px 0 7px}
.spot-chooser button{display:block;width:100%;text-align:left;border:0;background:#edf6f5;border-radius:7px;padding:9px 8px;font-size:12px;font-weight:700;color:#174650}
.spot-chooser button:active{background:#cde9e4}
@media(max-width:650px){
 .toolbar{padding:11px 12px 8px}.toolbarline{margin-top:8px;gap:6px}
 .mapsection{height:45vh;min-height:310px;max-height:440px}
 .mapbadge{max-width:57%;line-height:1.25}
 .wx-marker{max-width:95px}.wx-marker .wname{max-width:76px}
 .leaflet-popup-content-wrapper{border-radius:14px}
}
