/**
 * home-public-cfg10.css — Stile pubblico per Configurazione 10: Flash + Editoriale
 *
 * CARICATO DOPO home-public.css — aggiunge solo classi nuove .cfg10-*.
 * Zero override su classi cfg9/spot-card esistenti.
 *
 * Layout:
 *   Desktop (> 900px): griglia 38% flash / 62% editoriale
 *   Tablet  (≤ 900px): colonne impilate, flash prima
 *   Mobile  (≤ 540px): font e padding ridotti
 */

/* ── Wrapper principale ───────────────────────────────────────────────────── */
.cfg10-outer {
    display: grid;
    grid-template-columns: minmax(280px, .52fr) minmax(0, 1.22fr);
    gap: 22px;
    background: var(--block-bg, #fff);
    border-radius: 0;
    overflow: visible;
    padding: 12px;
}

/* ── Colonna Flash (sinistra) ─────────────────────────────────────────────── */
.cfg10-flash-col {
    border: 1px solid #f0c8ba;
    background: #fff7f3;
    box-shadow: 0 10px 24px rgba(39, 34, 27, .08);
    overflow: hidden;
    border-radius: 8px;
}

.cfg10-flash-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 11px;
    background-color: #D62629;
    background-image: none;
    color: #fff;
}

.cfg10-flash-label {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cfg10-flash-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .8);
    flex-shrink: 0;
    animation: cfg10-live-pulse 1.1s infinite;
}

@keyframes cfg10-live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); }
    50% { opacity: .35; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

/* Lista degli item flash */
.cfg10-flash-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    background: #FDE9E0;
}

/* Singolo item flash */
.cfg10-flash-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 52px;
    padding: 11px 14px;
    border-bottom: 0;
    background: #FDE9E0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: background-color .12s;
}

.cfg10-flash-divider {
    list-style: none;
}

.cfg10-flash-divider .art-divider {
    margin: 0 14px;
}

.cfg10-flash-item:hover {
    background-color: #fbdccd;
}

.cfg10-flash-more {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    background: #fff7f3;
    border-top: 0;
    color: #D62629;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.cfg10-flash-more:hover {
    background: #FDE9E0;
    color: #a9161b;
}

.cfg10-flash-time {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: baseline;
    width: 58px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #27221b;
    letter-spacing: .02em;
    white-space: nowrap;
    flex-shrink: 0;
    background: transparent;
    border-right: 0;
}

/* Titolo notizia flash */
.cfg10-flash-title {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.32;
    color: #24201a;
    padding: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ── Colonna Editoriale (destra) ──────────────────────────────────────────── */
.cfg10-editorial-col {
    background: var(--block-bg, #fff);
    border: 0;
}

.cfg10-editorial-header {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 9px;
    background: #20344d;
    color: #fff;
}

.cfg10-editorial-label {
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Lista card editoriali */
.cfg10-editorial-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Card editoriale — variante dello spot-card con stile cfg10 */
.cfg10-editorial-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .48fr) minmax(0, 1fr);
    grid-template-areas:
        "oc ."
        "media copy";
    column-gap: 24px;
    row-gap: 9px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 0;
    border-right: 0;
    background: var(--block-bg, #fff);
    transition: background .12s;
}

.cfg10-editorial-link {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: minmax(220px, .48fr) minmax(0, 1fr);
    grid-template-areas:
        "oc ."
        "media copy";
    column-gap: 24px;
    row-gap: 9px;
    align-items: start;
    color: inherit;
    text-decoration: none;
}

.cfg10-editorial-card:hover {
    background: rgba(255, 255, 255, .5);
}

.cfg10-editorial-divider .art-divider {
    margin: 0;
}

.cfg10-ed-media {
    grid-area: media;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cfg10-ed-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0;
    background: #e9e3d7;
}

.cfg10-ed-img--empty {
    min-height: 130px;
}

.cfg10-ed-oc {
    grid-area: oc;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dc, #dc2626);
    background: transparent;
    padding: 0;
    line-height: 1.1;
    border-radius: 0;
    margin-bottom: 0;
}

.cfg10-ed-oc--empty {
    min-height: 1.1em;
}

.cfg10-ed-copy {
    grid-area: copy;
    min-width: 0;
    padding-top: 0;
}

.cfg10-ed-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.18;
    color: #111827;
    margin-bottom: 8px;
}

.cfg10-ed-summary {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    color: #4b5563;
}

/* ── Separatore verticale visivo (decorazione) ───────────────────────────── */
@media (min-width: 901px) {
    .cfg10-outer {
        grid-template-columns: minmax(280px, .52fr) minmax(0, 1.22fr);
    }
}

/* ── Tablet (≤ 900px): colonne impilate ──────────────────────────────────── */
@media (max-width: 900px) {
    .cfg10-outer {
        grid-template-columns: 1fr;
    }

    .cfg10-flash-col {
        border-bottom: 0;
    }
}

/* ── Mobile (≤ 540px) ─────────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .cfg10-flash-item {
        min-height: 40px;
    }

    .cfg10-flash-time {
        font-size: 12px;
        width: 52px;
    }

    .cfg10-flash-title {
        font-size: 15px;
    }

    .cfg10-editorial-card,
    .cfg10-editorial-link {
        grid-template-columns: 1fr;
        grid-template-areas:
            "oc"
            "media"
            "copy";
        gap: 8px;
    }

    .cfg10-ed-title {
        font-size: 22px;
    }

    .cfg10-ed-summary {
        font-size: 18px;
    }
}
