/* ============================================================
   OROSEIMETEO · RADAR
   Stile coerente con Home, Stazioni, Previsioni e Webcam.
   ============================================================ */

.radar-page-head {
    background: #fff;
    border-bottom: 1px solid var(--om-line-strong, #d9e0e4);
}

.radar-page-head-inner {
    min-height: 250px;
    display: flex;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 54px;
}

.radar-page-head-copy {
    max-width: 880px;
}

.radar-kicker {
    display: block;
    color: var(--om-blue, #147fa8);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.radar-page-head h1 {
    margin: 8px 0 0;
    color: var(--om-blue-dark, #163f58);
    font-size: clamp(44px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.8px;
    font-weight: 700;
}

.radar-page-head p {
    max-width: 780px;
    margin: 15px 0 0;
    color: var(--om-muted, #6e7f88);
    font-size: 19px;
    line-height: 1.55;
}

.radar-page {
    padding: 34px 0 64px;
    background: #fff;
}

.radar-page .container {
    width: min(1280px, calc(100% - 40px));
}

.radar-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--om-line, #e1e5e8);
}

.radar-toolbar > div {
    min-width: 0;
}

.radar-toolbar-label {
    display: block;
    color: var(--om-muted-2, #87949b);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.radar-toolbar strong {
    display: block;
    margin-top: 5px;
    color: var(--om-blue-dark, #163f58);
    font-size: 21px;
    line-height: 1.2;
    font-weight: 700;
}

.radar-tabs {
    flex: 0 1 720px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.radar-tab {
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--om-line-strong, #d9e0e4);
    border-radius: 4px;
    background: #fff;
    color: #4b606b;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.radar-tab:hover {
    border-color: #9fb5c0;
    background: #f7f7f7;
}

.radar-tab.is-active {
    border-color: var(--om-blue, #147fa8);
    background: var(--om-blue, #147fa8);
    color: #fff;
}

.radar-view {
    overflow: hidden;
    border: 1px solid var(--om-line, #e1e5e8);
    border-radius: 4px;
    background: #fff;
}

.radar-map-shell {
    padding: 18px;
}

.radar-map-top {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 2px 16px;
}

.radar-map-top > div {
    min-width: 0;
}

.radar-map-label {
    display: block;
    margin-bottom: 4px;
    color: var(--om-muted-2, #87949b);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.radar-map-top strong {
    display: block;
    color: var(--om-blue-dark, #163f58);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.radar-map-top small {
    display: block;
    margin-top: 4px;
    color: var(--om-muted, #6e7f88);
    font-size: 14px;
    line-height: 1.35;
}

.radar-open {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--om-line-strong, #d9e0e4);
    border-radius: 4px;
    background: #fff;
    color: var(--om-blue, #147fa8);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.radar-open:hover {
    border-color: #9fb5c0;
    background: #f7f7f7;
}

.radar-frame-wrap {
    position: relative;
    height: min(78vh, 860px);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid var(--om-line-strong, #d9e0e4);
    background: #eaf0f3;
}

.radar-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #eaf0f3;
}

.radar-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    background: #f2f5f6;
    color: var(--om-muted, #6e7f88);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
}

.radar-loading.is-hidden {
    display: none;
}

.radar-description {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding: 26px 22px 28px;
    border-top: 1px solid var(--om-line, #e1e5e8);
    background: #fff;
}

.radar-description-main {
    min-width: 0;
}

.radar-description h2 {
    margin: 7px 0 9px;
    color: var(--om-blue-dark, #163f58);
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
}

.radar-description p {
    max-width: 850px;
    margin: 0;
    color: var(--om-muted, #6e7f88);
    font-size: 16px;
    line-height: 1.6;
}

.radar-description > small {
    flex: 0 0 260px;
    color: var(--om-muted-2, #87949b);
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}

.radar-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--om-line-strong, #d9e0e4);
    color: var(--om-muted, #6e7f88);
    font-size: 14px;
    line-height: 1.55;
}

.radar-note strong {
    color: var(--om-blue-dark, #163f58);
}

@media (max-width: 1000px) {
    .radar-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .radar-tabs {
        width: 100%;
        flex-basis: auto;
    }

    .radar-description {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .radar-description > small {
        flex-basis: auto;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .radar-page-head-inner {
        min-height: 0;
        padding-top: 40px;
        padding-bottom: 34px;
    }

    .radar-page-head h1 {
        font-size: 38px;
        letter-spacing: -.4px;
    }

    .radar-page-head p {
        font-size: 17px;
        line-height: 1.5;
    }

    .radar-page {
        padding: 28px 0 52px;
    }

    .radar-page .container {
        width: min(100% - 24px, 1280px);
    }

    .radar-toolbar strong {
        font-size: 19px;
    }

    .radar-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .radar-tab {
        min-height: 46px;
        padding: 0 9px;
        font-size: 13px;
    }

    .radar-map-shell {
        padding: 10px;
    }

    .radar-map-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 5px 4px 14px;
    }

    .radar-map-top strong {
        font-size: 18px;
    }

    .radar-map-top small {
        font-size: 13px;
    }

    .radar-open {
        min-height: 40px;
        font-size: 13px;
    }

    .radar-frame-wrap {
        height: 73dvh;
        min-height: 540px;
    }

    .radar-description {
        padding: 22px 18px 24px;
    }

    .radar-description h2 {
        font-size: 25px;
    }

    .radar-description p {
        font-size: 15px;
    }

    .radar-note {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .radar-page .container {
        width: min(100% - 20px, 1280px);
    }

    .radar-tabs {
        gap: 6px;
    }

    .radar-tab {
        min-height: 44px;
        padding: 0 7px;
        font-size: 12px;
    }

    .radar-frame-wrap {
        height: 70dvh;
        min-height: 500px;
    }
}
