/* ============================================================
   OROSEIMETEO · HOME FEATURED ALERT V1
   Banner automatico da api/app/ultimi_avvisi.json
   ============================================================ */

.home3-featured-alert-section {
    padding: 0 0 10px;
    background: #fff;
    border-top: 1px solid var(--om-line);
}

.home3-featured-alert-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid var(--om-line-strong);
    border-radius: 4px;
    background: #fff;
}

.home3-featured-alert-card.has-image {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
}

.home3-featured-alert-media {
    min-height: 250px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eef4f7;
    border-right: 1px solid var(--om-line);
}

.home3-featured-alert-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #eef4f7;
}

.home3-featured-alert-body {
    min-width: 0;
    padding: 30px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home3-featured-alert-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 13px;
}

.home3-featured-alert-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf5fa;
    color: var(--om-blue);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.home3-featured-alert-expiry {
    color: var(--om-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}

.home3-featured-alert-body h2 {
    margin: 0;
    color: var(--om-blue-dark);
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.08;
    letter-spacing: -.45px;
    font-weight: 700;
}

.home3-featured-alert-body p {
    margin: 16px 0 0;
    color: #4f6069;
    font-size: 17px;
    line-height: 1.62;
}

.home3-featured-alert-actions {
    margin-top: 20px;
}

.home3-featured-alert-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid var(--om-blue);
    border-radius: 4px;
    background: #fff;
    color: var(--om-blue);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.home3-featured-alert-button:hover {
    background: var(--om-blue);
    color: #fff;
}

.home3-featured-alert-button span {
    transition: transform .18s ease;
}

.home3-featured-alert-button:hover span {
    transform: translateX(2px);
}

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

    .home3-featured-alert-card.has-image {
        grid-template-columns: 1fr;
    }

    .home3-featured-alert-media {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--om-line);
    }

    .home3-featured-alert-media img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .home3-featured-alert-body {
        padding: 24px;
    }

    .home3-featured-alert-body p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .home3-featured-alert-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .home3-featured-alert-body {
        padding: 22px 0 24px;
    }

    .home3-featured-alert-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .home3-featured-alert-body h2 {
        font-size: 29px;
    }

    .home3-featured-alert-body p {
        margin-top: 13px;
        font-size: 16px;
        line-height: 1.58;
    }

    .home3-featured-alert-actions {
        margin-top: 18px;
    }

    .home3-featured-alert-button {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
}
