/* Font e base */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* -------- Navbar -------- */
nav {
    width: 100%;
    background: linear-gradient(90deg, #1d2b36, #2e4a62);
    padding: 12px 2%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 999;
}

nav .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav .logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

nav .logo img:hover {
    transform: scale(1.05);
}

nav .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav .menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

nav .menu li a:hover,
nav .menu li a.selezionata {
    background: rgba(255, 255, 255, 0.15);
    font-size: 1.05rem;
}

/* Hamburger */
.hamburger-menu {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    display: none;
    cursor: pointer;
}

/* -------- Responsive -------- */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 1000;
    }

    nav .menu {
        flex-direction: column;
        align-items: center;
        justify-content: start;
        background-color: #f9f9f9;
        position: fixed;
        top: 5%;
        right: -100%;
        width: auto;
        height: auto;
        padding: 80px 30px;
        box-shadow: -4px 0 10px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    nav .menu.show {
        right: 0;
    }

    nav .menu li a {
        color: #2d3e50;
        width: 80%;
        text-align: center;
        font-size: 1rem;
        background: none;
        border-radius: 6px;
    }

    nav .menu li a:hover,
    nav .menu li a.selezionata {
        background-color: #ddd;
        font-weight: bold;
    }
}
