@media screen and (max-width: 1366px) {
    #footer .content .box-2 {
        margin-right: 8.8%;
    }
    #footer .content .box-3 {
        margin-right: 7.5%;
    }
}

@media screen and (max-width: 1200px) {
    header .header-top .esq a, header .header-top a.middle, header .header-top .dir .telefone, header > .content #menu-principal li a  {
        font-size: 12px;
    }
    header > .content .dir .fale-conosco {
        width: 167px;
        height: 35px;
        font-size: 12px;
    }

    header .custom-logo-link {
        width: 75%;
        display: inline-block;
    }
    header > .content .middle {
        column-gap: 24px;
    }
    #footer .content .box-2 {
        margin-right: 3.8%;
    }
    #footer .content .box-3 {
        margin-right: 3.5%;
    }

    header .sub-menu {
        bottom: -157px;
    }
}

@media screen and (max-width: 1080px) {
    #footer .content .box-1 {
        margin-right: 3%;
    }
    header .header-top .dir {
        column-gap: 5px;
    }
}

@media screen and (max-width: 1024px) {
    #footer > .content {
        flex-direction: column;
        row-gap: 30px;
        padding-bottom: 32px;
    }

    #footer {
        background-image: url(../lp_mercados_autonomos/files/touchpay-bg-footer-mobile.webp);
        background-size: auto;
        background-position: right;
        background-color: #151515;
    }

    #footer .footer-bottom {
        height: auto;
        background: #161616;
    }

    #footer .footer-bottom .content {
        flex-direction: column;
        padding: 30px 0;

    }

    #footer .footer-bottom .content .texto, #footer .footer-bottom .content .texto a {
        text-align: center;
        line-height: 26px;

    }

    header .header-top .esq a {
        text-align: center;
    }

    header .header-top {
        position: absolute;
        top: 0;
        left: 0;

    }

    header > .content .redes-sociais-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 15px;
    }

    header > .content .redes-sociais-mobile  .svg {
        width: 18px;
        height: 18px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        transition: 0.2s all ease-in-out;
    }

    header > .content .redes-sociais-mobile .contatos {
        height: auto;
        flex-direction: column;
        align-items: center;
        row-gap: 24px;
        position: absolute;
        bottom: 90px;
        width: 90%;
    }

    header > .content .redes-sociais-mobile .dir {
        border-bottom: 1px solid var(--vermelho);
        padding-bottom: 57px;
    }

    header > .content .redes-sociais-mobile .svg {
        position: relative;
        mask: unset !important;
        opacity: 1 !important;
        width: 36px;
        height: 36px;
        border-radius: 7px;
        background-image: linear-gradient(-85deg, #cb336b 0%, #df372f 100%);
        align-items: center;
    }

    header > .content .redes-sociais-mobile .redes_sociais div {
        display: flex;
        column-gap: 17px;
        align-items: flex-end;

    }


    header > .content .redes-sociais-mobile .texto {
        text-align: center;
        margin-bottom: 15px;
    }

    header > .content .redes-sociais-mobile .separador {
        width: 219px;
        height: 2px;
    }

    header > .content .redes-sociais-mobile .telefone {
        padding-bottom: 30px;
    }

    header > .content .redes-sociais-mobile .telefone svg {
        filter: brightness(0) saturate(100%)
    }

    header > .content .redes-sociais-mobile .svg::before {
        width: 20px;
        height: 20px;
        filter: invert(1);
        position: absolute;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    header > .content .redes-sociais-mobile .svg.facebook::before {
        content: '';
        background-image: url(../lp_mercados_autonomos/files/facebook.svg);
    }

    header > .content .redes-sociais-mobile .svg.instagram::before {
        content: '';
        background-image: url(../lp_mercados_autonomos/files/instagram.svg);
    }

    header > .content .redes-sociais-mobile .svg.linkedin::before {
        content: '';
        background-image: url(../lp_mercados_autonomos/files/linkedin.svg);
    }

    header > .content .redes-sociais-mobile .svg.youtube::before {
        content: '';
        background-image: url(../lp_mercados_autonomos/files/youtube.svg);

    }

    header > .content .redes-sociais-mobile .svg.tiktok::before {
        content: '';
        background-image: url(../lp_mercados_autonomos/files/tiktok.svg);
    }

    header > .content .redes-sociais-mobile .telefone a {
        font-size: 18px;
        font-weight: 400;
        color: #242323;
        font-weight: 600;
        display: flex;
        align-items: center;
        column-gap: 10px;
    }

    header .header-top .dir, header .header-top .operadores {
        display: none !important;
    }

    header .header-top .content {
        justify-content: center;
    }

    header .logo-mobile {
        display: block;
        z-index: 123;
    }

    header > .content .esq {
        display: none;
    }

    header {
        padding: 0 5%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 62px;
        margin-bottom: 0;
        position: relative;
    }

    header > .content::before {
        content: '';
        width: 90%;
        padding: 0 5%;
        height: 2px;
        background-color: #d9d9d966;
        position: fixed;
        top: 142px;
    }

    header > .content #menu-principal {
        flex-direction: column;
        row-gap: 15px;
        width: 352px;
        max-width: 90%;
    }
    header > .content {
        position: fixed;
        height: calc(100% - 82px);
        width: 100%;
        top: 140px;
        right: -100%;
        max-width: 100%;
        background: #fff;
        z-index: 100;
        transition: 0.5s all ease-in-out;
        align-items: center;
        flex-direction: column;
        justify-content: flex-start;
        padding: 30px 0;
        padding-top: 30px;
        padding-bottom: 60px;
        overflow: auto;
    }

    header > .content .middle {
        width: 100%;
        justify-content: center;
    }

    header .menu-principal-container {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    header > .content #menu-principal li a {
        font-weight: 600;
    }

    header > .content.aberto {
        right: 0;
    }

    header  .menu-hamburger {
        width: 60px;
        background: linear-gradient(305deg, rgba(204,51,107,1) 14%, rgba(223,56,48,1) 36%, rgba(96,93,182,1) 100%);
        height: 60px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        row-gap: 5px;
        flex-direction: column;
        z-index: 101;
    }

    header  .menu-hamburger .hamburger {
        background-color: #fff;
        height: 4px;
    }

    header  .menu-hamburger .hamburger.linha-01, header  .menu-hamburger .hamburger.linha-02 {
        background-color: #fff;
        height: 4px;
        width: 41.7%;
    }


    header  .menu-hamburger .hamburger.linha-03 {
        background-color: #fff;
        height: 4px;
        width: 21.7%;
        margin-left: 20%;
    }


    #footer .content .svg {
        opacity: 1;
    }


    header #searchsubmit {
        display: none ;
    }

    header #menu-principal > li {
        width: 100%;
        border: 1px solid #ececec;
        border-radius: 30px;
        padding: 15px 30px;
        background-color: #fff;
    }

    header #menu-principal > li.li-ativo {
        border: 1px solid var(--vermelho);
    }

    header #menu-principal > li.li-ativo > a{
        color: var(--vermelho);
    }


    header #menu-principal > li.li-ativo > a::before{
        filter: brightness(0) saturate(100%) invert(30%) sepia(83%) saturate(4746%) hue-rotate(338deg) brightness(98%) contrast(87%);
    }


    header .sub-menu::before {
        display: none;
    }
    header > .content .dir .fale-conosco {
        width: 351px;
        max-width: 90%;
        margin-top: 15px;
        justify-content: flex-start;
        height: 48px;
        padding-left: 30px;
    }

    header > .content #menu-principal > li > a {
        padding: 0;
        display: flex;
        column-gap: 20px;
        align-items: center;
    }

    header .dir {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 40px;
    }

    header .sub-menu {
        display: none !important;
        position: unset;
        transition: 0.2s all ease-in-out;
        flex-direction: column;
        border: none;
        padding: 0;
        padding-left: 15px;
        border-radius: 0;
        border-left: 2px solid var(--vermelho);
        margin-left: 14px;
        width: 100%;
        margin-top: 20px;
     }

     header .sub-menu li {
        border-bottom: 2px solid #ebebeb;
     }

     header .ver-minimercado, header .ver-touchpay {
        display: block !important;
    }

    header .sub-menu.sub-ativo {
        display: flex !important;
     }

    header .menu-principal-container::before {
        display: none;
    }

    header > .content #menu-principal li.has-submenu::after {
        display: none;
    }

    header > .content #menu-principal li.has-submenu > a::after {
        content: '';
        background-image: url(../lp_mercados_autonomos/files/arrow-down.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 10px;
        height: 10px;
        display: inline-block;
        margin-left: 5px;
        margin-left: -10px;
    }

    header > .content #menu-principal li.has-submenu >a {
        pointer-events: none;
    }

    header > .content #menu-principal > li > a::before {
        content: '';
        width: 28px;
        height: 28px;
        position: relative;
        left: 0;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header li.quem-somos > a::before {
        background-image: url(../lp_mercados_autonomos/files/ico-quem-somos.svg);
    }

    header li.mini > a::before {
        background-image: url(../lp_mercados_autonomos/files/ico-mercado.svg);
    }

    header li.touch > a::before {
        background-image: url(../lp_mercados_autonomos/files/ico-gestao.svg);
    }

    header li.clientes > a::before {
        background-image: url(../lp_mercados_autonomos/files/ico-clientes.svg);
    }

    header li.blog > a::before {
        background-image: url(../lp_mercados_autonomos/files/ico-blog.svg);
    }

    html.trava-scroll {
        overflow: hidden;
    }


}
/* @media screen and (max-width: 1024px) and (max-height: 645px) {
    header > .content {
        top: 82px;
        overflow: auto;
        height: calc(100% - 82px);
    }

    header {
        padding-top: 22px;
        margin-top: 0;
    }

    header > .content .middle {
        margin-top: 0;
    }

    header > .content {
        justify-content: flex-start;
    }
} */