/* --- SEZIONE INTESTAZIONE TEMI (HERO BANNER) --- */
.temi-section {
    padding: 150px 20px 40px 20px;
    width: 100%;
}

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

.section-title-big {
    font-size: clamp(34px, 4.8cqw, 74px);
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 15px;
    text-wrap: pretty;
}

.temi-icon {
    max-width: 70px;
}

/* --- SEZIONI DI TESTO E CITAZIONI --- */
.coral-books-section {
    width: 100%;
    padding: 60px 40px;
}

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

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

.tema-testo {
    color: #39001d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 10px;
    text-align: justify;
}

.tema-testo-cit {
    color: #39001d;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4.2cqw, 40px);
    line-height: 1.24;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-top: 10px;
    text-wrap: pretty;
}

/* --- LISTE (PUBBLICAZIONI, EVENTI, PILLO(W)LE) --- */
.post-id {
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: block;
    width: 100%;
}

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

.post-id .book-inner {
    display: flex;
    align-items: stretch;
    gap: 15px;
    padding: 15px 10px;
    width: 100%;
}

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

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

.tema-link {
    font-size: 0.85rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #39001d;
    padding: 10px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-weight: 500;
}

.tema-link:hover {
    background-color: #7a7979;
    transform: translateY(-2px);
}

/* --- GRIGLIA VIDEO UNIFORME --- */
.post-video {
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
}

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

.post-video .book-inner {
    display: flex;
    align-items: stretch;
    padding: 20px;
    width: 100%;
    flex: 1;
}

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

.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;
   
}

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

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

@media (max-width: 1024px) {
    .coral-books-section {
        padding: 40px 20px;
    }

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

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

    .section-title-big {
        font-size: 2.2rem;
    }

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

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

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