@font-face {
    font-family: 'Poppins';
    src: url("../fonts/poppins/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url("../fonts/poppins/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url("../fonts/poppins/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

html {
    font-family: 'Poppins';
    color: rgb(5, 5, 10);
    overflow-x: hidden;
    pointer-events: none;
    background-color: whitesmoke;
}

::-webkit-scrollbar {
    width: 3px;
    background-color: whitesmoke;
}

::-webkit-scrollbar-thumb {
    background-color: #1d9acc;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #42c9ff;
}

body {
    margin: 0;
    user-select: none;
}

a {
    text-decoration: none;
    color: rgb(5, 5, 10);
}

header {
    display: flex;
    position: fixed;
    width: 100%;
    height: fit-content;
    box-sizing: border-box;
    z-index: 2;
    flex-direction: row;
    align-items: center;
    padding: 0.5em 5em 0.5em 3em;
    background-color: transparent;
    pointer-events: all;
    transition: 0.1s linear;
}


header.scrollato {
    background-color: whitesmoke;
}

header nav {
    position: relative;
    font-size: 1em;
    height: fit-content;
    margin-left: auto;
}

header img {
    height: 4em;
    transition: 0.1s linear;
    filter: contrast(0.3) brightness(1.7) saturate(0) drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.2));
}

header.scrollato > a img, header.scrollato > button {
    filter: saturate(0) brightness(0.6) contrast(1.4) drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.2));
    transition: 0.1s linear;
}

header a img:hover {
    filter: saturate(1.3) brightness(1) contrast(1) drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.2)) drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.2));
    transition: 0.1 linear;
}

header nav a {
    position: relative;
    color:whitesmoke;
    margin-left: 1em;
    transition: 0.1s linear;
}

header.scrollato > nav a {
    color: rgb(5, 5, 10);
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 0%;
    height: 1px;
    background-color: whitesmoke;
    transition: 0.1s linear;
}

header.scrollato > nav a::after {
    background-color: rgb(5, 5, 10);
}

header nav a:hover::after {
    width: 100%;
}

header button {
    display: none;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    background-repeat: no-repeat;
    background-size: cover;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main img {
    width: 50%;
    max-width: 400px;
}

main h1, main h2, main h3 {
    margin: 0;
    line-height: 1.2em;
    user-select: all;
}

main h1 {
    font-size: 3em;
    font-family: 'Poppins';
    font-weight: 700;
    color: #23B7D9;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
}

main h2, main h3 {
    color: #23B7D9;
}

main h3 {
    font-size: 2em;
    font-weight: 400;
    margin-top: 0.5em;
}


footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: whitesmoke;
    color: rgb(5, 5, 10);
    padding: 7em 15em 3em;
}

footer section {
    display: flex;
    flex-direction: column;
    row-gap: 0.2em;
    width: auto;
    margin: auto;
    margin-bottom: 4em;
    align-items: start;
    text-align: left;
}

footer section > * {
    margin: 0;
}

footer section h3 {
    margin-bottom: 1em;
}

footer section img {
    width: 1.2em;
    filter: brightness(0);
    margin-right: 1em;
    pointer-events: none;
    user-select: none;
}

footer hr {
    width: 100%;
    border: rgb(5, 5, 10) solid 1px;
}

footer section p, footer section a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer section a, footer section p {
    user-select: text;
    pointer-events: all;
}





@media screen and (max-width: 768px) {

    header {
        padding: 1em 2em 1em 2em;
    }

    header nav {
        display: none;
    }

    header button {
        display: block;
        width: 3em;
        height: 3em;
        background-image: url("../svg/hamburger.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        border: none;
        background-color: transparent;
        margin-left: auto;
        filter: contrast(0) brightness(1.8) drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.2));
    }

    .menu {
        display: flex;
        flex-direction: column;
        row-gap: 1em;
        justify-content: center;
        align-items: center;
        position: fixed;
        z-index: 1000;
        height: 100vh;
        background-image: radial-gradient(circle at left top, #42c9ff, rgba(14, 68, 87, 0.7)), url("../svg/pittogramma.svg"), linear-gradient(black, black);
        background-size: cover, 400%;
        background-position: 300% 30%;
        width: 100%;
    }

    .menu a {
        pointer-events: all;
        color: whitesmoke;
        font-size: 2em;
        text-shadow: 5px 0px 10px rgba(0, 0, 0, 0.5), 2px 0px 70px black;
    }

    main h1 {
        font-size: 2em;
    }

    main h2 {
        font-size: 1.3em;
    }

    main section a {
        font-size: 1.3em;
    }

    footer {
        flex-direction: column;
        padding: 3em;
        padding-top: 5em;
    }

    footer section {
        width: 100%;
    }
}
