/* NavBar principale */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #024a18 0%, #012f0f 100%);
    padding: 15px 30px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-left img {
    height: 45px;
    width: auto;
    border-radius: 6px;
}

.navbar-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 1.1em;
    transition: 0.3s;
}

.navbar-links a:hover {
    color: #b7ffb9;
    text-shadow: 0 0 10px #b7ffb9;
}

/* ---------------------------------- */
/* HAMBURGER ICON */
/* ---------------------------------- */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

/* Animazione hamburger → X */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------------------------------- */
/* MOBILE MENU */
/* ---------------------------------- */

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #012f0f;
    text-align: center;
    display: none;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6);
    z-index: 15;
    transform: translateY(-20px);
    opacity: 0;
    transition: 0.3s ease;
}

.mobile-menu a {
    color: white;
    font-size: 1.3em;
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* ---------------------------------- */
/* RESPONSIVE BREAKPOINT */
/* ---------------------------------- */

@media (max-width: 768px) {

    .navbar-links {
        display: none; /* Nasconde le voci su mobile */
    }

    .hamburger {
        display: flex;
    }
}
