/* --- SEZIONE INTESTAZIONE MEDIA --- */
.temi-section {
    padding: 130px 20px 20px 20px;
    background-color: #fff;
    width: 100%;
}

.temi-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    margin-bottom: 20px;
}

/* --- SEZIONE VIDEO BANNER (IN EVIDENZA) --- */
.video-banner-section {
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
}

.pillole-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-panel {
    background-color: #3e3e3c;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.video-left {
    flex: 1;
}

.video-left h2 {
    font-size: 2.2rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 400;
}

.video-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-right video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- SEZIONE CONTENUTI MULTIMEDIALI (GRIGLIA VIDEO) --- */
.coral-books-section {
    width: 100%;
    background-color: #dadada;
    color: #39001d;
    padding: 60px 40px;
}

.coral-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.coral-half {
    flex: 1;
    min-width: 300px;
}

.post-video {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-video:hover {
    transform: translateY(-3px);
}

.book-inner {
    display: flex;
    align-items: stretch;
    padding: 20px;
}

.temi-video {
    width: 100%;
    background-color: #fff !important;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.temi-video video {
    width: 100% !important;
    height: 350px !important;
    object-fit: cover !important;
    display: block;
}

.temi-video-title {
    padding: 15px 10px;
    color: #39001d;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.temi-video-title a:hover {
    text-decoration: underline;
    color: #ed5342;
}

/* --- RASSEGNA STAMPA & FILTRI --- */
.filter-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #d3d2d2;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    margin: 4px;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn.active {
    outline: 2px solid #39001d;
    outline-offset: -2px;
}

.post-id {
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
}

.post-id:hover {
    background-color: rgba(209, 208, 208, 0.3);
    border-radius: 12px;
}

.temi-news-left {
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #39001d;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 70px;
}

.temi-news-right {
    padding: 10px;
    flex: 1;
    display: flex;
    align-items: center;
    color: #39001d;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==========================================================================
   MEDIA QUERIES (SPECIFICHE)
   ========================================================================== */

@media (max-width: 1024px) {
    .video-panel {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }

    .video-panel .tratto {
        margin: 0 auto 20px auto;
    }

    .coral-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .temi-section {
        padding: 100px 15px 20px 15px;
    }

    .video-banner-section {
        padding: 20px 15px;
    }

    .video-panel {
        padding: 30px 20px;
    }

    .video-left h2 {
        font-size: 1.6rem;
    }

    .coral-books-section {
        padding: 40px 15px;
    }

    div[style*="margin: 10px 10px;"] {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 10px 0 !important;
    }

    .filter-btn {
        flex: 1 1 30%;
        min-width: 95px;
        margin: 0 !important;
    }

    .temi-news-left {
        min-width: 50px;
        font-size: 0.85rem;
    }

    .temi-news-right {
        font-size: 0.85rem;
    }
}