/*
Theme Name: Open finance
Template: hello-elementor
Description: Tema filho do Hello Elementor para o projeto Open Finance.
Author: Arthur Ervas
Version: 1.0.0
Text Domain: open-finance
*/

:root {
    --site-grafite: #3C3C3C;
    --site-amarelo: #FFE191;
    --site-azul-claro: #147D96;
    --site-azul-escuro: #005F78;
    --site-size-type-14: 0.875rem;
    --site-size-type-16: 1rem;
    --site-size-type-18: 1.125rem;
    --site-size-type-20: clamp(1rem, 0.9176rem + 0.3518vw, 1.25rem);
    --site-size-type-24: clamp(1.125rem, 1.0013rem + 0.5277vw, 1.5rem);
    --site-size-type-48: clamp(2rem, 1.6702rem + 1.4072vw, 3rem);
    --font-sans-10-regular: 'blogger_sansregular', sans-serif;
    --font-sans-10-medium: 'blogger_sansmedium', sans-serif;
}

#hfe-promo-notice {display: none !important;}

.align-selft-stretch {align-self: stretch !important;}

.footer-col-social .elementor-grid-item:first-child {margin-left: -12px;}

.wrapper {
    max-width: 1284px;
    position: static;
    padding-block-start: 0px;
    padding-block-end: 0px;
    padding-inline-start: 30px;
    padding-inline-end: 30px;
    margin-block-start: 0px;
    margin-block-end: 0px;
    margin-inline-start: auto;
    margin-inline-end: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
}

@media screen and (min-width: 1025px) {
    .br-desktop {
        display: block;
    }
}

body,
.elementor .elementor-widget-text-editor {
    color: var(--site-grafite);
    font-family: var(--font-sans-10-regular);
    font-size: var(--site-size-type-16);
    font-weight: 400;
}

.elementor .elementor-widget-text-editor a {
    color: var(--site-azul-escuro);
    text-decoration: none;
    border-bottom: 1px dotted var(--site-azul-escuro);
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: .5rem;
}

.elementor .elementor-widget-text-editor p+p {
    margin-top: 1em;
}

.elementor .elementor-widget-text-editor ul:not(:first-child),
.elementor .elementor-widget-text-editor ol:not(:first-child) {
    margin-top: 1em;
}


.elementor .elementor-widget-text-editor ul,
.elementor .elementor-widget-text-editor ol {
    padding-left: 1.25rem;
    margin-left: 2rem;
}

.elementor .box-list-ml-0 .elementor-widget-text-editor ul,
.elementor .box-list-ml-0 .elementor-widget-text-editor ol {
    margin-left: 0;
}

.elementor .elementor-widget-text-editor ul li + li,
.elementor .elementor-widget-text-editor ol li + li {
    margin-top: .5em;
}

.h3-home-dark-bg {
    font-family: var(--font-sans-10-medium);
    font-weight: 500;
    color: #ffffff;
    line-height: 1em;
    margin-block-start: 0px;
    margin-bottom: 0;
    font-size: 1.75rem;
}

header .hfe-search-form__container { overflow: visible; }
header .hfe-search-form__input,
header .hfe-search-submit { z-index: 1; }
header .hfe-search-form__input:focus-visible,
header #clear-with-button:focus-visible,
header .hfe-search-submit:focus-visible { z-index: 10; }
header .hfe-search-form__input:focus-visible + #clear-with-button {z-index: 10;}
header .hfe-nav-menu nav { width: auto !important; }
header .hfe-nav-menu nav a { color: var(--site-grafite); }
header .hfe-nav-menu nav a:hover { color: var(--site-azul-claro); }
header .elementor-icon.elementor-social-icon { --icon-size: 22px; }
header .elementor-icon.elementor-social-icon { --icon-padding: 4px; }
header .sub-menu .hfe-sub-menu-item:focus-visible { position: relative; z-index: 50; }

@keyframes focus-contract {
    from { outline-offset: 10px; }
    to   { outline-offset: 2px; }
}

[tabindex]:not([tabindex="-1"]):focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--site-azul-escuro) !important;
    animation: focus-contract 0.25s ease-out;
}

footer [tabindex]:not([tabindex="-1"]):focus-visible, footer a:focus-visible, footer button:focus-visible, footer input:focus-visible, footer select:focus-visible, footer textarea:focus-visible {
    box-shadow: 0 0 0 4px #fff !important;
    outline: 2px solid var(--site-amarelo) !important;
}

@media (prefers-reduced-motion: reduce) {
    [tabindex]:not([tabindex="-1"]):focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
        animation: none;
    }
}

footer .footer-col-links a {text-decoration: underline;}
footer .footer-col-menus {gap:20px;}
footer .footer-col-menus a.hfe-menu-item {line-height: 1.1em;}
footer .footer-col-menus a.hfe-menu-item:hover {text-decoration: underline;}
footer .footer-col-menus .footer-col-menu {width: calc(50% - 10px);min-width: calc(50% - 10px);}

@media screen and (max-width: 1024px) {
    body header .elementor-element-6d08232 .hfe-nav-menu {
        max-width: 100%;
    }
    header .hfe-dropdown .hfe-nav-menu > li {
        position: relative;
    }
    header .hfe-dropdown .hfe-nav-menu > li:not(:first-child):before {
        content: '';
        position: absolute;
        top: 0;
        left: 12px;
        display: block;
        width: calc(100% - 24px);
        height: 1px;
        background: var(--site-grafite);
        opacity: .25;
    }
    body .elementor-39 .elementor-element.elementor-element-6d08232 .menu-item a.hfe-menu-item {
        padding-left: 12px;
        padding-right: 12px;
    }
    body .elementor-39 .elementor-element.elementor-element-6d08232 .menu-item .sub-menu a.hfe-sub-menu-item {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/*
 * Menu do cabeçalho no mobile e no tablet (até 1024px, as larguras em que o menu vira o dropdown/hambúrguer): os links do
 * dropdown, tanto os principais (a.hfe-menu-item) quanto os dos submenus (a.hfe-sub-menu-item), de qualquer nível, têm 8px
 * de padding em cima e embaixo (o Elementor gera 15px para o dropdown em todas as larguras, numa regra que lista os dois
 * seletores juntos). O line-height desses links é 1.15em. No desktop (a partir de 1025px) o dropdown não aparece e o
 * menu horizontal não é afetado.
 */
@media screen and (max-width: 1024px) {
    body .elementor-39 .elementor-element.elementor-element-6d08232 nav.hfe-dropdown li a.hfe-menu-item,
    body .elementor-39 .elementor-element.elementor-element-6d08232 nav.hfe-dropdown li a.hfe-sub-menu-item,
    body .elementor-39 .elementor-element.elementor-element-6d08232 nav.hfe-dropdown-expandible li a.hfe-menu-item,
    body .elementor-39 .elementor-element.elementor-element-6d08232 nav.hfe-dropdown-expandible li a.hfe-sub-menu-item {
        padding-top: 8px;
        padding-bottom: 8px;
        line-height: 1.15em;
    }
}

@media screen and (min-width: 1025px) {
    header .hfe-search-form__input { min-width: 175px; }
    footer .footer-col-menus {gap:clamp(20px,4.36vw,66px);}
    footer .footer-col-menus .footer-col-menu {min-width: clamp(100px,11.57vw,175px);width: clamp(100px,11.57vw,175px);}
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
    header .elementor-element-6d08232 { order: 10; }
    header .elementor-element-6d08232 .hfe-nav-menu { max-width: 44px; }
    header .elementor-widget-image a { max-width: 180px; }
    footer .footer-col-links .elementor-widget-text-editor p {width:100%;white-space: nowrap;overflow: clip;overflow-clip-margin: 14px;text-overflow: ellipsis;}
}

@media screen and (min-width: 1025px) and (max-width: 1200px) {
    header .elementor-39 .elementor-element.elementor-element-6d08232 a.hfe-menu-item { font-size: 16px; }
    header .hfe-nav-menu { min-width: 525px; }
    header .elementor-widget-image a { max-width: 180px; }
}

/*
 * Entre 1025px e 1049px os ícones das redes sociais ficam lado a lado (+70px de largura); para o cabeçalho
 * continuar em uma linha, o menu e a busca ficam um pouco mais estreitos.
 */
@media screen and (min-width: 1025px) and (max-width: 1049px) {
    header .hfe-nav-menu { min-width: 430px; }
    header .elementor-element-6d08232 { flex: 0 1 450px; width: 450px; }
    header .elementor-39 .elementor-element.elementor-element-6d08232 .menu-item a.hfe-menu-item { padding-inline: 6px; }
    header .elementor-widget-hfe-search-button { flex: 0 1 180px; width: 180px; }
    header .elementor-widget-hfe-search-button .hfe-search-form__input { min-width: 0; width: 100%; }
    header .elementor-widget-hfe-search-button .hfe-search-submit { min-width: 56px; width: 56px; }
}

/* Ícones das redes sociais empilhados só a partir de 1050px; entre 1025px e 1049px ficam lado a lado. */
@media screen and (min-width: 1050px) and (max-width: 1200px) {
    header .elementor-widget-social-icons .elementor-grid.elementor-social-icons-wrapper { display: flex; flex-direction: column; }
}


/* Botão (lupa) que mostra/esconde a busca no mobile — criado por assets/js/header-search-toggle.js */
header .of-search-toggle { display: none; }

@media screen and (max-width: 767px) {
    .wrapper {
        padding-inline-start: 15px;
        padding-inline-end: 15px;
    }

    header .elementor-widget-image a { min-width: 180px; }

    header .of-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: var(--site-grafite);
        cursor: pointer;
    }
    header .of-search-toggle:hover,
    header .of-search-toggle:focus,
    header .of-search-toggle[aria-expanded="true"] { background: transparent; color: var(--site-azul-claro); }
    header .of-search-toggle svg { display: block; width: 22px; height: 22px; }

    header .e-137e060.of-search-toggle-ready .elementor-element-8d709d0:not(.of-search-open) { display: none; }
}

/*
 * Home: área "Destaques". São 3 colunas fixas (div-blocks atômicos do
 * Elementor), não mais o widget de listagem de posts. Cada coluna é um
 * link (.home-destaque) com categoria, data e texto em parágrafos.
 * Classes globais do Elementor: home-destaques, home-destaque,
 * home-destaque-meta, home-destaque-categoria, home-destaque-data e
 * home-destaque-texto.
 */
body.home .home-destaques {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 28px 0 0;
    padding: 0;
}

body.home .home-destaques * {
    text-decoration: none;
}

body.home .home-destaque {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--site-grafite);
}

body.home .home-destaque:hover .home-destaque-texto {
    color: var(--site-azul-claro);
    text-decoration: underline;
}

body.home .home-destaque:focus-visible .home-destaque-texto {
    text-decoration: underline;
}

body.home .home-destaque-meta {
    box-sizing: border-box;
    color: var(--site-grafite);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    padding: 0;
    font-family: var(--font-sans-10-medium);
    font-size: var(--site-size-type-14);
    font-weight: 500;
    line-height: 1.15em;
    opacity: 0.75;
}

body.home .home-destaque-categoria,
body.home .home-destaque-data,
body.home .home-destaque-texto {
    display: block;
    margin: 0;
    cursor: inherit;
}

body.home .home-destaque-categoria {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

body.home .home-destaque-texto {
    font-family: var(--font-sans-10-regular);
    font-size: var(--site-size-type-18);
    font-weight: 500;
    line-height: 1.35em;
}

/*
 * Widget "Open Finance Post List" com o visual dos Destaques da home
 * (.home-destaques). No campo "Classe CSS personalizada" do widget:
 * "ofpl-post-list-destaques ofpl-cols-2" (ofpl-cols-N = nº de colunas do
 * widget, usado nos divisores; por ora só existe a regra de 2 colunas).
 */
.ofpl-post-list.ofpl-post-list-destaques {
    gap: 0;
    margin-top: 28px;
}

.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__link,
.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__link:focus .ofpl-post__title {
    text-decoration: none;
}

.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__link {
    color: var(--site-grafite);
}

.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__link:hover .ofpl-post__title {
    color: var(--site-azul-claro);
    text-decoration: underline;
}

.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__link:focus-visible .ofpl-post__title {
    text-decoration: underline;
}

.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__meta {
    color: var(--site-grafite);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    font-family: var(--font-sans-10-medium);
    font-size: var(--site-size-type-14);
    font-weight: 500;
    line-height: 1.15em;
}

.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__title {
    font-family: var(--font-sans-10-regular);
    font-size: var(--site-size-type-18);
    line-height: 1.35em;
}

.ofpl-post-list.ofpl-post-list-destaques .ofpl-post__excerpt:empty {
    display: none;
}

@media screen and (min-width: 1025px) {

    /*
     * Divisores desenhados com ::before (vertical) e ::after (horizontal),
     * cada um parando --ofpl-line-gap antes do cruzamento: sobra um espaço
     * vazio no centro, onde as linhas não se encontram. As bordas dos cards
     * são transparentes só para manter as mesmas medidas.
     */
    .ofpl-post-list.ofpl-cols-2 {
        --ofpl-line-gap: 15px;
        --ofpl-line-color: var(--site-azul-claro);
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post {
        position: relative;
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(odd) {
        padding-right: 15px;
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(even) {
        border-left: 1px solid transparent;
        padding-left: 15px;
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(n+3) {
        border-top: 1px solid transparent;
        padding-top: 15px;
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:not(:nth-last-child(-n+2)) {
        padding-bottom: 15px;
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(even)::before,
    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(n+3)::after {
        content: '';
        position: absolute;
        background: var(--ofpl-line-color);
        pointer-events: none;
    }

    /* Divisor vertical: na borda esquerda dos cards da coluna da direita. */
    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(even)::before {
        top: 0;
        bottom: 0;
        left: -1px;
        width: 1px;
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(even):nth-child(n+3)::before {
        top: var(--ofpl-line-gap);
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(even):not(:nth-last-child(-n+2))::before {
        bottom: var(--ofpl-line-gap);
    }

    /* Divisor horizontal: no topo dos cards a partir da 2ª linha. */
    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(n+3)::after {
        top: -1px;
        left: 0;
        right: 0;
        height: 1px;
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(n+3):nth-child(odd)::after {
        right: var(--ofpl-line-gap);
    }

    .ofpl-post-list.ofpl-cols-2 .ofpl-post:nth-child(n+3):nth-child(even)::after {
        left: var(--ofpl-line-gap);
    }

}

@media screen and (max-width: 1024px) {

    html body .elementor .elementor-widget-ofpl-post-list .ofpl-post-list.ofpl-post-list-destaques {
        --ofpl-columns: 1;
    }

    .ofpl-post-list-destaques .ofpl-post:not(:first-child) {
        border-top: 1px solid var(--site-azul-claro);
        padding-top: 15px;
    }

    .ofpl-post-list-destaques .ofpl-post:not(:last-child) {
        padding-bottom: 15px;
    }

}

/*
 * Link "Ver mais posts" e botão "Continue lendo" do widget Open Finance Post List (classes do botão: btn-secondary).
 * Mesmo visual do .btn-secondary global do Elementor, que só é carregado nas páginas que o usam. No "Continue lendo" as
 * classes ficam no <span class="ofpl-post__more-label"> dentro do link (.ofpl-post__more), então os estados hover/foco/ativo
 * vêm do link (o hover vale para o card inteiro, porque o ::after do link cobre o card).
 */
.ofpl-post-list__more a.ofpl-load-more.btn-secondary,
.ofpl-post-list__more a.ofpl-load-more.btn-secondary:visited,
.ofpl-post__more-wrap .ofpl-post__more .btn-secondary {
    display: inline-block;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background-color: var(--site-amarelo);
    color: var(--site-grafite);
    font-family: var(--font-sans-10-medium);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
}

.ofpl-post-list__more a.ofpl-load-more.btn-secondary:hover,
.ofpl-post-list__more a.ofpl-load-more.btn-secondary:focus-visible,
.ofpl-post__more:hover .btn-secondary,
.ofpl-post__more:focus-visible .btn-secondary {
    background-color: #FFD25B;
    color: var(--site-grafite);
    text-decoration: underline;
}

.ofpl-post-list__more a.ofpl-load-more.btn-secondary:active,
.ofpl-post__more:active .btn-secondary {
    background-color: #EFB929;
    color: var(--site-grafite);
    text-decoration: underline;
}

/*
 * .btn-link no "Continue lendo": o hover/foco do .btn-link do tema (cor azul-claro e seta andando 4px) é do próprio
 * elemento, mas aqui quem recebe o hover é o link que cobre o card inteiro; então o estado é repetido a partir dele.
 */
.ofpl-post__more:hover .btn-link,
.ofpl-post__more:focus-visible .btn-link {
    color: var(--site-azul-claro);
}

.ofpl-post__more:hover .btn-link:after,
.ofpl-post__more:focus-visible .btn-link:after {
    transform: translateX(4px);
}

/*
 * Borda da imagem no hover/foco do card, em todas as listagens do widget Open Finance Post List (Home, páginas do
 * Consumidor etc.). A borda é uma sobreposição (::after da .ofpl-post__media) com inset box-shadow, então ela cresce de
 * fora para dentro (0 → 4px) sem mexer no layout nem empurrar nenhum elemento, e herda o border-radius do wrapper, que
 * corta a imagem (a <img> em si não tem raio). A imagem ocupa 100% do wrapper (display: block + width: 100%, no CSS do
 * plugin), senão sobraria vão entre a borda e a imagem. Cor: azul escuro do site.
 */
.ofpl-post-list {
    --ofpl-hover-border: var(--site-azul-escuro, #005F78);
}

.ofpl-post-list .ofpl-post__media {
    position: relative;
}

.ofpl-post-list .ofpl-post__media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 var(--ofpl-hover-border);
    transition: box-shadow 200ms ease;
    pointer-events: none;
}

.ofpl-post-list .ofpl-post:hover .ofpl-post__media::after,
.ofpl-post-list .ofpl-post:focus-within .ofpl-post__media::after {
    box-shadow: inset 0 0 0 4px var(--ofpl-hover-border);
}

@media (prefers-reduced-motion: reduce) {
    .ofpl-post-list .ofpl-post__media::after {
        transition: none;
    }
}

body.home .ofpl-post-list-consumidor {
    font-family: var(--font-sans-10-regular);
    color: var(--site-grafite);
    gap: 70px;
}

body.home .ofpl-post-list-consumidor * {
    text-decoration: none;
}

body.home .ofpl-post-list-consumidor .ofpl-post__meta {
    text-transform: none;
    font-family: var(--font-sans-10-medium);
    font-size: var(--site-size-type-16);
    gap: 0;
}

body.home .ofpl-post-list-consumidor .ofpl-post__taxonomy {
    text-transform: none;
    font-family: var(--font-sans-10-medium);
    color: var(--site-grafite);
}

body.home .ofpl-post-list-consumidor .ofpl-post__date {
    margin-left: 10px;
}

body.home .ofpl-post-list-consumidor .ofpl-post__date:before {
    content: '/';
    margin-right: 10px;
}

body.home .ofpl-post-list-consumidor .ofpl-post__link:hover .ofpl-post__title,
body.home .ofpl-post-list-consumidor .ofpl-post__link:focus-within .ofpl-post__title {
    color: var(--site-azul-claro);
}

/* Título dos cards: 1.35em (igual ao das páginas do Consumidor). */
body.home .ofpl-post-list-consumidor .ofpl-post__title {
    font-size: 1.35em;
}

/*
 * Título dos cards de "Informação é poder" (Home e páginas do Consumidor): no máximo 2 linhas, cortado com reticências
 * (o texto completo continua no HTML e no nome acessível do link). Só nas páginas do Consumidor, no desktop (≥1024px), o
 * título tem altura mínima de 2 linhas (2 × o line-height 1.1 = 2.2em), para a imagem começar na mesma altura em todos os
 * cards da fileira; a Home (cards um embaixo do outro) não precisa de altura mínima. O corte é só CSS
 * (-webkit-line-clamp + overflow hidden): as descendentes (g, p, ç) da 2ª linha não são cortadas.
 */
.posts-consumidor .ofpl-post__title,
.ofpl-post-list-consumidor .ofpl-post__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .posts-consumidor .ofpl-post__title {
        min-height: 2.2em;
    }
}

/*
 * Resumo dos cards (abaixo da imagem): mesmo tratamento do título. No máximo 2 linhas, cortado com reticências (CSS puro) nas
 * duas listas; só nas páginas do Consumidor, no desktop (≥1024px), com altura de 2 linhas (line-height 1.35 = 2.7em), para
 * os cards da fileira ficarem alinhados. Card sem resumo não imprime o bloco (o botão continua no fim do card).
 */
.posts-consumidor .ofpl-post__excerpt,
.ofpl-post-list-consumidor .ofpl-post__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .posts-consumidor .ofpl-post__excerpt {
        min-height: 2.7em;
    }
}

/* Na Home o título só muda de cor no hover/foco (sem sublinhado), também no card com o botão "Continue lendo". */
body.home .ofpl-post-list-consumidor .ofpl-post--has-read-more:hover .ofpl-post__title,
body.home .ofpl-post-list-consumidor .ofpl-post--has-read-more:focus-within .ofpl-post__title {
    text-decoration: none;
}

/* Resumo dos cards (mesmo tamanho e cor cheia das páginas do Consumidor, sem a opacidade do estilo base). */
body.home .ofpl-post-list-consumidor .ofpl-post__excerpt {
    color: var(--site-grafite);
    font-size: var(--site-size-type-16);
    line-height: 1.35;
    opacity: 1;
}

@media screen and (min-width: 1025px) {
    
    body.home .home-destaque:not(:first-child) {
        border-left: 1px solid var(--site-azul-claro);
        padding-left: 15px;
    }

    body.home .home-destaque:not(:last-child) {
        padding-right: 15px;
    }

}

@media screen and (max-width: 1024px) {

    body.home .home-destaques {
        grid-template-columns: 1fr;
    }

    body.home .home-destaque:not(:first-child) {
        border-top: 1px solid var(--site-azul-claro);
        padding-top: 15px;
    }

    body.home .home-destaque:not(:last-child) {
        padding-bottom: 15px;
    }

    body.home .ofpl-post-list-consumidor {
        gap: 35px;
    }

}


body.home #home-numero-clientes-unicos-final,
body.home #home-numero-clientes-unicoss-final,
body.home #home-numero-chamadas-final,
body.home #home-numero-instituicoes-final,
body.page-id-1211 #qsm-chamadas-api-final,
body.page-id-1211 #qsm-consent-ativ-opf-final,
body.page-id-1211 #qsm-consent-uni-rep-final,
body.page-id-1211 #qsm-ins-ass-opf-final,
body.page-id-1211 #qsm-con-pru-fin-final,
body.page-id-1211 #qsm-ins-coo-cad-par-final,
body.page-id-2071 #qmp-icccp-final,
body.page-id-2071 #qmp-cpf-final,
body.page-id-2071 #qmp-iaopf-final {
    pointer-events: none;
}

/* Números animados: escondidos até o home-numeros-animacao.js zerá-los (html.of-numeros-js é
   adicionada no <head> pelo functions.php; o script libera cada um com .of-num-ready).
   Sem o script, mostra o número depois de 3s. O espaço continua reservado (visibility). */
html.of-numeros-js :is(
    #home-numero-clientes-unicos,
    #home-numero-clientes-unicoss,
    #home-numero-chamadas,
    #home-numero-instituicoes,
    #qsm-chamadas-api,
    #qsm-consent-ativ-opf,
    #qsm-consent-uni-rep,
    #qsm-ins-ass-opf,
    #qsm-con-pru-fin,
    #qsm-ins-coo-cad-par,
    #qmp-icccp,
    #qmp-cpf,
    #qmp-iaopf
):not(.of-num-ready) {
    visibility: hidden;
    animation: of-num-failsafe 0s 3s forwards;
}

@keyframes of-num-failsafe {
    to { visibility: visible; }
}

#content.site-main-secondary {
    display: flex;
    flex-wrap: wrap;
}

/* "Fale conosco" não é página do Elementor (sem a classe elementor-page-*): o Hello limitaria o .site-main a 1140px e desalinharia o wrapper. */
body.page-template-fale-conosco #content.site-main {
    max-width: none;
    padding-inline: 0;
}

#content.site-main-secondary > .wrapper {
    column-gap: 40px;
    column-gap: clamp(40px,8.92vw,135px);
    padding-bottom: 6.25rem;
}

#content.site-main-secondary .page-breadcrumbs {
    width: 100%;
    margin-bottom: 50px;
}

#content.site-main-secondary .col-full-width {
    width: 100%;
}

#content.site-main-secondary .col-content {
    width: 805px;
    width: clamp(600px,53.24vw,805px);
    flex: 1;
    /* Sem isso o flex item não encolhe abaixo do min-content do conteúdo (ex.: o carrossel de cards, com
       os slides em uma linha) e a sidebar quebra para baixo da coluna de conteúdo. */
    min-width: 0;
}

#content.site-main-secondary .col-sidebar {
    width: 285px;
    width: clamp(200px, 18.91vw, 285px);
    min-width: clamp(200px, 18.91vw, 285px);
    margin-left: auto;
}

.col-sidebar .hfe-nav-menu,
.col-sidebar .menu-item {
    width: 100%;
}

.col-sidebar .elementor-widget-navigation-menu .menu-item + .menu-item {
    margin-top: 4px;
}

.col-sidebar .elementor-widget-navigation-menu .menu-item a.hfe-menu-item {
    display: block;
    border-bottom: 1px solid transparent;
    box-shadow: 0 1px 0 var(--site-grafite);
    padding: 4px 0 !important;
}

.col-sidebar .elementor-widget-navigation-menu .menu-item:not(.current-menu-item) a.hfe-menu-item:hover {
    display: block;
    border-bottom: 1px solid var(--site-azul-claro);
    box-shadow: 0 2px 0 var(--site-azul-claro);
}

.col-sidebar .elementor-widget-navigation-menu .menu-item.current-menu-item a.hfe-menu-item {
    color: var(--site-grafite);
    box-shadow: 0 1px 0 var(--site-grafite);
}

.col-content .page-content p:not([class^="site-size-type-"], [class*=" site-size-type-"]) {
    line-height: 1.5em; /* 150% */
}

.col-content .page-content p.e-default-p + p.e-default-p:not([class^="site-size-type-"], [class*=" site-size-type-"]) {
    margin-top: 1em;
}

.col-content .page-content p.e-paragraph-base a,
.elementor .elementor-widget-text-editor a {
    color: var(--site-azul-escuro);
    text-decoration: none;
    border-bottom: 1px dotted var(--site-azul-escuro);
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: .5rem;
}

.col-content .page-content p.e-paragraph-base a:hover,
.elementor .elementor-widget-text-editor a:hover {
    color: var(--site-azul-escuro);
    border-bottom: 1px solid var(--site-azul-escuro);
    text-decoration: none;
}

.col-content .elementor-element-d6c2c80 svg {
    width: 100%;
    height: auto;
}

/*
 * SVGs exportados do Figma (ex.: o organograma da Associação) trazem o texto com font-family="Blogger Sans",
 * nome da fonte instalada no computador de quem desenhou, que não existe na web: sem a fonte instalada o
 * Safari (e qualquer navegador) cai numa fonte com serifa. Aqui o nome vira a fonte web do site, pelo peso.
 */
.elementor svg text[font-family="Blogger Sans"] {
    font-family: var(--font-sans-10-regular);
}

.elementor svg text[font-family="Blogger Sans"][font-weight="500"] {
    font-family: var(--font-sans-10-medium);
}

.elementor svg text[font-family="Blogger Sans"][font-weight="700"] {
    font-family: 'blogger_sansbold', sans-serif;
}

@media screen and (max-width: 1023px) {

    #content.site-main-secondary .col-content {
        width: 100%;
    }

    #content.site-main-secondary .col-sidebar {
        display: none;
    }
}

.ofew-participants__letter:hover {
    color: var(--site-azul-escuro);
}
/*
 * Lista de vídeos "Orientações" (Resolução de disputas; o widget de texto tem a classe .lista-videos): ícone de play, pequeno
 * e da altura da linha, no fim de cada item, dentro do link (a área clicável aumenta junto). É um pseudo-elemento sem texto
 * (decorativo: leitores de tela leem só o texto do link), uma máscara SVG pintada com o azul escuro do site.
 *
 * Sublinhado só no texto: o tema desenha o sublinhado dos links de texto com border-bottom pontilhado, que correria também
 * por baixo do ícone. Nesta lista ele vira text-decoration pontilhado (mesma cor, 1px e a mesma posição: a borda começava 5px
 * abaixo da linha de base), que não é herdado por elementos inline-block, então o ícone fica sem sublinhado.
 */
.elementor .lista-videos ol li a {
    border-bottom: 0;
    text-decoration: underline dotted var(--site-azul-escuro);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.lista-videos ol li a::after {
    content: "";
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    margin-inline-start: 0.4em;
    vertical-align: -0.3em;
    background-color: var(--site-azul-escuro, #005F78);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM10 7.5l7 4.5-7 4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM10 7.5l7 4.5-7 4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (forced-colors: active) {
    .lista-videos ol li a::after {
        background-color: LinkText;
    }
}
