/* Fix menu mobile layout 2x2+1 perfetto */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: 50% !important;
        width: 90% !important;
        max-width: 400px !important;
        background: linear-gradient(145deg, #48717f 0%, #3a5a66 100%) !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 1.2rem !important;
        padding: 2rem 1.5rem !important;
        transform: translateX(-50%) translateY(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 9999 !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
        border: 2px solid rgba(212,175,55,0.2) !important;
    }
    
    .nav-menu.active {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .nav-menu li:nth-child(5) {
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        max-width: 150px !important;
        margin: 0 auto !important;
    }
    
    .nav-menu a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1.2rem 1rem !important;
        color: white !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%) !important;
        border-radius: 25px !important;
        text-align: center !important;
        width: 100% !important;
        min-height: 50px !important;
        text-decoration: none !important;
        box-shadow: 0 4px 15px rgba(212,175,55,0.3) !important;
        border: 2px solid rgba(255,255,255,0.2) !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .nav-menu a:hover {
        transform: translateY(-2px) scale(1.05) !important;
        box-shadow: 0 6px 20px rgba(212,175,55,0.5) !important;
        background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%) !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .nav-menu {
        width: 95% !important;
        padding: 1.5rem 1rem !important;
        gap: 1rem !important;
    }
    
    .nav-menu a {
        font-size: 0.9rem !important;
        padding: 1rem 0.8rem !important;
        min-height: 45px !important;
    }
}

/* Very small devices - mantieni 2x2+1 */
@media (max-width: 360px) {
    .nav-menu {
        grid-template-columns: 1fr 1fr !important;
        max-width: 320px !important;
        gap: 0.8rem !important;
    }
    
    .nav-menu li:nth-child(5) {
        grid-column: 1 / -1 !important;
    }
    
    .nav-menu a {
        font-size: 0.85rem !important;
        padding: 0.8rem 0.5rem !important;
        min-height: 40px !important;
    }
}/* cache-bust 1763111670 */
