/* ------------------------------------------------------------------
   Roger Aguiar 4044 — complementos do WordPress
   Mantém o visual de styles.css e cobre o que o HTML estático não tinha:
   links nos cards, listagem de notícias, página da notícia e paginação.
   ------------------------------------------------------------------ */

/* ---------- Acessibilidade / utilitários WP ---------- */
.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;
}

/* ---------- Cards clicáveis ---------- */
.news-card, .news-feature { position: relative; }

.news-card h3 a,
.news-card .card-title a,
.news-feature h3 a {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}
.news-card h3 a:hover,
.news-card .card-title a:hover,
.news-feature h3 a:hover { text-decoration: underline; }

/* O "Leia mais" cobre o card inteiro, sem tirar o foco do teclado. */
.news-card .text-link::after,
.news-feature .text-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-card a.text-link,
.news-feature a.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.news-card img, .news-feature img { object-fit: cover; }

.news-all { margin-top: 28px; text-align: center; }
.news-all .button { display: inline-flex; }

/* ---------- Páginas internas ---------- */
.roger-page { display: block; }

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 52px;
}
.page-hero .eyebrow { color: var(--yellow); }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 62px);
  line-height: .95;
  text-transform: uppercase;
  margin: 10px 0 0;
}
.page-hero-desc {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.5;
  color: #ffffffcc;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}
.archive-grid .news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
}
.archive-grid .news-card img {
  width: 100%;
  height: 190px;
  display: block;
}
.archive-grid .news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  flex: 1;
}
.archive-grid .card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  text-transform: none;
}
.archive-grid .news-body p { margin: 0; }
.archive-grid .news-body .text-link { margin-top: auto; }

/* ---------- Notícia individual ---------- */
.single-hero {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 44px;
}
.single-hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.02;
  margin: 14px 0 0;
  max-width: 22ch;
}
.single-lead {
  margin: 16px 0 0;
  max-width: 66ch;
  font-size: 18px;
  line-height: 1.55;
  color: #ffffffcc;
}
.single-hero .news-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffffb3;
}
.single-hero .news-tags span {
  background: var(--orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  color: #ffffff99;
}
.breadcrumb a { color: #ffffffcc; text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }

.single-cover { margin: 0; }
.single-cover .container { transform: translateY(-34px); }
.single-cover img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}
.single-cover figcaption {
  font-size: 13px;
  color: #6c6f72;
  margin-top: 8px;
}

.entry-content {
  max-width: 72ch;
  margin: 40px auto 0;
  font-size: 18px;
  line-height: 1.7;
  color: #33363a;
}
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin-top: 1.8em;
}
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }
.entry-content a { color: var(--orange-deep); }
.entry-content img,
.entry-content iframe,
.entry-content video { max-width: 100%; height: auto; border-radius: 14px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 13px; color: #6c6f72; margin-top: 8px; }
.entry-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 4px 0 4px 20px;
  margin-left: 0;
  font-size: 20px;
  font-style: italic;
  color: var(--ink);
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content pre {
  background: var(--soft);
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
}
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignwide, .entry-content .alignfull { max-width: none; }

.entry-tags {
  max-width: 72ch;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.entry-tags a {
  background: var(--soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  text-decoration: none;
}
.entry-tags a:hover { background: var(--yellow); }

.post-nav {
  max-width: 72ch;
  margin: 44px auto 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.post-nav-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.post-nav-item:hover { border-color: var(--orange); transform: translateY(-2px); }
.post-nav-item span {
  display: block;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #83878c;
  margin-bottom: 6px;
}
.post-nav-item strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
}
.post-nav-item.next { text-align: right; }

.related-news { padding-top: 56px; }
.page-links { margin-top: 24px; font-size: 15px; }

/* ---------- Paginação ---------- */
.roger-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.roger-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  background: #fff;
}
.roger-pagination .page-numbers:hover { border-color: var(--orange); color: var(--orange-deep); }
.roger-pagination .page-numbers.current {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.roger-pagination .dots { border-color: transparent; background: transparent; }

/* ---------- Estados vazios / busca ---------- */
.roger-empty {
  text-align: center;
  padding: 40px 0 20px;
  max-width: 60ch;
  margin: 0 auto;
}
.roger-empty h1, .roger-empty h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  margin: 10px 0 12px;
}
.roger-empty p { margin: 0 0 16px; }
.roger-empty .button { margin: 6px; }

.roger-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.roger-search input[type="search"] {
  flex: 1 1 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
}

@media (max-width: 720px) {
  .page-hero, .single-hero { padding-top: 44px; }
  .entry-content { font-size: 17px; }
  .archive-grid { grid-template-columns: 1fr; }
  .post-nav-item.next { text-align: left; }
}

/* ---------- Comentários ---------- */
.roger-comments { max-width: 72ch; margin: 48px auto 0; }
.roger-comments .comments-title,
.roger-comments .comment-reply-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 18px;
}
.roger-comments .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.roger-comments .comment-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.roger-comments .comment-list .children { list-style: none; padding-left: 24px; }
.roger-comments input[type="text"],
.roger-comments input[type="email"],
.roger-comments input[type="url"],
.roger-comments textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.roger-comments textarea { min-height: 140px; }
.roger-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.roger-comments .comment-form-cookies-consent input { width: auto; }

/* ------------------------------------------------------------------
   HERO — banner novo (imagem única, cabeça sobre o cabeçalho)
   A imagem tem fundo transparente acima da faixa da multidão, então
   a cabeça "vaza" para dentro do header sem precisar de clip-path.
   A faixa opaca começa em 20,81% da altura da imagem
   -> 20,81% x 39,99% (proporção 1983/793) = 8,32% da largura do hero.
   ------------------------------------------------------------------ */
.hero {
  min-height: 0;
  background: #fff;
  /* flow-root impede que a margem negativa da imagem arraste o hero inteiro */
  display: flow-root;
}
.hero::after { display: none; }

.hero-picture {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  margin-top: -8.32%;
  clip-path: none;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.hero-picture picture { display: block; }
.hero-picture img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
}

.hero-copy {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  margin-left: 0;
  padding: 3.2% 4.5% 0 0;
  z-index: 2;
}

/* O "4044" já vem desenhado na imagem. */
.hero-number { display: none; }

@media (max-width: 1200px) {
  .hero-copy { width: 57%; padding-top: 2.6%; }
}

/* Abaixo de 1024px o texto não cabe sobre a imagem: empilha. */
@media (max-width: 1023px) {
  .hero {
    display: flex;
    flex-direction: column;
    background: linear-gradient(150deg, #fff 30%, #fff4e2);
  }
  .hero-picture {
    order: 2;
    margin-top: 0;
  }
  .hero-copy {
    position: relative;
    order: 1;
    width: auto;
    padding: 30px 26px 26px;
    background: none;
  }
  .hero-actions { max-width: none; }
  .countdown {
    bottom: 10px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 430px;
  }
}

@media (max-width: 760px) {
  .hero-copy { padding: 30px 22px 24px; }
  /* No recorte de celular o 4044 fica de fora, então volta o do CSS. */
  .hero-number { display: block; }
}

/* ---------- Propostas: sem foto, texto completo no card ---------- */
.proposal-card {
  grid-template-columns: 104px 1fr;
  min-height: 250px;
  align-items: stretch;
}
.proposal-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16px;
  background: linear-gradient(165deg, #ff8a1f, #ed4b00);
}
.proposal-image > span {
  position: static;
  background: none;
  padding: 0;
  font: italic 800 54px/1 var(--display);
  color: #fff;
}

.proposal-category {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1e0;
  color: var(--orange-deep);
  font: 700 11px/1 var(--font);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.proposal-copy h3 {
  font-size: clamp(21px, 1.9vw, 28px);
  margin-bottom: 10px;
}
.proposal-text {
  font-size: 14px;
  line-height: 1.5;
}
.proposal-text p { margin: 0; }
.proposal-text p + p { margin-top: 7px; }
.proposal-text .proposal-item {
  position: relative;
  margin-top: 5px;
  padding-left: 16px;
}
.proposal-text .proposal-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.empty-proposal .proposal-category { display: none; }

@media (max-width: 760px) {
  .proposal-card { grid-template-columns: 84px 1fr; }
  .proposal-image > span { font-size: 42px; }
  .proposal-category { font-size: 10px; }
  .proposal-text { font-size: 15px; }
}

/* ---------- Agenda sem o botão "Ver agenda completa" ---------- */
.agenda-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .agenda-grid { grid-template-columns: 1fr; }
}

/* O rodapé pode ser impresso fora do .site-shell quando um construtor de
   página substitui o footer.php do tema — mantém a mesma largura máxima. */
.footer { max-width: 1600px; margin-inline: auto; }

/* Sem o card "Receba novidades": duas ações em vez de três. */
.participate-grid { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 1200px) { .participate-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (max-width: 760px)  { .participate-grid { grid-template-columns: 1fr; } }

/* Enquadramento das fotos da galeria — mantém os rostos visíveis no recorte. */
.gallery-a img { object-position: center 40%; }
.gallery-b img { object-position: center 45%; }
.gallery-c img { object-position: center 42%; }
.gallery-d img { object-position: center 55%; }

/* Só a ação do WhatsApp na faixa "Essa campanha também é sua". */
.participate-grid { grid-template-columns: 1fr minmax(260px, 340px); }
@media (max-width: 760px) { .participate-grid { grid-template-columns: 1fr; } }
