/* ============================================================
   OROSEIMETEO · HOME
   Nuova grafica: bianca, tipografica, pulita e coerente
   ============================================================ */

.home3-section {
    padding: 58px 0;
    background: #fff;
}

.home3-kicker {
    display: block;
    color: var(--om-blue);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.home3-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 34px;
    margin-bottom: 28px;
}

.home3-section-title h2 {
    margin: 6px 0 0;
    color: var(--om-blue-dark);
    font-size: clamp(35px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: -.7px;
    font-weight: 700;
}

.home3-section-title > p {
    max-width: 620px;
    margin: 0;
    color: var(--om-muted);
    font-size: 17px;
    line-height: 1.55;
    text-align: right;
}

/* ============================================================
   HERO
   ============================================================ */

.home3-hero {
    position: relative;
    min-height: 535px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #2f3e47;
}

.home3-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home3-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 31, 39, .78) 0%, rgba(18, 31, 39, .60) 45%, rgba(18, 31, 39, .18) 82%, rgba(18, 31, 39, .08) 100%),
        linear-gradient(180deg, rgba(12, 24, 31, .05), rgba(12, 24, 31, .22));
}

.home3-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 535px;
    display: flex;
    align-items: center;
}

.home3-hero-copy {
    width: min(770px, 68%);
    padding: 52px 0;
    color: #fff;
}

.home3-hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.home3-hero-brand img {
    width: 58px;
    height: 70px;
    object-fit: contain;
}

.home3-hero-brand strong {
    color: #fff;
    font-size: 37px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.6px;
}

.home3-hero .home3-kicker {
    color: #d7edf5;
}

.home3-hero-copy h1 {
    max-width: 760px;
    margin: 12px 0 18px;
    color: #fff;
    font-size: clamp(46px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.9px;
    font-weight: 700;
}

.home3-hero-meta {
    margin: 0 0 15px;
    color: #f0f2f3;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

.home3-hero-meta strong {
    font-weight: 700;
}

.home3-lead {
    max-width: 760px;
    margin: 0;
    color: #f6f7f7;
    font-size: 20px;
    line-height: 1.52;
}

.home3-live-snapshot {
    max-width: 720px;
    margin-top: 28px;
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .40);
    border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.home3-ticker-icon {
    width: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    color: #fff;
}

.home3-condition-icon .icon,
.home3-condition-icon svg {
    width: 30px !important;
    height: 30px !important;
}

.home3-ticker-viewport {
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.home3-ticker-track {
    width: max-content;
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: home3TickerScroll 72s linear infinite;
}

.home3-ticker-track > span {
    color: #fff;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 400;
}

.home3-ticker-track > span::after {
    content: "  •  ";
    display: inline-block;
    padding: 0 30px;
    color: #d3dadd;
}

@keyframes home3TickerScroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .home3-ticker-track {
        animation: none;
        white-space: normal;
    }

    .home3-ticker-track > [data-live-ticker-copy] {
        display: none;
    }

    .home3-ticker-track > span::after {
        display: none;
    }
}

.home3-ad {
    width: 100%;
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 18px;
    text-align: center;
    background: #fff;
}

/* ============================================================
   PREVISIONE SARDEGNA
   ============================================================ */

.home3-daily-forecast-section,
.home3-forecast-section,
.home3-live-section,
.home3-network-section,
.home3-webcam-section,
.home3-monitor-section,
.home3-about-section {
    background: #fff;
}

.home3-daily-forecast-section,
.home3-forecast-section,
.home3-alert-strip-v45,
.home3-network-section,
.home3-about-section,
.home3-webcam-section,
.home3-monitor-section,
.home3-fact-section {
    border-top: 1px solid var(--om-line);
}


/* ============================================================
   TESTATA
   ============================================================ */

.home3-daily-forecast-titlebar {
    align-items: center;
}

.home3-daily-forecast-update {
    flex: 0 0 auto;
    color: var(--om-muted);
    font-size: 15px;
    font-weight: 600;
}


/* ============================================================
   CARD PREVISIONE
   ============================================================ */

.home3-daily-forecast-card {
    border-top: 1px solid var(--om-line-strong);
    border-bottom: 1px solid var(--om-line-strong);
    background: #fff;
}


/* ============================================================
   SITUAZIONE GENERALE · DESKTOP
   ============================================================ */

.home3-daily-forecast-lead {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 28px 0;
}

.home3-daily-forecast-lead-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--om-blue);
}

.home3-daily-forecast-lead-icon .icon,
.home3-daily-forecast-lead-icon svg {
    width: 32px;
    height: 32px;
}

.home3-daily-forecast-lead span {
    display: block;
    margin-bottom: 6px;
    color: var(--om-blue);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.home3-daily-forecast-lead p {
    margin: 0;
    color: #374a55;
    font-size: 19px;
    line-height: 1.58;
}


/* ============================================================
   FOOTER PREVISIONE
   ============================================================ */

.home3-daily-forecast-footer {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--om-line);
    color: var(--om-muted);
    font-size: 15px;
}

.home3-daily-forecast-footer a {
    color: var(--om-blue);
    font-size: 16px;
    font-weight: 700;
}


/* ============================================================
   PREVISIONE NON DISPONIBILE
   ============================================================ */

.home3-daily-forecast-unavailable {
    padding: 24px 0;
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
}

.home3-daily-forecast-unavailable strong,
.home3-daily-forecast-unavailable span {
    display: block;
}

.home3-daily-forecast-unavailable strong {
    color: var(--om-blue-dark);
    font-size: 19px;
}

.home3-daily-forecast-unavailable span {
    margin-top: 5px;
    color: var(--om-muted);
    font-size: 16px;
}


/* ============================================================
   TABLET / MOBILE
   Icona + titolo sulla prima riga.
   Testo sotto a tutta larghezza.
   ============================================================ */

@media (max-width: 800px) {

    .home3-daily-forecast-titlebar {
        align-items: flex-start;
    }

    .home3-daily-forecast-lead {
        grid-template-columns: 44px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 13px;
        row-gap: 12px;
        align-items: center;
        padding: 25px 0;
    }

    /*
     * Elimina il contenitore intermedio solo dal punto di vista
     * del layout, così titolo e testo possono occupare righe diverse.
     */
    .home3-daily-forecast-lead > div:last-child {
        display: contents;
    }

    .home3-daily-forecast-lead-icon {
        grid-column: 1;
        grid-row: 1;
        width: 44px;
        height: 44px;
        align-self: center;
    }

    .home3-daily-forecast-lead-icon .icon,
    .home3-daily-forecast-lead-icon svg {
        width: 30px;
        height: 30px;
    }

    .home3-daily-forecast-lead > div:last-child > span {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        margin: 0;
    }

    .home3-daily-forecast-lead > div:last-child > p {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin: 0;
        font-size: 18px;
        line-height: 1.58;
    }

    .home3-daily-forecast-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .home3-daily-forecast-lead {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 11px;
        padding: 24px 0;
    }

    .home3-daily-forecast-lead-icon {
        width: 38px;
        height: 38px;
    }

    .home3-daily-forecast-lead-icon .icon,
    .home3-daily-forecast-lead-icon svg {
        width: 27px;
        height: 27px;
    }

    .home3-daily-forecast-lead > div:last-child > span {
        font-size: 14px;
        line-height: 1.3;
    }

    .home3-daily-forecast-lead > div:last-child > p {
        font-size: 17px;
        line-height: 1.58;
    }

    .home3-daily-forecast-footer {
        font-size: 15px;
    }

    .home3-daily-forecast-footer a {
        font-size: 16px;
    }
}
.home3-temp-comfort-primary-v50{
    margin-top:15px;
    font-size:25px;
}
.home3-temp-condition-v50 {
    margin-top: 14px;
    margin-bottom: 2px;
    font-size: 19px;
}
/* ============================================================
   PREVISIONE OROSEI · OUTPUT JS
   ============================================================ */

.home3-orosei-forecast {
    width: 100%;
}

.home3-forecast-loading {
    padding: 30px 0;
    border-top: 1px solid var(--om-line);
    color: var(--om-muted);
    font-size: 16px;
}

.home3-orosei-day-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
}

.home3-orosei-day-tab {
    min-width: 0;
    padding: 18px 20px 16px;
    border: 0;
    border-right: 1px solid var(--om-line);
    border-bottom: 3px solid transparent;
    background: #fff;
    color: var(--om-blue-dark);
    text-align: left;
    cursor: pointer;
}

.home3-orosei-day-tab:last-child {
    border-right: 0;
}

.home3-orosei-day-tab:hover,
.home3-orosei-day-tab.is-active {
    background: #f7f7f7;
}

.home3-orosei-day-tab.is-active {
    border-bottom-color: var(--om-blue);
}

.home3-orosei-day-label {
    display: block;
    color: var(--om-blue);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-orosei-day-date {
    display: block;
    margin-top: 4px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-orosei-day-icon {
    width: 42px;
    height: 42px;
    margin-top: 13px;
    display: grid;
    place-items: center;
    color: var(--om-blue);
}

.home3-orosei-day-icon svg {
    width: 28px !important;
    height: 28px !important;
}

.home3-orosei-day-weather {
    display: block;
    margin-top: 9px;
    overflow: hidden;
    color: var(--om-blue-dark);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home3-orosei-day-temp {
    display: block;
    margin-top: 5px;
    color: #53626a;
    font-size: 16px;
    font-weight: 600;
}

.home3-orosei-forecast-detail {
    border-bottom: 1px solid var(--om-line-strong);
    background: #fff;
}

.home3-orosei-forecast-summary {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--om-line);
}

.home3-orosei-summary-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--om-blue);
}

.home3-orosei-summary-icon svg {
    width: 34px !important;
    height: 34px !important;
}

.home3-orosei-summary-label {
    display: block;
    margin-bottom: 4px;
    color: var(--om-blue);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-orosei-forecast-summary h3 {
    margin: 0;
    color: var(--om-blue-dark);
    font-size: 29px;
    font-weight: 700;
}

.home3-orosei-forecast-summary p {
    margin: 10px 0 0;
    color: #4f5f67;
    font-size: 17px;
    line-height: 1.58;
}

.home3-orosei-forecast-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-bottom: 1px solid var(--om-line);
}

.home3-orosei-forecast-metrics > div {
    min-width: 0;
    padding: 20px 18px;
}

.home3-orosei-forecast-metrics > div + div {
    border-left: 1px solid var(--om-line);
}

.home3-orosei-forecast-metrics span {
    display: block;
    color: var(--om-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-orosei-forecast-metrics strong {
    display: block;
    margin-top: 6px;
    color: var(--om-blue-dark);
    font-size: 21px;
    font-weight: 700;
}

.home3-orosei-forecast-metrics small {
    display: block;
    margin-top: 4px;
    color: var(--om-muted);
    font-size: 13px;
}

.home3-orosei-periods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home3-orosei-period {
    min-width: 0;
    padding: 24px 20px;
}

.home3-orosei-period + .home3-orosei-period {
    border-left: 1px solid var(--om-line);
}

.home3-orosei-period-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home3-orosei-period-name {
    color: var(--om-blue);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-orosei-period-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--om-blue);
}

.home3-orosei-period-temp {
    margin-top: 13px;
    color: var(--om-blue-dark);
    font-size: 27px;
    font-weight: 700;
}

.home3-orosei-period-weather {
    margin-top: 7px;
    color: #4c5e68;
    font-size: 16px;
    font-weight: 600;
}

.home3-orosei-period-text {
    margin: 11px 0 0;
    color: var(--om-muted);
    font-size: 15px;
    line-height: 1.5;
}

.home3-orosei-period-data {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--om-line);
}

.home3-orosei-period-data span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-orosei-period-data b {
    color: #3b4f5a;
}

.home3-orosei-forecast-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .82fr);
    align-items: start;
    gap: 24px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--om-line);
}

.home3-forecast-source {
    order: 2;
    justify-self: end;
    max-width: 360px;
    color: var(--om-muted);
    font-size: 14px;
    line-height: 1.45;
    text-align: right;
}

.home3-orosei-forecast-more {
    order: 1;
    justify-self: start;
    color: var(--om-blue);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

/* Compatibilità con il renderer forecast precedente */
.home3-forecast-day {
    border-top: 1px solid var(--om-line);
    background: #fff;
}

.home3-forecast-day-head {
    padding: 18px 0;
    border-bottom: 1px solid var(--om-line);
}

.home3-forecast-periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home3-forecast-period {
    padding: 18px;
    border-right: 1px solid var(--om-line);
}

.home3-forecast-period:last-child {
    border-right: 0;
}

.home3-forecast-period > span,
.home3-forecast-prob,
.home3-forecast-wind {
    font-size: 14px;
}

.home3-forecast-period strong {
    font-size: 18px;
}

.home3-forecast-icon {
    width: 42px;
    height: 42px;
}

/* ============================================================
   ALLERTA
   ============================================================ */

.home3-alert-strip-v45 {
    padding: 0;
    background: #fff;
}

.home3-alert-shell-v45 {
    --alert-color: #3d9561;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--om-line);
}

.home3-alert-heading-v45 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 215px;
}

.home3-alert-icon-v45 {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--alert-color);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.home3-alert-heading-v45 span {
    display: block;
    color: var(--om-blue-dark);
    font-size: 16px;
    font-weight: 700;
}

.home3-alert-heading-v45 small {
    display: block;
    margin-top: 2px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-alert-content-v45 {
    display: grid;
    gap: 8px;
}

.home3-alert-status-v45 {
    color: #53636b;
    font-size: 16px;
    font-weight: 600;
}

.home3-alert-status-v45.is-ok {
    color: var(--alert-color);
}

.home3-alert-item-v45 {
    --item-alert-color: #c8a52b;
    --item-alert-soft: rgba(200, 165, 43, .10);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--item-alert-soft);
}

.home3-alert-level-v45 {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fff;
    background: var(--item-alert-color);
    font-size: 12px;
    font-weight: 700;
}

.home3-alert-item-v45 strong {
    color: #43545d;
    font-size: 15px;
}

.home3-alert-link-v45 {
    color: var(--om-blue);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

/* ============================================================
   DATI REALTIME · STRUTTURA
   ============================================================ */

.home3-live-title {
    margin-bottom: 24px;
}

.home3-live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--om-muted);
    text-align: right;
}

.home3-live-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #979fa4;
}

.home3-live-status strong {
    display: block;
    font-size: 14px;
    letter-spacing: .04em;
}

.home3-live-status small {
    display: block;
    margin-top: 2px;
    font-size: 14px;
}

.home3-live-status.online .home3-live-dot {
    background: #31ac62;
}

.home3-live-status.online strong {
    color: #2b8650;
}

.home3-live-status.offline .home3-live-dot {
    background: #c94b50;
}

.home3-live-status.offline strong {
    color: #bb4146;
}

.home3-cockpit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.home3-module,
.home3-humdew-panel,
.home3-air-live-panel {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--om-line);
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.home3-module-head,
.home3-air-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.home3-module-head > div:last-child,
.home3-air-head > div:last-child {
    display: flex;
    flex-direction: column;
}

.home3-module-head span,
.home3-air-head span {
    color: var(--om-blue-dark);
    font-size: 22px;
    font-weight: 700;
}

.home3-module-head small,
.home3-air-head small {
    margin-top: 2px;
    color: var(--om-muted);
    font-size: 16px;
    line-height: 1.3;
}
/* ============================================================
   CONDIZIONE METEO · CARD TEMPERATURA
   ============================================================ */

.home3-temp-condition-v50 {
    margin: 18px 0 4px;
    color: var(--om-blue-dark);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.home3-module-icon,
.home3-air-head > .icon,
.home3-air-head > svg {
    width: 34px !important;
    height: 34px !important;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    color: var(--om-blue);
    background: transparent !important;
    border-radius: 0 !important;
}

.home3-module-icon .icon,
.home3-module-icon svg {
    width: 31px !important;
    height: 31px !important;
}

.home3-temp-color,
.home3-wind-color,
.home3-rain-color,
.home3-pressure-color,
.home3-humidity-head-icon-v49 {
    color: var(--om-blue) !important;
    background: transparent !important;
}

.home3-module-temp {
    --live-temp-color: #d48e00;
}

.home3-module-temp .home3-temp-number strong,
.home3-module-temp .home3-temp-number span,
.home3-module-temp .home3-temp-color {
    color: var(--live-temp-color) !important;
}
/* ============================================================
   STATO TERMICO SOTTO LA TEMPERATURA
   ============================================================ */

.home3-temp-primary-v50{
    min-width:0;
    align-self:center;
}

.home3-temp-comfort-primary-v50{
    display:block;
    margin-top:18px;

    color:var(--comfort-color, #36a66b);

    font-size:27px;
    line-height:1.12;
    font-weight:700;
}

.home3-temp-comfort-humidex-only-v50{
    justify-content:flex-start;
}

/* ============================================================
   TEMPERATURA / UMIDITÀ
   ============================================================ */

.home3-instrument-main-v49,
.home3-temp-main,
.home3-humidity-main-v49 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 22px;
    align-items: center;
    min-height: 220px;
    margin: 20px 0 10px;
}

.home3-temp-number {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.home3-temp-number strong,
.home3-humidity-number-v49 strong {
    color: var(--om-blue-dark);
    font-size: clamp(84px, 6.3vw, 110px);
    line-height: .86;
    letter-spacing: -4px;
    font-weight: 600;
    white-space: nowrap;
}

.home3-temp-number span {
    margin-top: 9px;
    font-size: 28px;
    font-weight: 600;
}

.home3-dynamic-thermometer {
    justify-self: end;
    width: 160px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home3-dynamic-thermometer img {
    width: auto;
    height: 220px;
    max-width: 100%;
    object-fit: contain;
}

.home3-secondary-reading-v49 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0 18px;
    color: var(--om-muted);
}

.home3-secondary-reading-v49 span {
    font-size: 16px;
    font-weight: 500;
}

.home3-secondary-reading-v49 strong {
    color: var(--om-blue-dark);
    font-size: 24px;
    font-weight: 700;
}

.home3-extremes-row-v49 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 18px;
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
}

.home3-extremes-row-v49 > span {
    display: grid !important;
    grid-template-columns: 28px auto 1fr !important;
    grid-template-areas:
        "icon label value"
        "icon time time" !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 3px !important;
    min-width: 0;
    padding: 13px 10px;
}

.home3-extremes-row-v49 > span + span {
    border-left: 1px solid var(--om-line);
}

.home3-extremes-row-v49 small {
    grid-area: label !important;
    color: var(--om-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-extremes-row-v49 b {
    grid-area: value !important;
    color: var(--om-blue-dark);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.home3-extreme-icon-v411 {
    grid-area: icon !important;
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
}

.home3-extreme-time-v412 {
    grid-area: time !important;
    color: var(--om-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.2;
}

.home3-temp-comfort,
.home3-thom-panel-v45,
.home3-rain-status-v43,
.home3-beaufort-v414 {
    margin: 15px 0 18px;
    padding: 14px 0;
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.home3-temp-comfort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home3-temp-humidex {
    color: var(--om-muted);
    font-size: 15px;
}

.home3-temp-humidex b {
    color: var(--comfort-color, #c87f23);
    font-size: 18px;
}

.home3-temp-comfort-label {
    color: var(--comfort-color, #c87f23);
    font-size: 17px;
    font-weight: 700;
    text-align: right;
}

.home3-humidity-gauge-v49 {
    justify-self: end;
    width: 170px !important;
    min-height: 220px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home3-humidity-orbit-v411 {
    width: 166px !important;
    height: 166px !important;
    overflow: visible;
}

.home3-humidity-orbit-ring-v411 circle {
    fill: none;
    stroke: #d8dfe2;
    stroke-width: 1.5;
    stroke-dasharray: 3 7;
}

.home3-humidity-drops-v411 g {
    fill: #d8e1e5;
    opacity: .58;
    transform-box: fill-box;
    transform-origin: center;
}

.home3-humidity-drops-v411 g.is-active {
    fill: #229ec1;
    opacity: 1;
}

.home3-humidity-core-v411 {
    stroke: #fff;
    stroke-width: 4;
}

.home3-humidity-core-glass-v411 {
    fill: rgba(255, 255, 255, .13);
}

.home3-humidity-core-value-v411 {
    fill: #fff;
    font-family: inherit;
    font-size: 25px !important;
    font-weight: 700 !important;
}

.home3-humidity-core-label-v411 {
    fill: rgba(255, 255, 255, .82);
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700;
}

.home3-thom-top-v45 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home3-thom-top-v45 > span {
    color: var(--om-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-thom-top-v45 > strong {
    color: var(--thom-color, #2f9b61);
    font-size: 19px;
    font-weight: 700;
}

.home3-thom-status-v45 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
}

.home3-thom-dot-v45 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--thom-color, #2f9b61);
}

.home3-thom-status-v45 b {
    color: #4e5f68;
    font-size: 15px;
}

/* ============================================================
   MINI GRAFICI
   ============================================================ */

.home3-mini-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--om-line);
    color: var(--om-muted);
    font-size: 14px;
    font-weight: 600;
}

.home3-mini-legend {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 10px;
    flex-wrap: wrap;
}

.home3-mini-legend i {
    width: 18px;
    height: 3px;
    display: inline-block;
    border-radius: 999px;
}

.home3-mini-legend i.temp { background: #d58a15; }
.home3-mini-legend i.dew { background: #1d8fb3; }
.home3-mini-legend i.hum { background: #219abd; }
.home3-mini-legend i.deficit { background: #7365ad; }
.home3-mini-legend i.wind { background: #147eaa; }
.home3-mini-legend i.gust { background: #7668d8; }
.home3-mini-legend i.rain { background: #149a90; }
.home3-mini-legend i.rainrate { background: #0c628a; }

.home3-mini-chart,
.home3-mini-chart-wind,
.home3-mini-chart-rain,
.home3-mini-chart-humdew {
    width: calc(100% + 44px);
    max-width: none;
    min-width: 0;
    height: 250px;
    margin-left: -22px;
    margin-right: -22px;
    overflow: visible;
}

.home3-mini-chart .highcharts-container,
.home3-mini-chart-wind .highcharts-container,
.home3-mini-chart-rain .highcharts-container,
.home3-mini-chart-humdew .highcharts-container {
    width: 100% !important;
    height: 100% !important;
}

.home3-mini-chart .highcharts-root,
.home3-mini-chart-wind .highcharts-root,
.home3-mini-chart-rain .highcharts-root,
.home3-mini-chart-humdew .highcharts-root {
    width: 100% !important;
    height: 100% !important;
}

/* Tablet e mobile */
@media (max-width: 800px) {
    .home3-mini-chart,
    .home3-mini-chart-wind,
    .home3-mini-chart-rain,
    .home3-mini-chart-humdew {
        width: calc(100% + 28px);
        height: 230px;
        margin-left: -14px;
        margin-right: -14px;
    }
}
/* ============================================================
   VENTO
   ============================================================ */

.home3-module-wind {
    display: flex;
    flex-direction: column;
}

.home3-wind-compass-v418 {
    --wind-compass-size: 185px;
    --wind-pointer-size: 106px;

    position: relative !important;
    width: var(--wind-compass-size) !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin: 12px auto 18px !important;
    border: 2px solid #d3dadd !important;
    border-radius: 50% !important;
    background: #fafafa !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.home3-wind-cross-v418 {
    position: absolute !important;
    inset: 21% !important;
    background:
        linear-gradient(
            to right,
            transparent calc(50% - 1px),
            #d9dfe2 calc(50% - 1px),
            #d9dfe2 calc(50% + 1px),
            transparent calc(50% + 1px)
        ),
        linear-gradient(
            to bottom,
            transparent calc(50% - 1px),
            #d9dfe2 calc(50% - 1px),
            #d9dfe2 calc(50% + 1px),
            transparent calc(50% + 1px)
        ) !important;
}

.home3-wind-compass-v418 .home3-cardinal {
    position: absolute !important;
    z-index: 8 !important;
    display: block !important;
    color: #71818a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transform: translate(-50%, -50%) !important;
}

.home3-cardinal.n {
    left: 50% !important;
    top: 8% !important;
}

.home3-cardinal.ne {
    left: 79% !important;
    top: 21% !important;
}

.home3-cardinal.e {
    left: 92% !important;
    top: 50% !important;
}

.home3-cardinal.se {
    left: 79% !important;
    top: 79% !important;
}

.home3-cardinal.s {
    left: 50% !important;
    top: 92% !important;
}

.home3-cardinal.sw,
.home3-cardinal.so {
    left: 21% !important;
    top: 79% !important;
}

.home3-cardinal.w,
.home3-cardinal.o {
    left: 8% !important;
    top: 50% !important;
}

.home3-cardinal.nw,
.home3-cardinal.no {
    left: 21% !important;
    top: 21% !important;
}

.home3-wind-needle-v421 {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 0 !important;
    height: 0 !important;
    z-index: 6 !important;
    transform-origin: 0 0 !important;
    pointer-events: none !important;
}

.home3-wind-pointer-v421 {
    position: absolute !important;
    left: calc(var(--wind-pointer-size) / -2) !important;
    top: calc(var(--wind-pointer-size) / -2) !important;
    width: var(--wind-pointer-size) !important;
    height: var(--wind-pointer-size) !important;
    overflow: visible !important;
}

.home3-wind-pointer-v421 path,
.home3-wind-pointer-v421 polygon {
    fill: #245e84 !important;
    stroke: none !important;
}

.home3-wind-values-v418 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 14px;
}

.home3-wind-speed-v418,
.home3-wind-gust-v418 {
    min-width: 0;
    padding: 16px 0;
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
}

.home3-wind-speed-v418 > span,
.home3-wind-gust-v418 > span {
    display: block;
    margin-bottom: 6px;
    color: var(--om-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-wind-speed-v418 > div,
.home3-wind-gust-v418 > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.home3-wind-speed-v418 strong,
.home3-wind-gust-v418 strong {
    color: var(--om-blue-dark);
    font-size: 31px;
    font-weight: 700;
}

.home3-wind-speed-v418 small,
.home3-wind-gust-v418 > small {
    color: var(--om-muted);
    font-size: 15px;
}

.home3-gust-time-v412 {
    font-size: 14px;
    font-style: italic;
}

.home3-wind-direction-v418 {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--om-line);
}

.home3-wind-direction-v418 > span {
    color: var(--om-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-wind-direction-v418 > strong {
    color: var(--om-blue-dark);
    font-size: 23px;
    font-weight: 700;
}

.home3-wind-direction-v418 > b {
    color: #4d606a;
    font-size: 18px;
    font-weight: 600;
}

.home3-beaufort-v414 {
    --beaufort-color: #66abc0;

    display: grid;
    grid-template-columns: 7px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.home3-beaufort-dot-v414 {
    display: block;
    width: 7px;
    height: 42px;
    border-radius: 999px;
    background: var(--beaufort-color);
}

.home3-beaufort-copy-v414 > span {
    display: block;
    color: var(--om-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-beaufort-copy-v414 > strong {
    display: block;
    margin-top: 3px;
    color: var(--beaufort-color);
    font-size: 21px;
    font-weight: 700;
}

.home3-beaufort-copy-v414 > small {
    display: block;
    margin-top: 3px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-beaufort-force-v414 {
    min-width: 58px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--beaufort-color);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

/* Mobile: leggermente più grande del desktop,
   ma comunque più compatta rispetto alla versione precedente */
@media (max-width: 620px) {
    .home3-wind-compass-v418 {
        --wind-compass-size: 205px;
        --wind-pointer-size: 117px;

        width: min(var(--wind-compass-size), 62vw) !important;
        margin-top: 14px !important;
        margin-bottom: 18px !important;
    }

    .home3-wind-compass-v418 .home3-cardinal {
        font-size: 13px !important;
    }
}
/* ============================================================
   PIOGGIA
   ============================================================ */

.home3-rain-gauge {
    --gauge-angle: 0deg;
    --gauge-color: #8fd3e8;

    position: relative;
    width: 162px;
    height: 162px;
    margin: 24px auto 12px;
    border-radius: 50%;

    background:
        conic-gradient(
            from 225deg,
            var(--gauge-color) 0 var(--gauge-angle),
            #e0e7e7 var(--gauge-angle) 270deg,
            transparent 270deg 360deg
        );
}

.home3-rain-gauge::before {
    content: "";
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: #fff;
}

.home3-rain-gauge::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -2px;
    height: 40px;
    background: #fff;
}

.home3-rain-center {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home3-rain-center strong {
    color: var(--om-blue-dark);
    font-size: 38px;
    line-height: 1;
}

.home3-rain-center span {
    margin-top: 4px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-rain-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-rain-meta b {
    color: var(--om-blue-dark);
}

.home3-rain-status-v43 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home3-rain-status-v43 > span {
    color: var(--om-muted);
    font-size: 15px;
    font-weight: 600;
}

.home3-rain-status-v43 > strong {
    color: var(--rain-status-color, #5f8191);
    font-size: 16px;
}

.home3-rain-stats-v412 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-bottom: 18px;
}

.home3-rain-stats-v412 > div {
    padding: 14px 0;
    border-top: 1px solid var(--om-line);
}

.home3-rain-stats-v412 span {
    display: block;
    color: var(--om-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-rain-stats-v412 strong {
    color: var(--om-blue-dark);
    font-size: 20px;
    font-weight: 700;
}

.home3-rain-stats-v412 small {
    margin-left: 4px;
    color: var(--om-muted);
    font-size: 13px;
}

/* ============================================================
   PRESSIONE / ARIA
   ============================================================ */

.home3-pressure-current {
    margin-top: 30px;
}

.home3-pressure-current > span {
    display: block;
    color: var(--om-muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-pressure-value {
    display: block;
    margin-top: 8px;
    color: #4f4aa5;
    font-size: 48px;
    line-height: 1;
}

.home3-pressure-trend {
    display: block;
    margin-top: 8px;
    color: #6e62c6;
    font-size: 17px;
}

.home3-pressure-description {
    margin: 20px 0 0;
    color: var(--om-muted);
    font-size: 16px;
}

.home3-aqi-live {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 11px;
    align-items: end;
    margin-top: 24px;
}

.home3-aqi-live > span {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--om-muted);
    font-size: 14px;
    font-weight: 700;
}

.home3-aqi-live > strong {
    color: var(--aqi-color, #2f7b4d);
    font-size: 52px;
    line-height: .9;
}

.home3-aqi-live > b {
    margin-top: 5px;
    color: var(--aqi-color, #2f7b4d);
    font-size: 16px;
}

.home3-aqi-meter-v43 {
    margin: 24px 0 18px;
    padding: 0;
}

.home3-aqi-meter-track-v43 {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #e1e5e7;
}

.home3-aqi-meter-fill-v43 {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--aqi-pct);
    border-radius: inherit;
    background: var(--aqi-color, #728a98);
}

.home3-aqi-meter-marker-v43 {
    position: absolute;
    left: var(--aqi-pct);
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--aqi-color, #728a98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.home3-aqi-meter-scale-v43 {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--om-muted);
    font-size: 13px;
}

.home3-air-live-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.home3-air-live-values > span {
    padding-top: 12px;
    border-top: 1px solid var(--om-line);
    color: var(--om-muted);
    font-size: 14px;
}

.home3-air-live-values b {
    display: block;
    margin-top: 4px;
    color: var(--om-blue-dark);
    font-size: 17px;
}

/* ============================================================
   METRICHE / INCENDIO
   ============================================================ */

.home3-metric-ribbon {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
}

.home3-ribbon-item {
    min-width: 0;
    min-height: 104px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.home3-ribbon-item + .home3-ribbon-item {
    border-left: 1px solid var(--om-line);
}

.home3-ribbon-item > .icon,
.home3-ribbon-item > svg {
    width: 25px;
    height: 25px;
    color: var(--om-blue);
}

.home3-ribbon-item > span,
.home3-fire-copy-v427 > span {
    color: var(--om-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-ribbon-item > strong,
.home3-fire-copy-v427 > strong {
    display: block;
    margin-top: 4px;
    color: var(--om-blue-dark);
    font-size: 21px;
    font-weight: 700;
}

.home3-ribbon-item.fire-metric {
    --fire-color: var(--fire-accent, #2ecc71);
    --fire-pct: 0%;
    grid-column: 1 / -1 !important;
    min-height: 136px;
    display: block;
    border-top: 1px solid var(--om-line);
    border-left: 0 !important;
}

.home3-fire-main-v427 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home3-fire-main-v427 > .icon,
.home3-fire-main-v427 > svg {
    width: 30px;
    height: 30px;
    color: var(--fire-accent, #2ecc71);
}

.home3-fire-copy-v427 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.home3-fire-copy-v427 > span {
    width: 100%;
}

.home3-fire-copy-v427 > strong {
    color: var(--fire-accent, #2ecc71);
    font-size: 24px;
}

.home3-fire-copy-v427 > small {
    color: var(--om-muted);
    font-size: 14px;
}

.home3-fire-copy-v427 > small b {
    color: var(--om-blue-dark);
}

.home3-fire-meter-v427 {
    width: 100%;
    margin-top: 17px;
}

.home3-fire-meter-track-v427 {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e1e5e7;
}

.home3-fire-meter-track-v427::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--fire-pct);
    border-radius: inherit;
    background: var(--fire-color);
}

.home3-fire-meter-marker-v427 {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--fire-pct);
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--fire-color);
}

.home3-fire-meter-labels-v427 {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: var(--om-muted);
    font-size: 13px;
    font-weight: 600;
}

.home3-fire-meter-labels-v427 > span:nth-child(2),
.home3-fire-meter-labels-v427 > span:nth-child(3) {
    text-align: center;
}

.home3-fire-meter-labels-v427 > span:last-child {
    text-align: right;
}

/* ============================================================
   RECORD
   ============================================================ */

.home3-record-panel-v45 {
    margin-top: 26px;
    padding: 22px 0;
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
    background: #fff;
}

.home3-record-head-v45 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
}

.home3-record-icon-v45 {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--om-line-strong);
    border-radius: 50%;
    color: var(--om-blue-dark);
    background: #fff;
    font-size: 15px;
    font-weight: 700;
}

.home3-record-head-v45 > div:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.home3-record-head-v45 span {
    color: var(--om-blue-dark);
    font-size: 16px;
    font-weight: 700;
}

.home3-record-head-v45 small {
    margin-top: 2px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-record-badge-v45 {
    color: var(--record-color, #728a98) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.home3-record-content-v45 {
    margin-top: 14px;
    color: #4f6069;
    font-size: 15px;
    line-height: 1.5;
}

.home3-record-group-v45 + .home3-record-group-v45 {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--om-line);
}

.home3-record-group-v45 h4 {
    margin: 0 0 7px;
    color: var(--om-blue-dark);
    font-size: 14px;
    text-transform: uppercase;
}

/* ============================================================
   EFFEMERIDI
   ============================================================ */

.home3-ephemeris-strip {
    margin-top: 28px;
    padding: 24px 0;
    display: grid;
    grid-template-columns: minmax(220px, .75fr) 2.4fr;
    gap: 28px;
    align-items: center;
    border-top: 1px solid var(--om-line);
    border-bottom: 1px solid var(--om-line);
    background: #fff;
}

.home3-ephemeris-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home3-ephemeris-title > .icon,
.home3-ephemeris-title > svg {
    width: 32px;
    height: 32px;
    color: var(--om-blue);
}

.home3-ephemeris-title span {
    display: block;
    color: var(--om-blue-dark);
    font-size: 22px;
    font-weight: 700;
}

.home3-ephemeris-title small {
    display: block;
    margin-top: 2px;
    color: var(--om-muted);
    font-size: 14px;
}

.home3-ephemeris-values {
    display: grid;
    grid-template-columns: .75fr .75fr 1.25fr .9fr .9fr .95fr;
    gap: 0;
}

.home3-ephemeris-values > div {
    min-width: 0;
    padding: 4px 15px;
    border-left: 1px solid var(--om-line);
}

.home3-ephemeris-values span {
    display: block;
    color: var(--om-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home3-ephemeris-values strong {
    display: block;
    margin-top: 5px;
    color: var(--om-blue-dark);
    font-size: 19px;
    font-weight: 700;
}

.home3-ephemeris-values small {
    display: block;
    margin-top: 3px;
    color: var(--om-muted);
    font-size: 13px;
}

.home3-ephem-item {
    display: flex !important;
    align-items: center;
    gap: 9px;
}

.home3-ephem-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
}

.home3-ephem-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home3-ephem-icon.sunrise { color: #c99520; }
.home3-ephem-icon.sunset { color: #d36f3c; }
.home3-ephem-icon.moon,
.home3-ephem-icon.moonrise,
.home3-ephem-icon.moonset { color: #6d63c7; }

.home3-daylight-v427 {
    --daylight-pct: 0%;
    grid-column: auto !important;
    width: 100%;
    padding: 0 15px !important;
    border: 0 !important;
    background: #fff !important;
}

.home3-daylight-times-v427 {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
}

.home3-daylight-times-v427 > span:nth-child(2) { text-align: center; }
.home3-daylight-times-v427 > span:last-child { text-align: right; }

.home3-daylight-times-v427 small {
    color: var(--om-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.home3-daylight-times-v427 strong,
.home3-daylight-now-v427 strong {
    color: var(--om-blue-dark) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.home3-daylight-track-v427 {
    position: relative;
    width: 100%;
    height: 7px;
    margin-top: 12px;
    border-radius: 999px;
    background: #dedede;
}

.home3-daylight-track-v427::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--daylight-pct);
    border-radius: inherit;
    background: linear-gradient(90deg, #d8a541, #e6c64d, #e29449);
}

.home3-daylight-start-v427,
.home3-daylight-end-v427,
.home3-daylight-cursor-v427 {
    position: absolute;
    z-index: 2;
    top: 50%;
    border-radius: 50%;
}

.home3-daylight-start-v427 {
    left: 0;
    width: 11px;
    height: 11px;
    background: #d8a541;
    transform: translateY(-50%);
}

.home3-daylight-end-v427 {
    left: 100%;
    width: 11px;
    height: 11px;
    background: #d97743;
    transform: translate(-100%, -50%);
}

.home3-daylight-cursor-v427 {
    left: var(--daylight-pct);
    width: 17px;
    height: 17px;
    background: #e5ad35;
    transform: translate(-50%, -50%);
}

.home3-daylight-v427.is-before-sunrise .home3-daylight-track-v427::before { width: 0; }
.home3-daylight-v427.is-after-sunset .home3-daylight-track-v427::before { width: 100%; }
.home3-daylight-v427.is-before-sunrise .home3-daylight-cursor-v427,
.home3-daylight-v427.is-after-sunset .home3-daylight-cursor-v427 { display: none; }

/* ============================================================
   RETE STAZIONI
   ============================================================ */

.home3-station-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--om-line-strong);
    border-bottom: 1px solid var(--om-line-strong);
    background: #fff;
}

.home3-station-item {
    min-width: 0;
    padding: 26px 28px;
    background: #fff;
}

.home3-station-item + .home3-station-item {
    border-left: 1px solid var(--om-line);
}

.home3-station-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.home3-station-label {
    display: block;
    color: var(--om-blue-dark);
    font-size: 23px;
    font-weight: 700;
}

.home3-station-top small {
    display: block;
    margin-top: 3px;
    color: var(--om-muted);
    font-size: 15px;
}

.home3-station-condition {
    margin-top: 17px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--om-muted);
}

.home3-station-condition span {
    color: #425661;
    font-size: 16px;
    font-weight: 600;
}

.home3-station-condition small {
    color: var(--om-muted);
    font-size: 14px;
}

.home3-station-temp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
}

.home3-station-temp-icon {
    width: 28px;
    height: 36px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    color: var(--station-temp-color, #d89113);
}

.home3-station-temp-icon .icon,
.home3-station-temp-icon svg {
    width: 24px;
    height: 24px;
}

.home3-station-main {
    display: flex;
    align-items: flex-start;
}

.home3-station-main strong {
    color: var(--station-temp-color, #d89113) !important;
    font-size: 57px;
    line-height: .92;
    letter-spacing: -2px;
    font-weight: 600;
}

.home3-station-main span {
    margin-top: 7px;
    color: #5c6d76;
    font-size: 20px;
    font-weight: 600;
}

.home3-station-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid var(--om-line);
    color: var(--om-muted);
    font-size: 14px;
}

.home3-station-facts b {
    color: #405660;
}

/* ============================================================
   IL PROGETTO
   ============================================================ */

.home3-about-card {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    border-top: 1px solid var(--om-line-strong);
    border-bottom: 1px solid var(--om-line-strong);
    background: #fff;
}

.home3-about-media {
    min-height: 360px;
    overflow: hidden;
}

.home3-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home3-about-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 46px;
}

.home3-about-copy h2 {
    margin: 6px 0 17px;
    color: var(--om-blue-dark);
    font-size: 38px;
    line-height: 1.08;
    font-weight: 700;
}

.home3-about-copy p {
    max-width: 820px;
    margin: 0 0 14px;
    color: #53626a;
    font-size: 17px;
    line-height: 1.62;
}

.home3-about-copy p strong {
    color: #344a55;
}

.home3-about-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--om-blue);
    color: var(--om-blue);
    font-size: 16px;
    font-weight: 700;
}

/* ============================================================
   WEBCAM
   ============================================================ */

.home3-webcam-grid-v415 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home3-webcam-card-v415 {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--om-line);
    border-radius: 4px;
    background: #fff;
}

.home3-webcam-card-head-v415 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--om-line);
}

.home3-webcam-card-head-v415 > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.home3-webcam-card-head-v415 strong {
    color: var(--om-blue-dark);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.home3-webcam-card-head-v415 small {
    display: block;
    margin-top: 3px;
    color: var(--om-muted);
    font-size: 16px;
    line-height: 1.35;
}

.home3-webcam-live-dot-v415,
.home3-webcam-maint-dot-v415 {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.home3-webcam-live-dot-v415 { background: #36a968; }
.home3-webcam-maint-dot-v415 { background: #d29a38; }

.home3-webcam-status-v415 {
    color: #66747b;
    font-size: 14px;
    font-weight: 700;
}

.home3-webcam-status-v415.is-live { color: #2b8650; }
.home3-webcam-status-v415.is-maintenance { color: #936922; }

.home3-webcam-media-v415 {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1115;
}

.home3-webcam-media-v415 > img,
.home3-webcam-media-v415 > iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    object-fit: contain !important;
    background: #0a1115;
}

.home3-webcam-open-v415 {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.home3-webcam-open-v415 > span {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(10, 25, 32, .62);
    color: #fff;
    font-size: 18px;
}

.home3-webcam-maintenance-overlay-v415 {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    max-width: calc(100% - 36px);
    padding: 11px 13px;
    background: rgba(25, 31, 34, .80);
    color: #fff;
}

.home3-webcam-maintenance-overlay-v415 strong,
.home3-webcam-maintenance-overlay-v415 span {
    display: block;
}

.home3-webcam-maintenance-overlay-v415 strong {
    font-size: 15px;
}

.home3-webcam-maintenance-overlay-v415 span {
    margin-top: 3px;
    font-size: 13px;
    opacity: .88;
}

.home3-webcam-actions-v415 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--om-line);
}

.home3-webcam-actions-v415 > a {
    padding: 16px 17px;
}

.home3-webcam-actions-v415 > a + a {
    border-left: 1px solid var(--om-line);
}

.home3-webcam-actions-v415 span {
    display: block;
    color: var(--om-blue);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}

.home3-webcam-actions-v415 small {
    display: block;
    margin-top: 4px;
    color: var(--om-muted);
    font-size: 15px;
    line-height: 1.35;
}

.home3-webcam-lightbox-v415 {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.home3-webcam-lightbox-v415.is-open {
    display: flex;
}

.home3-webcam-lightbox-backdrop-v415 {
    position: absolute;
    inset: 0;
    background: rgba(5, 16, 22, .88);
}

.home3-webcam-lightbox-dialog-v415 {
    position: relative;
    z-index: 2;
    width: min(1180px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    background: #071016;
}

.home3-webcam-lightbox-dialog-v415 > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #102631;
    color: #fff;
}

.home3-webcam-lightbox-dialog-v415 > header strong {
    font-size: 16px;
}

.home3-webcam-lightbox-dialog-v415 > header button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.home3-webcam-lightbox-media-v415 {
    display: grid;
    place-items: center;
    min-height: 300px;
    max-height: calc(92vh - 60px);
    background: #000;
}

.home3-webcam-lightbox-media-v415 img,
.home3-webcam-lightbox-media-v415 iframe {
    width: 100%;
    max-height: calc(92vh - 60px);
    border: 0;
    object-fit: contain;
}

.home3-webcam-lightbox-media-v415 iframe {
    aspect-ratio: 16 / 9;
    height: min(74vh, 665px);
}

body.home3-webcam-lightbox-lock-v415 {
    overflow: hidden !important;
}

/* ============================================================
   RADAR / CURIOSITÀ
   ============================================================ */

.home3-home-radar {
    min-width: 0;
    overflow: hidden;
    border-top: 1px solid var(--om-line-strong);
    border-bottom: 1px solid var(--om-line-strong);
}

.home3-home-radar iframe {
    display: block;
    width: 100% !important;
    min-height: 700px;
    border: 0;
}

.home3-monitor-label {
    display: none;
}

.home3-monitor-link {
    margin-top: 18px;
    text-align: right;
}

.home3-monitor-link a {
    color: var(--om-blue);
    font-size: 16px;
    font-weight: 700;
}

.home3-fact-section {
    padding: 34px 0;
    background: #f3f3f3;
    border-bottom: 1px solid var(--om-line);
}

.home3-fact-line {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.home3-fact-heading strong {
    display: block;
    margin-top: 4px;
    color: var(--om-blue-dark);
    font-size: 27px;
    font-weight: 700;
}

.home3-fact-line p {
    margin: 0;
    color: #4f5d65;
    font-size: 17px;
    line-height: 1.55;
}

.home3-fact-line button {
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--om-line-strong);
    border-radius: 4px;
    background: #fff;
    color: var(--om-blue);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
    .home3-hero-copy {
        width: 76%;
    }

    .home3-orosei-forecast-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home3-orosei-forecast-metrics > div + div {
        border-left: 0;
    }

    .home3-orosei-forecast-metrics > div:nth-child(even) {
        border-left: 1px solid var(--om-line);
    }

    .home3-orosei-forecast-metrics > div:nth-child(n + 3) {
        border-top: 1px solid var(--om-line);
    }

    .home3-orosei-forecast-metrics > div:last-child {
        grid-column: 1 / -1;
    }

    .home3-ephemeris-strip {
        grid-template-columns: 1fr;
    }

    .home3-ephemeris-values {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 18px;
    }

    .home3-ephemeris-values > div:nth-child(1),
    .home3-ephemeris-values > div:nth-child(4) {
        border-left: 0;
    }
}

@media (max-width: 800px) {
    .home3-section {
        padding: 46px 0;
    }

    .home3-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-bottom: 24px;
    }

    .home3-section-title > p {
        max-width: none;
        text-align: left;
        font-size: 17px;
    }

    .home3-hero,
    .home3-hero-inner {
        min-height: 530px;
    }

    .home3-hero-overlay {
        background:
            linear-gradient(90deg, rgba(17, 31, 39, .76), rgba(17, 31, 39, .54)),
            linear-gradient(180deg, rgba(10, 20, 26, .08), rgba(10, 20, 26, .28));
    }

    .home3-hero-copy {
        width: 100%;
        padding: 42px 0;
    }

    .home3-hero-brand {
        margin-bottom: 20px;
    }

    .home3-hero-brand img {
        width: 48px;
        height: 59px;
    }

    .home3-hero-brand strong {
        font-size: 30px;
    }

    .home3-hero-copy h1 {
        max-width: 620px;
        font-size: 40px;
        line-height: 1.03;
    }

    .home3-hero-meta {
        font-size: 17px;
    }

    .home3-lead {
        font-size: 18px;
    }

    .home3-ticker-track > span {
        font-size: 16px;
    }

    .home3-daily-forecast-titlebar {
        align-items: flex-start;
    }

    .home3-daily-forecast-lead {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
    }

    .home3-daily-forecast-lead p {
        font-size: 18px;
    }

    .home3-daily-forecast-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .home3-orosei-day-tab {
        padding: 15px 12px;
    }

    .home3-orosei-periods,
    .home3-forecast-periods {
        grid-template-columns: 1fr;
    }

    .home3-orosei-period + .home3-orosei-period,
    .home3-forecast-period + .home3-forecast-period {
        border-left: 0;
        border-top: 1px solid var(--om-line);
    }

    .home3-alert-shell-v45 {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .home3-alert-heading-v45 {
        min-width: 0;
    }

    .home3-live-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .home3-live-status {
        text-align: left;
    }

    .home3-cockpit {
        grid-template-columns: 1fr;
    }

    .home3-module,
    .home3-humdew-panel,
    .home3-air-live-panel {
        padding: 24px;
    }

    .home3-instrument-main-v49,
    .home3-temp-main,
    .home3-humidity-main-v49 {
        grid-template-columns: minmax(0, 1fr) 132px;
        min-height: 190px;
    }

    .home3-dynamic-thermometer {
        width: 124px;
        min-height: 190px;
    }

    .home3-dynamic-thermometer img {
        height: 190px;
    }

    .home3-humidity-gauge-v49 {
        width: 132px !important;
        min-height: 190px !important;
    }

    .home3-humidity-orbit-v411 {
        width: 128px !important;
        height: 128px !important;
    }

    .home3-metric-ribbon {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home3-ribbon-item:nth-child(3) {
        border-left: 1px solid var(--om-line);
        border-top: 0;
    }

    .home3-ribbon-item.fire-metric {
        grid-column: 1 / -1 !important;
    }

    .home3-record-head-v45 {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .home3-record-badge-v45 {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 51px;
    }

    .home3-ephemeris-values {
        grid-template-columns: 1fr 1fr;
    }

    .home3-ephemeris-values > div {
        padding: 13px 10px;
        border-left: 0;
        border-top: 1px solid var(--om-line);
    }

    .home3-ephemeris-values > div:nth-child(even) {
        border-left: 1px solid var(--om-line);
    }

    .home3-daylight-v427 {
        grid-column: 1 / -1 !important;
        padding: 14px 0 !important;
    }

    .home3-station-band {
        grid-template-columns: 1fr;
    }

    .home3-station-item + .home3-station-item {
        border-left: 0;
        border-top: 1px solid var(--om-line);
    }

    .home3-about-card {
        grid-template-columns: 1fr;
    }

    .home3-about-media {
        min-height: 0;
        height: 300px;
    }

    .home3-about-copy {
        padding: 30px 0 0;
    }

    .home3-webcam-grid-v415 {
        grid-template-columns: 1fr;
    }

    .home3-home-radar iframe {
        min-height: 660px;
    }

    .home3-fact-line {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .home3-fact-line button {
        justify-self: start;
    }

    .home3-webcam-lightbox-v415 {
        padding: 0;
        align-items: stretch;
    }

    .home3-webcam-lightbox-dialog-v415 {
        width: 100vw;
        max-height: 100dvh;
    }

    .home3-webcam-lightbox-media-v415 {
        min-height: 0;
        max-height: none;
    }

    .home3-webcam-lightbox-media-v415 img,
    .home3-webcam-lightbox-media-v415 iframe {
        max-height: calc(100dvh - 60px);
    }

    .home3-webcam-lightbox-media-v415 iframe {
        width: 100vw;
        height: calc(100dvh - 60px);
        aspect-ratio: auto;
    }
}

@media (max-width: 480px) {
    .home3-section {
        padding: 42px 0;
    }

    .home3-kicker {
        font-size: 14px;
    }

    .home3-section-title h2 {
        font-size: 34px;
    }

    .home3-hero,
    .home3-hero-inner {
        min-height: 520px;
    }

    .home3-hero-copy {
        padding: 38px 0;
    }

    .home3-hero-brand img {
        width: 44px;
        height: 54px;
    }

    .home3-hero-brand strong {
        font-size: 28px;
    }

    .home3-hero-copy h1 {
        font-size: 36px;
        letter-spacing: -.4px;
    }

    .home3-hero-meta {
        font-size: 16px;
    }

    .home3-lead {
        font-size: 17px;
        line-height: 1.5;
    }

    .home3-live-snapshot {
        margin-top: 22px;
    }

    .home3-daily-forecast-lead {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .home3-daily-forecast-lead-icon {
        width: 38px;
        height: 38px;
    }

    .home3-daily-forecast-lead p {
        font-size: 17px;
    }

    .home3-orosei-day-label,
    .home3-orosei-day-date,
    .home3-orosei-day-temp {
        font-size: 13px;
    }

    .home3-orosei-day-weather {
        font-size: 14px;
    }

    .home3-orosei-forecast-summary {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .home3-orosei-summary-icon {
        width: 44px;
        height: 44px;
    }

    .home3-orosei-forecast-summary h3 {
        font-size: 25px;
    }

    .home3-orosei-forecast-metrics strong {
        font-size: 19px;
    }

    .home3-module,
    .home3-humdew-panel,
    .home3-air-live-panel {
        padding: 20px;
    }

    .home3-module-head span,
    .home3-air-head span {
        font-size: 20px;
    }

    .home3-module-head small,
    .home3-air-head small {
        font-size: 15px;
    }

    .home3-instrument-main-v49,
    .home3-temp-main,
    .home3-humidity-main-v49 {
        grid-template-columns: minmax(0, 1fr) 108px;
        min-height: 168px;
    }

    .home3-dynamic-thermometer {
        width: 103px;
        min-height: 168px;
    }

    .home3-dynamic-thermometer img {
        height: 168px;
    }

    .home3-temp-number strong,
    .home3-humidity-number-v49 strong {
        font-size: 64px;
        letter-spacing: -3px;
    }

    .home3-humidity-gauge-v49 {
        width: 108px !important;
        min-height: 168px !important;
    }

    .home3-humidity-orbit-v411 {
        width: 104px !important;
        height: 104px !important;
    }

    .home3-extremes-row-v49 > span {
        grid-template-columns: 22px minmax(0, 1fr) !important;
        grid-template-areas:
            "icon label"
            "icon value"
            "icon time" !important;
    }

    .home3-extremes-row-v49 > span + span {
        border-left: 1px solid var(--om-line);
    }

    .home3-mini-caption {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
        font-size: 14px;
    }

    .home3-mini-legend {
        justify-content: flex-start;
    }

    .home3-mini-chart,
    .home3-mini-chart-wind,
    .home3-mini-chart-rain,
    .home3-mini-chart-humdew {
        width: calc(100% + 24px);
        height: 194px;
        margin-left: -12px;
        margin-right: -12px;
    }

    .home3-wind-compass-v418 {
        width: min(250px, 76vw) !important;
    }

    .home3-wind-pointer-v421 {
        left: -70px !important;
        top: -70px !important;
        width: 140px !important;
        height: 140px !important;
    }

    .home3-wind-speed-v418 strong,
    .home3-wind-gust-v418 strong {
        font-size: 27px;
    }

    .home3-wind-direction-v418 {
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: baseline;
        column-gap: 10px;
        row-gap: 4px;
    }

    .home3-wind-direction-v418 > b {
        grid-column: auto;
        min-width: 0;
        white-space: nowrap;
        text-align: left;
    }

    .home3-rain-stats-v412 {
        grid-template-columns: 1fr;
    }

    .home3-air-live-values {
        grid-template-columns: 1fr 1fr;
    }

    .home3-air-live-values > span:last-child {
        grid-column: 1 / -1;
    }

    .home3-metric-ribbon {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home3-ribbon-item {
        min-height: 122px;
        padding: 15px 9px;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 8px;
    }

    .home3-ribbon-item + .home3-ribbon-item,
    .home3-ribbon-item:nth-child(3) {
        border-left: 1px solid var(--om-line);
        border-top: 0;
    }

    .home3-ribbon-item > .icon,
    .home3-ribbon-item > svg {
        justify-self: start;
        width: 24px;
        height: 24px;
    }

    .home3-ribbon-item > span {
        font-size: 12px;
        line-height: 1.25;
    }

    .home3-ribbon-item > strong {
        margin-top: 0;
        font-size: 20px;
        line-height: 1.2;
    }

    .home3-ribbon-item.fire-metric {
        grid-column: 1 / -1 !important;
        min-height: 136px;
        padding: 18px 0;
        border-left: 0 !important;
        border-top: 1px solid var(--om-line);
    }

    .home3-station-item {
        padding: 24px 0;
    }

    .home3-station-label {
        font-size: 21px;
    }

    .home3-station-main strong {
        font-size: 52px;
    }

    .home3-about-media {
        height: 240px;
    }

    .home3-about-copy h2 {
        font-size: 33px;
    }

    .home3-about-copy p {
        font-size: 16px;
    }

    .home3-webcam-card-head-v415 {
        align-items: flex-start;
        padding: 17px 16px;
    }

    .home3-webcam-card-head-v415 strong {
        font-size: 20px;
    }

    .home3-webcam-card-head-v415 small {
        font-size: 16px;
    }

    .home3-webcam-status-v415 {
        font-size: 14px;
    }

    .home3-webcam-actions-v415 {
        grid-template-columns: 1fr;
    }

    .home3-webcam-actions-v415 > a + a {
        border-left: 0;
        border-top: 1px solid var(--om-line);
    }

    .home3-home-radar iframe {
        min-height: 620px;
    }

    .home3-orosei-forecast-footer {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
        gap: 16px;
    }

    .home3-orosei-forecast-more {
        font-size: 15px;
    }

    .home3-forecast-source {
        max-width: none;
        font-size: 13px;
    }
}
/* ============================================================
   MOBILE · MINI GRAFICI RICHIUDIBILI
   Desktop invariato
   ============================================================ */

.home3-mobile-chart-toggle {
    display: none;
}


/* ============================================================
   MOBILE / TABLET VERTICALE
   ============================================================ */

@media (max-width: 800px) {

    .home3-mobile-chart-panel {
        width: 100%;
        margin-top: 18px;
        border-top: 1px solid var(--om-line);
    }

    .home3-mobile-chart-toggle {
        width: 100%;
        min-height: 58px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;

        padding: 14px 0;

        border: 0;

        background: #fff;

        color: var(--om-blue-dark);

        font-family: inherit;

        text-align: left;

        cursor: pointer;
    }

    .home3-mobile-chart-toggle-main {
        min-width: 0;

        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .home3-mobile-chart-toggle-title {
        color: var(--om-blue-dark);

        font-size: 16px;
        line-height: 1.3;

        font-weight: 700;
    }

    .home3-mobile-chart-toggle-subtitle {
        color: var(--om-muted);

        font-size: 13px;
        line-height: 1.35;

        font-weight: 500;
    }

    .home3-mobile-chart-toggle-action {
        flex: 0 0 auto;

        display: inline-flex;
        align-items: center;
        gap: 8px;

        color: var(--om-blue);

        font-size: 14px;
        line-height: 1.2;

        font-weight: 700;

        white-space: nowrap;
    }

    .home3-mobile-chart-chevron {
        position: relative;

        width: 10px;
        height: 10px;

        flex: 0 0 10px;

        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;

        transform:
            translateY(-2px)
            rotate(45deg);

        transition:
            transform .25s ease;
    }

    .home3-mobile-chart-panel.is-open
    .home3-mobile-chart-chevron {
        transform:
            translateY(2px)
            rotate(225deg);
    }


    /* --------------------------------------------------------
       CONTENUTO COLLASSABILE

       Non usiamo display:none:
       Highcharts continua ad avere la larghezza corretta
       anche mentre il pannello è chiuso.
       -------------------------------------------------------- */

    .home3-mobile-chart-content {
        width: 100%;

        max-height: 0;

        overflow: hidden;

        opacity: 0;

        pointer-events: none;

        transition:
            max-height .35s ease,
            opacity .22s ease;
    }

    .home3-mobile-chart-panel.is-open
    .home3-mobile-chart-content {
        max-height: 430px;

        opacity: 1;

        pointer-events: auto;
    }


    /* --------------------------------------------------------
       Dentro al pannello mobile non ripetiamo
       "Andamento di oggi", perché è già nel pulsante.
       Rimane visibile soltanto la legenda.
       -------------------------------------------------------- */

    .home3-mobile-chart-content
    .home3-mini-caption {
        margin-top: 0;

        padding-top: 8px;

        border-top: 0;
    }

    .home3-mobile-chart-content
    .home3-mini-caption
    > span:first-child {
        display: none;
    }

    .home3-mobile-chart-content
    .home3-mini-legend {
        width: 100%;

        justify-content: flex-start;
    }
}


/* ============================================================
   TELEFONI
   ============================================================ */

@media (max-width: 480px) {

    .home3-mobile-chart-panel {
        margin-top: 15px;
    }

    .home3-mobile-chart-toggle {
        min-height: 56px;

        padding: 13px 0;
    }

    .home3-mobile-chart-toggle-title {
        font-size: 16px;
    }

    .home3-mobile-chart-toggle-subtitle {
        font-size: 13px;
    }

    .home3-mobile-chart-toggle-action {
        font-size: 13px;
    }

    .home3-mobile-chart-panel.is-open
    .home3-mobile-chart-content {
        max-height: 340px;
    }
}

/* ============================================================
   HOME · COMPATTAZIONE SOLO MOBILE
   Pioggia 2x2 + Qualità aria su una riga
   ============================================================ */

@media (max-width: 480px) {

    /* --------------------------------------------------------
       PIOGGIA
       Giorni senza pioggia | Pioggia di ieri
       Totale mensile       | Totale annuale
       -------------------------------------------------------- */

    .home3-rain-stats-v412 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }

    .home3-rain-stats-v412 > div {
        min-width: 0;
        padding: 14px 12px;
        border-top: 1px solid var(--om-line);
    }

    .home3-rain-stats-v412 > div:nth-child(odd) {
        padding-left: 0;
    }

    .home3-rain-stats-v412 > div:nth-child(even) {
        padding-right: 0;
        border-left: 1px solid var(--om-line);
    }

    .home3-rain-stats-v412 span {
        font-size: 12px;
        line-height: 1.3;
    }

    .home3-rain-stats-v412 strong {
        font-size: 20px;
    }

    .home3-rain-stats-v412 small {
        font-size: 13px;
    }


    /* --------------------------------------------------------
       QUALITÀ DELL'ARIA
       PM2.5 | PM10 | CO₂
       -------------------------------------------------------- */

    .home3-air-live-values {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }

    .home3-air-live-values > span {
        min-width: 0;
        padding: 13px 9px 0;
        border-top: 1px solid var(--om-line);
    }

    .home3-air-live-values > span:first-child {
        padding-left: 0;
    }

    .home3-air-live-values > span + span {
        border-left: 1px solid var(--om-line);
    }

    .home3-air-live-values > span:last-child {
        grid-column: auto;
        padding-right: 0;
    }

    .home3-air-live-values b {
        font-size: 16px;
        white-space: nowrap;
    }
}