* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-base: #0f1016;
    --text-color: #f0f0f0;
    --accent-color: #006aff;
    --trans-color: hsla(215, 84%, 58%, 0.555);
    --bg-color: rgba(0, 0, 0, 0.3);
    /* --ultra-accent-color: rgba(79.6, 26.3, 9.8); */
    --ultra-accent-color: blue;
}

body {
    width: 100vw;
    height: 100vh;
    background-image: url(../img/main.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

}

html {
    font-size: 16px;
    font-family: Poppins, Verdana, Geneva, Tahoma, sans-serif;
}

.container {
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
}

/* NAV BAR */

nav {
    padding-top: 10px;
    height: 65px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 1.2rem;
}

.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

nav a {
    height: 100%;
    padding: 0 30px;

    display: flex;
    color: var(--text-color);
    align-items: center;
    text-decoration: none;
}

.contact-a {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: var(--accent-color);
    border-radius: 10px;
    margin-left: 600px;

    margin-top: -10px;
}

.home-link {
    margin-left: 200px;
}

.logo {
    width: 250px;
    margin-bottom: 8px;

    margin-right: 130px;
    margin-left: 20px;
}

nav a:not(.logo-nav):hover {
    background-color: var(--trans-color);
    border-radius: 10px;
    color: var(--text-color);
}

/* HERO SECTION */

.hero {
    min-width: 100vw;
    min-height: 87vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

h1 {
    background-color: rgba(0, 0, 0, 0.1);
    margin-top: 0;
    width: 800px;
    height: 270px;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 40px;
    font-size: 1rem;
    font-size: clamp(1rem, 0.6rem + 2vw, 3rem);
    margin-bottom: 75px;

}


span {
    /* color: var(--ultra-accent-color); */
    text-decoration: underline;
    font-weight: 800;
}

h2 {
    width: 800px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 45px;
    font-size: 1.5rem;
    /* font-size: clamp(0.8rem, 0.76rem + 0.19999999999999996vw, 1rem); */

}

.scopri-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    text-decoration: none;
    height: 60px;
    width: 280px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 45px;

}

.scopri-link:hover {
    background-color: var(--trans-color);
}

/* FOOTER */

.footer {
    display: flex;
    justify-content: center;
    align-self: center;
    color: var(--text-color);
}

#sidebar-active {
    display: none;
}

.open-sidebar-button,
.close-sidebar-button {

    display: none;
}

/* COOLIES BANNER */

.cookie-container {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;


    background: #2f3640;
    color: #f5f6fa;
    padding: 0 32px;
    box-shadow: 0 -2px 16px rgba(47, 54, 64, 0.39);

    transition: 400ms;
}

.cookie-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cookie-container.active {
    bottom: 0;
}

.cookie-container a {
    color: #f5f6fa;
}

.cookie-btn {
    background: #e84118;
    border: 0;
    color: #f5f6fa;
    padding: 12px 48px;
    font-size: 18px;
    margin-bottom: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.cookie-btn-yes {
    margin-right: 30px;
}



@media(max-width: 1876px) {
    .logo {
        margin-right: 0;
    }

    .home-link {
        margin-left: 50px;
    }

    nav a {
        height: 100%;
        padding: 0 20px;
        margin-left: 20px;
    }

    .contact-a {
        margin-left: 500px;


    }

}

@media(max-width: 1437px) {
    .logo {
        margin-right: 0;
    }

    .home-link {
        margin-left: 20px;
    }

    nav a {
        height: 100%;
        padding: 0 20px;
        margin-left: 10px;
        display: flex;
        color: var(--text-color);
        align-items: center;
        text-decoration: none;
        min-width: 138px;
    }


    .contact-a {
        margin-left: 300px;


    }

}

@media(max-width: 1240px) {
    .logo {
        margin-right: 0;
    }

    .home-link {
        margin-left: 100px;
    }

    .contact-a {
        margin-left: 100px;


    }
}

@media(max-width: 1051px) {
    .logo {
        margin-right: 0;
    }

    .home-link {
        margin-left: 10px;
    }

    .contact-a {
        margin-left: 100px;


    }
}

@media(max-width: 975px) {
    .logo {
        width: 250px;
        margin-top: 30px;
        margin-right: auto;
    }

    .home-link {
        margin-top: 50px;
        margin-left: 20px;
    }

    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 300px;
        background-color: var(--color-base);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }

    .contact-a {
        display: flex;
        width: 140px;
        height: 40px;
        justify-content: center;
        margin-left: 30px;
        background-color: var(--accent-color);
        border-radius: 10px;

    }


    nav a {
        height: auto;
        width: 100%;
        padding-bottom: 20px;
        justify-content: flex-start;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        padding: 20px;
        display: block;
        margin-right: auto;
    }

    svg {
        fill: var(--text-color);
    }

    #sidebar-active:checked~.links-container {
        right: 0;
    }

    #sidebar-active:checked~#overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;

    }

    h1,
    h2 {
        width: 80vw;
    }

    .scopri-link {
        margin-left: 150px;
    }


}