/**
 * Hub meteo città — template-meteo-hub.php (13 ott 2026).
 * Caricato solo su quella pagina (nl_meteo_hub_enqueue). Altezze fisse su icone
 * e righe: l'emoji cambia metrica fra OS, il box no (CLS 0).
 */

.nl-mh__updated {
    font-size: 13px;
    color: var(--nz-muted);
    margin: -8px 0 20px;
}
.nl-mh__section { margin: 0 0 32px; }
.nl-mh__h2 {
    font-family: var(--nz-font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 14px;
    padding-top: 12px;
    border-top: 3px solid var(--nz-ink);
}
.nl-mh__h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: capitalize;
    margin: 0 0 8px;
}
.nl-mh__note {
    font-size: 12px;
    line-height: 1.5;
    color: var(--nz-ink-3);
    margin: 10px 0 0;
}
.nl-mh__empty {
    padding: 16px;
    background: var(--nz-bg-soft);
    color: var(--nz-ink-3);
    margin: 0;
}
.nl-mh__icon {
    display: inline-block;
    width: 34px;
    height: 34px;
    font-size: 26px;
    line-height: 34px;
    text-align: center;
    overflow: hidden;
}

/* ---- Allerta ---- */
.nl-mh__alert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.nl-mh__alert-day {
    border-left: 6px solid var(--nz-rule);
    background: var(--nz-bg-soft);
    padding: 12px 14px;
    min-height: 132px;
}
.nl-mh__lv--verde     { border-left-color: #3FA34D; }
.nl-mh__lv--gialla    { border-left-color: var(--nz-yellow); background: #FFF8E1; }
.nl-mh__lv--arancione { border-left-color: #FF7A00; background: rgba(255, 122, 0, 0.12); }
.nl-mh__lv--rossa     { border-left-color: var(--nz-red); background: var(--nz-red-soft); }
.nl-mh__alert-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.nl-mh__alert-when {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nz-ink-3);
}
.nl-mh__alert-max { font-size: 18px; font-weight: 800; line-height: 1.25; }
.nl-mh__risks { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.7; }
.nl-mh__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    background: var(--nz-muted);
}
.nl-mh__dot--verde     { background: #3FA34D; }
.nl-mh__dot--gialla    { background: var(--nz-yellow); }
.nl-mh__dot--arancione { background: #FF7A00; }
.nl-mh__dot--rossa     { background: var(--nz-red); }

/* ---- Fasce oggi/domani ---- */
.nl-mh__slots-day + .nl-mh__slots-day { margin-top: 16px; }
.nl-mh__slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.nl-mh__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    min-height: 136px;
    background: var(--nz-bg-soft);
    text-align: center;
}
.nl-mh__slot-when {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nz-ink-3);
}
.nl-mh__slot-temp {
    font-family: var(--nz-font-display);
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
}
.nl-mh__slot-cond { font-size: 12px; line-height: 1.3; min-height: 32px; }
.nl-mh__slot-rain { font-size: 12px; color: var(--nz-ink-3); }

/* ---- 7 giorni ---- */
.nl-mh__days { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nz-rule); }
.nl-mh__day {
    display: grid;
    grid-template-columns: 82px 34px minmax(0, 1fr) 72px 64px 64px;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    border-bottom: 1px solid var(--nz-rule);
    font-size: 14px;
}
.nl-mh__day-date strong { text-transform: capitalize; }
.nl-mh__day-cond { line-height: 1.3; }
.nl-mh__day-temp { text-align: right; }
.nl-mh__day-temp strong { font-size: 16px; }
.nl-mh__day-temp span { color: var(--nz-ink-3); }
.nl-mh__day-rain, .nl-mh__day-wind { text-align: right; color: var(--nz-ink-3); font-size: 13px; }

/* ---- Notizie ---- */
.nl-mh__news { list-style: none; margin: 0; padding: 0; }
.nl-mh__news li {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--nz-rule);
    line-height: 1.35;
}
.nl-mh__news time { font-size: 12px; font-weight: 700; color: var(--nz-muted); padding-top: 2px; }
.nl-mh__news a { color: var(--nz-ink); font-weight: 700; text-decoration: none; }
.nl-mh__news a:hover { color: var(--nz-red); }

.nl-mh__body h2 {
    font-family: var(--nz-font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 22px;
    line-height: 1.25;
    margin: 28px 0 10px;
}
.nl-mh__body { font-size: 16px; }

.nl-mh__sources {
    margin-top: 28px;
    padding-top: 12px;
    border-top: 1px solid var(--nz-rule);
    font-size: 12px;
    line-height: 1.6;
    color: var(--nz-ink-3);
}
.nl-mh__sources a { color: inherit; }

@media (max-width: 768px) {
    .nl-mh__alert-grid { grid-template-columns: 1fr; }
    .nl-mh__alert-day { min-height: 0; }
    .nl-mh__slots { gap: 6px; }
    .nl-mh__slot { padding: 8px 2px; }
    .nl-mh__day {
        grid-template-columns: 64px 34px minmax(0, 1fr) 64px;
        grid-template-areas: "date icon cond temp" "date icon rain wind";
        row-gap: 0;
        min-height: 60px;
        padding: 4px 0;
    }
    .nl-mh__day-date { grid-area: date; }
    .nl-mh__day .nl-mh__icon { grid-area: icon; }
    .nl-mh__day-cond { grid-area: cond; }
    .nl-mh__day-temp { grid-area: temp; }
    .nl-mh__day-rain { grid-area: rain; text-align: left; }
    .nl-mh__day-wind { grid-area: wind; }
    .nl-mh__news li { grid-template-columns: 1fr; gap: 2px; }
}
