/* ==========================================================================
   HOME — ESTRUTURA E SEÇÕES

   Arquivo consolidado:
   - sem regras duplicadas;
   - hero preservado;
   - títulos principais padronizados;
   - Atuação e Notícias com colunas e títulos organizados;
   - Conexão e feed mantidos em um único bloco;
   - responsividade continua no responsive.css.
========================================================================== */


/* ========================================================================
   HERO
======================================================================== */

.hero {
    position: relative;
    min-height: 54rem;
    height: 94svh;
    max-height: 66rem;
    padding-top: var(--header-height);
    overflow: hidden;
    background: #033651;
}

.hero::before {
    content: "";
    position: absolute;
    top: var(--header-height);
    right: 0;
    bottom: 7rem;
    left: 0;

    /* Gradiente com as cores do logotipo (azul escuro #177291, azul
       #2A85BB, azul claro #23B6E9 e verde #4E9B3A) em vez da imagem
       hero-bg.png — transparente de propósito, pra deixar a foto do
       .hero-collage por baixo ainda visível. */
    background: linear-gradient(
        189deg,
        rgb(6 21 27) 0%,
        rgb(26 86 121 / 70%) 35%,
        rgba(35, 182, 233, 0.55) 65%,
        rgba(78, 155, 58, 0.55) 100%
    );
}

.hero-collage {
    position: absolute;
    top: var(--header-height);
    right: 0;
    bottom: 7rem;
    left: 0;
    background: url("../images/ui/hero-collage.webp") center center / cover no-repeat;
    opacity: 1.0;
    filter: brightness(1.25) contrast(1.15) saturate(0.9);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 3;
    height: calc( 100% - 7rem );
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(30rem, 1.08fr);
    align-items: stretch;
    gap: clamp( 1.5rem, 3vw, 3.5rem );
}

.hero-pillars {
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    z-index: 6;
    height: 4.8rem;
    display: flex;
    gap: 0.8rem;
    padding-inline: 0;
    overflow: visible;
}

.hero-pillar {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    color: var(--color-white);
    background: #095177;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid transparent;
    transition: filter var(--ease-fast), transform var(--ease-fast), background-color var(--ease-fast);
}

.hero-pillar:last-child {
    border-right: 0;
}

/*
 * Selo do ícone: dois elementos empilhados — o círculo (fundo) e o
 * ícone em si, "pintado" via CSS mask (o arquivo é um <img> externo,
 * então não dá pra recolorir com fill/currentColor direto — a máscara
 * usa o SVG só como recorte e pinta com background-color).
 */
.hero-pillar__badge {
    width: 3.25rem;
    height: 3.25rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: background-color var(--ease-fast);
}

.hero-pillar__icon {
    width: 1.625rem;
    height: 1.625rem;
    display: block;
    background-color: var(--color-white);
    -webkit-mask-image: var(--icon);
    mask-image: var(--icon);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color var(--ease-fast);
}

/* Hover/active: o selo assume a cor individual de cada bandeira (a
   mesma da borda superior), círculo bem claro no mesmo tom, ícone na
   cor cheia. */
.hero-pillar--commitment:hover .hero-pillar__badge,
.hero-pillar--commitment:focus-visible .hero-pillar__badge,
.hero-pillar--commitment.is-active .hero-pillar__badge,
.hero-pillar--commitment:hover .flag-icon,
.hero-pillar--commitment.is-open .flag-icon {
    background: color-mix(in srgb, var(--color-flag-1) 22%, white);
}

.hero-pillar--commitment:hover .hero-pillar__icon,
.hero-pillar--commitment:focus-visible .hero-pillar__icon,
.hero-pillar--commitment.is-active .hero-pillar__icon,
.hero-pillar--commitment.is-open .hero-pillar__icon {
    background-color: var(--color-flag-1);
}

.hero-pillar--representation:hover .hero-pillar__badge,
.hero-pillar--representation:focus-visible .hero-pillar__badge,
.hero-pillar--representation.is-active .hero-pillar__badge,
.hero-pillar--representation:hover .flag-icon,
.hero-pillar--representation.is-open .flag-icon {
    background: color-mix(in srgb, var(--color-flag-2) 22%, white);
}

.hero-pillar--representation:hover .hero-pillar__icon,
.hero-pillar--representation:focus-visible .hero-pillar__icon,
.hero-pillar--representation.is-active .hero-pillar__icon,
.hero-pillar--representation.is-open .hero-pillar__icon {
    background-color: var(--color-flag-2);
}

.hero-pillar--respect:hover .hero-pillar__badge,
.hero-pillar--respect:focus-visible .hero-pillar__badge,
.hero-pillar--respect.is-active .hero-pillar__badge,
.hero-pillar--respect:hover .flag-icon,
.hero-pillar--respect.is-open .flag-icon {
    background: color-mix(in srgb, var(--color-flag-3) 22%, white);
}

.hero-pillar--respect:hover .hero-pillar__icon,
.hero-pillar--respect:focus-visible .hero-pillar__icon,
.hero-pillar--respect.is-active .hero-pillar__icon,
.hero-pillar--respect.is-open .hero-pillar__icon {
    background-color: var(--color-flag-3);
}

.hero-pillar--sensitivity:hover .hero-pillar__badge,
.hero-pillar--sensitivity:focus-visible .hero-pillar__badge,
.hero-pillar--sensitivity.is-active .hero-pillar__badge,
.hero-pillar--sensitivity:hover .flag-icon,
.hero-pillar--sensitivity.is-open .flag-icon {
    background: color-mix(in srgb, var(--color-flag-4) 22%, white);
}

.hero-pillar--sensitivity:hover .hero-pillar__icon,
.hero-pillar--sensitivity:focus-visible .hero-pillar__icon,
.hero-pillar--sensitivity.is-active .hero-pillar__icon,
.hero-pillar--sensitivity.is-open .hero-pillar__icon {
    background-color: var(--color-flag-4);
}

.hero-pillar--women:hover .hero-pillar__badge,
.hero-pillar--women:focus-visible .hero-pillar__badge,
.hero-pillar--women.is-active .hero-pillar__badge,
.hero-pillar--women:hover .flag-icon,
.hero-pillar--women.is-open .flag-icon {
    background: color-mix(in srgb, var(--color-flag-5) 22%, white);
}

.hero-pillar--women:hover .hero-pillar__icon,
.hero-pillar--women:focus-visible .hero-pillar__icon,
.hero-pillar--women.is-active .hero-pillar__icon,
.hero-pillar--women.is-open .hero-pillar__icon {
    background-color: var(--color-flag-5);
}

.hero-pillar span {
    min-width: 0;
    font-size: var(--font-size-sm);
    font-weight: 800;
    letter-spacing: 0.015em;
    text-align: center;
    text-transform: uppercase;
}

.hero-pillar:focus-visible {
    outline: 0.1875rem solid var(--color-yellow);
    outline-offset: -0.1875rem;
}

/* Hover/active do hero-pillar (nav do hero) — escopado com
   .hero-pillar na frente pra não vazar pra .flag-item, que reaproveita
   a mesma classe hero-pillar--X. */
.hero-pillar.hero-pillar--commitment:hover,
.hero-pillar.hero-pillar--commitment:focus-visible,
.hero-pillar.hero-pillar--commitment.is-active {
    background-color: var(--color-flag-1);
    border-top-color: var(--color-flag-1);
}

.hero-pillar.hero-pillar--representation:hover,
.hero-pillar.hero-pillar--representation:focus-visible,
.hero-pillar.hero-pillar--representation.is-active {
    background-color: var(--color-flag-2);
    border-top-color: var(--color-flag-2);
}

.hero-pillar.hero-pillar--respect:hover,
.hero-pillar.hero-pillar--respect:focus-visible,
.hero-pillar.hero-pillar--respect.is-active {
    background-color: var(--color-flag-3);
    border-top-color: var(--color-flag-3);
}

.hero-pillar.hero-pillar--sensitivity:hover,
.hero-pillar.hero-pillar--sensitivity:focus-visible,
.hero-pillar.hero-pillar--sensitivity.is-active {
    background-color: var(--color-flag-4);
    border-top-color: var(--color-flag-4);
}

.hero-pillar.hero-pillar--women:hover,
.hero-pillar.hero-pillar--women:focus-visible,
.hero-pillar.hero-pillar--women.is-active {
    background-color: var(--color-flag-5);
    border-top-color: var(--color-flag-5);
}

/* Bandeiras de atuação (acordeão lá embaixo) — hover/aberto num
   único tom fixo, sem variação por bandeira. */
.flag-item:hover,
.flag-item.is-open {
    background-color: #006372;
}

.flag-item:hover .hero-pillar__icon,
.flag-item.is-open .hero-pillar__icon {
    background-color: #006372;
}

.hero-copy {
    align-self: center;
    padding: 2rem 0;
}

.hero-copy h1 {
    max-width: 9.5ch;
    margin: 1.5rem 0 1.75rem;
    color: var(--color-white);
    font-size: clamp( 3.4rem, 4.9vw, 5.6rem );
    line-height: 0.88;
    letter-spacing: -0.06em;
}

.hero-copy h1 > span {
    display: block;
    margin-bottom: 0.14em;
}

.hero-copy h1 strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 0.14em;
    color: var(--color-yellow);
    font-family: var(--font-family-script);
    font-size: 0.92em;
    font-style: normal;
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.02em;
    white-space: nowrap;
    isolation: isolate;
}

.hero-copy h1 strong .hero-highlight {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.hero-copy h1 strong .hero-highlight::after {
    content: "";
    position: absolute;
    left: -0.2em;
    bottom: -0.18em;
    z-index: -1;
    width: 2.25em;
    height: 1.08em;
    pointer-events: none;

    /* Pincelada original é azul escuro fixo no PNG — recolorida via
       mask (o arquivo continua o mesmo, só a cor de pintura muda).
       Tom mais escuro que --color-primary de propósito, pra não
       competir com o amarelo do texto "todos.". */
    background-color: var(--color-blue);
    -webkit-mask-image: url("../images/ui/hero-brush.png");
    mask-image: url("../images/ui/hero-brush.png");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.hero-copy h1 strong::after {
    content: none !important;
    display: none !important;
}

.hero-copy p {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-md);
    line-height: 1.55;
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.hero-person {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}

.hero-person img {
    position: absolute;
    right: clamp( -1.25rem, -0.6vw, -0.25rem );
    bottom: 0;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
}

.eyebrow {
    text-transform: uppercase;
    font-weight: 700;
}


/* ========================================================================
   CABEÇALHOS DAS SEÇÕES
======================================================================== */

.section-heading {
    width: 100%;
    margin-bottom: clamp( 3rem, 5vw, 5rem );
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    align-items: center;
    gap: clamp( 3rem, 6vw, 7rem );
}

.section-heading > div {
    min-width: 0;
}

.section-heading .eyebrow {
    display: inline-flex;
    align-items: center;
}

.section-heading h2 {
    max-width: 17ch;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.section-heading > p {
    width: 100%;
    max-width: 32rem;
    margin: 0;
    justify-self: end;
    align-self: center;
    font-size: var(--font-size-md);
    line-height: 1.55;
}

.section-heading--light h2 {
    color: var(--color-white);
}

.section-heading--light > p {
    color: rgba(255, 255, 255, 0.82);
}


/* ========================================================================
   SOBRE
======================================================================== */

.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 40rem;
    background: var(--color-surface);
}

.about-left,
.about-video {
    min-width: 0;
}

.about-left {
    display: flex;
    align-items: stretch;
}

.about-left__inner {
    width: min( calc(var(--container) / 2), calc(100% - var(--gutter)) );
    margin-left: auto;
    padding: clamp(4rem, 7vw, 6.5rem) clamp(2rem, 4vw, 4rem) clamp(4rem, 7vw, 6.5rem) 0;
}

.about-left h2 {
    max-width: 12ch;
}

.about-left p {
    max-width: 36rem;
    font-size: var(--font-size-md);
    line-height: 1.55;
}

.about-lead {
    font-weight: 500;
}

.about-left blockquote {
    position: relative;
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 1.75rem 1.5rem 3.25rem;
    color: var(--color-heading-dark);
    background: var(--color-white);
    border-left: 0.3125rem solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-sm);
    font-size: clamp( 1.25rem, 1.6vw, 1.75rem );
    font-style: italic;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.about-left blockquote::before {
    content: "\201C";
    position: absolute;
    top: 0.5rem;
    left: 0.9rem;
    color: var(--color-primary);
    font-family: var(--font-family-heading);
    font-size: 3rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    opacity: 0.4;
}

.about-left blockquote cite {
    display: block;
    margin-top: 0.75rem;
    color: var(--color-primary);
    font-size: var(--font-size-xs);
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.about-left blockquote cite::before {
    content: "\2014 ";
}

.text-link {
    color: var(--color-blue);
    font-size: var(--font-size-md);
    font-weight: 800;
}

.about-video {
    min-width: 0;
    padding: clamp(4rem, 7vw, 6.5rem) max( var(--gutter), calc((100vw - var(--container)) / 2) ) clamp(4rem, 7vw, 6.5rem) clamp(2rem, 4vw, 4rem);
    display: flex;
    align-items: flex-start;
}

.video-card {
    width: 100%;
    height: clamp( 28rem, 35vw, 37rem );
    min-height: 0;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    text-align: left;
    transition: transform var(--ease), box-shadow var(--ease);
    border-radius: var(--radius-md);
}

.video-card__image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    overflow: hidden;
}

.video-card__image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.video-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(35, 182, 233, 0.35), rgba(18, 59, 87, 0.74) );
    mix-blend-mode: multiply;
    pointer-events: none;
}

.video-card__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.video-card__play img {
    width: 4.625rem;
    display: block;
    transition: transform var(--ease-fast);
}

.video-card__play--static {
    width: 5rem;
    height: 5rem;
    margin: auto;
    display: grid;
    place-items: center;
    background: var(--color-yellow);
    border-radius: 50%;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.28);
}

.video-card__play--static svg {
    width: 1.85rem;
    height: 1.85rem;
    fill: var(--color-heading-dark);
}

.video-card__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 1.25rem 1.5rem;

    color: var(--color-white);

    background: linear-gradient(0deg, rgba(6, 21, 27, 0.72), transparent);

    font-size: var(--font-size-sm);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.video-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 2rem 5rem rgba(17, 50, 104, 0.2);
}

.video-card:hover .video-card__play img {
    transform: scale(1.08);
}


/* ========================================================================
   ATUAÇÃO E RESULTADOS
======================================================================== */

.work {
    background: var(--color-surface-soft);
}


/* ========================================================================
   PAINEL DE RESULTADOS
======================================================================== */

.results {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    background: var(--color-white);
    box-shadow: var(--shadow);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.results-nav {
    display: grid;
    grid-template-rows: repeat( 3, minmax(0, 1fr) );
}

.results-nav button {
    border: 0;
    color: var(--color-blue);
    background: var(--color-surface);
    font-weight: 900;
    cursor: pointer;
    transition: color var(--ease-fast), background-color var(--ease-fast);
}

.results-nav button:hover {
    color: var(--color-white);
    background: var(--color-secondary);
}

.results-nav button[aria-selected="true"] {
    color: var(--color-white);
    background: var(--color-secondary);
}

.result-label {
    width: fit-content;
    align-self: flex-start;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
}


/* ========================================================================
   BANDEIRAS
======================================================================== */

.flags {
    color: var(--color-white);
    background: var(--color-flags-bg);
}

.flag-accordion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
}

/* Item aberto ocupa as duas colunas, pra não sobrar espaço vazio
   desalinhado no vizinho da mesma linha quando o conteúdo expande. */
.flag-item.is-open {
    grid-column: 1 / -1;
}

.flag-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-top: 0.25rem solid transparent;
    border-radius: var(--radius-md);
    /* Mais claro que o fundo da seção (--color-flags-bg) de propósito
       — sem isso o card some contra o fundo no estado fechado. */
    background: var(--color-blue);
}

.flag-item button {
    width: 100%;
    min-height: 5.75rem;
    padding: 0.875rem 1.25rem;
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    color: var(--color-white);
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.flag-icon {
    width: 3.75rem;
    height: 3.75rem;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: background-color var(--ease-fast);
}

.flag-icon .hero-pillar__icon {
    width: 1.875rem;
    height: 1.875rem;
}

.flag-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
}

.flag-title {
    font-size: clamp( 1.05rem, 1.5vw, 1.4rem );
    font-weight: 700;
}

.flag-card__summary {
    width: 100%;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--font-size-sm);
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flag-toggle {
    font-size: 2rem;
}

.flag-number {
    display: none;
    font-size: var(--font-size-xs);
    font-weight: 800;
    opacity: 0.7;
}

.flag-content {
    padding: 0 2rem 1.75rem 6.25rem;
}

.flag-item:not(.is-open) .flag-content {
    display: none;
}

.flag-item.is-open .flag-content {
    display: block;
}

.flag-content p {
    max-width: 48rem;
    color: var(--color-white);
    font-size: var(--font-size-md);
}

.flag-lead {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.flag-content p:not(.flag-lead) {
    font-weight: 400;
}

.flag-content a:not(.btn) {
    color: var(--color-yellow);
    font-weight: 800;
}

/* Conteúdo expandido em 2 colunas: compromisso público à esquerda,
   atuação parlamentar (texto + ações) à direita. */
.flag-content__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

.flag-content__col .eyebrow {
    display: block;
    margin-bottom: 0.75rem;
}

.flag-content__col h3 {
    margin: 0 0 0.75rem;
    color: var(--color-white);
    font-size: clamp(1.25rem, 2vw, 1.625rem);
}

.flag-content__actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.flag-content__close {
    margin-top: 1.5rem;
    padding: 0;
    display: inline-block;
    background: none;
    border: 0;
    border-bottom: 0.125rem solid var(--color-yellow);
    color: var(--color-yellow);
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

/* ==========================================================================
   BANDEIRAS — HOVER E ESTADO ATIVO
========================================================================== */

.flag-item {
    transition:
        filter var(--ease-fast),
        box-shadow var(--ease-fast),
        transform var(--ease-fast);
}


/* Hover: clareia levemente */

.flag-item:hover {
    filter: brightness(1.08);
}


/* Item aberto: a borda vira um anel na cor da própria bandeira (a
   mesma do border-top no estado fechado) — por isso zera o
   border-top-color aqui, pra não sobrar uma faixa duplicada em cima. */
.flag-item.is-open {
    border-top-width: 0;
}

.flag-item.hero-pillar--commitment.is-open {
    box-shadow: inset 0 0 0 3px var(--color-flag-1);
}

.flag-item.hero-pillar--representation.is-open {
    box-shadow: inset 0 0 0 3px var(--color-flag-2);
}

.flag-item.hero-pillar--respect.is-open {
    box-shadow: inset 0 0 0 3px var(--color-flag-3);
}

.flag-item.hero-pillar--sensitivity.is-open {
    box-shadow: inset 0 0 0 3px var(--color-flag-4);
}

.flag-item.hero-pillar--women.is-open {
    box-shadow: inset 0 0 0 3px var(--color-flag-5);
}

/* Borda superior colorida por variante no estado fechado. */
.flag-item.hero-pillar--commitment { border-top-color: var(--color-flag-1); }
.flag-item.hero-pillar--representation { border-top-color: var(--color-flag-2); }
.flag-item.hero-pillar--respect { border-top-color: var(--color-flag-3); }
.flag-item.hero-pillar--sensitivity { border-top-color: var(--color-flag-4); }
.flag-item.hero-pillar--women { border-top-color: var(--color-flag-5); }

/* Fundo levemente tingido na cor da variante quando aberto. */
.flag-item.hero-pillar--commitment.is-open { background: color-mix(in srgb, var(--color-flag-1) 16%, var(--color-blue)); }
.flag-item.hero-pillar--representation.is-open { background: color-mix(in srgb, var(--color-flag-2) 16%, var(--color-blue)); }
.flag-item.hero-pillar--respect.is-open { background: color-mix(in srgb, var(--color-flag-3) 16%, var(--color-blue)); }
.flag-item.hero-pillar--sensitivity.is-open { background: color-mix(in srgb, var(--color-flag-4) 16%, var(--color-blue)); }
.flag-item.hero-pillar--women.is-open { background: color-mix(in srgb, var(--color-flag-5) 16%, var(--color-blue)); }


/* Item aberto no hover */

.flag-item.is-open:hover {
    filter: brightness(0.88);
}

/* ==========================================================================
   BANDEIRAS — FAQ (página Bandeiras)
========================================================================== */

.flags-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Mesmo padrão de borda lateral colorida já usado em blockquote/citação
   nas páginas internas (internal.css, .prose blockquote) — reaproveitado
   aqui em vez de inventar um estilo novo pro acordeão. */
.faq-item {
    border: 1px solid var(--color-surface);
    border-left: 0.3rem solid var(--color-purple);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item.is-open {
    border-left-color: var(--color-secondary);
}

.faq-item__question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--color-heading-dark);
    background: var(--color-surface-soft);
    border: 0;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.faq-item__toggle {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--color-blue);
}

.faq-item.is-open .faq-item__toggle {
    color: var(--color-secondary);
}

.faq-item__panel {
    padding: 1.25rem 1.5rem;
    color: var(--color-text);
    line-height: 1.6;
}

/* ========================================================================
   ESCUTA MS
======================================================================== */

.listening {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: var(--color-white);
    background: linear-gradient( 135deg, var(--color-blue), var(--color-secondary) );
}

/* Textura de fundo — combina com os elementos (coração, balão, blob) já
   desenhados na própria foto da Bárbara, pra seção não ficar com a foto
   "colada" num degradê liso. Fica atrás do form e da copy (z-index:0). */
.listening-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.listening-decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.listening-decor__blob {
    fill: rgba(255, 255, 255, 0.06);
}

.listening-decor__swoosh {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 3;
    stroke-linecap: round;
}

.listening-decor__heart {
    fill: rgba(255, 255, 255, 0.1);
}

.listening-decor__dot--yellow {
    fill: var(--color-yellow);
    opacity: 0.55;
}

.listening-decor__dot--white {
    fill: var(--color-white);
    opacity: 0.3;
}

.listening-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    align-items: stretch;
    gap: clamp(3rem, 7vw, 2rem);
}

.listening-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.listening-copy__media {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: auto;
    /* Sangra até a base real da seção e invade um pouco a seção
       seguinte (o shape azul de baixo da imagem vaza por cima,
       sem cortar) — precisa do z-index em .listening pra não ficar
       atrás do fundo da próxima seção. */
    margin-bottom: calc(-1 * var(--section) - 5.8rem);
}

.listening-copy__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.listening h2 {
    max-width: 28ch;
    color: var(--color-white);
}

.listening-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--font-size-md);
}

.listening-form {
    padding: clamp( 1.5rem, 3vw, 2.25rem );
    display: grid;
    gap: 0.75rem;
    color: var(--color-heading-dark);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Tamanho padrão de qualquer input/select/textarea de formulário do
   site (mesma métrica usada no projeto da Keliana). */
.listening-form input[type="text"],
.listening-form input[type="email"],
.listening-form input[type="tel"],
.listening-form input[type="date"],
.listening-form input[type="datetime-local"],
.listening-form textarea,
.listening-form select,
.searchable-select__input {
    width: 100%;
    height: 3rem;
    border: 1px solid #DDDDDD;
    background: var(--color-white);
    color: var(--color-heading-dark);
    font: inherit;
    font-size: 0.875rem;
    border-radius: 0.625rem;
    padding: 0 0.8125rem;
    outline: 0;
}

.listening-form textarea {
    height: auto;
    padding-top: 0.75rem;
    resize: vertical;
}

.listening-form input:focus,
.listening-form textarea:focus,
.listening-form select:focus,
.searchable-select__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(35, 182, 233, 0.12);
}

/* ==========================================================================
   COMBOBOX DE CIDADE (buscável) — reutilizável em qualquer form
========================================================================== */

.searchable-select {
    position: relative;
}

.searchable-select__control {
    position: relative;
}

.searchable-select__input {
    padding-right: 2.375rem;
    cursor: text;
}

.searchable-select__control svg {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: var(--color-blue);
    pointer-events: none;
    transform: translateY(-50%);
}

.searchable-select__list {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    max-height: 15rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.375rem;
    list-style: none;
    background: var(--color-white);
    border: 1px solid #DDDDDD;
    border-radius: 0.625rem;
    box-shadow: var(--shadow);
}

.searchable-select__list li {
    padding: 0.5625rem 0.75rem;
    border-radius: 0.4375rem;
    font-size: 0.875rem;
    color: var(--color-heading-dark);
    cursor: pointer;
}

.searchable-select__list li:hover,
.searchable-select__list li.is-active {
    background: var(--color-surface);
    color: var(--color-blue);
}

.searchable-select__list li[hidden] {
    display: none;
}

.topic-picker {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat( 3, minmax(0, 1fr) );
    gap: 0.625rem;
    border: 0;
}

.topic-picker legend {
    width: 100%;
    margin-bottom: 0.75rem;
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.topic-picker button {
    min-height: 4.25rem;
    padding: 0.625rem 0.75rem;
    display: grid;
    grid-template-rows: max-content max-content;
    align-content: center;
    justify-items: center;
    gap: 0.25rem;
    border: 1px solid #DDDDDD;
    background: var(--color-surface-soft);
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-weight: 800;
    transition: color var(--ease-fast), background-color var(--ease-fast), border-color var(--ease-fast);
}

.topic-picker button:hover {
    border-color: var(--color-secondary);
}

.topic-picker button.is-selected {
    color: var(--color-white);
    border-color: var(--color-secondary);
    background: var(--color-secondary);
}

.topic-picker button img {
    width: 2rem;
    max-height: 2.125rem;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.82;
}

.topic-picker button.is-selected img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.listening-form label > span {
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.listening-form small {
    display: flex;
    justify-content: space-between;
    color: #777777;
}

.listening-form .check {
    width: 100%;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.875rem;
    cursor: pointer;
}

.listening-form .check input[type="checkbox"] {
    width: 1.625rem;
    height: 1.625rem;
    margin: 0;
    flex: 0 0 1.625rem;
    accent-color: var(--color-secondary);
    cursor: pointer;
}

.listening-form .check span {
    margin: 0;
    display: inline-block;
    font-size: var(--font-size-base);
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}


/* ========================================================================
   NOTÍCIAS
======================================================================== */

.news {
    background: var(--color-white);
}

.news .tag {
    width: fit-content;
    max-width: 100%;
    padding: 0.4rem 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: var(--color-purple);
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* ========================================================================
   DIÁRIO DE ESCUTA — GALERIA + AGENDA PÚBLICA
======================================================================== */

.territory {
    background: var(--color-surface-soft);
}

.territory-journal {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
    gap: 1.125rem;
}

.field-album__cover {
    position: relative;
    width: 100%;
    height: 22rem;
    display: block;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius-lg);
    background: var(--color-blue);
}

.field-album__cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform var(--ease);
}

.field-album__cover:hover img {
    transform: scale(1.04);
}

.field-album__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(6, 21, 27, 0.75), transparent 55%);
    pointer-events: none;
}

.album-caption {
    position: absolute;
    left: 1.5rem;
    bottom: 1.25rem;
    z-index: 1;
    color: var(--color-white);
    text-align: left;
}

.album-caption small {
    display: block;
    opacity: 0.8;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.album-caption strong {
    display: block;
    font-size: 1.25rem;
}

.field-album__thumbs {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.625rem;
}

.field-album__thumbs button {
    position: relative;
    height: 12.5rem;
    display: block;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.field-album__thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.field-album__thumbs span {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.375rem 0.625rem;
    color: var(--color-white);
    background: linear-gradient(0deg, rgba(6, 21, 27, 0.75), transparent);
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-align: left;
}

.agenda-preview {
    padding: clamp(1.75rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.agenda-preview__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.agenda-preview__head h3 {
    width: 100%;
    margin: 0.25rem 0 0;
    color: var(--color-blue);
}

.agenda-preview__head a {
    color: var(--color-blue);
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.agenda-preview__list {
    margin: 1.5rem 0;
    display: grid;
    gap: 0;
}

.agenda-card {
    padding: 1rem 0;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--color-surface);
}

.agenda-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.agenda-card time {
    display: grid;
    justify-items: center;
    color: var(--color-blue);
    line-height: 1.1;
}

.agenda-card time strong {
    font-size: 1.375rem;
}

.agenda-card time span {
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-card > div {
    min-width: 0;
}

.agenda-card > div > span {
    display: block;
    color: var(--color-secondary);
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-card h4 {
    margin: 0.25rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.3;
}

.agenda-preview__empty {
    margin: 1.5rem 0;
    color: var(--color-text);
}

.news-main a,
.news-side a {
    color: var(--color-primary);
    font-weight: 800;
}

.news-side {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.125rem;
}

.news-side article,
.news-side blockquote {
    min-width: 0;
    margin: 0;
    border: 1px solid #DDDDDD;
}

.news-side article {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--ease), box-shadow var(--ease);
}

.news-side-image {
    width: 100%;
    height: 14rem;
    display: block;
    overflow: hidden;
    background: linear-gradient( 145deg, #E6ECFF, #EAF7E4 );
}

.news-side-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-side article > div {
    min-width: 0;
    padding: 1rem clamp(1.25rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.news-side article:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 2rem 5rem rgba(17, 50, 104, 0.2);
}

.news-side h3 {
    width: 100%;
    max-width: none;
    margin: 1rem 0;
    color: var(--color-blue);
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    font-weight: 700;
}

.news-side blockquote {
    display: flex;
    align-items: center;
    color: var(--color-blue);
    background: var(--color-info);
    border: 0;
    font-size: var(--font-size-md);
    font-weight: 800;
    line-height: 1.45;
}

button.feed__item {
    appearance: none;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}

.feed__item:hover .feed__media-type--carousel {
    transform: scale(1.08);
    background: rgba(0, 0, 0, 0.72);
}


/* ========================================================================
   MODAL DE MÍDIA
======================================================================== */

.video-modal__content video {
    width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: contain;
    background: #000000;
}


/* ========================================================================
   CHAMADA FINAL
======================================================================== */

.final-cta__inner {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: clamp( 2rem, 6vw, 5rem );
}

.final-cta h2 {
    color: var(--color-white);
}

.final-cta h2 strong {
    color: var(--color-yellow);
    font-family: var(--font-family-script);
    font-weight: 400;
}

.final-cta p {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--font-size-md);
}


/* ========================================================================
   RODAPÉ
======================================================================== */

.footer {
    padding: 3rem 0 1rem 0;
    color: rgba(255, 255, 255, 0.72);
    background: #014763;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand img {
    width: 10rem;
}

.footer-bio {
    margin: 0;
    max-width: 22rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--color-blue);
    background: var(--color-white);
    border-radius: 50%;
    transition: background-color var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
}

.footer-social a svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social a svg .social-icon-fill {
    fill: currentColor;
    stroke: none;
}

.footer-social a:hover {
    color: var(--color-white);
    background: var(--color-yellow);
    transform: translateY(-0.125rem);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.footer-nav-group {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
}

.footer-nav-group__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    color: var(--color-yellow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-nav-group__title svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.footer-nav-group__title strong {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-nav-group a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.625rem 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--font-size-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: color var(--ease-fast);
}

.footer-nav-group a:last-child {
    border-bottom: 0;
}

.footer-nav-group a svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity var(--ease-fast), transform var(--ease-fast);
}

.footer-nav-group a:hover,
.footer-nav-group a:focus-visible {
    color: var(--color-white);
}

.footer-nav-group a:hover svg,
.footer-nav-group a:focus-visible svg {
    opacity: 1;
    transform: translate(0.15rem, -0.15rem);
}

.footer-base {
    margin-top: 2.25rem;
    padding-top: 1.75rem;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.16);

    font-size: var(--font-size-xs);
}

.footer-party,
.footer-credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.footer-party img {
    width: 2.5rem;
    height: auto;
}

.footer-party span[aria-hidden="true"],
.footer-credits span[aria-hidden="true"] {
    width: 0.0625rem;
    height: 0.875rem;
    background: rgba(255, 255, 255, 0.3);
}

.footer-party strong {
    font-weight: 600;
}

.footer-copyright,
.footer-credit {
    margin: 0;
    font-weight: 600;
}

.footer-credit a {
    color: var(--color-yellow);
    font-weight: 800;
}

/* ==========================================================================
   METADADOS DO CARD (data, autor, comentários) — qualquer listagem.
   Fica em home.css (não em internal.css) de propósito: internal.css só
   carrega com !is_front_page(), e esses cards também aparecem na Home.
========================================================================== */

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;

    margin-top: 0.875rem;

    color: var(--color-text);
    font-size: var(--font-size-xs);
    font-weight: 700;
}

.card-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.card-meta__icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    color: var(--color-blue);
}

.card-meta__avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: block;
}



/* ========================================================================
   CTA DE RETORNO
======================================================================== */

.return-cta {
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    background: var(--color-blue);
}

.return-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/ui/hero-collage.png") right center / cover no-repeat;
    opacity: .12;
    pointer-events: none;
}

.return-cta__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container);
}

.return-cta h2 {
    max-width: 13ch;
    color: var(--color-white);
}

.return-cta strong {
    display: block;
    margin: .25rem 0 2rem;
    color: var(--color-yellow);
    font-family: var(--font-family-script);
    font-size: clamp(2.35rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1;
}

.return-cta p {
    max-width: 48rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.return-cta .hero-actions {
    position: static;
    margin-top: 2rem;
}

/*
 * Antes cada variante pintava o bloco inteiro (efeito "arco-íris"
 * quando as 5-9 variantes apareciam lado a lado). Agora o fundo fica
 * uniforme (herdado de .hero-pillar/.flag-item) e a cor da bandeira
 * vira só um acento — faixa no topo + tom do ícone.
 */
.hero-pillar--commitment {
    border-top-color: var(--color-flag-1);
}

.hero-pillar--representation {
    border-top-color: var(--color-flag-2);
}

.hero-pillar--respect {
    border-top-color: var(--color-flag-3);
}

.hero-pillar--sensitivity {
    border-top-color: var(--color-flag-4);
}

.hero-pillar--women {
    border-top-color: var(--color-flag-5);
}

.hero-pillar--health {
    border-top-color: #287DB3;
}

.hero-pillar--rights {
    border-top-color: #77C433;
}

.hero-pillar--voice {
    border-top-color: #149FC4;
}

.hero-pillar--inclusion {
    border-top-color: #A6D528;
}

.flag-item[data-flag-anchor] {
    scroll-margin-top: calc(var(--header-height) + 3rem);
}

/* Layout de .news-grid/.news-main/.news-image/.news-side agora vem só
   das regras base (mais abaixo neste arquivo) — esse bloco duplicava
   tudo com valores antigos (sem position:relative, sem imagem nos
   cards laterais) e vencia por especificidade (.news .news-main). */


/* ========================================================================
   COMPARTILHAMENTO
======================================================================== */

.post-share {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #D9DFE8;
    border-bottom: 1px solid #D9DFE8;
}

.post-share__title {
    margin-bottom: 1rem;
    display: block;
    color: var(--color-blue);
    font-size: 1.125rem;
    font-weight: 800;
}

.post-share__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-share__button {
    min-height: 3.25rem;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    color: var(--color-white);
    border: 0;
    border-radius: 0.375rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--ease-fast), filter var(--ease-fast);
}

.post-share__button:hover {
    color: var(--color-white);
    filter: brightness(1.08);
    transform: translateY(-0.125rem);
}

.post-share__button svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
}

.post-share__button--facebook {
    background: #1877F2;
}

.post-share__button--whatsapp {
    background: #20A95A;
}

.post-share__button--copy {
    background: var(--color-blue);
}


/* ========================================================================
   COMENTÁRIOS
======================================================================== */

.post-comments {
    margin-top: 4rem;
}

.post-comments__header {
    margin-bottom: 2rem;
}

.post-comments__eyebrow {
    color: var(--color-purple);
    font-size: var(--font-size-sm);
    font-weight: 800;
    text-transform: uppercase;
}

.post-comments__title {
    margin: 0.75rem 0 0;
    color: var(--color-blue);
    font-size: clamp( 2.5rem, 4vw, 4.5rem );
    line-height: 0.95;
}

.comment-list,
.comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list > li {
    margin-bottom: 1rem;
}

.comment-list .children {
    margin: 1rem 0 0 4rem;
}

.comment-body {
    position: relative;
    padding: 2rem;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
    background: var(--color-surface-soft);
    border: 1px solid #E0E4EB;
}

.comment-author {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 1.25rem;
}

.comment-author .avatar {
    grid-row: 1 / span 2;
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 50%;
}

.comment-author .fn {
    color: var(--color-blue);
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 800;
}

.comment-author .says {
    display: none;
}

.comment-meta {
    grid-column: 2;
    margin-top: -1.3rem;
    font-size: var(--font-size-sm);
}

.comment-meta a {
    color: #666666;
}

.comment-body > p {
    grid-column: 2;
    margin: 1.25rem 0 0;
    font-size: var(--font-size-base);
    line-height: 1.65;
}

.comment-body .reply {
    grid-column: 2;
    margin-top: 1.25rem;
}

.comment-reply-link {
    color: var(--color-primary);
    font-weight: 800;
}

.comment-form-wrap {
    margin-top: 3rem;
    padding: clamp( 2rem, 4vw, 3rem );
    background: var(--color-surface-soft);
    border: 1px solid #E0E4EB;
}

.comment-reply-title {
    margin: 0 0 0.75rem;
    color: var(--color-blue);
    font-size: clamp( 2rem, 3vw, 3rem );
}

.comment-form-intro {
    margin-bottom: 1.75rem;
}

.comment-form {
    display: grid;
    gap: 1.25rem;
}

.comment-form__row {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 1rem;
}

.comment-form label {
    display: grid;
    gap: 0.5rem;
    font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    color: var(--color-heading-dark);
    background: var(--color-white);
    border: 1px solid #CCD3DE;
    border-radius: 0;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form-cookies-consent {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 0.75rem !important;
    font-weight: 500 !important;
}

.comment-form-cookies-consent input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.comment-submit {
    width: fit-content;
}


/* ========================================================================
   SIDEBAR
======================================================================== */

.news-sidebar {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 1.25rem;
}

.sidebar-widget {
    overflow: hidden;
    background: var(--color-surface-soft);
}

.sidebar-widget > h2 {
    margin: 0;
    padding: 1rem 1.25rem;
    color: var(--color-white);
    background: var(--color-blue);
    font-size: 1rem;
    line-height: 1.2;
}

.sidebar-widget__content {
    padding: 1.25rem;
}

.news-sidebar .search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.news-sidebar .search-form input {
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-white);
    border: 1px solid #CCD3DE;
    border-radius: var(--radius-md);
}

.news-sidebar .search-form button {
    min-height: 3.5rem;
    padding-inline: 1.5rem;
    color: var(--color-white);
    background: var(--color-blue);
    border: 0;
    border-radius: var(--pill);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.sidebar-categories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-categories li {
    border-bottom: 1px solid #CDD5E1;
}

.sidebar-categories li:last-child {
    border-bottom: 0;
}

.sidebar-categories a {
    padding: 0.75rem 0;
    display: block;
    color: var(--color-blue);
    font-weight: 700;
}

.recent-posts {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    list-style: none;
}

.recent-posts li {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #CDD5E1;
}

.recent-posts li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.recent-posts a {
    display: grid;
    gap: 0.75rem;
}

.recent-posts__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
    background: linear-gradient( 145deg, #E6ECFF, #EAF7E4 );
}

.recent-posts__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.recent-posts__content {
    display: grid;
    gap: 0.25rem;
}

.recent-posts__content strong {
    color: var(--color-blue);
    font-size: 0.95rem;
    line-height: 1.25;
}

.recent-posts__content time {
    color: var(--color-blue);
    font-size: 0.75rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    padding: 0.625rem 0.75rem;
    color: var(--color-blue);
    background: var(--color-white);
    border: 1px solid #CCD5E1;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 47.99rem) {
    .post-share__button {
        width: 100%;
    }

    .comment-body {
        grid-template-columns: 3.5rem minmax(0, 1fr);
        padding: 1.25rem;
    }

    .comment-author {
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }

    .comment-author .avatar {
        width: 3.5rem;
        height: 3.5rem;
    }

    .comment-list .children {
        margin-left: 1rem;
    }

    .comment-form__row {
        grid-template-columns: 1fr;
    }
}


/* ========================================================================
   CONEXÃO E INSTAGRAM
======================================================================== */

.connection {
    background: var(--color-info);
}

.connection-head {
    margin-bottom: 2.25rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
}

.connection-head h2 {
    max-width: 22ch;
}

.feed {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 0.875rem;
}

.feed__item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    padding: 0;
    color: inherit;
    background: linear-gradient( 145deg, #FFFFFF, #E8EEFD );
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg, 1.5rem);
    text-decoration: none;
    isolation: isolate;
    transition: transform var(--ease-fast), box-shadow var(--ease-fast);
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}

.feed__item:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-sm);
}

.feed__item:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 0.2rem;
}

.feed__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform var(--ease-fast), filter var(--ease-fast);
}

.feed__item:hover img {
    transform: scale(1.04);
    filter: brightness(0.84);
}

.feed__item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 180deg, transparent 50%, rgba(0, 0, 0, 0.28) 100% );
    pointer-events: none;
}

.feed__media-type {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.52);
    border: 2px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(0.25rem);
    font-size: 0;
    transition: transform var(--ease-fast), background-color var(--ease-fast);
}

.feed__media-type--video {
    top: 50%;
    left: 50%;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.feed__media-type--video::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 0.25rem;
    border-top: 0.65rem solid transparent;
    border-bottom: 0.65rem solid transparent;
    border-left: 1rem solid var(--color-white);
}

.feed__item:hover .feed__media-type--video {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(0, 0, 0, 0.72);
}

.feed__media-type--carousel {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
}

.feed__media-type--carousel::before,
.feed__media-type--carousel::after {
    content: "";
    position: absolute;
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid var(--color-white);
    border-radius: 0.2rem;
}

.feed__media-type--carousel::before {
    transform: translate( -0.18rem, 0.18rem );
}

.feed__media-type--carousel::after {
    transform: translate( 0.18rem, -0.18rem );
}

.feed__item-text,
.feed__item--fallback {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--color-text);
}

.social-row {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.17);
}

/* Arraste do carrossel do feed — só existe no mobile, onde o .feed vira
   scroll horizontal (ver responsive.css). */
.feed-progress-nav {
    margin-top: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.625rem;
}

.feed-progress-nav__hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.5rem 0.875rem;
    color: var(--color-heading-dark);
    background: var(--color-white);
    border: 1px solid var(--color-yellow);
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.feed-progress-nav__hint svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-primary);
}

.feed-progress-nav__track {
    position: relative;
    width: 100%;
    height: 0.3125rem;
    display: block;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.feed-progress-nav__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 25%;
    background: var(--color-yellow);
    border-radius: 999px;
    transition: left 0.15s ease-out;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.social-links a {
    width: 2.875rem;
    height: 2.875rem;
    display: grid;
    place-items: center;
    color: var(--color-white);
    background: var(--color-primary);
    border-radius: 50%;
    transition: background-color var(--ease-fast), transform var(--ease-fast);
}

.social-links a:hover {
    color: var(--color-white);
    background: var(--color-primary-hover);
    transform: translateY(-0.125rem);
}

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links .social-icon-fill {
    fill: currentColor;
    stroke: none;
}

.video-modal__native-video,
.video-modal__carousel-video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 76vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border: 0;
    outline: 0;
    background: #000000;
}

.video-modal__image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 76vh;
    display: block;
    object-fit: contain;
}

.video-modal__carousel-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 76vh;
    display: block;
    object-fit: contain;
}

.video-modal__footer > span {
    color: var(--color-white);
    font-weight: 700;
}

.video-modal__social {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.video-modal__social-label {
    margin-right: 0.125rem;
    color: var(--color-white);
    font-weight: 700;
}

.video-modal__social a {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--color-blue);
    background: var(--color-white);
    border-radius: 50%;
    transition: background-color var(--ease-fast), color var(--ease-fast), transform var(--ease-fast);
}

.video-modal__social a svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-modal__social a svg .social-icon-fill {
    fill: currentColor;
    stroke: none;
}

.video-modal__social a:hover {
    color: var(--color-white);
    background: var(--color-primary-hover);
    transform: translateY(-0.125rem);
}

/* Vídeo real (embed/arquivo): trava um tamanho grande mas razoável —
   sem isso, o iframe herda a largura do dialog (que pode chegar a
   88rem) e o vídeo abre gigante em telas largas. */
.video-modal__content--embed,
.video-modal__content--native {
    width: 100%;
    max-width: 64rem;
    margin-inline: auto;
}

.video-modal__dialog {
    width: min(92vw, var(--container));
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000000;
    border-radius: var(--radius-lg, 1.5rem);
    position: relative;
    isolation: isolate;
}

.video-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--ease-fast), transform var(--ease-fast);
}

.video-modal__close:hover {
    color: var(--color-white);
    background: var(--color-primary);
    transform: scale(1.06);
}

.video-modal__content {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
    position: relative;
    z-index: 1;
}

.video-modal__carousel {
    position: relative;
    width: 100%;
    min-height: min(76vh, 46rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    z-index: 1;
    overflow: hidden;
}

.video-modal__carousel-stage {
    width: 100%;
    height: 100%;
    min-height: min(76vh, 46rem);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.video-modal__carousel-image,
.video-modal__carousel-video {
    position: relative;
    z-index: 1;
}

.video-modal__carousel-arrow:hover {
    color: var(--color-white);
    background: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
}

.video-modal__carousel-counter {
    position: absolute;
    top: 1rem;
    left: 50%;
    z-index: 20;
    padding: 0.45rem 0.75rem;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.62);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    transform: translateX(-50%);
}

.video-modal__footer {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--color-white);
    background: var(--color-blue);
    position: relative;
    z-index: 10;
}

/* Legenda simples (galeria/carrossel) — substitui o rodapé social
   quando o opener tem data-media-caption. */
.video-modal__caption {
    padding: 1rem 1.25rem;
    color: var(--color-white);
    background: var(--color-blue);
    position: relative;
    z-index: 10;
}

.video-modal__caption-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.video-modal__caption-text {
    flex: 1 1 auto;
    min-width: 0;

    margin: 0;
    font-weight: 800;
}

.video-modal__caption-eyebrow {
    display: block;
    margin-bottom: 0.375rem;
    color: var(--color-yellow);
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Publicação do Instagram: legenda menor que a da galeria. */
.video-modal__caption--social .video-modal__caption-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.video-modal__follow {
    flex-shrink: 0;
}

/* ==========================================================================
   PLACEHOLDER — vídeo ainda não publicado
========================================================================== */

.video-modal__content--placeholder {
    background: var(--color-blue);
}

.video-placeholder {
    max-width: 30rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    color: var(--color-white);
}

.video-placeholder__play {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.5rem;
    background: var(--color-yellow);
    border-radius: 50%;
}

.video-placeholder__play svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--color-heading-dark);
}

.video-placeholder__eyebrow {
    color: var(--color-yellow);
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.video-placeholder__title {
    margin: 0 0 0.5rem;
    color: var(--color-white);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
}

.video-placeholder .btn--disabled {
    opacity: 0.6;
    pointer-events: none;
}

.video-placeholder small {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--font-size-xs);
}

.video-modal__carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 3rem;
    height: 3rem;
    display: flex;
    place-items: center;
    padding: 0;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.72);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
    align-items: center;
    justify-content: center;
}

.video-modal__carousel-arrow--previous,
.video-modal__carousel-arrow--next {
    font-size: 2rem;
}

.video-modal__carousel-arrow--previous {
    left: 1rem;
    padding-bottom: 0.12rem;
}

.video-modal__carousel-arrow--next {
    right: 1rem;
    padding-bottom: 0.12rem;
}

body.home .about-left h2,
body.home .section-heading h2,
body.home .listening-copy h2,
body.home .connection-head > div > h2,
body.home .final-cta h2,
body.home .return-cta h2 {
    margin: 1.25rem 0 1.75rem;
    font-size: clamp( 2.7rem, 4vw, 3.85rem );
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

body.home .about-left h2 {
    max-width: 12ch;
}

body.home .listening-copy h2 {
    max-width: 28ch;
}

body.home .section-heading h2 {
    max-width: 17ch;
}

body.home .final-cta h2,
body.home .return-cta h2 {
    max-width: 13ch;
}

.result-panel {
    min-height: 20rem;
    display: grid;
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
}

.result-media {
    min-width: 0;
    min-height: 20rem;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #9297A0;
    background: linear-gradient( 145deg, #EEF2FF, #EAF7E4 );
}

.result-media img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    object-position: center;
}

.result-content {
    padding: clamp( 1.75rem, 3.5vw, 3rem );
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.result-content h3 {
    max-width: none;
    margin: 1rem 0 0.875rem;
    font-size: clamp(2rem, 2.7vw, 2.8rem);
    width: 100%;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.result-content p {
    font-size: var(--font-size-base);
    max-width: 58rem;
    line-height: 1.55;
}

.result-content a {
    color: var(--color-primary);
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.125rem;
}

.news-main {
    position: relative;
    min-width: 0;
    min-height: 24rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    background: var(--color-surface-soft);
    border: 1px solid #D8DDE5;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    transition: transform var(--ease), box-shadow var(--ease);
}

.news-main:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 2rem 5rem rgba(17, 50, 104, 0.2);
}

/* Área inteira do card clicável — link do título vira uma camada por
   cima do card inteiro (mesmo padrão do .archive-card). */
.news-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.news-card__top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.news-card__top .card-meta {
    margin-top: 0;
}

.news-card__bottom {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.news-card__more {
    display: inline-block;
    color: var(--color-blue);
    font-weight: 800;
}

.news-image {
    position: relative;
    min-width: 0;
    min-height: 24rem;
    display: block;
    overflow: hidden;
    color: #8E939C;
    background: linear-gradient( 145deg, #E6ECFF, #EAF7E4 );
}

.news-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.news-main > div:last-child {
    min-width: 0;
    padding: 1.25rem clamp( 1.75rem, 3vw, 2.5rem );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.news-main h3 {
    width: 100%;
    max-width: none;
    margin: 1rem 0;
    color: var(--color-blue);
    font-size: clamp(1.85rem, 2.35vw, 2.75rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    font-weight: 700;
}

.news-main p {
    width: 100%;
    margin: 0 0 1.25rem;
    font-size: var(--font-size-base);
    line-height: 1.55;
}

.news-side p {
    width: 100%;
    margin: 0.5rem 0 0.75rem;
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* ==========================================================================
   LINKS NOS TÍTULOS — ATUAÇÃO E NOTÍCIAS
========================================================================== */

.result-content h3 a,
.news-main h3 a,
.news-side h3 a {
    color: inherit;

    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;

    text-decoration: none;

    transition:
        color
        var(--ease-fast);
}


.result-content h3 a:hover,
.result-content h3 a:focus-visible,
.news-main h3 a:hover,
.news-main h3 a:focus-visible,
.news-side h3 a:hover,
.news-side h3 a:focus-visible {
    color: var(--color-secondary);
}

/* ==========================================================================
   CTA FINAL — INTEGRADA AO FOOTER
========================================================================== */

.final-cta {
    margin: 0;
    padding:
        clamp(4rem, 7vw, 6rem)
        0;

    color: var(--color-white);

    background: var(--color-blue);
}


/* Remove qualquer espaço antes do rodapé */

.final-cta + .footer {
    margin-top: 0;
}


/* Rodapé encostado na CTA, mas com linha sutil separando as duas seções */

.footer {
    margin-top: 0;

    border-top: 1px solid rgba(255, 255, 255, 0.16);
}


/* Conteúdo da CTA */

.final-cta__inner {
    display: flex;

    justify-content: space-between;
    align-items: end;

    gap:
        clamp(
            2rem,
            6vw,
            5rem
        );
}


/* Título principal */

.final-cta h2 {
    max-width: none;

    margin:
        1.5rem
        0
        1.25rem;

    color: var(--color-white);
}


/* Manuscrito sem quebra */

.final-cta h2 strong {
    display: block;

    width: max-content;
    max-width: none;

    margin-top: 0.25rem;

    color: var(--color-yellow);

    font-family: var(--font-family-script);
    font-size:
        clamp(
            2.35rem,
            4.5vw,
            5rem
        );

    font-weight: 400;
    line-height: 1;

    white-space: nowrap;
}


/* Texto de apoio */

.final-cta p {
    max-width: 42rem;

    color: var(--color-white);

    font-size: var(--font-size-md);
    line-height: 1.55;
}


/* Área dos botões */

.final-cta .hero-actions {
    margin-top: 0;

    flex: 0 0 auto;
}


/* Botão branco */

.final-cta .btn--light {
    color: var(--color-blue);
    background: var(--color-white);

    border:
        1px
        solid
        var(--color-white);
}


.final-cta .btn--light:hover,
.final-cta .btn--light:focus-visible {
    color: var(--color-white);
    background: var(--color-purple);

    border-color: var(--color-purple);
}
/* ==========================================================================
   HERO — PERSONAGEM MAIS INTEGRADA AO FUNDO
   Versão com efeito mais perceptível.
========================================================================== */

.hero-person {
    position: relative;

    isolation: isolate;
}


/* Mancha de luz atrás da personagem */

.hero-person::before {
    content: "";

    position: absolute;

    top: 4%;
    right: -4%;
    bottom: 2%;
    left: 0;

    z-index: 0;

    background:
        radial-gradient(
            ellipse at 55% 42%,
            rgba(84, 176, 255, 0.42) 0%,
            rgba(35, 126, 214, 0.30) 34%,
            rgba(10, 72, 145, 0.12) 58%,
            rgba(10, 72, 145, 0) 78%
        );

    filter: blur(2rem);

    transform: scale(1.08);

    pointer-events: none;
}


/* ==========================================================================
   CONTORNO, PROFUNDIDADE E AJUSTE DE COR DA PERSONAGEM
========================================================================== */

.hero-person img {
    position: relative;

    z-index: 1;

    filter:
        drop-shadow(
            0
            1.5rem
            2rem
            rgba(0, 24, 58, 0.55)
        )
        drop-shadow(
            0
            0
            0.9rem
            rgba(92, 184, 255, 0.48)
        )
        drop-shadow(
            -0.35rem
            0
            0.65rem
            rgba(54, 145, 230, 0.28)
        )
        saturate(0.86)
        contrast(1.035)
        brightness(0.975)
        sepia(0.025)
        hue-rotate(2deg);
}


/* Fusão da base com o azul do hero */

.hero-person::after {
    content: "";

    position: absolute;

    right: -2%;
    bottom: 0;
    left: -2%;

    z-index: 2;

    height: 10rem;

    pointer-events: none;
}

/* FRONTEIRAS — BADGES DE COMPROMISSO */

.flag-commitment-badges {
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.65rem;
    list-style: none;
}

.flag-commitment-badge {
    min-width: 0;
    min-height: 4.25rem;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;

    color: var(--color-white);
    background: rgba(255, 255, 255, 0.055);

    border: 1px solid rgba(35, 182, 233, 0.32);
    border-radius: 0.75rem;

    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
}

.flag-commitment-badge__marker {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.38rem;
    flex: 0 0 auto;

    background: var(--color-yellow);
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
}

@media (max-width: 760px) {

    .flag-commitment-badges {
        grid-template-columns: 1fr;
    }

}



/* FRENTE — COR PERSONALIZADA POR ITEM
   Override local: não altera tokens nem o Design System global. */

.hero-pillar.has-custom-flag-color,
.flag-item.has-custom-flag-color {
    border-top-color: var(--br-flag-custom-color);
}

.hero-pillar.has-custom-flag-color:hover,
.hero-pillar.has-custom-flag-color:focus-visible,
.hero-pillar.has-custom-flag-color.is-active {
    background-color: var(--br-flag-custom-color);
    border-top-color: var(--br-flag-custom-color);
}

.hero-pillar.has-custom-flag-color:hover .hero-pillar__badge,
.hero-pillar.has-custom-flag-color:focus-visible .hero-pillar__badge,
.hero-pillar.has-custom-flag-color.is-active .hero-pillar__badge {
    background: color-mix(
        in srgb,
        var(--br-flag-custom-color) 22%,
        white
    );
}

.hero-pillar.has-custom-flag-color:hover .hero-pillar__icon,
.hero-pillar.has-custom-flag-color:focus-visible .hero-pillar__icon,
.hero-pillar.has-custom-flag-color.is-active .hero-pillar__icon {
    background-color: var(--br-flag-custom-color);
}

.flag-item.has-custom-flag-color.is-open {
    box-shadow:
        inset 0 0 0 3px var(--br-flag-custom-color);

    background:
        color-mix(
            in srgb,
            var(--br-flag-custom-color) 16%,
            var(--color-blue)
        );
}






/* HERO FRENTES — COR SOMENTE NA BORDA */
.hero-pillar.hero-pillar--commitment {
    border-top-color: var(--color-flag-1);
}

.hero-pillar.hero-pillar--representation {
    border-top-color: var(--color-flag-2);
}

.hero-pillar.hero-pillar--respect {
    border-top-color: var(--color-flag-3);
}

.hero-pillar.hero-pillar--sensitivity {
    border-top-color: var(--color-flag-4);
}

.hero-pillar.hero-pillar--women {
    border-top-color: var(--color-flag-5);
}

.hero-pillar.has-custom-flag-color {
    border-top-color: var(--br-flag-custom-color);
}

/* Diário de escuta — eyebrow verde somente na Home */
.home-page .container:has(> .territory-journal)
> .section-heading
.eyebrow {
    color: var(--secondary);
}

