/* MENU LATERAL PRINCIPAL */
.home-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px 20px;
}

.home-sidebar {
    width: 100%;
    max-width: 340px;
    position: fixed;
    left: -360px;
    top: 0;
    bottom: 0;
    z-index: 100;
    padding: 0;
    background: transparent;
    transition: left 0.28s ease;
    overflow: hidden;
}

.home-sidebar.open {
    left: 0;
}

.home-sidebar-panel {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 0;
    padding: 24px 20px 32px 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
    border: none;
    overflow-y: auto;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.menu-button {
    position: fixed;
    top: 16px;
    left: 16px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    background: #000000;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: none;
    z-index: 200;
}

.menu-button:hover {
    background: #ffffff;
    transform: translateY(-1px);
    color: #d4a851;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: #555;
    border-radius: 2px;
}

.menu-button span+span {
    margin-top: 5px;
}

.home-sidebar.open ~ .menu-button {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8); /* Opcional: dá um efeito de diminuição ao sumir */
}

.menu-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px); /* Opcional: faz ele dar um leve deslize ao sair */
}

.home-sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.home-sidebar-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #d4a851;
    margin: 0;
}

.home-sidebar-subtitle {
    margin: 6px 0 0;
    color: #999;
    font-size: .8rem;
    line-height: 1.4;
    font-weight: 400;
}

.sidebar-close-btn {
    border: 1px solid #d4a851;
    background: transparent;
    color: #d4a851;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background: rgba(212, 168, 81, 0.15);
    border-color: #d4a851;
    color: #d4a851;
}

.home-sidebar-menu {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border-radius: 0;
    padding: 14px 0;
    text-decoration: none;
    color: #bbb;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: none;
}

.sidebar-item:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
    color: #d4a851;
}

.sidebar-item:active {
    transform: none;
}

.sidebar-item span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.94rem;
    color: #bbb;
}

.sidebar-item span i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #d4a851;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-right: 2px;
}

.sidebar-item i.icon-chevron {
    color: #d4a851;
    font-size: 0.7rem;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    flex-shrink: 0;
    margin-right: 0;
}

.home-main {
    flex: 1;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 90;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 968px) {
    .home-layout {
        flex-direction: column;
        padding-top: 20px;
    }

    .home-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        bottom: 0;
        width: 280px;
        z-index: 95;
        padding: 20px;
        background: transparent;
        transition: left 0.28s ease;
    }

    .home-sidebar.open {
        left: 0;
    }

    .home-sidebar-panel {
        height: 100%;
        overflow-y: auto;
        padding-bottom: 32px;
    }

    .home-main {
        width: 100%;
    }
}

/* ─────────────────── SUBMENUS ─────────────────── */

.sidebar-item-group {
    display: flex;
    flex-direction: column;
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid #d4a851;
}

.sidebar-submenu.open {
    display: flex;
}

.sidebar-submenu li a {
    display: block;
    padding: 10px 0 10px 12px;
    color: #888;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-submenu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #d4a851;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-submenu li a:hover {
    color: #d4a851;
    padding-left: 16px;
}

.sidebar-submenu li a:hover::before {
    opacity: 1;
}

.sidebar-item.active .icon-chevron {
    transform: rotate(180deg);
}