/* Setto le variabili CSS */
:root{
    /* Tavolozza colore */
    --primary-color:#048ABF;
    --secondary-color:#BD017C;
    --accent-color:#D90B31;
    --dark-color:#111010;
    --light-color: #f1f1f1;


    /* Fonts */
    --font-display: "Slabo 27px", serif;
    --font-text: "Montserrat", sans-serif;

    /* Size */
    --xs: 5px;
    --s: 10px;
    --m: 15px;
    --l: 20px;
    --xl: 30px;

}

/* RESET */
*{
    margin: 0;
    padding: 0;
}

li{
    list-style-type: none;
}

a{
    text-decoration: none;
    display: block;
}

html{
    scroll-behavior: smooth;
}

/* UTILITY */
.res{
    width: 100%;
    max-width: 480px;
}

.clip{
    clip-path: circle();
}

.wrapper{
    max-width: 900px;
    margin: 0 auto;
}

/* Tipografia */
body{
    font-family: var(--font-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    margin-bottom: var(--m);
}

p.leading{
    font-size: 1.3em;
    margin-bottom: var(--s);
}

p {
    margin-bottom: var(--xs);
}

/* HEADER */
header.cover{
    background: var(--primary-color);
    padding: 15px;
    height: 55px;
    transition: 1s cubic-bezier(.18,.98,.52,.94);
}

header.cover div.wrapper{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;

}

header.cover.active{
    height: 200px;
}

.cover__menu {
    order: 3;
    width: 100%;
    /* visibility: hidden; */
    text-align: right;
}

.cover__hb{
    color: var(--light-color);
    font-size: var(--xl);
}

ul.main-menu li a {
        color: var(--light-color);
        margin: 20px;
        font-weight: 600;
        
    } 

/* CTA */
.cta-group{
    font-size: 1.4em;
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-direction: column;
    align-items: center;
}

.cta-group a{
    border: 1px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 700;
}

a.cta-primary{
    background: var(--primary-color);
    color: var(--light-color);
}
a.cta-primary:hover {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    transform: rotate(5deg);
    transition: 0.5s;
}

a.cta-secondary {
    background: transparent;
    color: var(--primary-color);
}

a.cta-secondary:hover{
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: underline;
}

/* HERO */
section.hero{
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--s);
}

/* Interruzione per Medium */
@media(min-width: 768px){
    .cta-group{
        flex-direction: row;
    }
}

/* Interruzione per Large*/
@media(min-width: 1024px){
    section.hero {
        flex-direction: row;
    }
    .hero__text{
        max-width: 50%;
    }
    .cover__menu {
    visibility: visible;
    order: unset;
    width: unset;
    }
    .cover__hb{
        display: none;
    }

    ul.main-menu{
        display: flex;
        gap: var(--m);
    }

    /* .cover__menu ul {
        display: flex;
        gap: 20px;
        margin-top: 20px;
    }
    .cover__menu li a {
        color: var(--light-color);
        font-weight: bold;
    }
    .cta-group{
        flex-direction: row;
    } */

}
