/* --- SEZIONE TEMI (PAGINA TEMI) --- */
.temi-section {
    padding: 130px 20px 60px 20px;
    background-color: #fff;
    width: 100%;
    overflow-x: hidden;
}

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

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

.section-title {
    font-size: clamp(38px, 4cqw, 64px);
    font-family: 'Playfair Display', Georgia, serif;
    color: #39001d;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 20px;    
    max-width: 700px;
    text-wrap: pretty;
}

/* Pannelli dei singoli Temi */
.tema-panel {
    cursor: pointer;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 20px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    transition: border-radius 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.tema-panel:hover {
    border-radius: 0px;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tema-left {
    margin-right: 25px;
    z-index: 2;
    flex-shrink: 0;
}

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

.tema-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    color: #fff;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tema-right h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tema-arrow {
    z-index: 2;
    color: #fff;
    font-size: 1.2rem;
    margin-left: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.tema-panel:hover .tema-arrow {
    transform: translateX(5px);
}

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

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

    .tema-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
        gap: 15px;
    }

    .tema-left {
        margin-right: 0;
        margin-bottom: 5px;
    }

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

    .tema-right h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .tema-arrow {
        align-self: flex-end;
        margin-left: 0;
        margin-top: -10px;
    }
}