.section-testo-gallery {
    width: 100%;
    min-height: 450px;
    margin: 195px 0;
    display: flex;
    position: relative;
    scroll-margin-top: 6em;
}

.section-testo-gallery.gallery-testo {
    flex-direction: row-reverse;
}

.section-testo-gallery>.container-title-contenuto {
    font-size: 15px;
    width: 40%;
    margin-right: 40px;
    margin-left: 5%;
}

.section-testo-gallery>.container-title-contenuto .titolo-sezione {
    margin-bottom: 15px;
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 1.2;
}

.section-testo-gallery>.container-img-gallery {
    width: 60%;
    display: grid;
    height: 450px;
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.section-testo-gallery>.container-img-gallery .image{
    height: 450px;
}

.section-testo-gallery>.container-img-gallery .image img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
}

.section-testo-gallery>.container-arrow-gallery{
    font-size: 38px;
    position: absolute;
    left: 32%;
    bottom: -14px;
    display: flex;
}

.section-testo-gallery.gallery-testo>.container-arrow-gallery{
    left: unset;
    right: 35%;
}

.container-title-contenuto .text {
    font-weight: 300;
}

@media (min-width: 1400px) {
    .section-testo-gallery>.container-title-contenuto {
        width: 30%;
    }

    .section-testo-gallery>.container-img-gallery {
        width: 70%;
    }

    .section-testo-gallery>.container-arrow-gallery {
        left: 23%;
    }

    .section-testo-gallery>.container-img-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .section-testo-gallery {
        flex-direction: column;
    }

    .section-testo-gallery>.container-title-contenuto {
        width: 90%;
        margin: auto;
    }

    .section-testo-gallery>.container-img-gallery {
        width: 100%;
        margin-top: 40px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-testo-gallery>.container-arrow-gallery {
        right: 0;
        left: unset;
        font-size: 28px;
        bottom: -70px;
    }

    .section-testo-gallery .fa-chevron-left,.section-testo-gallery .fa-chevron-right {
        font-size: 34px;
    }
}

.section-testo-gallery .container-span-change {
    display: none;
}

@media (max-width: 1000px) {
    .section-testo-gallery {
        margin-top: 0;
        margin-bottom: 100px;
    }

    .container-arrow-gallery {
        display: none!important;
    }

    .section-testo-gallery .container-span-change {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 900px) {
    .section-testo-gallery>.container-img-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .section-testo-gallery>.container-img-gallery {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        justify-content: center;
        width: 90%;
        margin: 28px auto;
        height: 550px;
    }

    .section-testo-gallery>.container-title-contenuto .titolo-sezione {
        font-size: 24px;
    }

    .section-testo-gallery>.container-img-gallery .image {
        height: 550px;
    }
}
