nav {
    background: var(--color-bg-secondary);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.nav-container-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border-light);
}

/* Lista dei link (desktop) */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-right: 15px;
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* Bottone burger */
.nav-toggle {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--color-text-primary);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.4s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* Stato attivo del burger (X) */
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

/* MOBILE */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-secondary);
        border-top: 1px solid var(--color-border-light);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }
}