/* --- 1. HEADER PRINCIPALE E NAVIGAZIONE --- */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}

.app-header .icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    color: #333;
}

.bottom-nav.inline-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.bottom-nav.inline-nav-links .nav-item {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

/* Regola blindata per il logo */
.bottom-nav.inline-nav-links .nav-item .home-logo {
    height: 35px !important;
    width: auto !important;
    max-width: 80px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 auto !important;
}

.header-right-space {
    width: 24px;
}

/* --- 2. MENU A SCOMPARSA (DRAWER) --- */
.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 2000;
    box-sizing: border-box;
    padding: 20px;
}

.drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.drawer-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.drawer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer-links li {
    margin-bottom: 15px;
}

.drawer-links li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1500;
}

.backdrop.active {
    opacity: 1;
    visibility: visible;
}