/*
Theme Name: Alvo Gestão Contábil Child
Theme URI: https://alvogestaocontabil.com.br/
Description: Tema filho da Alvo Gestão Contábil. Replica o layout do site HTML estático nas páginas do blog WordPress (home, single, archive). Carrega css/style.css, css/cf-alvo.css, js/script.js e js/cf-alvo.js da raiz do site.
Author: Agência PHN / Pablo Negri
Author URI: https://phndigital.com.br/
Template: twentytwentyfive
Version: 2.0.0
Text Domain: alvo-child
*/

/* =============================================================
   IDENTIDADE VISUAL — Alvo Gestão Contábil
   Paleta: #C9A84C dourado · #0A0A0A escuro · #fafafa bg · #1f2937 texto
   Fontes: DM Serif Display (títulos) · Poppins (corpo)
============================================================= */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #a98a35;
  --dark: #0A0A0A;
  --dark-soft: #1a1a1a;
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --bg: #fafafa;
  --bg-alt: #f4f4f4;
  --border: #e5e7eb;
}

/* ------- Reset apenas no escopo do blog WP ------- */
.single-post .site-content,
.single-post .entry-content,
.single-post .wp-site-blocks,
.blog .site-content,
.archive .site-content {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* =============================================================
   HERO DO POST
============================================================= */
.alvo-post-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  color: #fff;
  padding: 72px 24px 96px;
  position: relative;
  overflow: hidden;
}
.alvo-post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.alvo-post-hero-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }

.alvo-breadcrumb {
  font-size: 13px; color: rgba(255,255,255,0.65);
  margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px;
}
.alvo-breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color .2s; }
.alvo-breadcrumb a:hover { color: var(--gold); }
.alvo-breadcrumb .sep { color: rgba(255,255,255,0.4); }

.alvo-post-hero .alvo-cat-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold);
  padding: 6px 14px; border-radius: 2px; margin-bottom: 22px;
  text-decoration: none; transition: all .2s;
}
.alvo-post-hero .alvo-cat-badge:hover { background: var(--gold); color: var(--dark); }

.alvo-post-hero h1 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 46px; line-height: 1.15; color: #fff;
  max-width: 880px; margin: 0 0 20px;
}
.alvo-post-hero h1 em { font-style: italic; color: var(--gold); }
.alvo-post-hero .alvo-lead {
  font-size: 17px; color: #e5e7eb; line-height: 1.7;
  max-width: 780px; margin-bottom: 28px;
}

.alvo-post-meta {
  display: flex; flex-wrap: wrap; gap: 20px 28px;
  font-size: 14px; color: rgba(255,255,255,0.75);
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15);
}
.alvo-post-meta-item { display: flex; align-items: center; gap: 8px; }
.alvo-post-meta-item svg { flex-shrink: 0; color: var(--gold); }
.alvo-post-meta-item strong { color: #fff; font-weight: 600; }

/* =============================================================
   LAYOUT DUAS COLUNAS (single.php)
============================================================= */
.alvo-post-wrap {
  max-width: 1280px; margin: 0 auto; padding: 72px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px; align-items: start;
}

/* ------ COLUNA ESQUERDA: conteúdo ------ */
.alvo-post-main .alvo-featured-image {
  border-radius: 10px; overflow: hidden; margin-bottom: 32px;
  box-shadow: 0 10px 40px rgba(10,10,10,0.08);
}
.alvo-post-main .alvo-featured-image img { width: 100%; height: auto; display: block; }

.alvo-post-content {
  font-size: 17px; color: var(--text); line-height: 1.85;
}
.alvo-post-content > *:first-child { margin-top: 0; }
.alvo-post-content p { margin: 0 0 22px; }
.alvo-post-content h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 30px; color: var(--dark); line-height: 1.25;
  margin: 44px 0 16px;
}
.alvo-post-content h3 {
  font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 22px; color: var(--dark); margin: 32px 0 12px;
}
.alvo-post-content h4 {
  font-size: 18px; font-weight: 600; color: var(--dark); margin: 24px 0 10px;
}
.alvo-post-content a {
  color: var(--gold-dark); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
  font-weight: 500;
}
.alvo-post-content a:hover { color: var(--dark); }
.alvo-post-content strong { color: var(--dark); font-weight: 600; }
.alvo-post-content ul, .alvo-post-content ol { margin: 0 0 24px 22px; }
.alvo-post-content li { margin-bottom: 10px; }
.alvo-post-content ul li { list-style: disc; }
.alvo-post-content ol li { list-style: decimal; }
.alvo-post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 22px; margin: 28px 0;
  font-style: italic; color: var(--text-soft); font-size: 18px;
}
.alvo-post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.alvo-post-content figure { margin: 28px 0; }
.alvo-post-content figcaption { font-size: 14px; color: var(--text-soft); margin-top: 8px; text-align: center; }
.alvo-post-content pre {
  background: var(--dark); color: #fff; padding: 20px 24px;
  border-radius: 8px; overflow-x: auto; font-size: 14px;
  margin: 24px 0;
}
.alvo-post-content hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.alvo-post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.alvo-post-content th, .alvo-post-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.alvo-post-content th { background: var(--bg); font-weight: 600; color: var(--dark); }

/* Tags */
.alvo-post-tags {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.alvo-post-tags .label {
  font-size: 13px; font-weight: 600; color: var(--dark);
  text-transform: uppercase; letter-spacing: 1px; margin-right: 6px;
}
.alvo-post-tags a {
  font-size: 13px; color: var(--text-soft);
  background: var(--bg); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px;
  text-decoration: none; transition: all .2s;
}
.alvo-post-tags a:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* Compartilhar */
.alvo-share {
  margin-top: 28px; padding: 20px 24px;
  background: var(--bg); border-radius: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.alvo-share .label { font-size: 14px; font-weight: 600; color: var(--dark); }
.alvo-share a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--dark); border: 1px solid var(--border);
  transition: all .2s; text-decoration: none;
}
.alvo-share a:hover {
  background: var(--gold); color: var(--dark); border-color: var(--gold);
  transform: translateY(-2px);
}

/* Navegação entre posts */
.alvo-post-nav {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.alvo-post-nav a {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 22px; text-decoration: none; transition: all .2s;
  display: flex; flex-direction: column; gap: 4px;
}
.alvo-post-nav a:hover {
  border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.15);
}
.alvo-post-nav .dir {
  font-size: 12px; color: var(--text-soft); text-transform: uppercase;
  letter-spacing: 1px; font-weight: 600;
}
.alvo-post-nav .title { font-size: 15.5px; color: var(--dark); font-weight: 600; line-height: 1.4; }
.alvo-post-nav .next { text-align: right; }

/* =============================================================
   COLUNA DIREITA — SIDEBAR
============================================================= */
.alvo-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 10, 10, 0.2) transparent;
}
.alvo-sidebar::-webkit-scrollbar { width: 6px; }
.alvo-sidebar::-webkit-scrollbar-track { background: transparent; }
.alvo-sidebar::-webkit-scrollbar-thumb { background: rgba(10, 10, 10, 0.2); border-radius: 3px; }
.alvo-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(10, 10, 10, 0.4); }

.alvo-widget {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 26px;
}
.alvo-widget-title {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 22px; color: var(--dark); line-height: 1.25;
  margin: 0 0 6px;
}
.alvo-widget-divider {
  display: block; width: 40px; height: 3px;
  background: var(--gold); border-radius: 2px; margin-bottom: 18px;
}

/* Widget: Redes sociais */
.alvo-widget-social p { font-size: 14.5px; color: var(--text-soft); margin: 0 0 18px; line-height: 1.55; }
.alvo-widget-social .social-list { display: flex; gap: 10px; flex-wrap: wrap; }
.alvo-widget-social .social-list a {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--bg); color: var(--dark);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s; text-decoration: none;
}
.alvo-widget-social .social-list a:hover {
  background: var(--gold); color: var(--dark); transform: translateY(-2px);
}

/* Widget: Leia mais */
.alvo-widget-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.alvo-widget-related li { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.alvo-widget-related li:last-child { border-bottom: none; padding-bottom: 0; }
.alvo-widget-related a { display: flex; gap: 12px; text-decoration: none; }
.alvo-widget-related .thumb {
  width: 72px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--bg);
}
.alvo-widget-related .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alvo-widget-related .info { flex: 1; min-width: 0; }
.alvo-widget-related .cat {
  font-size: 11px; font-weight: 600; color: var(--gold-dark);
  text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 4px;
}
.alvo-widget-related .title {
  font-size: 14.5px; font-weight: 600; color: var(--dark); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.alvo-widget-related a:hover .title { color: var(--gold-dark); }
.alvo-widget-related .empty { font-size: 14px; color: var(--text-soft); }

/* Widget: Fale com o Marcos (CTA) */
.alvo-widget-cta {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  color: #fff; border: none;
}
.alvo-widget-cta .alvo-widget-title { color: #fff; }
.alvo-widget-cta p { font-size: 14.5px; color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 18px; }
.alvo-widget-cta .alvo-cta-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.alvo-widget-cta .alvo-cta-list li {
  font-size: 13.5px; color: rgba(255,255,255,0.85); padding-left: 24px; position: relative;
}
.alvo-widget-cta .alvo-cta-list li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / contain no-repeat;
}
.alvo-widget-cta .alvo-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--gold); color: var(--dark); font-size: 15px; font-weight: 600;
  padding: 14px 20px; border-radius: 6px; transition: all .2s;
  margin-bottom: 10px;
}
.alvo-widget-cta .alvo-btn:hover { background: var(--gold-light); transform: scale(1.02); }
.alvo-widget-cta .alvo-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25d366; color: #fff; font-size: 14.5px; font-weight: 600;
  padding: 12px 18px; border-radius: 6px; text-decoration: none; transition: all .2s;
}
.alvo-widget-cta .alvo-btn-wa:hover { background: #1fa855; transform: scale(1.02); }
.alvo-widget-cta .alvo-contact-info {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6;
}
.alvo-widget-cta .alvo-contact-info strong { color: #fff; display: block; margin-bottom: 2px; font-size: 13.5px; }

/* =============================================================
   CTA FINAL (banda full-width abaixo do post)
============================================================= */
.alvo-post-cta-band {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
  color: #fff; padding: 72px 24px; text-align: center;
}
.alvo-post-cta-band h2 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 32px; line-height: 1.25; color: #fff; margin: 0 0 12px;
}
.alvo-post-cta-band h2 em { font-style: italic; color: var(--gold); }
.alvo-post-cta-band p {
  font-size: 16.5px; color: rgba(255,255,255,0.78);
  max-width: 620px; margin: 0 auto 24px; line-height: 1.7;
}
.alvo-post-cta-band .btns { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.alvo-post-cta-band .alvo-btn {
  background: var(--gold); color: var(--dark); font-size: 15px; font-weight: 600;
  padding: 14px 28px; border-radius: 4px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: all .2s;
}
.alvo-post-cta-band .alvo-btn:hover { background: var(--gold-light); transform: scale(1.02); }
.alvo-post-cta-band .alvo-btn-outline {
  background: transparent; color: #fff; border: 2px solid #fff; padding: 12px 28px;
}
.alvo-post-cta-band .alvo-btn-outline:hover { background: #fff; color: var(--dark); }

/* =============================================================
   GRID DE POSTS (home.php e archive.php)
============================================================= */
.alvo-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.alvo-post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.05);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.alvo-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 10, 10, 0.10);
}
.alvo-card-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
.alvo-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.alvo-post-card:hover .alvo-card-thumb img { transform: scale(1.05); }
.alvo-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.alvo-card-cat {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-dark); text-decoration: none;
  display: inline-block;
}
.alvo-card-title {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: 22px; line-height: 1.3; margin: 0;
}
.alvo-card-title a { color: var(--dark); text-decoration: none; transition: color .2s; }
.alvo-card-title a:hover { color: var(--gold-dark); }
.alvo-card-excerpt {
  font-size: 14.5px; color: var(--text-soft);
  line-height: 1.6; margin: 0; flex: 1;
}
.alvo-card-meta {
  font-size: 13px; color: var(--text-muted);
  margin-top: 8px; display: flex; gap: 8px; align-items: center;
}
.alvo-card-meta .dot { color: #cbd5e0; }

/* Paginação WP */
.alvo-pagination .nav-links {
  display: inline-flex; gap: 8px; align-items: center;
  flex-wrap: wrap; justify-content: center;
}
.alvo-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 6px;
  background: #fff; color: var(--dark);
  text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); transition: all .2s;
}
.alvo-pagination .page-numbers:hover {
  background: var(--gold); color: var(--dark); border-color: var(--gold);
}
.alvo-pagination .page-numbers.current {
  background: var(--dark); color: #fff; border-color: var(--dark);
}
.alvo-pagination .page-numbers.dots {
  background: transparent; border-color: transparent;
}

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 1024px) {
  .alvo-post-wrap { grid-template-columns: 1fr; gap: 48px; }
  .alvo-sidebar { position: static; order: 2; max-height: none; }
  .alvo-post-hero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
  .alvo-post-hero { padding: 56px 20px 72px; }
  .alvo-post-hero h1 { font-size: 28px; }
  .alvo-post-hero .alvo-lead { font-size: 15.5px; }
  .alvo-post-wrap { padding: 48px 20px; gap: 40px; }
  .alvo-post-content { font-size: 16px; }
  .alvo-post-content h2 { font-size: 24px; }
  .alvo-post-content h3 { font-size: 19px; }
  .alvo-widget { padding: 22px 20px; }
  .alvo-post-nav { grid-template-columns: 1fr; }
  .alvo-post-cta-band { padding: 56px 20px; }
  .alvo-post-cta-band h2 { font-size: 24px; }
  .alvo-posts-grid { grid-template-columns: 1fr; gap: 24px; }
  .alvo-card-title { font-size: 19px; }
}

/* =========================================================
   FAQ — abrir todas as respostas direto (sem accordion)
   + ajustar tamanho da pergunta (H6 dentro do summary)
   ========================================================= */

/* Força todos os <details> a ficarem abertos */
.alvo-post-content details,
.s-faq details {
  margin: 0 0 18px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid #e6e8eb;
  border-left: 4px solid #1e3a5f;
  border-radius: 6px;
}

/* Esconde a setinha de toggle do <summary> */
.alvo-post-content details > summary,
.s-faq details > summary {
  list-style: none;
  cursor: default;
  margin-bottom: 12px;
  padding: 0;
}
.alvo-post-content details > summary::-webkit-details-marker,
.s-faq details > summary::-webkit-details-marker {
  display: none;
}
.alvo-post-content details > summary::marker,
.s-faq details > summary::marker {
  display: none;
  content: "";
}

/* Tamanho da pergunta (H6 dentro do summary) — vira tamanho de H4 */
.alvo-post-content details > summary > h6,
.alvo-post-content details > summary .faq-q-title,
.s-faq details > summary > h6,
.s-faq details > summary .faq-q-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: #1e3a5f;
  margin: 0;
  padding: 0;
  display: inline-block;
}

/* Resposta — parágrafo dentro do details */
.alvo-post-content details > p,
.s-faq details > p {
  font-size: 17px;
  line-height: 1.7;
  color: #2d3748;
  margin: 0;
}

/* Cabeçalho do bloco FAQ */
.alvo-post-content .s-faq > h2,
.s-faq > h2 {
  margin-top: 48px;
  margin-bottom: 24px;
}

/* Mobile */
@media (max-width: 768px) {
  .alvo-post-content details > summary > h6,
  .alvo-post-content details > summary .faq-q-title,
  .s-faq details > summary > h6,
  .s-faq details > summary .faq-q-title {
    font-size: 19px;
  }
  .alvo-post-content details > p,
  .s-faq details > p {
    font-size: 16px;
  }
  .alvo-post-content details,
  .s-faq details {
    padding: 18px 18px;
  }
}
