/* events.css - o il file che contiene il CSS per mostre.php */

section.header {
    background-image: url("/assets/img/header-events.jpg");
}

section#events {
    padding: 3em 15%;
    font-size: 1.5em;
}



section div.left {
    padding: 0em 5%;
}

/* LAYOUT MOSTRE */
section.box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 3em auto;
    max-width: 1500px;
    padding: 0 5%;
}

section.box.layout-left,
section.box.layout-right {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: stretch;
}

section.box .left {
    width: 50%;
    padding: 0 2%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

section.box .right {
    width: 45%;
    display: flex;
    align-items: center;
    margin-top: 2em;
}

section.box.layout-left .left {
    order: 1;
}

section.box.layout-left .right {
    order: 2;
    justify-content: flex-end;
}

section.box.layout-right .left {
    order: 2;
}

section.box.layout-right .right {
    order: 1;
    justify-content: flex-start;
}

/* CONTAINER IMMAGINI AGGIORNATO */
.images-container {
    display: flex;
    gap: 1em;
    width: 100%;
    height: 400px;
    align-items: center;
}

section.box.layout-right .images-container {
    justify-content: flex-start;
}

section.box.layout-left .images-container {
    justify-content: flex-end;
}

.small-images-column {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 300px;
    height: 100%;
    justify-content: center;
}

.big-image-column {
    width: 300px;
    height: 100%;
    display: flex;
    align-items: center;
}

.image-small {
    width: 300px;
    height: 220px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    display: block;
}

.image-big {
    width: 300px;
    height: 400px;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    position: relative;
    display: block;
}

.image-small.image-1,
.image-small.image-2 {
    margin: 0;
}

.images-container .big-image-column .image-big {
    width: 300px;
    margin: 0;
}

/* RIMUOVI LE REGOLE VECCHIE CHE POTREBBERO CONFLITTI */


/* ALTRE SEZIONI */
section#other {
    padding: 5em 13%;
}

section#other div {
    margin-bottom: 5em;
}

section#other div p i {
    font-size: 1.3em;
}

section#other h2 {
    margin-bottom: 2em;
    text-transform: uppercase;
}

section#other h3 {
    text-transform: uppercase;
}

section#other div#teatro p b i {
    text-transform: uppercase;
}

section#other p {
    margin: 0;
}



/* RESPONSIVE */
@media (max-width: 1024px) {
    .images-container {
        height: 350px;
        gap: 2em;
    }

    .small-images-column {
        width: 250px;
        gap: 2em;
    }

    .big-image-column {
        width: 250px;
    }

    .image-small {
        width: 250px;
        height: 180px;
    }

    .image-big {
        width: 250px;
        height: 350px;
    }
}

@media (max-width: 768px) {

    section.box.layout-left,
    section.box.layout-right {
        flex-direction: column;
    }

    section.box .left,
    section.box .right {
        width: 100%;
        padding: 0;
        margin-bottom: 2em;
    }

    /* SEMPRE PRIMA IL TESTO, POI LE FOTO SU MOBILE/TABLET */
    section.box .left {
        order: 1 !important;
    }

    section.box .right {
        order: 2 !important;
        justify-content: center;
        margin-top: 0;
    }

    section.box.layout-left .images-container,
    section.box.layout-right .images-container {
        justify-content: center;
    }

    .images-container {
        flex-direction: column;
        height: auto;
        gap: 2em;
        align-items: center;
    }

    .small-images-column {
        display: none !important;
    }

    .big-image-column {
        width: 100%;
        height: auto;
        justify-content: center;
    }

    .image-small {
        width: 200px;
        height: 200px;
        margin: 0 !important;
    }

    .image-big {
        width: 100%;
        max-width: 400px;
        height: 350px;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .small-images-column {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }

    .image-small {
        width: 100%;
        max-width: 300px;
        height: 200px;
    }

    .image-big {
        height: 300px;
    }
}