/* Menu laterale — drawer fisso, nascosto finché non aperto */

.side-menu-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.side-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.32);
}

.side-menu-toggle:focus-visible {
    outline: 2px solid #ffcc00;
    outline-offset: 2px;
}

.side-menu-toggle-icon {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.header-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.header-top .side-menu-toggle {
    margin-top: 0;
}

.header-top-content {
    flex: 1;
    min-width: 0;
}

.restaurant-detail-page .header .container {
    display: block;
}

.restaurant-detail-page .header-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

.restaurant-detail-page .header-top .back-link {
    margin-bottom: 4px;
}

.restaurant-detail-page .header-top .page-detail-title {
    margin: 0;
}

/* Overlay */
.side-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.side-menu-backdrop.is-visible {
    display: block;
    opacity: 1;
}

/* Pannello drawer */
.side-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9010;
    width: min(300px, 88vw);
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #f3e8ff;
    color: #1f2333;
    box-shadow: 4px 0 24px rgba(101, 32, 182, 0.35);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s ease, visibility 0.32s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-menu-panel.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.side-menu-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 14px 12px 18px;
    background: #6520b6;
    color: #fff;
    flex-shrink: 0;
}

.side-menu-title {
    margin: 0;
    font-size: 1.21rem;
    font-weight: 700;
}

.side-menu-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.side-menu-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.side-menu-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 14px 10px;
}

/* Più grande del testo <p> globale (typography.css ≈ 1.31rem) */
.side-menu-panel .side-menu-intro {
    margin: 0 0 14px;
    font-size: 1.52rem;
    line-height: 1.55;
    color: #3e4560;
}

.side-menu-suggest-btn {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 11px 14px;
    border: 0;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    background: #6520b6;
    color: #fff;
    box-shadow: 3px 4px 10px rgba(101, 32, 182, 0.28);
}

.side-menu-suggest-btn:hover {
    background: #53189a;
}

.side-menu-intro--feature {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed #e9d5ff;
}

.side-menu-feature-btn {
    background: #0d9488;
    box-shadow: 3px 4px 10px rgba(13, 148, 136, 0.28);
}

.side-menu-feature-btn:hover {
    background: #0f766e;
}

.side-menu-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: #991b1b;
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.side-menu-link:hover {
    background: #fee2e2;
}

#modal-suggest-restaurant.modal-backdrop,
#modal-feature-request.modal-backdrop {
    z-index: 9200;
}

.modal-suggest {
    width: min(480px, 100%);
    max-height: 92vh;
    overflow-y: auto;
}

.side-menu-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 16px 14px 20px;
    text-align: center;
    border-top: 1px solid #e9d5ff;
    background: #faf8ff;
}

.side-menu-copyright {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: #3e4560;
}

.side-menu-rights {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    color: #616985;
}

body.side-menu-open {
    overflow: hidden;
}

.profile-page .header .intro {
    margin: 0;
    font-size: 1.21rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}
