header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

nav.active {
    max-height: 300px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 5px;
    /* Ridotto da 15px a 10px */
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    color: #8e44ad;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    nav {
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
    }

    nav ul {
        display: flex;
    }

    nav ul li {
        margin-left: 30px;
    }

    nav ul li a {
        padding: 0;
    }
}