/* Stili per l'header */
header {
    background-color: #E1A74A;
    color: white;
    padding: 0.5rem 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Classe per nascondere COMPLETAMENTE l'header */
header.header-hidden {
    transform: translateY(-100%) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 38px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #F8F9FA;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    background-color: white;
    padding: 2px;
}

.logo-section div {
    display: flex;
    flex-direction: column;
}

.logo-section h1,
.restaurant-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 0.65rem;
    opacity: 0.9;
    font-style: italic;
    color: white;
}

/* Hamburger menu button */
.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Navigazione desktop */
nav {
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none !important;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none !important;
}

nav a,
nav a:link,
nav a:visited {
    color: white !important;
    text-decoration: none !important;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Stili per la versione mobile */
@media (max-width: 768px) {
    header {
        padding: 0.4rem 0;
    }

    .container {
        padding: 0 8px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo-section h1,
    .restaurant-name {
        font-size: 0.95rem;
    }

    .tagline {
        display: none !important;
    }

    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Hide nav menu by default on mobile */
    nav {
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #E1A74A !important;
        padding: 1rem !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
        display: none !important;
    }

    nav.show {
        display: block !important;
    }

    nav ul {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }

    nav a,
    nav a:link,
    nav a:visited {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .logo-section h1,
    .restaurant-name {
        font-size: 0.85rem;
    }
}

/* Stili per il menu a tendina su desktop */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}
