:root {
    --header: 90px
}

body,
html {
    overflow-x: hidden;
    font-size: 20px;
}

section {
    margin-bottom: var(--header);
}

.container {
    width: 90%;
    margin-bottom: 50px;
    margin-inline: auto;
}



.title-section {
    text-align: center;
    margin-bottom: 1em;
}

section:not(.hero) h3 span {
    position: relative;
    padding: 0 0.5em;
    left: -0.5em;
    border-radius: 50%;
    text-align: center;
}

/* HELPER */
.grid33 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 0.5fr);
    place-items: center;
}

.grid23 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 0.5fr);
    place-items: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

/* LAYER */
header {
    display: grid;
    grid-template-columns: auto 1fr;
    place-items: center;
    padding: 1em;
    height: var(--header);
}

ul li {
    margin-block: 1.1em;
}

.menu {
    display: flex;
    gap: 0 1em;
    position: relative;


    li {
        list-style: none;
        width: fit-content;
    }

    ul.sub-menu {
        display: none;
        position: absolute;
        opacity: 0;

        li {
            margin-block: 1em;
            width: 10em;
            border-bottom: 0.1em solid;
        }
    }

    li.menu-item:hover>ul.sub-menu {
        display: block;
        padding: 0 1em;
        border-left: 1px solid;
        border-right: 1px solid;
        border-radius: 12px;
    }
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 70px;
    padding: 2em 0;
}

/*Tipo Elemento*/
.cta,
.cta-invers {
    text-align: center;
    padding: 0.4em 1em;
    container-type: inline-size;
    flex: 50;

    p {
        font-size: 16cqi;
    }
}



/* Position Element */

/* HERO */
.hero {
    height: calc(100vh - var(--header));

    .description {
        width: 50%;
    }
}

/* Chi Siamo */
.chi-siamo {
    .container {
        padding: 0 10%;
    }
}

/* Servizi */
section.servizi {
    .wrapX {
        display: flex;
        gap: 0 3em;
    }
}

.box {
    display: grid;
    grid-template-rows: 5em 13em 3em;
    width: 250px;
    min-width: 200px;
    aspect-ratio: 4/5;

    h3 {
        text-align: center;
        font-size: clamp(30px, 1em + 2vw, 70px);
    }

    .description {
        padding: 0 1em;
    }

    .cta {
        position: relative;
        top: -1em;
        height: 2.5em;
    }
}

/* Flusso di Lavoro */
.operandi {
    .flex-row {
        gap: 0 1em;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

}

.box h3 span {
    border: 0.2em solid var(--cp1);
}



@media (max-width: 500px) {
    h1 {
        font-size: 1.3em !important;
    }

    h2 {
        font-size: 1.3em !important;
    }

    h3 {
        /* font-size: 1.1em !important; */
    }

    p {
        font-size: 1em;
    }



    .hero .content>* {
        margin-bottom: 2em !important;
    }



    .hero {

        h2 {
            font-size: 18px !important;
        }

        .description,
        .text-cta {
            width: fit-content;
        }
    }



    .chi-siamo .container {
        padding: 0;
    }
}