/* O cabeçalho desktop mantém o layout do tema. No mobile, logo e botão cabem na mesma linha. */
@media only screen and (max-width: 1024px) {
    #header .header_mid {
        height: auto !important;
    }

    #header .header_mid .header_mid_inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        height: auto;
        min-height: 100px;
        padding: 10px 20px;
    }

    #header .header_mid .header_mid_inner .logo_wrap {
        flex: 0 0 88px;
        width: 88px;
        height: 80px;
        float: none;
        margin: 0;
    }

    #header .header_mid .header_mid_inner .logo_wrap:after {
        content: none;
    }

    #header .header_mid .header_mid_inner .logo_wrap .logo {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    #header .header_mid .header_mid_inner .logo_wrap .logo img:first-of-type {
        position: static;
        display: block !important;
        width: auto;
        height: 80px !important;
        max-width: 88px;
        max-height: 80px;
        object-fit: contain;
    }

    #header .header_mid .header_mid_inner .resp_mid_nav_wrap {
        display: flex;
        align-items: center;
        float: none;
        height: 46px;
        margin: 0;
    }

    #header .header_mid .header_mid_inner .resp_mid_nav_outer {
        height: 46px;
    }

    #header .header_mid .header_mid_inner .mid_nav_wrap {
        flex: 0 0 calc(100% + 40px);
        width: calc(100% + 40px);
        height: auto;
        margin: 0 -20px;
    }

    /* Neutraliza o display:flex inicial; o JavaScript do tema continua alternando block/none. */
    #header .header_mid .mid_nav_wrap nav[style*="display: flex"],
    #header .header_mid .mid_nav_wrap nav[style*="display:flex"] {
        display: none !important;
    }
}
