﻿
.orange-box-icons {
    position: relative;
    background-color: var(--primary-orange);
    width: 30vw;
    border-radius: 50px;
    margin-left: 22%;
    padding: 10% 15%;
    gap: 1em;
    font-size: 1.5em;
    height: 100%;
    justify-content: space-around;
}

.white-icons-servizi {
    box-sizing: border-box;
    width: 20%;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.img-white-icon{
    width:100%;
    height:100%;
}
.orange-box-icons-container {
    color: white;
    font-size: 1.3em;
    line-height: 1.1;
    height:100%;
}

.white-icons-servizi-box-dx {
    width: 50%;
    width: 65%;
    font-size: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.white-icons-row {
    display:flex;
    justify-content:space-between;
}

.orange-blue-box-container {
    margin-top: 2em;
    display: flex;
    align-items: center;
    height: 75vh;
}

.blue-box-icons-container {
    height: 80%;
    width: 40%;
    color: white;
    border-radius: 50px;
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 1%;
    position: relative;
    overflow: hidden;
}

.img-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    overflow: hidden;
}

    .img-container > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 50px;
    }

    .img-container::after {
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--overlay-blue-dark);
        border-radius: 50px;
        pointer-events: none;
    }

.icons-container-innertext {
    z-index: 10000000;
    position: absolute;
    padding: 8% 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    font-size: 1.1em;
}

.card-orange.servizi {
    margin-left: 60%;
}

.card-info-blue.servizi {
    line-height: 1.5;
    font-size: 1.7em;
    width: 45%;
}
.container-middle-cards.servizi {
    height: 70vh;
    margin-top: 5%;
}

    .container-middle-cards.servizi > .figure-middle {
        height: 100%;
    }

        .container-middle-cards.servizi > .figure-middle > img {
            height: 100%;
            width: 100%;
        }
/* ==================================================
   RESPONSIVE
================================================== */

/* ---------- TABLET GRANDE ---------- */
@media screen and (max-width: 1200px) {
    .orange-box-icons {
        width: 38vw;
        margin-left: 12%;
        padding: 8% 10%;
        font-size: 1.45em;
    }

    .blue-box-icons-container {
        width: 45%;
        font-size: 1.4em;
    }

    .orange-box-icons-container {
        font-size: 1.2em;
    }

    .icons-container-innertext {
        width: 70%;
        font-size: 1.08em;
    }

    .card-orange.servizi {
        margin-left: 45%;
    }

    .card-info-blue.servizi {
        width: 55%;
        font-size: 1.55em;
    }

    .container-middle-cards.servizi {
        height: auto;
        min-height: 60vh;
    }
}


/* ---------- TABLET ---------- */
@media screen and (max-width: 992px) {
    .orange-blue-box-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    .figure-middle{
        width:70%;
    }
    .orange-box-icons {
        width: 85%;
        margin-left: 0;
        padding: 2.5rem 2rem;
        height: auto;
        font-size: 1.35em;
    }

    .orange-box-icons-container {
        height: auto;
        font-size: 1.15em;
        line-height: 1.25;
    }

    .white-icons-row {
        gap: 1rem;
        align-items: center;
    }

    .white-icons-servizi {
        width: 60px;
        min-width: 60px;
        height: 60px;
    }

    .white-icons-servizi-box-dx {
        width: 100%;
        font-size: 1em;
    }

    .blue-box-icons-container {
        width: 85%;
        height: 420px;
        margin-left: 0;
        font-size: 1.3em;
    }

    .img-container {
        height: 100%;
    }

    .icons-container-innertext {
        width: 75%;
        font-size: 1.08em;
        line-height: 1.45;
        padding: 0;
    }

    .card-orange.servizi {
        margin-left: 0;
    }

    .card-info-blue.servizi {
        width: 85%;
        font-size: 1.4em;
        text-align: center;
    }

    .container-middle-cards.servizi {
        height: auto;
        margin-top: 3rem;
        flex-direction:column;
    }

        .container-middle-cards.servizi > .figure-middle {
            height: auto;
        }

            .container-middle-cards.servizi > .figure-middle > img {
                height: auto;
                max-width: 100%;
                object-fit: cover;
            }
}


/* ---------- MOBILE ---------- */
@media screen and (max-width: 768px) {
    .container-middle-cards.servizi{
        z-index:17;
    }
    .orange-blue-box-container {
        margin-top: 1.5rem;
        padding: 1rem;
        gap: 1.5rem;
    }

    .orange-box-icons {
        width: 100%;
        border-radius: 30px;
        padding: 1.5rem 1.2rem;
        font-size: 1.2rem;
    }

    .orange-box-icons-container {
        font-size: 1.08em;
        line-height: 1.35;
    }

    .white-icons-row {
        align-items: flex-start;
        gap: 0.8rem;
    }

    .white-icons-servizi {
        width: 50px;
        min-width: 50px;
        height: 50px;
    }

    .white-icons-servizi-box-dx {
        width: 100%;
        font-size: 1em;
    }

    .blue-box-icons-container {
        width: 100%;
        height: 350px;
        border-radius: 30px;
        font-size: 1.15rem;
    }

    .img-container,
    .img-container > img,
    .img-container::after {
        border-radius: 30px;
    }

    .icons-container-innertext {
        width: 82%;
        font-size: 1.05em;
        line-height: 1.5;
    }

    .card-info-blue.servizi {
        width: 100%;
        font-size: 1.22em;
        line-height: 1.5;
    }

    .container-middle-cards.servizi {
        margin-top: 2rem;
        height: auto;
    }
}


/* ---------- MOBILE PICCOLO ---------- */
@media screen and (max-width: 480px) {
    .orange-box-icons {
        padding: 1.2rem 1rem;
        border-radius: 24px;
        font-size: 1.08rem;
    }

    .orange-box-icons-container {
        font-size: 1em;
        line-height: 1.35;
    }

    .white-icons-servizi {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .white-icons-servizi-box-dx {
        font-size: 0.98em;
    }

    .blue-box-icons-container {
        height: 300px;
        border-radius: 24px;
        font-size: 1.02rem;
    }

    .img-container,
    .img-container > img,
    .img-container::after {
        border-radius: 24px;
    }

    .icons-container-innertext {
        width: 86%;
        font-size: 0.98em;
        line-height: 1.45;
    }

    .card-info-blue.servizi {
        font-size: 1.08em;
    }
}





