/*
Theme Name: divi-child
Author: 
Description: Your description goes here
Version: 1.0
Template: Divi

This is the child theme for Divi theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

.sa-special-list {
}

.sa-special-block {
    margin-bottom: 2.5rem;
}

.sa-special-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.sa-special-item-title {
    flex: 1;
    color: #222222;
    padding: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    font-family: 'Josefin Sans', Helvetica, Arial, Lucida, sans-serif;
}

/* 1° colore: arancio (1°, 4°, 7° …) */
.sa-special-block:nth-child(3n+1) .sa-special-item-title {
    background-color: #ffa000;
    box-shadow: -16vw 0 0 0 #ffa000;
}

/* 2° colore: verde (2°, 5°, 8° …) */
.sa-special-block:nth-child(3n+2) .sa-special-item-title {
    background-color: #388e3c;
    box-shadow: -16vw 0 0 0 #388e3c;
}

/* 3° colore: lilla (3°, 6°, 9° …) */
.sa-special-block:nth-child(3n+3) .sa-special-item-title {
    background-color: #ADAEED;
    box-shadow: -16vw 0 0 0 #ADAEED;
}

.sa-special-item-media {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.sa-special-item-media img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sa-special-item-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .sa-special-item {
        flex-direction: column;
    }

    .sa-special-item-media {
        justify-content: center;
    }
}

