/* Meteogramma MET Norway — controlli desktop */
.mg-meteogram{box-sizing:border-box;margin-top:20px;padding:13px;background:#f5faff;border:1px solid #d4e5f2;border-radius:12px;min-width:0;color:#123e68}
.mg-meteogram *{box-sizing:border-box}
.mg-meteogram h3{font-size:17px;margin:0 0 10px;color:#123e68}
.mg-meteogram__controls,.mg-meteogram__search{display:flex;gap:8px;align-items:center;margin-bottom:9px}
.mg-meteogram select,.mg-meteogram input,.mg-meteogram button{border:1px solid #bfd1e0;border-radius:7px;padding:9px;background:white;color:#123e68;font:inherit;font-size:12px;max-width:100%}
.mg-meteogram button{cursor:pointer}
.mg-meteogram button[aria-pressed=true]{background:#13568c;color:#fff}
.mg-meteogram__results button{display:block;text-align:left;width:100%;margin:3px 0}
.mg-meteogram__status{font-size:11px;color:#526b80;margin:8px 0}
.mg-meteogram__chart{overflow-x:auto}
.mg-meteogram__chart svg{display:block;width:100%;height:auto}
.mg-meteogram__legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;margin-top:8px}
.mg-meteogram__source{font-size:10px;color:#61758a;margin-top:8px}
@media(min-width:901px){
 #mgMeteogram .mg-meteogram__controls{display:flex;flex-wrap:nowrap;width:100%;gap:10px;align-items:center;white-space:nowrap}
 #mgMeteogram .mg-meteogram__controls>label{flex:0 0 auto}
 #mgMeteogram .mg-meteogram__controls>select{flex:0 0 155px;width:155px;min-width:0}
 #mgMeteogram .mg-meteogram__controls>.mg-meteogram__search{display:flex;flex:1 1 auto;min-width:0;width:auto;gap:10px;margin:0;align-items:center}
 #mgMeteogram .mg-meteogram__search input{flex:1 1 auto;width:100%;min-width:0;max-width:none}
 #mgMeteogram .mg-meteogram__controls button{flex:0 0 95px;min-width:95px;width:95px;padding:9px 10px;text-align:center;white-space:nowrap;font-weight:600}
}
@media(max-width:900px){#mgMeteogram{display:none!important}}

/* Valori previsionali al passaggio del mouse */
.mg-meteogram__chart{position:relative}
.mg-meteogram__tooltip{position:absolute;z-index:5;max-width:min(480px,95%);padding:9px 12px;border-radius:8px;background:#123e68;color:#fff;font-size:12px;line-height:1.5;box-shadow:0 3px 12px #123e6840;pointer-events:none;white-space:normal}
.mg-meteogram__tooltip[hidden]{display:none}

/* Tooltip leggibile, sovrapposto al grafico senza intercettare il mouse. */
.mg-meteogram__chart{position:relative}
.mg-meteogram__tooltip{position:absolute;z-index:5;max-width:min(380px,90%);padding:9px 12px;background:#fff;color:#123e68;border:1px solid #a9c4d9;border-radius:8px;box-shadow:0 3px 12px #123e6826;font-size:12px;line-height:1.5;pointer-events:none;white-space:normal}
.mg-meteogram__tooltip[hidden]{display:none!important}
