*{box-sizing:border-box}body{margin:0;background:#f3f7fb;color:#0b2340;font:15px/1.5 Segoe UI,Arial,sans-serif}.top{background:white;border-bottom:1px solid #dce7f0;padding:16px max(20px,calc((100% - 1440px)/2));display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#0b2340}.logo{width:46px;height:46px;background:#0b3a68;border-radius:50%;display:grid;place-items:center;color:white;font-weight:900}.brand small{display:block;color:#61758a;font-size:11px}.back{color:#0b3a68;font-weight:700;text-decoration:none}main{max-width:1440px;margin:auto;padding:28px 20px}.intro{display:flex;justify-content:space-between;align-items:center;gap:18px}.eyebrow{color:#d62828;font-size:12px;letter-spacing:.12em;font-weight:800}h1{font-size:36px;margin:4px 0}p{margin:6px 0 16px}.status{background:#eaf3fa;padding:10px 14px;border-radius:10px;color:#0b3a68;font-weight:700}#map{height:400px;border-radius:14px;border:1px solid #dce7f0;z-index:0}.legend{display:flex;flex-wrap:wrap;gap:18px;margin:16px 0;font-size:13px}.dot{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:middle;margin-right:5px}.blue{background:#1787d1}.yellow{background:#e7ac16}.red{background:#dc3434}.gray{background:#8794a1}.notice{font-size:13px;color:#61758a}.groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:26px}.group{background:white;border:1px solid #dce7f0;border-radius:14px;padding:16px;min-width:0}.group h2{font-size:19px;margin:0 0 14px;color:#0b3a68}.station{border-top:1px solid #e6edf3;padding:13px 0}.station:first-of-type{border-top:0}.station-name{font-weight:700;display:block}.station-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.level{font-size:21px;font-weight:800;color:#0b3a68}.sub{font-size:12px;color:#61758a}.station a{font-size:13px;color:#146da9;text-decoration:none;font-weight:700}.station a:hover{text-decoration:underline}.pin{background:transparent;border:0}.pin div{width:17px;height:17px;border:2px solid white;border-radius:50%;box-shadow:0 1px 5px #345}footer{max-width:1440px;margin:auto;padding:20px;color:#61758a;font-size:12px}@media(max-width:1000px){.groups{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.groups{grid-template-columns:1fr}.intro{display:block}h1{font-size:30px}#map{height:310px}.status{margin-bottom:12px}.top{padding:12px 16px}}
.mg-rivers-control{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 4px;color:#24445f;font-size:13px}
.mg-rivers-control strong{color:#0b3a68}
.mg-rivers-control button{background:#0b3a68;color:white;border:0;border-radius:8px;padding:9px 12px;cursor:pointer;font-weight:700}

/* Nuova disposizione: mappa a sinistra, bacini a destra */
.top-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;margin-top:16px;align-items:start}
.map-panel,.basins-panel{background:white;border:1px solid #dce7f0;border-radius:14px;padding:17px;min-width:0}
.map-panel h2,.basins-panel h2{font-size:21px;color:#0b3a68;margin:0 0 12px}
#map{height:540px;width:100%;min-width:0}
.basins-panel p{color:#61758a;font-size:13px}
.basin-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.basin-button{border:1px solid #c8dce9;background:#f5f9fc;border-radius:10px;padding:13px 10px;text-align:left;color:#0b3a68;font-weight:750;cursor:pointer}
.basin-button.active,.basin-button:hover{background:#0b3a68;color:white}
.show-all{margin-top:15px;background:#1373ae;color:white;border:0;border-radius:9px;padding:11px 15px;font-weight:750;cursor:pointer}
.mg-rivers-control{display:flex;flex-wrap:wrap;align-items:center;gap:9px;font-size:12px;padding:12px 0 0}
.mg-rivers-control button{margin-left:auto}
@media(max-width:900px){.top-layout{grid-template-columns:1fr}#map{height:460px}}
@media(max-width:650px){#map{height:380px}.basin-buttons{grid-template-columns:1fr}.map-panel,.basins-panel{padding:12px}}

/* Indicatori idrometrici: piccoli, con area cliccabile 24x32 */
.mg-idro-marker{background:transparent;border:0}
.mg-idro-symbol{position:relative;width:24px;height:32px;cursor:pointer}
.mg-idro-symbol::before{content:"";position:absolute;left:11px;top:5px;width:2px;height:23px;background:#174a78;border-radius:1px}
.mg-idro-symbol span{position:absolute;left:5px;top:7px;width:14px;height:10px;border:1.5px solid #fff;border-radius:50%;background:#1689d4;box-shadow:0 1px 3px #0004}
.mg-idro-symbol.yellow span{background:#e7a600}
.mg-idro-symbol.red span{background:#d62828}
.mg-idro-symbol.gray span{background:#8795a4}

/* Segnaposti a goccia: nessun riquadro colorato; area cliccabile trasparente */
.mg-idro-marker.leaflet-div-icon{background:transparent!important;border:0!important;box-shadow:none!important;}
.mg-drop-wrap{display:flex;width:24px;height:28px;align-items:center;justify-content:center;background:transparent!important;}
.mg-drop{width:12px;height:16px;display:block;overflow:visible;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35));}
.mg-drop path{fill:#1689d4;stroke:#fff;stroke-width:1.5;stroke-linejoin:round;}
.mg-drop-yellow path{fill:#e7a600;}
.mg-drop-red path{fill:#d62828;}
.mg-drop-gray path{fill:#8795a4;}

/* Legenda con gli stessi segnaposti a goccia rovesciata della mappa */
.legend{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;margin:16px 0;font-size:13px}
.mg-legend-item{display:inline-flex;align-items:center;gap:7px;white-space:normal}
.mg-legend-item .mg-drop{width:12px;height:17px;flex:none;filter:none}
