.mc-cabecalho,
.mc-cabecalho * { box-sizing: border-box; }

.mc-cabecalho {
    position: relative;
    z-index: 999;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    box-shadow: 0 2px 10px rgba(20,27,35,.05);
    font-family: Arial, Helvetica, sans-serif;
}

.mc-cabecalho__inner {
    width: calc(100vw - 150px);
    max-width: 1768px;
    min-height: 86px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 210px minmax(0,1fr) 185px;
    align-items: center;
    gap: 26px;
}

.mc-cabecalho__logo .custom-logo {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 58px;
    object-fit: contain;
}

.mc-cabecalho__menu-list,
.mc-cabecalho__menu-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mc-cabecalho__menu-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.mc-cabecalho__menu-list > li { position: relative; }

.mc-cabecalho__menu-list a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #252a2f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.mc-cabecalho__menu-list a:hover,
.mc-cabecalho__menu-list .current-menu-item > a {
    color: #f28a24;
}

.mc-cabecalho__menu-list .menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.mc-cabecalho__menu-list .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 240px;
    padding: 10px;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: 1px solid #e5e9ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(20,28,36,.14);
    transition: .18s ease;
}

.mc-cabecalho__menu-list li:hover > .sub-menu,
.mc-cabecalho__menu-list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mc-cabecalho__menu-list .sub-menu a {
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: 13px;
}

.mc-cabecalho__menu-list .sub-menu a:hover {
    background: #fff6ec;
}

.mc-cabecalho__cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    padding: 0 17px;
    border-radius: 7px;
    background: linear-gradient(180deg,#ffab3f 0%,#ff871b 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mc-cabecalho__toggle { display: none; }

@media (max-width: 1024px) {
    .mc-cabecalho__inner {
        width: calc(100vw - 48px);
        grid-template-columns: minmax(0,1fr) auto;
        min-height: 74px;
    }

    .mc-cabecalho__toggle {
        width: 42px;
        height: 42px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid #dfe4e7;
        border-radius: 7px;
        background: #fff;
    }

    .mc-cabecalho__toggle span {
        width: 20px;
        height: 2px;
        background: #23282d;
    }

    .mc-cabecalho__nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px;
        background: #fff;
        box-shadow: 0 14px 26px rgba(20,28,36,.14);
    }

    .mc-cabecalho.is-open .mc-cabecalho__nav { display: block; }

    .mc-cabecalho__menu-list { display: block; }

    .mc-cabecalho__menu-list a {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
    }

    .mc-cabecalho__menu-list .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px 14px;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border: 0;
        box-shadow: none;
    }

    .mc-cabecalho__menu-list .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .mc-cabecalho__cta { display: none; }
}

@media (max-width: 767px) {
    .mc-cabecalho__inner { width: calc(100vw - 24px); }
}


/* Cabeçalho com identidade visual Mamborê Conecta — v1.1.0 */
.mc-cabecalho{
    background:#f6b45f!important;
    border-bottom:1px solid rgba(106,65,18,.12)!important;
    box-shadow:0 3px 12px rgba(94,58,17,.10)!important;
}
.mc-cabecalho__inner{
    min-height:88px!important;
    grid-template-columns:220px minmax(0,1fr) 190px!important;
}
.mc-cabecalho__logo-link{
    display:inline-flex!important;
    align-items:center!important;
    text-decoration:none!important;
}
.mc-cabecalho__logo-image{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:205px!important;
    max-height:64px!important;
    object-fit:contain!important;
}
.mc-cabecalho__menu-list a{
    color:#171717!important;
    font-weight:700!important;
}
.mc-cabecalho__menu-list a:hover,
.mc-cabecalho__menu-list .current-menu-item>a,
.mc-cabecalho__menu-list .current-menu-ancestor>a{
    color:#d95f00!important;
}
.mc-cabecalho__cta{
    background:#171717!important;
    color:#fff!important;
    box-shadow:0 4px 12px rgba(0,0,0,.18)!important;
}
.mc-cabecalho__toggle{
    border-color:rgba(38,38,38,.25)!important;
    background:rgba(255,255,255,.72)!important;
}
@media(max-width:1024px){
    .mc-cabecalho__inner{
        min-height:76px!important;
        grid-template-columns:minmax(0,1fr) auto!important;
    }
    .mc-cabecalho__logo-image{
        max-width:185px!important;
        max-height:56px!important;
    }
}
@media(max-width:767px){
    .mc-cabecalho__logo-image{
        max-width:165px!important;
        max-height:50px!important;
    }
}


/* =========================================================
   MENU DINÂMICO POR CATEGORIAS — v1.2.0
   ========================================================= */

.mc-cabecalho__menu-list .sub-menu {
    max-height: 430px;
    overflow-y: auto;
}

.mc-cabecalho__menu-list .sub-menu::-webkit-scrollbar {
    width: 7px;
}

.mc-cabecalho__menu-list .sub-menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(217, 95, 0, .28);
}


/* =========================================================
   MENU DINÂMICO — ALIMENTAÇÃO + LOGO TRANSPARENTE v1.3.0
   ========================================================= */

.mc-cabecalho__menu-list {
    gap: 18px !important;
}

.mc-cabecalho__menu-list a {
    font-size: 13px !important;
}


/* =========================================================
   MEGA MENU DESKTOP — v1.4.0
   ========================================================= */

@media (min-width: 1025px) {
    .mc-cabecalho__has-mega {
        position: static !important;
    }

    .mc-cabecalho__has-mega > .mc-cabecalho__mobile-submenu {
        display: none !important;
    }

    .mc-cabecalho__mega {
        position: absolute;
        z-index: 80;
        top: 100%;
        left: 50%;
        width: min(1480px, calc(100vw - 80px));
        padding-top: 14px;
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .mc-cabecalho__has-mega:hover > .mc-cabecalho__mega,
    .mc-cabecalho__has-mega:focus-within > .mc-cabecalho__mega {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .mc-cabecalho__mega-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr)) 250px;
        gap: 0;
        padding: 18px;
        border: 1px solid #e5e9ec;
        border-radius: 0 0 14px 14px;
        background: #ffffff;
        box-shadow: 0 18px 38px rgba(20, 28, 36, .16);
    }

    .mc-cabecalho__mega-column {
        min-width: 0;
        padding: 2px 22px 8px;
        border-right: 1px solid #edf0f2;
    }

    .mc-cabecalho__mega-column:nth-last-child(2) {
        border-right: 0;
    }

    .mc-cabecalho__mega-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
    }

    .mc-cabecalho__mega-heading > a {
        min-height: 0 !important;
        color: #0f5a42 !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        white-space: normal !important;
    }

    .mc-cabecalho__mega-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: #eef8f2;
        color: #16805d;
    }

    .mc-cabecalho__mega-icon svg {
        width: 22px;
        height: 22px;
    }

    .mc-cabecalho__mega-column ul {
        margin: 0 0 10px;
        padding: 0;
        list-style: none;
    }

    .mc-cabecalho__mega-column li {
        margin: 0;
    }

    .mc-cabecalho__mega-column li a {
        width: 100%;
        min-height: 30px !important;
        color: #51575d !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        white-space: normal !important;
    }

    .mc-cabecalho__mega-column li a:hover {
        color: #d95f00 !important;
    }

    .mc-cabecalho__mega-all {
        min-height: 28px !important;
        color: #0f5a42 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    .mc-cabecalho__mega-promo {
        min-height: 196px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 24px;
        border-radius: 10px;
        background: linear-gradient(145deg, #0b5f42 0%, #0d4a36 100%);
        color: #ffffff;
    }

    .mc-cabecalho__mega-promo strong {
        margin-bottom: 14px;
        font-size: 21px;
        line-height: 1.25;
        font-weight: 800;
    }

    .mc-cabecalho__mega-promo span {
        color: #ff9b2f;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 700;
    }
}

@media (max-width: 1450px) and (min-width: 1025px) {
    .mc-cabecalho__mega-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) 220px;
    }

    .mc-cabecalho__mega-column:nth-of-type(n+5) {
        display: none;
    }
}


/* =========================================================
   REFINAMENTO VISUAL DO MEGA MENU — v1.5.0
   ========================================================= */

.mc-cabecalho__inner {
    grid-template-columns: 275px minmax(0, 1fr) 190px !important;
}

.mc-cabecalho__logo-image {
    max-width: 255px !important;
    max-height: 72px !important;
}

.mc-cabecalho__mega-heading > a,
.mc-cabecalho__mega-column li a,
.mc-cabecalho__mega-all {
    color: #2F2F37 !important;
}

.mc-cabecalho__mega-icon {
    background: rgba(243, 178, 101, .22) !important;
    color: #F27137 !important;
}

.mc-cabecalho__mega-heading > a:hover,
.mc-cabecalho__mega-column li a:hover {
    color: #F27137 !important;
}

.mc-cabecalho__mega-promo {
    background: linear-gradient(145deg, #2F2F37 0%, #17171b 100%) !important;
    color: #ffffff !important;
}

.mc-cabecalho__mega-promo span {
    color: #F3B265 !important;
}

.mc-cabecalho__mega-grid {
    border-top: 4px solid #F27137 !important;
}

@media (max-width: 1350px) {
    .mc-cabecalho__inner {
        grid-template-columns: 235px minmax(0, 1fr) 175px !important;
    }

    .mc-cabecalho__logo-image {
        max-width: 220px !important;
        max-height: 66px !important;
    }
}

@media (max-width: 1024px) {
    .mc-cabecalho__inner {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    .mc-cabecalho__logo-image {
        max-width: 210px !important;
        max-height: 60px !important;
    }
}


/* =========================================================
   CORREÇÕES DO CABEÇALHO E MEGA MENU — v1.6.0
   ========================================================= */

/* Logo oficial transparente, maior e sem caixa branca */
.mc-cabecalho__logo,
.mc-cabecalho__logo-link {
    background: transparent !important;
}

.mc-cabecalho__logo-link {
    width: 100% !important;
    overflow: visible !important;
}

.mc-cabecalho__logo-image {
    width: 270px !important;
    max-width: 270px !important;
    max-height: 76px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Mega menu: conteúdo à esquerda e quadro promocional fixo à direita */
@media (min-width: 1025px) {
    .mc-cabecalho__mega-grid {
        grid-template-columns: minmax(0, 1fr) 250px !important;
        align-items: stretch !important;
        gap: 18px !important;
    }

    .mc-cabecalho__mega-columns {
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        align-content: start !important;
        gap: 0 !important;
    }

    .mc-cabecalho__mega-column {
        padding: 4px 20px 14px !important;
    }

    .mc-cabecalho__mega-promo {
        position: sticky !important;
        top: 18px !important;
        align-self: start !important;
        width: 250px !important;
        min-height: 220px !important;
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    .mc-cabecalho__mega-heading > a {
        font-size: 15px !important;
        line-height: 1.25 !important;
        font-weight: 750 !important;
    }

    .mc-cabecalho__mega-column li a {
        min-height: 34px !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 1450px) and (min-width: 1025px) {
    .mc-cabecalho__mega-grid {
        grid-template-columns: minmax(0, 1fr) 225px !important;
    }

    .mc-cabecalho__mega-columns {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .mc-cabecalho__mega-column:nth-of-type(n+5) {
        display: block !important;
    }

    .mc-cabecalho__mega-promo {
        width: 225px !important;
    }
}

@media (max-width: 1350px) {
    .mc-cabecalho__logo-image {
        width: 235px !important;
        max-width: 235px !important;
        max-height: 68px !important;
    }
}

@media (max-width: 1024px) {
    .mc-cabecalho__logo-image {
        width: 215px !important;
        max-width: 215px !important;
        max-height: 62px !important;
    }
}


/* =========================================================
   CORREÇÃO DE PERMANÊNCIA DO MEGA MENU — v1.6.2
   ========================================================= */

@media (min-width: 1025px) {
    .mc-cabecalho__has-mega::after {
        content: "";
        position: absolute;
        z-index: 79;
        left: 0;
        right: 0;
        top: 100%;
        height: 18px;
        background: transparent;
    }

    .mc-cabecalho__mega {
        top: calc(100% - 1px) !important;
        padding-top: 14px !important;
    }

    .mc-cabecalho__has-mega.is-mega-open > .mc-cabecalho__mega {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}


/* =========================================================
   MENU MOBILE OFF-CANVAS — v1.7.0
   Desktop permanece inalterado.
   ========================================================= */

.mc-cabecalho__overlay,
.mc-cabecalho__mobile-top,
.mc-cabecalho__mobile-cta,
.mc-cabecalho__close {
    display: none;
}

@media (max-width: 1024px) {
    body.mc-menu-mobile-open {
        overflow: hidden !important;
    }

    .mc-cabecalho {
        z-index: 99999 !important;
    }

    .mc-cabecalho__overlay {
        position: fixed;
        inset: 0;
        z-index: 99990;
        display: block;
        background: rgba(0, 0, 0, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .mc-cabecalho.is-open .mc-cabecalho__overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mc-cabecalho__nav {
        position: fixed !important;
        z-index: 99999 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(88vw, 390px) !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: -18px 0 40px rgba(0, 0, 0, .18) !important;
        transform: translateX(105%) !important;
        transition: transform .24s ease !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
    }

    .mc-cabecalho.is-open .mc-cabecalho__nav {
        transform: translateX(0) !important;
    }

    .mc-cabecalho__mobile-top {
        min-height: 74px;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid #eceff1;
        background: #f6b45f;
    }

    .mc-cabecalho__mobile-top strong {
        color: #2f2f37;
        font-size: 20px;
        font-weight: 800;
    }

    .mc-cabecalho__close {
        width: 40px;
        height: 40px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: rgba(255,255,255,.65);
        color: #2f2f37;
        font-size: 30px;
        line-height: 1;
        cursor: pointer;
    }

    .mc-cabecalho__menu-list {
        display: block !important;
        flex: 1 1 auto;
        padding: 10px 16px 16px !important;
    }

    .mc-cabecalho__menu-list > li {
        border-bottom: 1px solid #edf0f2 !important;
    }

    .mc-cabecalho__menu-list > li:last-child {
        border-bottom: 0 !important;
    }

    .mc-cabecalho__menu-list > li > a {
        width: 100% !important;
        min-height: 54px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 8px !important;
        color: #2f2f37 !important;
        font-size: 16px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        white-space: normal !important;
    }

    .mc-cabecalho__menu-list .menu-item-has-children > a::after {
        width: 8px !important;
        height: 8px !important;
        margin-left: 10px !important;
        transform: rotate(45deg) !important;
        transition: transform .18s ease !important;
    }

    .mc-cabecalho__menu-list .menu-item-has-children.is-open > a::after {
        transform: rotate(225deg) translate(-1px, -1px) !important;
    }

    .mc-cabecalho__menu-list .sub-menu,
    .mc-cabecalho__mobile-submenu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 0 10px 10px !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .mc-cabecalho__menu-list .menu-item-has-children.is-open > .sub-menu,
    .mc-cabecalho__menu-list .menu-item-has-children.is-open > .mc-cabecalho__mobile-submenu {
        display: block !important;
    }

    .mc-cabecalho__menu-list .sub-menu li {
        border: 0 !important;
    }

    .mc-cabecalho__menu-list .sub-menu a {
        width: 100% !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        padding: 7px 10px 7px 16px !important;
        border-left: 3px solid #f3b265 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #50545a !important;
        font-size: 14px !important;
        line-height: 1.35 !important;
        font-weight: 500 !important;
        white-space: normal !important;
    }

    .mc-cabecalho__menu-list .sub-menu a:hover {
        color: #f27137 !important;
        background: #fff7ed !important;
    }

    .mc-cabecalho__mega {
        display: none !important;
    }

    .mc-cabecalho__mobile-cta {
        min-height: 50px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin: 14px 16px 22px;
        padding: 0 18px;
        border-radius: 8px;
        background: #2f2f37;
        color: #ffffff;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
    }

    .mc-cabecalho__toggle {
        position: relative;
        z-index: 2;
    }
}

/* =========================================================
   CORREÇÃO FINAL — MEGA MENU SEM CORTAR CATEGORIAS — v1.7.1
   Mantém todas as colunas visíveis e permite rolagem quando
   o conteúdo ultrapassar a altura disponível do navegador.
   ========================================================= */

@media (min-width: 1025px) {

    /* Nenhum elemento do cabeçalho pode recortar o mega menu. */
    .mc-cabecalho,
    .mc-cabecalho__inner,
    .mc-cabecalho__nav,
    .mc-cabecalho__menu-list,
    .mc-cabecalho__menu-list > li,
    .mc-cabecalho__has-mega {
        overflow: visible !important;
    }

    /* Mantém todas as colunas/categorias renderizadas. */
    .mc-cabecalho__mega-column,
    .mc-cabecalho__mega-column:nth-of-type(n+5) {
        display: block !important;
    }

    /* O painel continua abrindo abaixo do cabeçalho. */
    .mc-cabecalho__mega {
        max-height: calc(100vh - 88px) !important;
        overflow: visible !important;
    }

    /*
     * Quando houver muitas subcategorias, o conteúdo não é
     * cortado: a rolagem acontece dentro do próprio mega menu.
     */
    .mc-cabecalho__mega-grid {
        max-height: calc(100vh - 105px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(242, 113, 55, .55) transparent;
    }

    .mc-cabecalho__mega-grid::-webkit-scrollbar {
        width: 8px;
    }

    .mc-cabecalho__mega-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .mc-cabecalho__mega-grid::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(242, 113, 55, .55);
    }

    .mc-cabecalho__mega-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(242, 113, 55, .8);
    }

    /*
     * Impede que listas extensas de uma categoria sejam
     * limitadas por regras antigas de submenus convencionais.
     */
    .mc-cabecalho__mega-column ul,
    .mc-cabecalho__mega-column .sub-menu {
        max-height: none !important;
        overflow: visible !important;
    }

    /* O quadro promocional continua visível durante a rolagem. */
    .mc-cabecalho__mega-promo {
        position: sticky !important;
        top: 0 !important;
    }
}

/* =========================================================
   MEGA MENU — TODOS OS ITENS DA TAXONOMIA — v1.7.2
   O PHP agora não limita mais a 25 categorias.
   Este bloco apenas garante exibição e rolagem no desktop.
   ========================================================= */
@media (min-width: 1025px) {
    .mc-cabecalho__mega-grid {
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .mc-cabecalho__mega-columns {
        align-content: start !important;
    }

    .mc-cabecalho__mega-column,
    .mc-cabecalho__mega-column:nth-of-type(n+5) {
        display: block !important;
    }
}


/* =========================================================
   RENDERIZAÇÃO GLOBAL E PADRONIZAÇÃO — v1.8.0
   ========================================================= */
html body > .mc-cabecalho{
    position:relative!important;
    left:auto!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
}

html body > .mc-cabecalho .mc-cabecalho__inner{
    width:calc(100% - 150px)!important;
    max-width:1768px!important;
    min-height:88px!important;
    margin:0 auto!important;
    padding:0!important;
    grid-template-columns:220px minmax(0,1fr) 190px!important;
    gap:26px!important;
}

html body > .mc-cabecalho .mc-cabecalho__logo-image{
    width:auto!important;
    height:auto!important;
    max-width:205px!important;
    max-height:64px!important;
}

/* O shortcode antigo não deve gerar altura nem faixa branca. */
.mc-cabecalho-shortcode-placeholder{
    display:none!important;
    width:0!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
}
.elementor-widget-shortcode:has(.mc-cabecalho-shortcode-placeholder),
.elementor-widget-container:has(> .mc-cabecalho-shortcode-placeholder){
    display:none!important;
    min-height:0!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
}

@media(max-width:1024px){
    html body > .mc-cabecalho .mc-cabecalho__inner{
        width:calc(100% - 48px)!important;
        min-height:76px!important;
        grid-template-columns:minmax(0,1fr) auto!important;
    }
}

@media(max-width:767px){
    html body > .mc-cabecalho .mc-cabecalho__inner{
        width:calc(100% - 24px)!important;
    }
}

/* =========================================================
   CORREÇÃO ADAPTATIVA DA HOME — v1.8.1
   A classe é aplicada pelo JS apenas quando o cabeçalho é
   efetivamente renderizado menor que o padrão de 88 px.
   ========================================================= */
@media (min-width: 1025px) {
    body.home > .mc-cabecalho.mc-cabecalho--home-compensated,
    body.front-page > .mc-cabecalho.mc-cabecalho--home-compensated {
        transform-origin: top left !important;
        max-width: none !important;
    }
}

/* Garante que qualquer invólucro antigo do shortcode seja totalmente recolhido. */
.mc-cabecalho-shortcode-placeholder,
.mc-cabecalho-shortcode-placeholder:empty {
    display: none !important;
}


/* =========================================================
   NORMALIZAÇÃO REAL ENTRE PÁGINAS — v1.8.2
   ========================================================= */
@media (min-width:1025px){
    html body > .mc-cabecalho.mc-cabecalho--size-normalized{
        transform-origin:top left!important;
        max-width:none!important;
    }
}

/* O Hero da Home deve encostar no cabeçalho. O JS mede e remove
   qualquer espaço adicional criado por Elementor/Astra. */
.elementor-element:has(.mc-home-hero),
.e-con:has(.mc-home-hero),
.elementor-section:has(.mc-home-hero),
.elementor-widget-shortcode:has(.mc-home-hero),
.elementor-widget-shortcode:has(.mc-home-hero)>.elementor-widget-container{
    padding-top:0!important;
}

/* =========================================================
   ÍCONES DA BIBLIOTECA DE CATEGORIAS — v1.8.3
   Usa o campo ACF "icone_categoria" e mantém o SVG atual
   como fallback automático quando o campo estiver vazio.
   ========================================================= */

.mc-cabecalho__mega-icon-image{
    display:block !important;
    width:22px !important;
    height:22px !important;
    max-width:22px !important;
    max-height:22px !important;
    object-fit:contain !important;
}

