/* =====================================================
   DIGITALWAY MENU HAMBURGER - v1.2
   ===================================================== */

#dw-hamburger-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999999;
    width: 46px;
    height: 46px;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

#dw-hamburger-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
}

#dw-hamburger-button.dw-open {
    opacity: 0;
    pointer-events: none;
}

/* O menu é escondido com transform, não com left.
   Assim não fica nenhuma faixa branca visível. */
#dw-hamburger-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    height: 100vh;
    z-index: 999998;
    background: #fff;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-sizing: border-box;
}

#dw-hamburger-menu.dw-open {
    transform: translateX(0);
}

.dw-hamburger-inner {
    padding: 25px 34px 30px;
    box-sizing: border-box;
}

.dw-menu-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 35px;
}

#dw-menu-close {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0,0,0,.12);
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#dw-menu-close span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-2px);
}

.dw-home-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.dw-home-link:hover {
    opacity: .65;
}

.dw-home-icon {
    font-size: 21px;
    line-height: 1;
}

#dw-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

#dw-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#dw-menu li a {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 10px 0;
    color: #2b2b2b;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

#dw-menu li a:hover {
    opacity: .65;
}

.dw-menu-icon {
    width: 38px;
    min-width: 38px;
    margin-right: 12px;
    font-size: 23px;
    line-height: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dw-menu-label {
    display: block;
}

#dw-menu .sub-menu {
    margin: 0;
    padding: 0 0 0 15px;
    list-style: none;
}

#dw-menu .sub-menu .dw-menu-icon {
    width: 30px;
    min-width: 30px;
    font-size: 19px;
}

#dw-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999997;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease;
}

#dw-menu-overlay.dw-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 767px) {

    #dw-hamburger-button {
        top: 12px;
        left: 12px;
    }

    #dw-hamburger-menu {
        width: 85%;
        max-width: 340px;
    }

    .dw-hamburger-inner {
        padding: 25px 25px 30px;
    }

    #dw-menu li a {
        font-size: 17px;
    }
}
