.tendina-container {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 999;
    background-color: transparent;
    overflow: visible;
    transition: top 0.3s ease;
}

    .tendina-container.sticky {
        top: 0;
    }

.tendina-rect {
    position: absolute;
    top: 0;
    width: 30px;
    height: 70px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    transform: scaleY(0);
    transform-origin: top center;
    opacity: 0;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease, transform 0.3s ease;
}

/* MENU */
.tendina-menu {
    position: absolute;
    top: 0;
    left: 0;
    height: 70px; /* uguale all'altezza dei rettangoli */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.tendina-logo {
    height: 40px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.tendina-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

    .nav-links li a {
        text-decoration: none;
        color: #000;
        font-weight: 500;
        font-size: 1rem;
    }

.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .tendina-menu {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }


    /* MENU FULLSCREEN MOBILE - TENDINA ESPANSA */
    .tendina-container.expanded .tendina-rect {
        height: 100dvh;
        transform: scaleY(1);
        opacity: 1;
    }

    .tendina-container.expanded .tendina-menu {
        opacity: 1;
        pointer-events: auto;
        justify-content: center;
        flex-direction: column;
        gap: 40px;
        background: transparent;
        position: absolute;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 100%;
        z-index: 1001;
    }

    .tendina-container.expanded .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

        .tendina-container.expanded .nav-links li a {
            font-size: 1.5rem;
            color: black;
        }

    .tendina-container.expanded .hamburger {
        position: absolute;
        top: 20px;
        right: 30px;
    }
}