
/* AOST Header — acabamento visual centralizado */
.ast-desktop .ast-primary-header-bar,
.ast-desktop .ast-above-header-bar{transition:box-shadow .22s ease,background .22s ease}
.ast-desktop .ast-primary-header-bar{border-bottom:1px solid rgba(26,50,30,.06)}
.ast-desktop .main-header-menu>.menu-item>.menu-link{
    font-weight:600; letter-spacing:-.01em; transition:color .18s ease;
}
.ast-desktop .main-header-menu>.menu-item:hover>.menu-link,
.ast-desktop .main-header-menu>.current-menu-item>.menu-link,
.ast-desktop .main-header-menu>.current-menu-ancestor>.menu-link{color:#5fa928}
.ast-desktop .main-header-menu .sub-menu{
    border:1px solid #e6ece5!important;border-radius:14px!important;
    box-shadow:0 16px 42px rgba(23,48,28,.11)!important;
    padding:8px!important;min-width:235px!important;background:#fff!important;
}
.ast-desktop .main-header-menu .sub-menu .menu-link{
    border-radius:9px;padding:10px 13px!important;font-size:14px;
}
.ast-desktop .main-header-menu .sub-menu .menu-item:hover>.menu-link{background:#f3f8ef;color:#4f9223}
.ast-header-button-1 .ast-custom-button-link .ast-custom-button,
.aost-header-action{
    background:#72bd2e!important;color:#fff!important;border:0!important;
    border-radius:999px!important;padding:11px 21px!important;font-weight:750!important;
    box-shadow:0 7px 18px rgba(94,169,40,.16);transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button,
.aost-header-action:hover{background:#5fa928!important;transform:translateY(-1px);box-shadow:0 10px 22px rgba(94,169,40,.21)}
.ast-header-account-wrap img{border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px #dfe9da}
.aost-header-find{display:inline-flex;align-items:center;gap:7px;text-decoration:none!important;color:#27402c!important;font-weight:700}
.aost-header-find span{font-size:21px;color:#6aae32}
@media(max-width:921px){
    .ast-header-button-1 .ast-custom-button-link .ast-custom-button{padding:9px 15px!important;font-size:12px!important}
    .ast-mobile-header-content .main-header-menu{padding:10px!important}
    .ast-mobile-header-content .main-header-menu .menu-link{border-radius:9px!important}
}

.aost-header-find{border:1px solid #dce8d6;border-radius:999px;padding:9px 13px}
.aost-header-find:hover{background:#f4f9f0;color:#5fa928!important}

.aost-auto-find{margin-left:10px;margin-right:8px}
.aost-header-find{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;white-space:nowrap;line-height:1;text-decoration:none!important}
.aost-header-find--outline{border:1px solid #d8e6d2!important;background:#fff;padding:9px 13px;color:#4f7f31!important}
.aost-header-find--outline:hover{background:#f3f8ef!important;border-color:#bcd9ab!important}
.aost-header-find--text{border:0!important;padding:9px 6px;background:transparent!important}
.aost-find-icon{display:inline-flex}
@media(max-width:1100px) and (min-width:922px){
  .aost-auto-find .aost-header-find span:last-child{display:none}
  .aost-header-find{width:38px;padding:0!important;border-radius:50%!important}
}
@media(max-width:921px){
  .aost-auto-find{margin:8px 12px}
  .aost-header-find{width:100%;justify-content:flex-start;padding:11px 14px!important}
}


/* v0.4 — menu central + compactação progressiva do desktop */
@media (min-width: 922px){
    .ast-builder-menu-1 .main-header-menu,
    .site-header-primary-section-right,
    .site-header-primary-section-left{
        flex-wrap:nowrap!important;
    }
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        white-space:nowrap!important;
    }
    .ast-header-button-1 .ast-custom-button{
        white-space:nowrap!important;
        line-height:1.1!important;
    }
}
@media (min-width: 922px) and (max-width: 1280px){
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:9px!important;
        padding-right:9px!important;
        font-size:13px!important;
    }
    .aost-auto-find{margin-left:4px!important;margin-right:4px!important}
    .aost-header-find{
        min-height:36px!important;
        padding:8px 10px!important;
        font-size:12px!important;
    }
    .ast-header-button-1 .ast-custom-button-link .ast-custom-button{
        padding:10px 14px!important;
        font-size:12px!important;
    }
}
@media (min-width: 922px) and (max-width: 1120px){
    .aost-auto-find .aost-header-find span:last-child{display:none!important}
    .aost-auto-find .aost-header-find{
        width:36px!important;
        min-width:36px!important;
        padding:0!important;
        border-radius:50%!important;
    }
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:7px!important;
        padding-right:7px!important;
        font-size:12px!important;
    }
}

/* v0.6.1 — largura útil do desktop: logo compacto + ações equilibradas */
@media (min-width: 922px){
    /* O logo antigo reservava mais largura do que a imagem realmente precisava. */
    .site-header-primary-section-left .ast-builder-layout-element.ast-flex.site-header-focus-item,
    .site-header-primary-section-left .site-branding,
    .site-header-primary-section-left .ast-site-identity{
        width:auto!important;
        min-width:0!important;
        flex:0 0 auto!important;
    }
    .site-header-primary-section-left .site-branding{
        padding-right:0!important;
    }
    .site-header-primary-section-left .ast-site-identity{
        padding:0!important;
    }
    .site-header-primary-section-left .custom-logo-link,
    .site-header-primary-section-left .site-logo-img{
        width:auto!important;
        max-width:112px!important;
    }
    .site-header-primary-section-left .custom-logo,
    .site-header-primary-section-left .custom-logo-link img{
        width:auto!important;
        max-width:112px!important;
        height:auto!important;
    }

    /* Recupera alguns píxeis entre navegação e ações sem alterar o desenho. */
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:10px!important;
        padding-right:10px!important;
    }
    .aost-auto-find{
        margin-left:6px!important;
        margin-right:6px!important;
    }

    /* Igualar melhor a escala visual ao botão Tornar-me Associado. */
    .aost-header-find{
        font-size:13px!important;
        font-weight:700!important;
    }
    .aost-header-find .aost-find-icon{
        font-size:inherit!important;
    }

    /* Evita que a última ação encoste ou saia do viewport. */
    .site-header-primary-section-right{
        min-width:0!important;
        padding-right:8px!important;
    }
}

@media (min-width: 922px) and (max-width: 1280px){
    .site-header-primary-section-left .custom-logo-link,
    .site-header-primary-section-left .site-logo-img,
    .site-header-primary-section-left .custom-logo,
    .site-header-primary-section-left .custom-logo-link img{
        max-width:102px!important;
    }
}


/* v0.6.2 — grelha global do header alinhada com o conteúdo público */
@media (min-width: 922px){
    /* O header passa a usar a mesma grelha visual de ~1440px das páginas novas. */
    .ast-primary-header-bar .site-primary-header-wrap,
    .ast-desktop .ast-primary-header-bar .site-primary-header-wrap{
        width:calc(100% - 48px)!important;
        max-width:1440px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        padding-left:0!important;
        padding-right:0!important;
    }

    /* Não deixar as três secções do builder criarem largura fantasma. */
    .site-header-primary-section-left,
    .site-header-primary-section-center,
    .site-header-primary-section-right{
        min-width:0!important;
    }
    .site-header-primary-section-left{
        flex:0 0 auto!important;
    }
    .site-header-primary-section-center{
        flex:1 1 auto!important;
    }
    .site-header-primary-section-right{
        flex:0 0 auto!important;
        padding-right:0!important;
    }

    /* Logo compacto, mas agora alinhado pelo contentor — não deslocado isoladamente. */
    .site-header-primary-section-left .custom-logo-link,
    .site-header-primary-section-left .site-logo-img,
    .site-header-primary-section-left .custom-logo,
    .site-header-primary-section-left .custom-logo-link img{
        max-width:108px!important;
    }

    /* O texto do CTA secundário estava a herdar 21px do span antigo. */
    .aost-header-find span:last-child{
        font-size:15px!important;
        line-height:1!important;
    }
    .aost-header-find{
        padding:9px 13px!important;
        min-height:38px!important;
    }

    /* Pequena compactação para a grelha caber sem sacrificar legibilidade. */
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:8px!important;
        padding-right:8px!important;
    }
    .aost-auto-find{
        margin-left:5px!important;
        margin-right:5px!important;
    }
}

@media (min-width: 922px) and (max-width: 1500px){
    .ast-primary-header-bar .site-primary-header-wrap,
    .ast-desktop .ast-primary-header-bar .site-primary-header-wrap{
        width:calc(100% - 32px)!important;
    }
    .site-header-primary-section-left .custom-logo-link,
    .site-header-primary-section-left .site-logo-img,
    .site-header-primary-section-left .custom-logo,
    .site-header-primary-section-left .custom-logo-link img{
        max-width:100px!important;
    }
    .aost-header-find span:last-child{font-size:14px!important;}
}

/* v0.6.3 — neutraliza a largura/centragem herdada do Astra no header */
@media (min-width: 922px){
    /* Há Custom Layouts antigos a trazer .ast-container com o max-width do Astra.
       O masthead inteiro passa a obedecer à grelha pública de 1440px. */
    #masthead .ast-container,
    #masthead .site-primary-header-wrap,
    #masthead .ast-builder-grid-row-container,
    #masthead .ast-builder-grid-row-container-inner{
        width:calc(100% - 48px)!important;
        max-width:1440px!important;
        margin-left:auto!important;
        margin-right:auto!important;
        padding-left:0!important;
        padding-right:0!important;
        box-sizing:border-box!important;
    }

    /* Se os contentores estão aninhados, só o exterior cria a margem lateral.
       Os interiores ocupam 100% para não encolherem a grelha uma segunda vez. */
    #masthead .site-primary-header-wrap .ast-builder-grid-row-container-inner,
    #masthead .site-primary-header-wrap .ast-builder-grid-row{
        width:100%!important;
        max-width:none!important;
        margin-left:0!important;
        margin-right:0!important;
    }

    /* Três zonas previsíveis: logo | navegação | ações. */
    #masthead .ast-builder-grid-row{
        grid-template-columns:auto minmax(0,1fr) auto!important;
        column-gap:18px!important;
        align-items:center!important;
    }
    #masthead .site-header-primary-section-left{
        justify-content:flex-start!important;
        justify-self:start!important;
        margin:0!important;
        padding:0!important;
    }
    #masthead .site-header-primary-section-center{
        justify-content:flex-start!important;
        justify-self:stretch!important;
        min-width:0!important;
        margin:0!important;
    }
    #masthead .site-header-primary-section-right{
        justify-content:flex-end!important;
        justify-self:end!important;
        margin:0!important;
        padding:0!important;
    }

    /* Impede margens antigas do branding de recriarem o recuo. */
    #masthead .site-header-primary-section-left .site-branding,
    #masthead .site-header-primary-section-left .ast-site-identity,
    #masthead .site-header-primary-section-left .site-logo-img{
        margin-left:0!important;
        margin-right:0!important;
    }
}

@media (min-width: 922px) and (max-width: 1500px){
    #masthead .ast-container,
    #masthead .site-primary-header-wrap,
    #masthead .ast-builder-grid-row-container{
        width:calc(100% - 32px)!important;
    }
}

/* v0.6.4 — navegação mobile completa: pesquisa + submenus em acordeão */
@media (max-width: 921px){
    .ast-mobile-header-content .aost-mobile-find{
        display:flex!important;
        align-items:center!important;
        gap:9px!important;
        margin:12px 18px 14px!important;
        padding:12px 15px!important;
        border:1px solid #d8e6d2!important;
        border-radius:999px!important;
        background:#fff!important;
        color:#58ad28!important;
        font-size:15px!important;
        font-weight:700!important;
        line-height:1.2!important;
        text-decoration:none!important;
        box-sizing:border-box!important;
    }
    .ast-mobile-header-content .aost-mobile-find:hover,
    .ast-mobile-header-content .aost-mobile-find:focus{
        background:#f4f9f0!important;
        color:#4c9d20!important;
    }
    .ast-mobile-header-content .aost-mobile-find .aost-find-icon{
        display:inline-flex!important;
        flex:0 0 auto!important;
    }

    .ast-mobile-header-content .main-header-menu > li.menu-item-has-children{
        position:relative!important;
    }
    .ast-mobile-header-content .main-header-menu > li.menu-item-has-children > .menu-link{
        padding-right:58px!important;
    }
    .ast-mobile-header-content .aost-mobile-submenu-toggle{
        position:absolute!important;
        top:0!important;
        right:16px!important;
        width:44px!important;
        height:56px!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        padding:0!important;
        border:0!important;
        background:transparent!important;
        color:#6f6f6f!important;
        cursor:pointer!important;
        z-index:3!important;
        box-shadow:none!important;
    }
    .ast-mobile-header-content .aost-mobile-submenu-toggle svg{
        transition:transform .2s ease!important;
    }
    .ast-mobile-header-content li.aost-submenu-open > .aost-mobile-submenu-toggle svg{
        transform:rotate(180deg)!important;
    }
    .ast-mobile-header-content li.menu-item-has-children > .sub-menu{
        display:none!important;
        position:static!important;
        width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding:4px 14px 10px 30px!important;
        opacity:1!important;
        visibility:visible!important;
        transform:none!important;
        box-shadow:none!important;
        border:0!important;
        background:#f8fbf6!important;
    }
    .ast-mobile-header-content li.aost-submenu-open > .sub-menu{
        display:block!important;
    }
    .ast-mobile-header-content li.menu-item-has-children > .sub-menu > li > .menu-link{
        display:block!important;
        padding:10px 14px!important;
        border:0!important;
        border-radius:8px!important;
        font-size:14px!important;
        line-height:1.35!important;
        color:#606060!important;
        background:transparent!important;
    }
    .ast-mobile-header-content li.menu-item-has-children > .sub-menu > li > .menu-link:hover{
        color:#58ad28!important;
        background:#eef7e9!important;
    }
}



/* v0.6.6 — responsividade definitiva.
   Não forçamos o header mobile fora do breakpoint nativo do Astra: isso criava
   um botão quadrado sem o comportamento JS nativo. Em vez disso, o desktop
   adapta primeiro a ação "Encontrar Osteopata" e compacta a navegação. */

/* 1) Desktop largo: CTA completo. */
@media (min-width: 1381px){
    .aost-auto-find .aost-header-find span:last-child{display:inline!important;}
}

/* 2) Desktop intermédio: a pesquisa passa a ser apenas a lupa circular. */
@media (min-width: 922px) and (max-width: 1380px){
    .aost-auto-find{
        margin-left:4px!important;
        margin-right:5px!important;
        flex:0 0 auto!important;
    }
    .aost-auto-find .aost-header-find{
        width:40px!important;
        min-width:40px!important;
        height:40px!important;
        min-height:40px!important;
        padding:0!important;
        border-radius:50%!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
    }
    .aost-auto-find .aost-header-find span:last-child{display:none!important;}
    .aost-auto-find .aost-find-icon{margin:0!important;}
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:7px!important;
        padding-right:7px!important;
        font-size:13px!important;
    }
    #masthead .ast-builder-grid-row{column-gap:10px!important;}
    .ast-header-button-1 .ast-custom-button-link .ast-custom-button{
        padding-left:15px!important;
        padding-right:15px!important;
        font-size:12px!important;
    }
}

/* 3) Última faixa antes do mobile nativo: mais alguns píxeis, sem sobreposição. */
@media (min-width: 922px) and (max-width: 1080px){
    .site-header-primary-section-left .custom-logo-link,
    .site-header-primary-section-left .site-logo-img,
    .site-header-primary-section-left .custom-logo,
    .site-header-primary-section-left .custom-logo-link img{max-width:88px!important;}
    .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:5px!important;
        padding-right:5px!important;
        font-size:12px!important;
    }
    .ast-header-button-1 .ast-custom-button-link .ast-custom-button{
        padding:9px 11px!important;
        font-size:11px!important;
    }
    #masthead .ast-builder-grid-row{column-gap:7px!important;}
}

/* 4) Mobile real do Astra: preserva o botão hambúrguer original e redondo. */
@media (max-width: 921px){
    #ast-mobile-header .menu-toggle,
    #ast-mobile-header .ast-button-wrap .menu-toggle,
    .ast-mobile-header-wrap .menu-toggle{
        width:48px!important;
        height:48px!important;
        min-width:48px!important;
        min-height:48px!important;
        padding:0!important;
        border:1px solid #65b82e!important;
        border-radius:50%!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        background:#fff!important;
        box-shadow:none!important;
    }
    /* No painel aberto, a pesquisa continua disponível no topo do menu. */
    .ast-mobile-header-content .aost-mobile-find{
        display:flex!important;
    }
}

/* v0.6.7 — reserva física para o branding + compactação antecipada.
   Corrige a faixa intermédia em que o menu podia invadir visualmente o logo. */
@media (min-width: 922px){
    #masthead .ast-builder-grid-row{
        grid-template-columns:120px minmax(0,1fr) auto!important;
    }
    #masthead .site-header-primary-section-left,
    #masthead .site-header-primary-section-left .site-branding,
    #masthead .site-header-primary-section-left .ast-site-identity,
    #masthead .site-header-primary-section-left .site-logo-img,
    #masthead .site-header-primary-section-left .custom-logo-link{
        width:120px!important;
        max-width:120px!important;
        min-width:120px!important;
        overflow:visible!important;
    }
    #masthead .site-header-primary-section-left .custom-logo,
    #masthead .site-header-primary-section-left .custom-logo-link img{
        display:block!important;
        width:120px!important;
        max-width:120px!important;
        height:auto!important;
    }
    #masthead .site-header-primary-section-center{
        overflow:hidden!important;
    }
    #masthead .ast-builder-menu-1,
    #masthead .ast-builder-menu-1 .main-navigation,
    #masthead .ast-builder-menu-1 .main-header-menu{
        min-width:0!important;
    }
}

/* A compactação começa mais cedo; a lupa já está isolada nesta faixa. */
@media (min-width: 922px) and (max-width: 1380px){
    #masthead .ast-builder-grid-row{
        grid-template-columns:96px minmax(0,1fr) auto!important;
        column-gap:8px!important;
    }
    #masthead .site-header-primary-section-left,
    #masthead .site-header-primary-section-left .site-branding,
    #masthead .site-header-primary-section-left .ast-site-identity,
    #masthead .site-header-primary-section-left .site-logo-img,
    #masthead .site-header-primary-section-left .custom-logo-link{
        width:96px!important;
        max-width:96px!important;
        min-width:96px!important;
    }
    #masthead .site-header-primary-section-left .custom-logo,
    #masthead .site-header-primary-section-left .custom-logo-link img{
        width:96px!important;
        max-width:96px!important;
    }
    #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:5px!important;
        padding-right:5px!important;
        font-size:12.5px!important;
        white-space:nowrap!important;
    }
    #masthead .ast-header-button-1 .ast-custom-button-link .ast-custom-button{
        padding-left:12px!important;
        padding-right:12px!important;
        font-size:11.5px!important;
        white-space:nowrap!important;
    }
}

@media (min-width: 922px) and (max-width: 1180px){
    #masthead .ast-builder-grid-row{
        grid-template-columns:82px minmax(0,1fr) auto!important;
        column-gap:5px!important;
    }
    #masthead .site-header-primary-section-left,
    #masthead .site-header-primary-section-left .site-branding,
    #masthead .site-header-primary-section-left .ast-site-identity,
    #masthead .site-header-primary-section-left .site-logo-img,
    #masthead .site-header-primary-section-left .custom-logo-link{
        width:82px!important;
        max-width:82px!important;
        min-width:82px!important;
    }
    #masthead .site-header-primary-section-left .custom-logo,
    #masthead .site-header-primary-section-left .custom-logo-link img{
        width:82px!important;
        max-width:82px!important;
    }
    #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:3px!important;
        padding-right:3px!important;
        font-size:11.5px!important;
    }
    #masthead .ast-header-button-1 .ast-custom-button-link .ast-custom-button{
        padding:8px 9px!important;
        font-size:10.5px!important;
    }
}


/* v0.6.8 — fecha a última janela de colisão no desktop intermédio.
   Atua apenas antes do mobile nativo: protege simultaneamente logo/AOST
   e Contactos/lupa, sem alterar o hamburger Astra. */
@media (min-width: 1181px) and (max-width: 1380px){
    #masthead .ast-builder-grid-row{
        grid-template-columns:88px minmax(0,1fr) auto!important;
        column-gap:5px!important;
    }
    #masthead .site-header-primary-section-left,
    #masthead .site-header-primary-section-left .site-branding,
    #masthead .site-header-primary-section-left .ast-site-identity,
    #masthead .site-header-primary-section-left .site-logo-img,
    #masthead .site-header-primary-section-left .custom-logo-link{
        width:88px!important;
        max-width:88px!important;
        min-width:88px!important;
    }
    #masthead .site-header-primary-section-left .custom-logo,
    #masthead .site-header-primary-section-left .custom-logo-link img{
        width:88px!important;
        max-width:88px!important;
    }
    #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:3px!important;
        padding-right:3px!important;
        font-size:11.5px!important;
    }
    #masthead .aost-auto-find{
        margin-left:7px!important;
        margin-right:4px!important;
    }
    #masthead .ast-header-button-1 .ast-custom-button-link .ast-custom-button{
        padding-left:10px!important;
        padding-right:10px!important;
        font-size:10.75px!important;
    }
}

/* Na zona crítica, dá um pequeno corredor físico entre Contactos e a lupa. */
@media (min-width: 922px) and (max-width: 1280px){
    #masthead .site-header-primary-section-center{
        padding-right:5px!important;
    }
    #masthead .aost-auto-find{
        margin-left:8px!important;
    }
}

/* v0.6.9 — último ajuste da faixa desktop intermédia.
   1) o branding recebe largura REAL, incluindo o IMG interno;
   2) a pesquisa mantém apenas a lupa até existir espaço confortável;
   3) Contactos nunca disputa espaço com o texto da pesquisa. */
@media (min-width: 1381px) and (max-width: 1600px){
    #masthead .ast-builder-grid-row{
        grid-template-columns:150px minmax(0,1fr) auto!important;
        column-gap:10px!important;
    }
    #masthead .site-header-primary-section-left,
    #masthead .site-header-primary-section-left .site-branding,
    #masthead .site-header-primary-section-left .ast-site-identity,
    #masthead .site-header-primary-section-left .site-logo-img,
    #masthead .site-header-primary-section-left .custom-logo-link{
        width:150px!important;
        max-width:150px!important;
        min-width:150px!important;
    }
    #masthead .site-header-primary-section-left img,
    #masthead .site-header-primary-section-left .custom-logo,
    #masthead .site-header-primary-section-left .custom-logo-link img,
    #masthead .site-logo-img img,
    #masthead .ast-site-identity img{
        width:150px!important;
        max-width:150px!important;
        height:auto!important;
    }
    #masthead .aost-auto-find .aost-header-find span:last-child{
        display:none!important;
    }
    #masthead .aost-auto-find .aost-header-find{
        width:46px!important;
        min-width:46px!important;
        height:46px!important;
        padding:0!important;
        justify-content:center!important;
        border-radius:999px!important;
    }
    #masthead .aost-auto-find{margin-left:12px!important;}
    #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:5px!important;
        padding-right:5px!important;
        white-space:nowrap!important;
    }
}

@media (min-width: 922px) and (max-width: 1380px){
    #masthead .ast-builder-grid-row{
        grid-template-columns:125px minmax(0,1fr) auto!important;
    }
    #masthead .site-header-primary-section-left,
    #masthead .site-header-primary-section-left .site-branding,
    #masthead .site-header-primary-section-left .ast-site-identity,
    #masthead .site-header-primary-section-left .site-logo-img,
    #masthead .site-header-primary-section-left .custom-logo-link{
        width:125px!important;
        max-width:125px!important;
        min-width:125px!important;
    }
    #masthead .site-header-primary-section-left img,
    #masthead .site-header-primary-section-left .custom-logo,
    #masthead .site-header-primary-section-left .custom-logo-link img,
    #masthead .site-logo-img img,
    #masthead .ast-site-identity img{
        width:125px!important;
        max-width:125px!important;
        height:auto!important;
    }
    #masthead .aost-auto-find .aost-header-find span:last-child{display:none!important;}
}


/* v0.6.10 — fecho da última colisão Contactos / lupa.
   Não altera logo, mobile nem hamburger. Na faixa em que a pesquisa já é
   icon-only, compacta apenas a navegação central e cria uma separação física
   antes da ação de pesquisa. */
@media (min-width: 1381px) and (max-width: 1600px){
    #masthead .ast-builder-grid-row{
        column-gap:16px!important;
    }
    #masthead .site-header-primary-section-center{
        min-width:0!important;
        padding-right:8px!important;
        overflow:hidden!important;
    }
    #masthead .ast-builder-menu-1 .main-header-menu{
        gap:0!important;
    }
    #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:3px!important;
        padding-right:3px!important;
        font-size:12.5px!important;
        white-space:nowrap!important;
    }
    #masthead .site-header-primary-section-right{
        position:relative!important;
        z-index:3!important;
        padding-left:4px!important;
        background:#fff!important;
    }
    #masthead .aost-auto-find{
        margin-left:0!important;
        margin-right:8px!important;
        flex:0 0 auto!important;
    }
}

/* Nos últimos píxeis antes da compactação seguinte damos ainda mais folga
   sem tocar no breakpoint mobile nativo do Astra. */
@media (min-width: 1381px) and (max-width: 1480px){
    #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link{
        padding-left:2px!important;
        padding-right:2px!important;
        font-size:12px!important;
    }
    #masthead .ast-header-button-1 .ast-custom-button-link .ast-custom-button{
        padding-left:10px!important;
        padding-right:10px!important;
        font-size:10.75px!important;
    }
}

/* v0.6.11 — correção final Contactos/lupa.
   O menu ativo nem sempre usa ast-builder-menu-1 nos diferentes Custom Layouts.
   Aplicamos a compactação à secção central real, independentemente do número do menu. */
@media (min-width:1381px) and (max-width:1600px){
    #masthead .site-header-primary-section-center{
        min-width:0!important;
        padding-right:18px!important;
        overflow:hidden!important;
    }
    #masthead .site-header-primary-section-center .main-header-menu{
        gap:0!important;
        flex-wrap:nowrap!important;
    }
    #masthead .site-header-primary-section-center .main-header-menu > .menu-item{
        flex:0 0 auto!important;
    }
    #masthead .site-header-primary-section-center .main-header-menu > .menu-item > .menu-link{
        padding-left:4px!important;
        padding-right:4px!important;
        font-size:12px!important;
        white-space:nowrap!important;
    }
    #masthead .site-header-primary-section-right{
        flex:0 0 auto!important;
        position:relative!important;
        z-index:20!important;
        background:#fff!important;
    }
    #masthead .aost-auto-find{
        flex:0 0 46px!important;
        width:46px!important;
        margin-left:0!important;
        margin-right:8px!important;
    }
}
@media (min-width:1381px) and (max-width:1480px){
    #masthead .site-header-primary-section-center .main-header-menu > .menu-item > .menu-link{
        padding-left:2px!important;
        padding-right:2px!important;
        font-size:11.5px!important;
    }
    #masthead .site-header-primary-section-center{padding-right:22px!important;}
}
