/* Desktop Top Menu Component CSS */
.desktop-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.85), rgba(233, 236, 239, 0.85));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.desktop-menu.scrolled {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.85), rgba(233, 236, 239, 0.85));
    backdrop-filter: blur(15px);
}

.desktop-menu .logo {
    width: 60px;
    height: 60px;
    display: block;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.desktop-menu .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    width: calc(100% - 200px);
    justify-content: center;
    margin: 0 auto;
}

.desktop-nav a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
}

.desktop-nav a:hover {
    color: #81bb27;
    transform: translateY(-2px);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #81bb27;
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.prenota-btn {
    background: #81bb27 !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(129, 187, 39, 0.4);
    position: absolute !important;
    right: 40px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1002 !important;
    text-decoration: none !important;
}

.prenota-btn:hover {
    background: #6a9c21 !important;
    transform: translateY(-52%) !important;
    box-shadow: 0 6px 20px rgba(129, 187, 39, 0.6) !important;
}

.prenota-btn::after {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
}

/* Scroll Progress Indicator with Scooter */
.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #81bb27, #6a9c21);
    width: 0%;
    transition: width 0.1s ease-out;
}

.scroll-scooter {
    position: absolute;
    bottom: -15px;
    left: 0%;
    width: 40px;
    height: 30px;
    background-image: url('/static/images/scooter-entrata.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: left 0.1s ease-out, transform 0.3s ease;
    z-index: 1002;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transform: scaleX(-1); /* Start facing right */
}

.scroll-scooter.reverse {
    transform: scaleX(1); /* Reverse the initial flip to face left */
}

@media (max-width: 768px) {
    .scroll-scooter {
        width: 30px;
        height: 22px;
        bottom: -12px;
    }
}

@media (min-width: 769px) {
    .header {
        display: none;
    }
    
    body {
        padding-top: 80px;
    }
}
