/* Tavolozza colore */
:root {
    --primary: #000000;
    --light: #ffffff;
    --accent: rgb(228, 37, 37);
    --dark: #4a4949;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Utility */
html {
    scroll-behavior: smooth;
}

.res {
    width: 100%;
    max-width: 200px;
}

/* Tipografia */
body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

h1,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
    font-weight: 600;

    color: rgb(228, 37, 37);
    font-size: 2em;

}


p {
    font-size: 1.4em;
    margin-bottom: 15px;
}

p.leading {
    font-size: 1.4em;
    color: rgb(228, 37, 37);
    margin: 0;
}

h2.Piobello {
    color: rgb(228, 37, 37);
    text-decoration: underline;
    text-decoration-color: rgb(228, 37, 37);
    font-size: 2em;

}

/* Header */
header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;


}

.fixed {
    position: fixed;
    width: 100%;
    background: var(--light);
    z-index: 2;
}

/* Provvisorio */
.header__logo,
.header__menu,
.header__cta,
.header__icon {
    outline: 1px;
}

.header__logo,
/* .header__menu, */
.header__cta,
.header__icon {
    width: 130px;
}

.header__logo img .header__menu .site-nav>li {
    display: inline-block;
}

header.header a {
    color: var(--accent);
}



.header__icon {
    /* visibility: hidden; */
    display: none;
}



/* prova menu */
.header__icon {
    color: var(--light);
    text-align: right;
    z-index: 3;
}

/* .header__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    transform: translateY(-100%);
    transition: 0.6s cubic-bezier(.99, .3, .06, .79);

} */

.site-nav {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 150px;
    font-size: 3em; */
    /* queste impostazioni prenderle quando fai dimensione smarthphone */
    display: flex;
    justify-content: space-between;
    font-size: 1.1em;
    font-family: "Roboto", sans-serif;
    font-weight: 400;



}

.site-nav a {
    padding: 0px 30px;

}

.open .header__menu {
    transform: translateY(0);
}


/* Indice */

/* a {
    color: rgb(228, 37, 37);
    font-size: 1.2em;
    font-weight: 400;
} */

.indice {
    color: rgb(228, 37, 37);
    font-size: 1.1em;
    font-weight: 400;




}

.indice1 {
    color: rgb(228, 37, 37);
    font-size: 1.2em;
    font-weight: 400;






}


/* Section */

.svanisci {
    color: #ffffff;
}


section {

    scroll-margin-top: 80px;
    margin-bottom: 25px;
    padding: 20px;
    padding-top: 0;

}



.card-container {
    display: flex;
    /* flex-direction: column;-->nella media query */
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 100px;

}

/* width: 325px; */
/* margin: 20px; */
.carde {
    /* margin: 5px; */
    width: 20%;
    background-color: #ffffff;
    overflow: hidden;

}

.carde img {
    width: 100%;
    height: auto;
    padding: 5px;
}

.card-content {
    padding: 16px;
}

.card-content h6 {
    font-size: 28px;
    margin-bottom: 8px;

}

.card-content p {
    color: #000000;
    font-size: 15px;
    line-height: 1.3;
}

.p1 {
    font-style: italic;
}

/* cta */
.cta-group {
    font-size: 1.5em;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    /* margin-top: 15px; */
    justify-content: center;
    margin-bottom: 30px;

}

.cta__secondary {
    border: 3px solid var(--accent);
    border: dashed;
    padding: 10px 20px;
    border-radius: 1px;
    font-weight: 900;

}

.cta__secondary {
    background: var(--light);
    color: var(--accent);
}

.cta__secondary:hover {
    background: var(--accent);
    border: 2px solid var(--accent);
    color: var(--light);
}



/* FOOTER */

footer {
    background-color: var(--light);


}

.footerContainer {
    width: 100%;
    padding: 70px 30px 20px
}

.socialIcons {
    display: flex;
    justify-content: center;


}

.socialIcons a {
    text-decoration: none;
    padding: 10px;
    background-color: #ffffff;
    margin: 10px;
    border-radius: 50%;

}

.socialIcons a i {
    font-size: 1.7em;
    color: var(--accent);
    opacity: 0.9;

}

.footerBottom {
    color: var(--accent);
    font-size: 0.6em;
    display: flex;
    justify-content: center;



}

/* -------------------------------------------------------------------------------- */
/* ! Media query medium */
/* -------------------------------------------------------------------------------- */

@media (max-width: 768px) {


    .header__icon {
        display: block;
        color: var(--light);
        text-align: right;
        z-index: 3;
        background-color: #ffffff;

    }


    .header__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--primary);
        transform: translateY(-100%);
        transition: 0.6s cubic-bezier(.99, .3, .06, .79);
        background-color: #ffffff;
    }

    /* .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 45px;
        padding: 25px;
        font-size: 3em;
        background-color: #ffffff;
        padding-top: 30%;
        padding-bottom: 30%;
    } */

    .site-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        padding: 150px;
        font-size: 3em;
        z-index: 3;
        background-color: #ffffff;
    }


    /* Richiamo la classe in base al click */
    .open .header__menu {
        transform: translateY(0);
        background-color: #ffffff;
        z-index: 3;
    }


    .card-container {
        /* display: flex; */
        flex-direction: column;
        /* justify-content: center; */
        /* flex-wrap: wrap; */
        /* margin-top: 100px; */

    }

    .carde {

        width: 100%;
        background-color: #ffffff;
        overflow: hidden;

    }

    .carde img {
        width: 100%;
        height: auto;
        /* padding: 5px; */
    }


    .card-content h6 {
        font-size: 28px;
        margin-bottom: 8px;

    }

    .card-content p {
        color: #000000;
        font-size: 15px;
        line-height: 1.3;
    }

    .p1 {
        font-style: italic;
    }


}