/* Setto le variabili CSS */
:root {
    /* Tavolozza colore */
    --primary-color: #048ABF;
    --secondary-color: #BD017C;
    --accent-color: #D90B31;
    --dark-color: #111010;
    --light-color: #f3efef;
    /* 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;
}

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

li {
    list-style-type: none;
}

html {
    scroll-behavior: smooth;
}

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

.clip {
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.wrapper {
    max-width: 900px;
    border: 1px solid red;
    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: 140px; */
    transition: 1s linear ease-in-out;

}

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

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

.cover__menu {
    order: 3;
    width: 100%;
    visibility: hidden;
}

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

.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) {
    section.hero {
        flex-direction: row;
    }

    .hero__text {
        max-width: 50%;
    }

    .cover__menu {
        visibility: visible;
        order: unset;
        width: unset;
    }

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

    .cover__hb {
        display: none;
    }
}



/* Interruzione per Large */
@media(min-width: 1024px) {}