nav {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
    transition: 0.3s linear;
    text-align: center;
    background-color: var(--background-color);
    z-index: 9000 !important;
}

nav div.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

nav div.logo h1 {
    font-family: var(--font-default);
    font-weight: bold;
    font-style: normal;
}

nav div.logo img {
    height: 64px;
    width: 64px;
}

nav div.links {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 30px;
    height: auto;
    transition: 0.3s linear;
}

nav div.links a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    transition: .1s linear;
}

nav div.links a[meta-important="true"] {
    background-color: var(--color-important);
}

nav div.links a:hover[meta-important="true"] {
    background-color: var(--color-important-lighten);
}

nav div.links a[meta-important="true"] p,
nav div.links a[meta-important="true"] img {
    filter: invert(1);
}

nav div.links a:hover {
    background-color: #fff3;
    box-shadow: #fff3 0px 0px 5px;
}

nav div.links a img {
    height: 24px;
    width: 24px;
}

nav div.links a p {
    text-transform: uppercase;
}

/* --- Responsive styles below --- */
.hamburger {
    display: none;
    visibility: hidden;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    height: 40px;
    width: 40px;

}
.hamburger img{
    height: 40px;
    width: 40px;
}

/* Media query per mobile */
@media (max-width: 1450px) {
    nav{
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 9000;
        width: 100vw;
        height: auto;
        background-color: var(--background-color);
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;   
    }
    .hamburger {
        display: block;
        visibility: visible !important;
    }

    nav div.links {
        flex-direction: column;
        width: 100%;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    nav div.links.show {
        max-height: 500px; /* abbastanza grande da contenere tutti i link */
        opacity: 1;
    }

    nav div.links a {
        justify-content: center;
        width: 100%;
    }

    nav {
        align-items: flex-start;
    }
}