.ef-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: black;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.15s linear;
}

.ef-header__container {
    width: 100%;
    max-width: 1224px;
    margin: 0 auto;
    padding: 6px 16px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
    align-items: center;
    gap: 32px;
}

.ef-header__menu .submenu-arrow svg {
    width: 14px;
    height: 14px;
}

.ef-mobile-menu .submenu-arrow svg {
    width: 14px;
    height: 14px;
}

.ef-header__logo img {
    width: 43px;
    height: 43px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.ef-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ef-header__menu {
    display: flex;
    align-items: center;
    gap: 31px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ef-header__menu>li {
    position: relative;
}

.ef-header__menu>li>a,
.submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.submenu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.block-header-item__mobile-dropdown-trigger:checked~.block-header-item__label .submenu-arrow {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 360px;
    max-width: 420px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 14px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 6px 14px 0px;
    z-index: 99999;
}

.sub-menu li a {
    display: block;
    padding: 12px 18px;
}

.menu-item-has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.menu-item-has-children {
    position: relative;
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease;
}

.sub-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ef-gold-base);
}

.ef-header__socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ef-header__socials a,
.social-icons__link {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 1;
    transition: none;
    text-decoration: none;
}

.ef-header__socials a:hover,
.social-icons__link:hover {
    opacity: 1;
    transform: none;
}

.ef-header__socials svg,
.ef-mobile-menu__socials svg,
.social-icons__link svg {
    width: 24px;
    height: 24px;
    display: block;
}

.ef-header__search {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ef-header__search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(var(--ef-gold-rgb), 0.72);
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.9);
    color: var(--ef-gold-base);
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ef-header__search-toggle:hover,
.ef-header__search-toggle:focus-visible,
.ef-header__search[data-search-open="true"] .ef-header__search-toggle {
    background: rgba(var(--ef-gold-rgb), 0.14);
    border-color: var(--ef-gold-base);
    color: #fff;
    transform: translateY(-1px);
}

.ef-header__search-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

.ef-header__search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 100001;
    width: min(430px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(var(--ef-gold-rgb), 0.28);
    border-radius: 18px;
    background: #000;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}

.ef-header__search-panel[hidden] {
    display: none;
}

.ef-header__search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ef-gold-base);
}

.ef-header__search-field:focus-within {
    border-color: rgba(var(--ef-gold-rgb), 0.78);
}

.ef-header__search-field svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ef-header__search-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.ef-header__search-field input::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.ef-header__search-count {
    margin: 12px 4px 8px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.3;
}

.ef-header__search-results {
    max-height: min(52vh, 360px);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-color: rgba(var(--ef-gold-rgb), 0.72) transparent;
    scrollbar-width: thin;
}

.ef-header__search-results::-webkit-scrollbar {
    width: 6px;
}

.ef-header__search-results::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(var(--ef-gold-rgb), 0.72);
}

.ef-header__search-results li[hidden] {
    display: none;
}

.ef-header__search-results a,
.ef-header__search-empty {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

.ef-header__search-results a:hover,
.ef-header__search-results a:focus-visible {
    background: rgba(var(--ef-gold-rgb), 0.1);
    color: var(--ef-gold-base);
}

.ef-header__search-empty {
    color: rgba(255, 255, 255, 0.65);
}

.ef-header__member-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(var(--ef-gold-rgb), 0.72);
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.9);
    color: var(--ef-gold-base);
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ef-header__member-link:hover,
.ef-header__member-link:focus-visible {
    background: rgba(var(--ef-gold-rgb), 0.14);
    border-color: var(--ef-gold-base);
    color: #fff;
    transform: translateY(-1px);
}

.ef-header__member-link svg {
    width: 23px;
    height: 23px;
    display: block;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Botão WhatsApp foi movido para .grid-button no início do arquivo */

.ef-header__hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.ef-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ef-header__hamburger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.ef-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.ef-header__hamburger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.ef-mobile-menu {
    display: none;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px 26px;
    z-index: 2000;
}

.ef-header {
    z-index: 2000;
}

.ef-mobile-menu.is-open {
    display: block;
}

.ef-mobile-menu__list,
.ef-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ef-mobile-menu__list>li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ef-mobile-menu__list>li>a,
.ef-mobile-submenu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    background: transparent;
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.ef-mobile-submenu {
    display: none;
    padding-bottom: 8px;
}

/* Submenu mobile: Leia sobre */
.ef-mobile-submenu {
    max-height: calc(100dvh - 220px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
}

.ef-mobile-menu {
    height: calc(100dvh - var(--ef-header-total-height, 0px));
    overflow: hidden;
}

.ef-mobile-submenu {
    max-height: calc(75dvh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ef-mobile-submenu-item.is-open .ef-mobile-submenu {
    display: block;
}

.ef-mobile-submenu-item.is-open .submenu-arrow {
    transform: rotate(180deg);
}

.ef-mobile-submenu a {
    display: block;
    padding: 10px 0 10px 14px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}

.ef-mobile-catalog-link {
    padding-left: 14px !important;
}

.ef-mobile-menu__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 20px;
}

.ef-mobile-menu__socials a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.ef-mobile-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    padding: 0 20px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.ef-header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
}

.ef-header__logo .custom-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    line-height: 0;
}

.ef-header__logo .custom-logo {
    display: block;
    width: 43px !important;
    height: 43px !important;
    max-width: 43px;
    max-height: 43px;
    object-fit: contain;
    border-radius: 0;
}

.ef-header__logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

/* Dropdown com checkbox hack (igual ao original) */
.block-header-item__mobile-dropdown-trigger {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.block-header-item__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 360px;
    max-width: 420px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    padding: 14px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 6px 14px 0px;
    z-index: 99999;
    display: block;
}

.block-header-item__dropdown-area {
    position: relative;
}

.block-header-item__mobile-dropdown-trigger:checked~.block-header-item__dropdown-area .block-header-item__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

    min-height: 100px;
    max-height: min(70dvh, 520px);

    overflow-y: auto;
    overflow-x: hidden;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    padding-right: 8px;
}

.block-header-item__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.block-header-item__dropdown::-webkit-scrollbar-thumb {
    background: rgba(var(--ef-gold-rgb), 0.65);
    border-radius: 999px;
}

.block-header-item__dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--ef-gold-rgb), 0.95);
}

.block-header-item__dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--ef-gold-rgb), 0.65) transparent;
}

.block-header-item__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.block-header-item__label:focus-visible {
    outline: 2px solid var(--ef-gold-base);
    outline-offset: 4px;
    border-radius: 4px;
}

.item-content-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.block-header-item__dropdown li a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease;
}

.block-header-item__dropdown li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ef-gold-base);
}

.ef-header__catalog-link,
.ef-mobile-catalog-link {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.ef-header__catalog-link small,
.ef-mobile-catalog-link small {
    color: var(--ef-gold-base);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.grid-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.grid-button--primary {
    min-height: 46px;
    padding: 14px 34px;
    border-radius: 999px;
    background: #fff;
    color: #000 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.grid-button--primary:hover {
    background: rgb(29, 30, 32);
    color: rgb(255, 255, 255) !important;
}

.block-header__button {
    margin-left: auto;
}

/* Hambúrguer igual ao original */
.burger {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.block-header-item__dropdown::-webkit-scrollbar {
    width: 6px;
}

.block-header-item__dropdown::-webkit-scrollbar-thumb {
    background: rgba(var(--ef-gold-rgb), 0.7);
    border-radius: 999px;
}

.block-header-item__dropdown a:hover {
    background: rgba(var(--ef-gold-rgb), 0.08);
    color: var(--ef-gold-base);
}

.block-header-item__dropdown {
    max-height: min(70vh, 520px);
}

.block-header-item__dropdown {
    mask-image: linear-gradient(to bottom,
            transparent,
            black 20px,
            black calc(100% - 20px),
            transparent);
}

/* ========================================
   HEADER - HOVER LINKS
======================================== */

.ef-header__menu>li>a,
.block-header-item__label {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.ef-header__menu>li>a:hover,
.ef-header__menu>li>a:focus-visible,
.block-header-item__label:hover,
.block-header-item__label:focus-visible {
    color: rgb(237, 237, 237);
    /* Matching original header link hover color */
}

.ef-header__menu>li>a:hover .submenu-arrow,
.block-header-item__label:hover .submenu-arrow {
    color: var(--ef-gold-base);
}

.ef-header__menu>li>a,
.submenu-toggle {
    position: relative;
    transition: color .24s ease, opacity .24s ease;
}

.ef-header__menu>li>a::after,
.submenu-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1px;
    border-radius: 999px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: center;
    opacity: .9;
    transition: transform .28s;
}

.ef-header__menu>li>a:hover::after,
.submenu-toggle:hover::after {
    transform: scaleX(1);
}

@media (min-width: 993px) {
    .ef-mobile-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    body.menu-open {
        overflow: auto;
    }
}

/* Desktop hover-based dropdown activation */

@media (max-width: 1200px) {
    .ef-header__container {
        grid-template-columns: min-content minmax(0, 1fr) auto auto auto;
        gap: 18px;
    }

}

@media (max-width: 992px) {
    .ef-header__container {
        grid-template-columns: min-content 1fr min-content;
        gap: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ef-header__nav,
    .ef-header__cta,
    .ef-header__member-link,
    .block-header__button {
        display: none;
    }

    .ef-header__search {
        position: absolute;
        right: 20px;
    }

    .ef-header__hamburger,
    .burger,
    .block-header__hamburger-menu {
        /* This class is used in header.php */
        display: flex;
        position: absolute;
        left: 20px;
    }

    .ef-mobile-menu__socials {
        justify-content: center;
    }

    .ef-mobile-menu__list>li>a,
    .ef-mobile-submenu-toggle {
        justify-content: center;
    }

    .ef-mobile-submenu a {
        text-align: center;
    }

    .ef-mobile-submenu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }


}

/* ========================================
   QA UX/UI FINAL — HEADER 2026-04-26
   Dropdown responsivo, scroll premium e correção mobile → desktop
======================================== */

@media (min-width: 993px) {

    .block-header-item__dropdown,
    .sub-menu {
        max-height: min(70dvh, 520px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--ef-gold-rgb), 0.72) transparent;
    }

    .block-header-item__dropdown::-webkit-scrollbar,
    .sub-menu::-webkit-scrollbar {
        width: 6px;
    }

    .block-header-item__dropdown::-webkit-scrollbar-track,
    .sub-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .block-header-item__dropdown::-webkit-scrollbar-thumb,
    .sub-menu::-webkit-scrollbar-thumb {
        background: var(--ef-gold-effect);
        border-radius: 999px;
    }

    .block-header-item__dropdown a:hover,
    .sub-menu a:hover {
        background: rgba(var(--ef-gold-rgb), 0.085);
        color: var(--ef-gold-base);
    }

    .ef-mobile-menu {
        display: none !important;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
    }

    .ef-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 1800;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
        padding: 120px 24px calc(26px + env(safe-area-inset-bottom, 0px));
        background: #000;
    }


    .ef-mobile-menu.is-open {
        display: flex;
        flex-direction: column;
    }

    .ef-mobile-menu__nav {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .ef-mobile-submenu {
        max-height: min(52dvh, 420px);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--ef-gold-rgb), 0.55) transparent;
    }

    .ef-mobile-menu__nav::-webkit-scrollbar,
    .ef-mobile-submenu::-webkit-scrollbar {
        width: 4px;
    }

    .ef-mobile-menu__nav::-webkit-scrollbar-track,
    .ef-mobile-submenu::-webkit-scrollbar-track {
        background: transparent;
    }

    .ef-mobile-menu__nav::-webkit-scrollbar-thumb,
    .ef-mobile-submenu::-webkit-scrollbar-thumb {
        background: rgba(var(--ef-gold-rgb), 0.58);
        border-radius: 999px;
    }

    .ef-mobile-menu__socials,
    .ef-mobile-menu__cta {
        flex: 0 0 auto;
    }

}

body.menu-open .ef-home-whatsapp,
body.menu-open .ef-whatsapp-float {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.84);
}

/* ========================================
   CABEÇALHO PREMIUM INTEGRADO À PRIMEIRA SEÇÃO
   Remove a aparência de faixa separada e mantém
   logo, navegação, membro e CTA no mesmo eixo.
======================================== */

@media (min-width: 993px) {
    body:not(.ef-form-page-body) .ef-header {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 14px 0 !important;
    }

    body:not(.ef-form-page-body) .ef-header__container {
        width: 100% !important;
        max-width: none !important;
        min-height: 60px !important;
        padding: 0 clamp(28px, 4vw, 72px) !important;
        display: flex !important;
        align-items: center !important;
        gap: clamp(12px, 1.2vw, 24px) !important;
    }

    body:not(.ef-form-page-body) .ef-header__logo {
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 48px !important;
        margin-right: clamp(16px, 2vw, 34px) !important;
    }

    body:not(.ef-form-page-body) .ef-header__logo img,
    body:not(.ef-form-page-body) .ef-header__logo .custom-logo,
    body:not(.ef-form-page-body) .ef-header__logo .custom-logo-link {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }

    body:not(.ef-form-page-body) .ef-header__nav {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        min-height: 58px !important;
        border: 1px solid rgba(255, 255, 255, 0.13) !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, rgba(31, 31, 31, 0.92), rgba(13, 13, 13, 0.84)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.16) !important;
    }

    body:not(.ef-form-page-body) .ef-header__menu {
        gap: clamp(18px, 2.2vw, 36px) !important;
    }

    body:not(.ef-form-page-body) .ef-header__menu > li,
    body:not(.ef-form-page-body) .block-header-item__label {
        min-height: 56px !important;
    }

    body:not(.ef-form-page-body) .block-header-item__label {
        display: inline-flex !important;
        align-items: center !important;
        padding: 0 !important;
        font-size: clamp(14px, 0.95vw, 16px) !important;
        font-weight: 600 !important;
    }

    body:not(.ef-form-page-body) .ef-header__search {
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
    }

    body:not(.ef-form-page-body) .ef-header__member-link {
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        overflow: hidden !important;
        gap: 10px !important;
        border-radius: 999px !important;
        transition: width .18s ease, flex-basis .18s ease, background-color .18s ease, border-color .18s ease, padding .18s ease !important;
    }

    body:not(.ef-form-page-body) .ef-header__member-link .ef-header__member-label {
        display: block !important;
        max-width: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        white-space: nowrap !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        transition: max-width .18s ease, opacity .12s ease !important;
    }

    body:not(.ef-form-page-body) .ef-header__member-link:hover,
    body:not(.ef-form-page-body) .ef-header__member-link:focus-visible {
        flex-basis: 180px !important;
        width: 180px !important;
        min-width: 180px !important;
        justify-content: flex-start !important;
        padding: 0 18px !important;
        transform: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__member-link:hover .ef-header__member-label,
    body:not(.ef-form-page-body) .ef-header__member-link:focus-visible .ef-header__member-label {
        max-width: 120px !important;
        opacity: 1 !important;
    }

    body:not(.ef-form-page-body) .ef-header__search-toggle,
    body:not(.ef-form-page-body) .ef-header__member-link {
        width: 46px !important;
        height: 46px !important;
        border-color: rgba(var(--ef-gold-rgb), 0.78) !important;
        background: rgba(18, 18, 18, 0.82) !important;
    }

    body:not(.ef-form-page-body) .ef-header__search-toggle:hover,
    body:not(.ef-form-page-body) .ef-header__search-toggle:focus-visible,
    body:not(.ef-form-page-body) .ef-header__search[data-search-open="true"] .ef-header__search-toggle,
    body:not(.ef-form-page-body) .ef-header__member-link:hover,
    body:not(.ef-form-page-body) .ef-header__member-link:focus-visible {
        transform: none !important;
    }

    body:not(.ef-form-page-body) .block-header__button {
        flex: 0 0 auto !important;
        min-width: 220px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 14px 30px !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        background: var(--ef-gold-effect) !important;
        box-shadow: 0 8px 22px rgba(var(--ef-gold-rgb), 0.18) !important;
        font-size: 15px !important;
    }

    body:not(.ef-form-page-body) .block-header__button:hover,
    body:not(.ef-form-page-body) .block-header__button:focus-visible {
        background: var(--ef-gold-effect) !important;
        color: #000 !important;
        transform: none !important;
    }
}

@media (max-width: 992px) {
    body:not(.ef-form-page-body) .ef-header {
        background: transparent !important;
        border: 0 !important;
    }
}

/*
 * Busca integrada ao cabeçalho: o centro é uma unidade visual única.
 * O conteúdo dos catálogos continua sendo renderizado pelo PHP existente;
 * apenas a apresentação e o estado da busca mudam aqui.
 */
@media (min-width: 993px) {
    body:not(.ef-form-page-body) .ef-header__container {
        position: relative !important;
    }

    body:not(.ef-form-page-body) .ef-header__center {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        z-index: 20 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: max-content !important;
        max-width: calc(100vw - 390px) !important;
        transform: translate(-50%, -50%) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center > .ef-header__nav {
        flex: 0 1 auto !important;
        width: max-content !important;
        max-width: calc(100vw - 450px) !important;
        margin: 0 !important;
    }

    body:not(.ef-form-page-body) .ef-header__center > .ef-header__search {
        position: static !important;
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
    }

    body:not(.ef-form-page-body) .ef-header__center .ef-header__search-field {
        display: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center .ef-header__search-panel {
        top: calc(100% + 12px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(520px, calc(100vw - 32px)) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open {
        width: min(820px, calc(100vw - 390px)) !important;
        max-width: calc(100vw - 390px) !important;
        min-height: 58px !important;
        padding: 5px 7px 5px 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.13) !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, rgba(31, 31, 31, 0.96), rgba(13, 13, 13, 0.94)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 32px rgba(0, 0, 0, 0.2) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__nav {
        flex: 0 0 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__menu {
        width: 0 !important;
        min-width: 0 !important;
        gap: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(-18px) !important;
        pointer-events: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__search {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        gap: 10px !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__search-field {
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 0 14px !important;
        border-color: rgba(var(--ef-gold-rgb), 0.78) !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__search-toggle {
        flex: 0 0 46px !important;
        width: 46px !important;
        height: 46px !important;
        transform: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__search-panel {
        right: 0 !important;
        left: 0 !important;
        width: auto !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    body:not(.ef-form-page-body) .ef-header__member-link {
        margin-left: auto !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open ~ .ef-header__member-link,
    body:not(.ef-form-page-body) .ef-header__center.is-search-open ~ .block-header__button {
        transform: none !important;
    }

    /* No estado fechado, a navegação e a lupa compartilham a mesma cápsula. */
    body:not(.ef-form-page-body) .ef-header__center:not(.is-search-open) {
        box-sizing: border-box !important;
        min-height: 58px !important;
        padding: 5px 7px !important;
        border: 1px solid rgba(255, 255, 255, 0.13) !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, rgba(31, 31, 31, 0.96), rgba(13, 13, 13, 0.94)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 32px rgba(0, 0, 0, 0.2) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center:not(.is-search-open) > .ef-header__nav {
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 992px) {
    body:not(.ef-form-page-body) .ef-header__center {
        display: contents !important;
    }

    body:not(.ef-form-page-body) .ef-header__center > .ef-header__search {
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        width: 46px !important;
        height: 46px !important;
        transform: translateY(-50%) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__search {
        width: calc(100vw - 40px) !important;
        max-width: 520px !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__search-field {
        display: flex !important;
        position: absolute !important;
        top: 0 !important;
        right: 56px !important;
        left: 0 !important;
        min-height: 46px !important;
    }

    body:not(.ef-form-page-body) .ef-header__center .ef-header__search-panel,
    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__search-panel {
        top: calc(100% + 10px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(520px, calc(100vw - 32px)) !important;
    }
}

/* Mantém os controles de ação no grupo direito do cabeçalho desktop. */
@media (min-width: 993px) {
    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__member-link {
        position: static !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        transform: none !important;
    }

html body:not(.ef-form-page-body) .ef-header .ef-header__container > .block-header__button {
        position: static !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
    }
}

/* Integração final: a lupa pertence à mesma cápsula do menu principal. */
@media (min-width: 993px) {
    body:not(.ef-form-page-body) .ef-header__center:not(.is-search-open) {
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center:not(.is-search-open) > .ef-header__nav {
        display: flex !important;
        align-items: center !important;
        flex: 0 1 auto !important;
        width: max-content !important;
        max-width: calc(100vw - 450px) !important;
        min-height: 58px !important;
        margin: 0 !important;
        padding: 0 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.13) !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, rgba(31, 31, 31, 0.92), rgba(13, 13, 13, 0.84)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.16) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center > .ef-header__nav > .ef-header__menu {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    body:not(.ef-form-page-body) .ef-header__center > .ef-header__nav > .ef-header__search {
        position: relative !important;
        flex: 0 0 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        margin: 0 0 0 10px !important;
    }

    body:not(.ef-form-page-body) .ef-header__center:not(.is-search-open) .ef-header__search-panel {
        top: calc(100% + 12px) !important;
        right: 0 !important;
        left: auto !important;
        width: min(520px, calc(100vw - 32px)) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open {
        width: min(820px, calc(100vw - 390px)) !important;
        max-width: calc(100vw - 390px) !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__nav {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 58px !important;
        padding: 5px 7px 5px 18px !important;
        overflow: visible !important;
        border: 1px solid rgba(255, 255, 255, 0.13) !important;
        border-radius: 999px !important;
        background: linear-gradient(135deg, rgba(31, 31, 31, 0.96), rgba(13, 13, 13, 0.94)) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 32px rgba(0, 0, 0, 0.2) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__nav > .ef-header__menu {
        flex: 0 0 0 !important;
        width: 0 !important;
        min-width: 0 !important;
        gap: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(-18px) !important;
        pointer-events: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__nav > .ef-header__search {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        height: 46px !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__nav .ef-header__search-field {
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 46px !important;
        padding: 0 14px !important;
        border-color: rgba(var(--ef-gold-rgb), 0.78) !important;
        background: rgba(255, 255, 255, 0.06) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__nav .ef-header__search-toggle {
        flex: 0 0 46px !important;
        width: 46px !important;
        height: 46px !important;
        transform: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open > .ef-header__nav .ef-header__search-panel {
        top: calc(100% + 12px) !important;
        right: 0 !important;
        left: 0 !important;
        width: auto !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 992px) {
    body:not(.ef-form-page-body) .ef-header__center .ef-header__nav {
        display: contents !important;
    }

    body:not(.ef-form-page-body) .ef-header__center .ef-header__menu {
        display: none !important;
    }

    body:not(.ef-form-page-body) .ef-header__center .ef-header__nav > .ef-header__search {
        position: absolute !important;
        top: 50% !important;
        right: 20px !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__nav > .ef-header__search {
        width: calc(100vw - 40px) !important;
        max-width: 520px !important;
    }

    body:not(.ef-form-page-body) .ef-header__center.is-search-open .ef-header__nav > .ef-header__search .ef-header__search-field {
        display: flex !important;
        position: absolute !important;
        top: 0 !important;
        right: 56px !important;
        left: 0 !important;
        min-height: 46px !important;
    }
}

/*
 * Redes sociais no desktop: a marca e os ícones recebem um recuo equilibrado
 * da borda esquerda, mantendo exatamente o tratamento visual do rodapé público.
 * Esta é a camada final para prevalecer sobre as regras legadas de staging.
 */
@media (min-width: 1201px) {
    html body:not(.ef-form-page-body) .ef-header__container {
        max-width: none !important;
        padding-left: clamp(56px, 4vw, 72px) !important;
        padding-right: clamp(24px, 2.4vw, 40px) !important;
    }

    html body:not(.ef-form-page-body) .ef-header__logo {
        width: 56px !important;
        height: 56px !important;
        flex: 0 0 56px !important;
        margin-right: 0 !important;
    }

    html body:not(.ef-form-page-body) .ef-header__logo .ef-header__logo-link,
    html body:not(.ef-form-page-body) .ef-header__logo .ef-header__logo-link > img {
        width: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;
    }

    html body:not(.ef-form-page-body) .ef-header__logo .ef-header__logo-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
    }

    html body:not(.ef-form-page-body) .ef-header__logo .ef-header__logo-link > img {
        display: block !important;
        object-fit: contain !important;
    }

    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__socials {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 0 0 auto !important;
        gap: 6px !important;
        width: auto !important;
        height: 60px !important;
        min-height: 60px !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        overflow: visible !important;
        clip-path: none !important;
    }

    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__socials a,
    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__socials svg {
        box-sizing: border-box !important;
    }

    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__socials a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        flex: 0 0 44px !important;
        padding: 6px !important;
        border-radius: 50% !important;
        overflow: visible !important;
        clip-path: none !important;
        color: #fff !important;
        fill: #fff !important;
        stroke: #fff !important;
        opacity: 1 !important;
        transform: scale(1) !important;
        transition: transform .24s cubic-bezier(0.4, 0, 0.2, 1), filter .24s ease !important;
        will-change: transform !important;
        z-index: 0 !important;
    }

    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__socials a:hover,
    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__socials a:focus-visible {
        color: #fff !important;
        fill: #fff !important;
        stroke: #fff !important;
        opacity: 1 !important;
        transform: scale(1.18) !important;
        filter: drop-shadow(0 0 7px rgba(var(--ef-gold-rgb), 0.55)) !important;
        z-index: 3 !important;
    }

    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__socials svg {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        flex: 0 0 32px !important;
        padding: 0 !important;
        overflow: visible !important;
        clip-path: none !important;
        color: #fff !important;
        fill: #fff !important;
        stroke: #fff !important;
    }


    html body:not(.ef-form-page-body) .ef-header .ef-header__container > .ef-header__member-link {
        margin-left: auto !important;
    }
}
