/* ═══════════════════════════════════════════════════════
   Professor Marcelo 50.600
   Cores amostradas dos arquivos de layout em imagens/
   ═══════════════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
}

:root {
  /* Cores extraídas dos fundos originais */
  --amarelo:       #FFCC00;
  --amarelo-esc:   #E5B800;
  --roxo:          #421F6F;
  --roxo-claro:    #5A2C93;
  --azul-noite:    #01001F;
  --azul-noite-2:  #1A0143;
  --branco:        #FFFFFF;
  --preto:         #111111;
  --cinza:         #6B6B6B;
  --cinza-claro:   #F2F2F2;

  --fonte-titulo: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --fonte-texto:  'Barlow', -apple-system, 'Helvetica Neue', sans-serif;

  --max-largura: 1180px;
  --gutter: 24px;

  --header-altura: 132px;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 17px;
  line-height: 1.6;
  color: var(--preto);
  background: var(--branco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--fonte-titulo); font-weight: 800; line-height: 1.05; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: var(--max-largura);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Elementos compartilhados ────────────────────────── */
.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title--light { color: var(--branco); }
.section-title--dark  { color: var(--preto); }

.btn {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.7em 2.2em;
  border-radius: 999px;
  transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { background: var(--amarelo); color: var(--preto); }
.btn--yellow:hover { background: var(--amarelo-esc); }
.btn--dark { background: var(--roxo); color: var(--branco); }
.btn--dark:hover { background: var(--roxo-claro); }

.link-mais {
  display: block;
  width: fit-content;
  margin: 2.5rem auto 0;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 3px solid var(--amarelo);
  padding-bottom: 2px;
  transition: opacity .18s ease;
}
.link-mais:hover { opacity: .7; }
.link-mais--light { color: var(--branco); }
.link-mais--dark  { color: var(--preto); }

/* Sobre fundo roxo o link fica amarelo e sem sublinhado */
.link-mais--amarelo {
  color: var(--amarelo);
  border-bottom: 0;
}

.social { display: flex; gap: 12px; align-items: center; }
.social img { width: 34px; height: auto; transition: transform .18s ease; }
.social a:hover img { transform: scale(1.12); }

/* ═══════════ HEADER ═══════════ */

/* O WordPress injeta padding-top no body para a barra de admin.
   Sem a barra (visitante), isso abria uma faixa vazia acima do
   banner — o padding só vale quando a barra existe de fato. */
body { padding-top: 0 !important; }
/* Logado, o header desce o suficiente para não ficar sob a barra */
body.admin-bar .header__bar { top: var(--wp-admin--admin-bar--height, 32px); }

.header__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 34px 0 18px;
}
/* A logo é bem mais alta que o menu; alinhar pelo topo mantém o
   menu na linha superior, como no layout, em vez de centralizado
   na altura da logo. */
.header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.header__logo img { width: clamp(150px, 13vw, 196px); }

.nav { display: flex; align-items: center; gap: 26px; padding-top: 10px; }
.nav__list { display: flex; align-items: center; gap: 0; }

/* Separadores "|" entre os itens, como no layout.
   Só no primeiro nível: dentro do submenu cada item fica em sua própria
   linha e o "|" não faz sentido. */
.nav__list > li + li::before {
  content: '|';
  color: rgba(255,255,255,.75);
  margin: 0 .55em;
  font-weight: 400;
}
.nav__list > li { display: flex; align-items: center; }

.nav__list a {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--branco);
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  transition: color .2s ease;
}
.nav__list a:hover { color: var(--amarelo); }

/* ── Submenu ──────────────────────────────────────
   O WordPress gera <ul class="sub-menu"> dentro do <li> do item pai.
   No desktop abre como dropdown no hover/foco; no mobile (ver media query)
   vira lista recuada, sempre visível. */
.nav__list li { position: relative; }
.nav__list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  min-width: 220px;
  margin: 0;
  padding: .5rem 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  background: var(--roxo);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__list .sub-menu li { display: block; }
.nav__list .sub-menu a {
  display: block;
  padding: .5rem 1.1rem;
  font-size: .95rem;
  text-shadow: none;
  white-space: nowrap;
}
/* Seta indicando que o item tem filhos. */
.nav__list .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: .4em;
  border: .3em solid transparent;
  border-top-color: currentColor;
  transform: translateY(.15em);
}

.social--header img { width: 30px; }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.header__toggle span {
  display: block;
  width: 28px; height: 3px;
  background: var(--branco);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══════════ BANNER ═══════════ */
.banner { position: relative; overflow: hidden; }

/* Carrossel deslizante: trilho em linha, JS move via translateX */
.banner__track {
  display: flex;
  min-height: clamp(460px, 52vw, 720px);
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}

.banner__slide {
  position: relative; /* ancora o selo do PSOL dentro do próprio slide */
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  min-height: clamp(460px, 52vw, 720px);
}

/* Sem véu: no layout a foto aparece limpa. O texto tem sombra
   própria para garantir a leitura sobre as áreas claras. */

.banner__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-altura);
  /* min() evita estourar a viewport no celular */
  max-width: min(720px, 100%);
}
/* Citação entre aspas amarelas, como no layout */
.banner__quote {
  position: relative;
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 2.05rem);
  line-height: 1.28;
  color: var(--branco);
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
  margin-bottom: .5em;
  padding-left: 1.1em;
}
.banner__quote::before,
.banner__quote::after {
  content: '\201D'; /* aspas duplas */
  color: var(--amarelo);
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: 1.6em;
  line-height: 0;
}
.banner__quote::before {
  position: absolute;
  left: 0; top: .55em;
}
.banner__quote::after {
  margin-left: .12em;
  vertical-align: -.28em;
}
.banner__quote strong { color: var(--amarelo); font-weight: 800; }

.banner__signature {
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  letter-spacing: 0;
  color: var(--amarelo);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  margin: 0 0 1.5em;
  padding-left: 1.1em;
}

/* Botão do banner: retangular de cantos suaves, como no layout */
.banner__content .btn {
  border-radius: 6px;
  font-family: var(--fonte-texto);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
  padding: .55em 1.5em;
  margin-left: 1.1em;
}

.banner__seal {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: clamp(84px, 9vw, 132px);
  z-index: 2;
  display: block;
  transition: transform .2s ease;
}
.banner__seal:hover { transform: scale(1.06); }

.banner__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 26px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 11px;
}
.banner__dots button {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  transition: background-color .2s ease, transform .2s ease;
}
.banner__dots button:hover { transform: scale(1.15); }
.banner__dots button.is-active { background: var(--branco); }

/* ═══════════ PROPOSTAS ═══════════ */
.propostas {
  background: var(--amarelo) url('../img/fundo_propostas.jpg') no-repeat left top;
  background-size: contain;
  padding: 5rem 0 5.5rem;
}
/* A foto do Marcelo e o texto vertical já vêm no arquivo de fundo.
   O conteúdo é empurrado para a direita para não sobrepor. */
.propostas .container { display: flow-root; }

/* O título fica numa faixa branca acima do bloco amarelo */
.propostas-titulo {
  background: var(--branco);
  padding: 2.6rem 0;
}
.propostas-titulo .section-title { margin: 0; }


.propostas__lista {
  width: 62%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* Sem card: o título ganha um realce branco atrás do texto
   (como marca-texto) e a descrição fica solta sobre o amarelo. */
.proposta {
  background: none;
  padding: 0;
  box-shadow: none;
}

.proposta__titulo {
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.55;
  text-transform: none;
  color: var(--preto);
  margin: 0 0 .25em;
}
/* display:inline faz o fundo acompanhar cada linha do texto,
   quebrando junto com ela — é o efeito do layout. */
.proposta__titulo span {
  display: inline;
  background: var(--branco);
  box-shadow: 6px 0 0 var(--branco), -6px 0 0 var(--branco);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.proposta__texto {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.4;
  color: var(--preto);
}
/* No layout é só texto em negrito escuro, sem sublinhado */
.propostas .link-mais {
  margin: 2.2rem 0 0 auto;
  width: 62%;
  text-align: left;
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: 1.42rem;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 0;
  color: var(--preto);
}

/* ═══════════ VÍDEOS ═══════════ */
.videos { padding: 5rem 0 5.5rem; background: var(--branco); }
.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.video-card__thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cinza-claro);
}
.video-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.video-card__thumb:hover img { transform: scale(1.05); }
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  background: rgba(255,204,0,.94);
  transition: transform .25s ease;
}
.video-card__play::after {
  content: '';
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--preto);
}
.video-card__thumb:hover .video-card__play { transform: translate(-50%,-50%) scale(1.1); }

/* ═══════════ BLOG ═══════════ */
.blog {
  background: var(--azul-noite) url('../img/fundo_blog.jpg') no-repeat center / cover;
  padding: 5rem 0 5.5rem;
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.post-card {
  background: var(--branco);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease;
}
.post-card:hover { transform: translateY(-5px); }
.post-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
/* Sem padding lateral: a faixa da categoria vai de borda a borda */
.post-card__body {
  position: relative;
  padding: 0 0 3.4rem;
  flex: 1;
}
.post-card__title { padding: 1.1rem 1.3rem 0; }
/* Faixa amarela de largura total, categoria centralizada dentro */
.post-card__tag {
  display: block;
  background: var(--amarelo);
  color: var(--preto);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  padding: .5em 1em;
}
.post-card__title {
  font-size: 1.28rem;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}
.post-card__more {
  position: absolute;
  right: 1.2rem; bottom: 1.1rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--roxo);
  color: var(--branco);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 38px;
  text-align: center;
  transition: background-color .2s ease, transform .2s ease;
}
.post-card__more:hover { background: var(--amarelo); color: var(--preto); transform: scale(1.1); }

/* ═══════════ COMO PARTICIPAR ═══════════ */
/* Três colunas: título | ícone | texto (com o "Saiba +" à direita) */
.participar { background: var(--amarelo); padding: 2.6rem 0; }
.participar__inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  text-align: left;
}

.participar__titulo {
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.05;
  color: var(--roxo);
  text-transform: none;
  margin: 0;
  max-width: 6em;
}

.participar__icone { width: clamp(140px, 15vw, 205px); }

.participar__texto { max-width: 34ch; }
.participar__texto p { margin: 0; }
.participar__chamada {
  display: block;
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--roxo);
  line-height: 1.2;
  margin-bottom: .15em;
}
.participar__descricao {
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.28;
  color: var(--roxo);
}
.participar__link {
  display: block;
  text-align: right;
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--roxo);
  margin-top: .5em;
  transition: opacity .2s ease, transform .2s ease;
}
.participar__link:hover { opacity: .75; transform: translateX(4px); }

/* ═══════════ APOIOS ═══════════ */
.apoios {
  background: var(--roxo) url('../img/fundo_apoios.jpg') no-repeat center / cover;
  padding: 5rem 0 5.5rem;
}
.apoios__carrossel {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 0;
}
.apoios__nav {
  flex-shrink: 0;
  width: 52px;
  transition: transform .18s ease, opacity .18s ease;
}
.apoios__nav:hover { transform: scale(1.12); }
.apoios__nav:disabled { opacity: .3; cursor: default; transform: none; }

.apoios__viewport { flex: 1; overflow: hidden; }
.apoios__track {
  display: flex;
  gap: 24px;
  align-items: stretch; /* cards da mesma altura */
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.apoio-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--branco);
  border-radius: 14px;
  padding: 1.8rem 1.6rem;
  text-align: center;
  /* Nome e cargo ficam colados na base mesmo com depoimentos
     de tamanhos diferentes */
  display: flex;
  flex-direction: column;
}
.apoio-card .apoio-card__texto { flex: 1; }
/* Aspas dentro do card, no fluxo normal — não sobrepõem a borda */
.apoio-card__aspas {
  width: 46px;
  margin: 0 auto .6rem;
}
.apoio-card__avatar {
  width: 118px; height: 118px;
  border-radius: 50%;
  object-fit: cover;
  margin: .2rem auto 1rem;
  border: 4px solid var(--amarelo);
}
.apoio-card__texto {
  font-size: .96rem;
  line-height: 1.55;
  color: #333;
  margin-bottom: 1.2rem;
}
.apoio-card__texto p { margin: 0 0 .7em; }
.apoio-card__texto p:last-child { margin-bottom: 0; }

/* O corte do depoimento é feito no PHP (pm_depoimento_resumido), para que
   o "(Leia+)" seja um link real. Aqui só se garante que o texto não estoure
   caso alguém cadastre um depoimento sem espaços. */
.apoios__carrossel .apoio-card__texto { overflow-wrap: break-word; }

.apoio-card__leia {
  white-space: nowrap;
  font-weight: 700;
  color: var(--roxo);
  text-decoration: underline;
}
.apoio-card__leia:hover { color: var(--roxo-claro); }
.apoio-card__nome {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.22rem;
  text-transform: uppercase;
  color: var(--roxo);
  margin: 0;
}
.apoio-card__cargo {
  font-size: .87rem;
  color: var(--cinza);
  margin: 0;
}

/* Apoio sozinho na própria página: sai da grade de 3 colunas e ganha ar. */
.apoio-card--single {
  flex: initial;
  max-width: 680px;
  margin: 0 auto;
  padding: 2.6rem 2.2rem;
}
.apoio-card--single .apoio-card__avatar {
  width: 150px;
  height: 150px;
}
.apoio-card--single .apoio-card__texto {
  font-size: 1.12rem;
  line-height: 1.8;
}
.apoio-card--single .apoio-card__nome { font-size: 1.4rem; }
.apoio-card--single .apoio-card__cargo { font-size: .95rem; }

@media (max-width: 600px) {
  .apoio-card--single { padding: 2rem 1.4rem; }
  .apoio-card--single .apoio-card__avatar { width: 118px; height: 118px; }
  .apoio-card--single .apoio-card__texto { font-size: 1.05rem; }
}

/* ═══════════ RODAPÉ ═══════════
   Fundo roxo bem escuro, 3 colunas (marca | contatos | redes) e o
   logo do PSOL centralizado abaixo da coluna do meio. Fecha com
   uma faixa amarela na base da página. */
.footer {
  background: #241730;
  color: var(--branco);
  padding-top: 3.4rem;
}

.footer__grade {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-areas:
    "marca contatos redes"
    "marca psol     .";
  gap: 1.6rem 2rem;
  align-items: start;
  padding-bottom: 2.4rem;
}
.footer__col--marca    { grid-area: marca; }
.footer__col--contatos { grid-area: contatos; text-align: center; }
.footer__col--redes    { grid-area: redes; text-align: center; }
.footer__psol-area     { grid-area: psol; text-align: center; }

.footer__titulo {
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--branco);
  margin-bottom: 1.4rem;
}

/* Coluna da marca */
.footer__logo img { width: 210px; margin: 0 auto; }
.footer__cnpj { margin-top: 2.2rem; text-align: center; }
.footer__rotulo {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 .2em;
}
.footer__valor { font-size: 1.02rem; margin: 0; }

/* Contatos */
.footer__contato {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.06rem;
  margin-bottom: 1.4rem;
  transition: opacity .2s ease, transform .2s ease;
}
.footer__contato:hover { opacity: .8; transform: translateX(4px); }
.footer__contato img { width: 42px; height: 42px; object-fit: contain; }
/* No WhatsApp o ícone vem depois do número */
.footer__contato--zap { gap: 12px; }

/* Redes sociais */
.footer__col--redes .social { justify-content: center; gap: 16px; }
.footer__col--redes .social img { width: 46px; }

/* PSOL SC */
.footer__psol { width: 175px; margin: 0 auto; }

/* Faixa amarela fechando a página */
.footer__faixa { height: 14px; background: var(--amarelo); }

@media (max-width: 860px) {
  .footer { padding-top: 2.6rem; }
  .footer__grade {
    grid-template-columns: 1fr;
    grid-template-areas:
      "marca"
      "contatos"
      "redes"
      "psol";
    gap: 2.4rem;
    text-align: center;
  }
  .footer__col--marca { text-align: center; }
  .footer__logo img { width: 170px; }
  .footer__cnpj { margin-top: 1.4rem; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .propostas { background-size: 46% auto; }
  .propostas__lista,
  .propostas .link-mais { width: 56%; }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .apoio-card { flex: 0 0 calc((100% - 24px) / 2); }
}

@media (max-width: 860px) {
  .header__toggle { display: flex; }
  /* Logo menor para não competir com o botão do menu */
  .header__logo img { width: 128px; }
  .header__bar { padding: 20px 0 14px; }
  /* Logo e botão do menu voltam a ficar centralizados entre si */
  .header__inner { align-items: center; }
  .nav { padding-top: 0; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 34px;
    padding: 2rem;
    background: var(--roxo);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 60;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 20px; align-items: flex-start; }
  /* O painel é estreito e alinhado à esquerda: os itens precisam ocupar a
     largura toda, senão o submenu recuado vaza para fora da tela. */
  .nav__list > li { display: block; width: 100%; }
  /* Sem hover no toque: o submenu fica sempre aberto, recuado. */
  .nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    width: 100%;
    margin: .6rem 0 0;
    padding: 0 0 0 1.2rem;
    background: transparent;
    box-shadow: none;
    gap: 14px;
    /* Filete à esquerda para ligar os filhos ao item pai. */
    border-left: 2px solid rgba(255,255,255,.25);
  }
  .nav__list .sub-menu a {
    padding: 0;
    font-size: 1.05rem;
    white-space: normal;
  }
  .nav__list .menu-item-has-children > a::after { display: none; }
  /* O "|" é separador horizontal do desktop; na coluna não faz sentido. */
  .nav__list > li + li::before { display: none; }
  .nav__list a { font-size: 1.3rem; text-shadow: none; }

  /* No mobile a foto sai do fundo e vira um bloco próprio depois da
     lista (via ::after), maior e sem texto por cima. */
  .propostas {
    background-image: none;
    padding-top: 3rem;
    /* A figura encerra a seção: o respiro de baixo viraria uma faixa
       amarela vazia sob os pés dela. */
    padding-bottom: 0;
  }
  .propostas__lista,
  .propostas .link-mais { width: 100%; }
  /* A foto do Marcelo entra abaixo do link, em largura total da
     viewport, sangrando as margens do container. */
  .propostas::after {
    content: '';
    display: block;
    width: 100vw;
    margin: 2.6rem calc(50% - 50vw) 0;
    /* A arte é 1900x1563 mas a figura ocupa só o terço esquerdo (x de 1% a
       41%) e começa a 28% da altura — o resto é amarelo vazio. Em largura
       de tela cheia isso deixava o candidato pequeno, porque a tela era
       gasta com o vazio. Ampliada a 150% a figura cresce pela metade, e
       "left bottom" joga o vazio de cima para fora do quadro.
       A altura é a da própria arte ampliada (150vw × 1563/1900) menos o
       vazio superior, então a figura entra inteira: sem cortar a cabeça
       em cima nem sobrar faixa amarela embaixo. */
    height: calc(150vw * 1563 / 1900 * 0.716);
    background: url('../img/fundo_propostas.jpg') no-repeat left bottom;
    background-size: 150% auto;
  }
  .propostas .link-mais { margin-left: auto; margin-right: auto; text-align: center; }
  .propostas-titulo { padding: 2rem 0; }

  .videos__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }

  .participar__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.4rem;
  }
  .participar__titulo { max-width: none; }
  .participar__icone { width: 150px; }
  .participar__link { text-align: center; }

  .apoio-card { flex: 0 0 100%; }
  .apoios__nav { width: 42px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  /* As artes do banner são panorâmicas (1900x861) e têm o candidato na
     faixa de 74%–80% da largura. No retrato do celular só ~35% da imagem
     cabe na tela, então "center" mostra o miolo do cenário e corta ele
     fora. Puxar o enquadramento para a direita traz o candidato de volta.
     O slide cresce e o texto vai para o rodapé, então a foto fica com o
     espaço de cima e a citação não cobre o rosto. */
  .banner__track,
  .banner__slide { min-height: 560px; }
  .banner__slide {
    background-position: 82% center;
    /* O texto desce para o rodapé do slide: a foto fica com o espaço de
       cima, então o candidato aparece inteiro e a citação não é escrita
       sobre o rosto. */
    align-items: flex-end;
  }

  /* Com o texto no rodapé a logo já não é obstáculo, então o padding de
     cima sai e o de baixo abre espaço acima dos pontos do carrossel. */
  .banner__content { padding-top: 0; padding-bottom: 3.25rem; }
  /* As quebras fixas do texto estouram a largura no celular */
  .banner__quote br { display: none; }
  .banner__quote { font-size: 1.25rem; line-height: 1.32; margin-bottom: .7em; }
  .banner__signature { font-size: 1rem; margin-bottom: 1.4em; }
  /* Botão com rótulo longo: quebra em duas linhas em vez de invadir
     o selo, e some do alcance dele com a margem à direita. */
  .banner__content .btn {
    font-size: .9rem;
    padding: .6em 1.2em;
    max-width: calc(100% - 5.5rem);
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  /* Selo menor e acima dos dots, longe do botão */
  .banner__seal { width: 56px; right: 4%; bottom: 68px; }
  .video-card__play { width: 58px; height: 58px; }
  .video-card__play::after { border-width: 12px 0 12px 20px; }
}

/* ═══════════════════════════════════════════════════════
   PÁGINAS INTERNAS (blog, post, página)
   ═══════════════════════════════════════════════════════ */

/* O header é absoluto sobre o banner; sem banner precisa de espaço */
.pagina { padding: calc(var(--header-altura) + 3rem) 0 4rem; }

/* Sem banner atrás, o header ganha fundo roxo para o menu branco
   continuar legível (na home ele fica transparente sobre a foto) */
body:not(.home) .header__bar { position: static; background: var(--roxo); }
/* Header interno em grid: logo à esquerda ocupa as duas linhas,
   menu na linha de cima e a frase centralizada logo abaixo dele */
body:not(.home) .header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: start;
}
body:not(.home) .header__logo { grid-row: 1 / 3; }
body:not(.home) .nav { grid-column: 2; justify-self: end; }
body:not(.home) .frase-faixa { grid-column: 2; }
@media (max-width: 860px) {
  /* No mobile o menu vira gaveta; a frase desce em largura total */
  body:not(.home) .header__inner { display: flex; flex-wrap: wrap; }
  body:not(.home) .frase-faixa { width: 100%; }
}
body:not(.home) .pagina { padding-top: 3rem; }
.pagina__inner--estreito { max-width: 960px; }

.blog__grid--listagem { margin-top: 2rem; }

/* Grade de apoios na página de arquivo (sem carrossel) */
.apoios__grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  margin-top: 2rem;
}
.pagina--apoios .apoio-card { border: 2px solid var(--cinza-claro); }

.videos__grid--listagem { margin-top: 2rem; }
.video-card__titulo {
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-top: .9rem;
  line-height: 1.2;
}

.artigo__cabecalho { margin-bottom: 2rem; }
.artigo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
}
.artigo__tag {
  display: inline-block;
  width: auto;
  margin-bottom: 0;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
a.artigo__tag:hover,
a.artigo__tag:focus-visible {
  background: var(--roxo);
  color: var(--branco);
  text-decoration: none;
}
.artigo__titulo {
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: .4em;
}
.artigo__meta { color: var(--cinza); font-size: .92rem; margin: 0; }

.artigo__capa {
  margin: 0 0 2rem;
  border-radius: 12px;
  overflow: hidden;
}
.artigo__capa img { width: 100%; height: auto; }

.artigo__conteudo { font-size: 1.15rem; line-height: 1.85; }
.artigo__conteudo h2,
.artigo__conteudo h3 { margin: 1.8em 0 .5em; text-transform: uppercase; }
.artigo__conteudo h2 { font-size: 1.7rem; }
.artigo__conteudo h3 {
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--roxo);
}
.artigo__conteudo a {
  color: var(--roxo);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.artigo__conteudo a:hover { color: var(--roxo-claro); }
.artigo__conteudo img { border-radius: 10px; margin: 1.5em 0; }
.artigo__conteudo blockquote {
  margin: 1.8em 0;
  padding: .4em 0 .4em 1.4em;
  border-left: 5px solid var(--amarelo);
  font-size: 1.1rem;
}
.artigo__conteudo ul,
.artigo__conteudo ol { margin: 1em 0; padding-left: 1.4em; }
.artigo__conteudo ul { list-style: disc; }
.artigo__conteudo ol { list-style: decimal; }
.artigo__conteudo li { margin-bottom: .4em; }

.artigo__nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 2px solid var(--cinza-claro);
}
.artigo__nav-item a {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  text-transform: uppercase;
  transition: color .2s ease;
}
.artigo__nav-item a:hover { color: var(--roxo); }

/* Paginação da listagem */
.pagination { margin-top: 3rem; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: .5em .8em;
  margin: 0 3px;
  border-radius: 8px;
  background: var(--cinza-claro);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--roxo);
  color: var(--branco);
}

.sem-conteudo { text-align: center; color: var(--cinza); padding: 3rem 0; }

/* Comentários */
.comentarios { margin-top: 3.5rem; padding-top: 2rem; border-top: 2px solid var(--cinza-claro); }
.comentarios__titulo {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.comentarios__lista { list-style: none; padding: 0; }
.comentarios__lista .comment,
.comentarios__lista .pingback { margin-bottom: 1.6rem; }
.comentarios__lista .children { list-style: none; padding-left: 1.6rem; margin-top: 1.2rem; }
.comentarios__lista .comment-body {
  background: var(--cinza-claro);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}
.comentarios__lista .comment-author img { border-radius: 50%; }
.comentarios__lista .comment-meta { font-size: .86rem; color: var(--cinza); margin-bottom: .5rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: .7em .9em;
  border: 2px solid var(--cinza-claro);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: 0; border-color: var(--roxo); }

/* Link "pular para o conteúdo" — visível só ao focar via teclado */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 10px; left: 10px;
  z-index: 300;
  width: auto; height: auto;
  clip: auto;
  padding: .8em 1.4em;
  background: var(--amarelo);
  color: var(--preto);
  border-radius: 8px;
  font-weight: 700;
}

/* Alinhamentos padrão do editor do WordPress */
.alignleft  { float: left;  margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption-text { font-size: .88rem; color: var(--cinza); text-align: center; }

/* ═══════════════════════════════════════════════════════
   EFEITOS E ANIMAÇÕES
   ═══════════════════════════════════════════════════════ */

/* ── Revelação no scroll ─────────────────────────────
   Elementos sobem e aparecem quando entram na viewport.
   O JS adiciona .is-visible via IntersectionObserver. */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Cascata: cada filho entra um pouco depois do anterior */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
}
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: .05s; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: .13s; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: .21s; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: .29s; }
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: .37s; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: .45s; }
[data-reveal-stagger].is-visible > *:nth-child(7) { transition-delay: .53s; }

/* ── Título com linha que cresce ─────────────────── */
.section-title { position: relative; padding-bottom: .38em; }
.section-title::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 5px;
  background: var(--amarelo);
  border-radius: 3px;
  transform: translateX(-50%);
  transition: width .75s cubic-bezier(.22,.61,.36,1) .25s;
}
.section-title.is-visible::after { width: 88px; }

/* ── Botões: brilho que atravessa ────────────────── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-22deg);
  transition: left .55s ease;
}
.btn:hover::after { left: 135%; }
.btn--yellow:hover { box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.btn--dark:hover   { box-shadow: 0 8px 22px rgba(66,31,111,.45); }

/* ── Propostas: hover no estilo marca-texto ────────
   O realce branco do título vira roxo com texto branco,
   com um leve deslocamento. Sem overflow/sombra para não
   cortar o box-shadow que desenha o marcador. */
.proposta {
  transition: transform .28s ease;
}
.proposta:hover { transform: translateX(10px); }
.proposta__titulo span {
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.proposta:hover .proposta__titulo span {
  background: var(--roxo);
  box-shadow: 6px 0 0 var(--roxo), -6px 0 0 var(--roxo);
  color: var(--branco);
}

/* ── Cards do blog: imagem com zoom e brilho ─────── */
.post-card {
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .3s cubic-bezier(.22,.61,.36,1),
              box-shadow .3s ease;
}
.post-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}
.post-card__img img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.post-card:hover .post-card__img img { transform: scale(1.08); }
.post-card__title a {
  background-image: linear-gradient(var(--amarelo), var(--amarelo));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0 38%;
  transition: background-size .4s ease;
}
.post-card:hover .post-card__title a { background-size: 100% 38%; }
.post-card__more { transition: background-color .22s ease, transform .3s cubic-bezier(.34,1.56,.64,1); }
.post-card:hover .post-card__more { transform: rotate(90deg) scale(1.12); }

/* ── Cards de apoio: elevação e aspas que reagem ─── */
.apoio-card {
  transition: transform .3s cubic-bezier(.22,.61,.36,1),
              box-shadow .3s ease;
}
.apoio-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
}
.apoio-card__aspas { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.apoio-card:hover .apoio-card__aspas { transform: scale(1.16) rotate(-6deg); }
.apoio-card__avatar { transition: transform .35s ease, border-color .35s ease; }
.apoio-card:hover .apoio-card__avatar {
  transform: scale(1.06);
  border-color: var(--roxo);
}

/* ── Vídeos: play que pulsa ──────────────────────── */
@keyframes pulsoPlay {
  0%   { box-shadow: 0 0 0 0 rgba(255,204,0,.55); }
  70%  { box-shadow: 0 0 0 20px rgba(255,204,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,204,0,0); }
}
.video-card__play { animation: pulsoPlay 2.6s ease-out infinite; }
.video-card__thumb:hover .video-card__play { animation-play-state: paused; }
.video-card__thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(1,0,31,0) 45%, rgba(1,0,31,.5) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.video-card__thumb:hover::after { opacity: 1; }

/* ── Ícone de participar: flutua suavemente ──────── */
@keyframes flutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}
.participar__icone { animation: flutua 4.5s ease-in-out infinite; }

/* ── Links "+": seta que desliza ─────────────────── */
.link-mais { position: relative; }
.link-mais::after {
  content: '→';
  display: inline-block;
  margin-left: .4em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.link-mais:hover::after { opacity: 1; transform: translateX(0); }

/* O menu do layout não tem sublinhado — o realce é a cor amarela,
   definida na seção HEADER. */

/* ── Redes sociais: giro sutil ───────────────────── */
.social a img { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.social a:hover img { transform: scale(1.18) rotate(-8deg); }

/* ── Contatos do rodapé: deslizam ────────────────── */
.footer__contato { transition: transform .25s ease, opacity .25s ease; }
.footer__contato:hover { transform: translateX(6px); }

/* ── Banner: texto entra ao trocar de slide ──────── */
@keyframes entraTexto {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.banner__slide.is-active .banner__quote     { animation: entraTexto .75s cubic-bezier(.22,.61,.36,1) both; }
.banner__slide.is-active .banner__signature { animation: entraTexto .75s cubic-bezier(.22,.61,.36,1) .14s both; }
.banner__slide.is-active .btn               { animation: entraTexto .75s cubic-bezier(.22,.61,.36,1) .26s both; }

/* O zoom lento do fundo foi removido: animar background-size
   distorcia a proporção da foto (112% nos dois eixos) e o
   reinício da animação a cada troca de slide causava um flash. */

/* Selo do PSOL gira de leve ao passar o mouse */
.banner__seal:hover { transform: scale(1.08) rotate(5deg); }

/* ── Barra de progresso do scroll ────────────────── */
.progresso {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--amarelo), var(--roxo-claro));
  z-index: 200;
  transition: width .12s linear;
}

/* ── Botão voltar ao topo ────────────────────────── */
.ao-topo {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--amarelo);
  color: var(--preto);
  font-size: 1.4rem;
  line-height: 50px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.85);
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), visibility .3s;
  z-index: 150;
}
.ao-topo.is-visible { opacity: 1; visibility: visible; transform: none; }
.ao-topo:hover { transform: translateY(-3px) scale(1.07); }

/* ── Faixa de frase nas páginas internas ───────────
   Vive dentro do header (fundo roxo da barra), centralizada
   na coluna à direita da logo, abaixo do menu. */
.frase-faixa {
  text-align: center;
  padding: 1.4rem 0 .4rem;
}
.frase-faixa .banner__quote {
  display: inline-block;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  text-shadow: none;
  margin-bottom: .25em;
  padding-left: 0;
}
/* Com o texto centralizado, as aspas absolutas cairiam na borda
   do bloco (longe do texto); aqui elas fluem junto com ele */
.frase-faixa .banner__quote::before {
  position: static;
  margin-right: .12em;
  vertical-align: -.28em;
}
.frase-faixa .banner__signature {
  margin-bottom: 0;
  padding-left: 0;
  font-size: clamp(.95rem, 1.4vw, 1.25rem);
  text-shadow: none;
}

/* ── Modal de vídeo ──────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh var(--gutter);
  background: rgba(1, 0, 31, .88);
}
.video-modal.is-open { display: flex; }
.video-modal__dialog {
  position: relative;
  width: min(1080px, 100%);
}
.video-modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.video-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal__fechar {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--amarelo);
  color: var(--azul-noite);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.video-modal__fechar:hover { background: var(--amarelo-esc); }
.video-modal__yt {
  display: inline-block;
  margin-top: .8rem;
  color: var(--branco);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.video-modal__yt:hover { color: var(--amarelo); }

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* Sem animação, o conteúdo precisa nascer visível */
  [data-reveal],
  [data-reveal-stagger] > * { opacity: 1; transform: none; }
  .section-title::after { width: 88px; }
}

/* ══════════ LINKS DE TEXTO ══════════
   Links dentro de conteúdo editorial ficam em roxo e negrito.
   Componentes com identidade própria (menu, botões, cards, paginação,
   rodapé, logo) são preservados: neles a cor vem do contexto e o roxo
   deixaria o texto ilegível sobre fundo escuro. */
.artigo__conteudo a,
.pagina__inner p a,
.pagina__inner li a,
.entry-content a,
.page__conteudo a,
.comment-content a {
  color: var(--roxo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artigo__conteudo a:hover,
.pagina__inner p a:hover,
.pagina__inner li a:hover,
.entry-content a:hover,
.page__conteudo a:hover,
.comment-content a:hover {
  color: var(--roxo-claro);
}

/* Exceções: componentes que já têm cor e peso definidos. */
.pagina__inner p a.link-mais,
.pagina__inner li a.link-mais,
.pagina__inner p a.btn,
.pagina__inner li a.btn,
.pagina__inner p a.artigo__tag,
.entry-content a.link-mais,
.entry-content a.btn {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

/* A tag de categoria tem fundo próprio: no hover inverte para roxo com
   texto branco, em vez do roxo sublinhado dos links de texto corrido. */
.pagina__inner p a.artigo__tag {
  color: var(--preto);
  font-weight: 700;
}
.pagina__inner p a.artigo__tag:hover,
.pagina__inner p a.artigo__tag:focus-visible {
  background: var(--roxo);
  color: var(--branco);
  text-decoration: none;
}

/* ══════════ FORMULÁRIOS (Ninja Forms) ══════════
   O plugin não traz estilo próprio: sem isto os campos saem com a
   aparência padrão do navegador (Arial, borda inset), destoando do site. */
.nf-form-cont { max-width: 720px; margin: 0 auto; }

.nf-form-fields-required { display: none; }

.nf-field-container { margin-bottom: 1.5rem; }

.nf-field-label label {
  font-family: var(--fonte-texto);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--preto);
  margin-bottom: .45em;
  display: block;
}
/* O asterisco de obrigatório em roxo, discreto */
.nf-field-label .ninja-forms-req-symbol { color: var(--roxo); }

.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element input[type="number"],
.nf-field-element textarea,
.nf-field-element select {
  width: 100%;
  font-family: var(--fonte-texto);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--preto);
  background: var(--branco);
  border: 2px solid #DDD8E4;
  border-radius: 10px;
  padding: .85em 1em;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.nf-field-element textarea {
  min-height: 170px;
  resize: vertical;
}

/* O foco precisa vencer o estado de erro (que tem seletor mais longo),
   senão a borda continua vermelha enquanto a pessoa digita a correção. */
.nf-field-element input[type="text"]:focus,
.nf-field-element input[type="email"]:focus,
.nf-field-element input[type="tel"]:focus,
.nf-field-element input[type="number"]:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus,
.nf-error .nf-field-element input:focus,
.nf-error .nf-field-element textarea:focus {
  outline: none;
  border-color: var(--roxo);
  box-shadow: 0 0 0 3px rgba(66, 31, 111, .13);
}

.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder { color: #9A93A6; }

/* Checkbox da política de privacidade */
.checkbox-container .nf-field-label label,
.listcheckbox-container .nf-field-label label {
  font-weight: 400;
  font-size: .96rem;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-container input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  flex: 0 0 20px;
  height: 20px;
  accent-color: var(--roxo);
  margin-right: .5em;
  cursor: pointer;
}

/* Botão de envio: mesmo botão amarelo do resto do site */
.nf-field-element input[type="submit"],
.nf-field-element input[type="button"] {
  display: inline-block;
  width: auto;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--preto);
  background: var(--amarelo);
  border: 0;
  border-radius: 999px;
  padding: .8em 3em;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.nf-field-element input[type="submit"]:hover,
.nf-field-element input[type="button"]:hover {
  background: var(--amarelo-esc);
  transform: translateY(-2px);
}
.submit-container { text-align: center; margin-top: 2rem; }

/* Erros e mensagens */
.nf-error-msg,
.nf-error .nf-error-msg {
  font-size: .9rem;
  font-weight: 600;
  color: #C0392B;
  margin-top: .4em;
}
.nf-field-element .nf-error.field-wrap input,
.nf-field-element .nf-error.field-wrap textarea,
.nf-error .nf-field-element input,
.nf-error .nf-field-element textarea { border-color: #C0392B; }

.nf-response-msg,
.nf-form-cont .nf-response-msg p {
  font-size: 1.05rem;
  color: var(--roxo);
  font-weight: 600;
}

@media (max-width: 600px) {
  .nf-field-element input[type="submit"],
  .nf-field-element input[type="button"] { width: 100%; padding: .85em 1em; }
  .nf-field-container { margin-bottom: 1.25rem; }
}

/* ---------------------------------------------------------------------------
   Página limpa — só título e texto, sem cabeçalho nem rodapé
   --------------------------------------------------------------------------- */
.pagina-limpa .pagina { padding: 4rem 0; }
@media (max-width: 860px) {
  .pagina-limpa .pagina { padding: 2.5rem 0 3rem; }
}
