/*
Theme Name: Guia do Cidadão Pro (AdSense & Utilidade Pública)
Theme URI: https://example.com/guia-cidadao-pro
Author: Antigravity AI
Author URI: https://example.com
Description: Tema WordPress ultra-rápido (Core Web Vitals 99+), desenvolvido sob medida para Portais de Utilidade Pública (Benefícios, Documentos, Finanças e Calculadoras). Inclui espaços de AdSense anti-CLS de alto CTR, páginas obrigatórias de aprovação pré-configuradas (Política de Privacidade DART/LGPD, Termos, Sobre E-E-A-T, Contato), gerador nativo de ads.txt e calculadoras interativas embutidas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guia-cidadao
Tags: blog, news, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

:root {
  --primary: #0c326f;
  --primary-dark: #071d41;
  --primary-light: #1351b4;
  --accent: #168821;
  --accent-hover: #116a1a;
  --warning: #f59e0b;
  --bg-body: #f4f6f9;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --ad-bg: #f8fafc;
  --ad-border: #cbd5e1;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --container-width: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   TOP BAR (Aviso de Transparência p/ Aprovação no Google AdSense)
   ========================================================================== */
.top-utility-bar {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-utility-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-independent {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.top-utility-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.top-utility-links a {
  color: #e2e8f0;
  text-decoration: none;
}

.top-utility-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   HEADER & NAVIGATION (Adaptado para o Kit Visual Núcleo VIP)
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  color: var(--text-main);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title-logo {
  margin: 0;
  line-height: 1;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
}

.site-logo-horizontal {
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.site-logo-icon {
  width: 42px;
  height: 42px;
  background: #102b57;
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.site-title a {
  color: #102b57;
  text-decoration: none;
}

.site-description {
  font-size: 0.78rem;
  color: #178b4b;
  font-weight: 600;
  margin-top: 2px;
}

.header-search {
  flex: 1;
  max-width: 420px;
}

.search-form {
  display: flex;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
  padding: 3px;
}

.search-field {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
}

.search-submit {
  background: #178b4b;
  color: #fff;
  border: none;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-submit:hover {
  background: #126e3b;
}

.category-nav-bar {
  background: #f5f8fc;
  border-bottom: 1px solid #dbe5ef;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.45rem 0;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  color: #102b57;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: #e7f6ed;
  color: #178b4b;
}

.mobile-menu-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #102b57;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ==========================================================================
   ADSENSE CONTAINERS (Zero CLS + High CTR + Google Policy Compliant)
   ========================================================================== */
.ad-slot-wrapper {
  margin: 1.5rem auto;
  text-align: center;
  background-color: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: 8px;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.ad-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

/* Min-heights prevent Cumulative Layout Shift (CLS) for Core Web Vitals */
.ad-header-leaderboard {
  min-height: 115px;
  max-width: 970px;
}

.ad-in-article {
  min-height: 280px;
  margin: 1.75rem 0;
}

.ad-sidebar-sticky {
  min-height: 300px;
}

.ad-placeholder-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  color: #475569;
  font-size: 0.85rem;
  padding: 1rem;
  background: repeating-linear-gradient(
    -45deg,
    #f8fafc,
    #f8fafc 10px,
    #f1f5f9 10px,
    #f1f5f9 20px
  );
  border-radius: 6px;
}

.ad-placeholder-demo strong {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   QUICK UTILITY HUB CARDS (Homepage High-Engagement Bar + Ícones Oficiais)
   ========================================================================== */
.utility-hub-section {
  margin: 1.75rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #102b57;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 22px;
  background: #178b4b;
  border-radius: 3px;
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.utility-card {
  background: var(--bg-card);
  border: 1px solid #dbe5ef;
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none !important;
}

.utility-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #178b4b;
}

.utility-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.utility-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px solid #dbe5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
}

.utility-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.utility-card h3 {
  font-size: 1.02rem;
  color: #102b57;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.utility-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.utility-card-cta {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #178b4b;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==========================================================================
   MAIN LAYOUT (Content + Sticky Right Sidebar for AdSense)
   ========================================================================== */
.site-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2rem;
  margin: 1.5rem 0 3rem;
  align-items: start;
}

/* ==========================================================================
   POSTS GRID & CARDS (Proporção 16:9 preservada com object-fit: cover)
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* Miniatura proporcional 16:9 (1200x675) com object-fit: cover sem deformar */
.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.post-category-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}

.post-card-body {
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.post-card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--primary-light);
}

.post-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
}

.post-card-meta {
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card-cta-link {
  font-weight: 700;
  color: var(--primary-light);
  font-size: 0.86rem;
}

.post-card-date {
  color: #64748b;
  font-size: 0.75rem;
}

/* ==========================================================================
   SINGLE ARTICLE & PAGE CONTENT (Optimized for Reading & AdSense Clicks)
   ========================================================================== */
.single-article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.entry-title {
  font-size: 1.95rem;
  line-height: 1.25;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.entry-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.updated-badge {
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

/* Table of Contents (Increases Time on Page & Ad Viewability) */
.toc-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--primary-light);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.toc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-list {
  padding-left: 1.25rem;
  font-size: 0.9rem;
}

.toc-list li {
  margin-bottom: 0.3rem;
}

.entry-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1e293b;
}

.entry-content h2 {
  font-size: 1.45rem;
  color: var(--primary-dark);
  margin: 2rem 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #eff6ff;
}

.entry-content h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 1.5rem 0 0.65rem;
}

.entry-content p {
  margin-bottom: 1.2rem;
}

.entry-content ul, .entry-content ol {
  margin: 0 0 1.25rem 1.5rem;
}

.entry-content li {
  margin-bottom: 0.45rem;
}

/* Gov.br Inspired Step-by-Step & Alert Callout Boxes */
.gov-callout {
  background: #eff6ff;
  border-left: 4px solid var(--primary-light);
  padding: 1.15rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.gov-callout.success {
  background: #f0fdf4;
  border-left-color: var(--accent);
}

.gov-callout.warning {
  background: #fffbeb;
  border-left-color: var(--warning);
}

.gov-callout-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  display: block;
}

/* Author E-E-A-T Box for Google Quality Raters */
.author-eeat-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   INTERACTIVE PUBLIC UTILITY CALCULATORS (High CTR AdSense Magnet)
   ========================================================================== */
.calc-box {
  background: #ffffff;
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-md);
}

.calc-header {
  background: #eff6ff;
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #bfdbfe;
  border-radius: 8px 8px 0 0;
}

.calc-header h3 {
  margin: 0 !important;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
}

.calc-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
}

.calc-btn:hover {
  background: var(--accent-hover);
}

.calc-result {
  display: none;
  margin-top: 1.25rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: 1.25rem;
}

.calc-result.active {
  display: block;
}

.calc-result-total {
  font-size: 1.5rem;
  font-weight: 800;
  color: #15803d;
  margin: 0.35rem 0;
}

/* ==========================================================================
   SIDEBAR & STICKY ADSENSE
   ========================================================================== */
.widget-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.popular-utility-list {
  list-style: none;
}

.popular-utility-list li {
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
}

.popular-utility-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-utility-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.popular-utility-list a:hover {
  color: var(--primary-light);
}

.sticky-sidebar-container {
  position: sticky;
  top: 85px;
}

/* ==========================================================================
   FOOTER & MANDATORY LINKS + LGPD BANNER
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #fff;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ==========================================================================
   TOOLS SPOTLIGHT SECTION (Hero Cidadão 1920x1080 + Atalhos de Calculadoras)
   ========================================================================== */
.tools-spotlight-section {
  margin: 1.5rem 0 1.75rem;
}

.featured-tool-card {
  background-color: #102b57;
  background-image: linear-gradient(135deg, #071d41 0%, #102b57 65%, #183e73 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2.75rem;
  box-shadow: 0 10px 28px rgba(16, 43, 87, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.featured-tool-card.has-hero-banner {
  background-color: #102b57;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-content-left {
  max-width: 52%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-mobile-visual {
  display: none;
}

.hero-badge-2026 {
  display: inline-block;
  align-self: flex-start;
  background: rgba(49, 184, 106, 0.2);
  border: 1px solid rgba(134, 239, 172, 0.45);
  color: #d9ffe8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
}

.featured-tool-card h2 {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.featured-tool-card p {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 1.45rem;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-btn-primary {
  background: #178b4b;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.7rem 1.35rem;
  border-radius: 9px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: background 0.15s ease;
}

.hero-btn-primary:hover {
  background: #126e3b;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem;
  border-radius: 9px;
  text-decoration: none !important;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.quick-tools-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.quick-tool-item {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.quick-tool-item:hover {
  transform: translateY(-2px);
  border-color: #178b4b;
  box-shadow: var(--shadow-md);
}

.quick-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f5f8fc;
  border: 1px solid #dbe5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.quick-tool-item strong {
  display: block;
  font-size: 0.88rem;
  color: #102b57;
  line-height: 1.25;
}

.quick-tool-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.quick-tool-arrow {
  margin-left: auto;
  font-weight: 700;
  color: #178b4b !important;
  font-size: 0.95rem !important;
}

/* ==========================================================================
   INFOGRÁFICO ACESSÍVEL: "CONSULTE COM SEGURANÇA" (KIT VISUAL NÚCLEO VIP)
   ========================================================================== */
.nv-consulta-segura {
  margin: 2rem 0;
  background: linear-gradient(145deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid #dbe5ef;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 43, 87, 0.09);
}

.nv-cs-top {
  background: #102b57;
  padding: 1.85rem 2rem 1.65rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.nv-cs-top::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -60px;
  top: -110px;
  background: rgba(49, 184, 106, 0.14);
}

.nv-cs-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
}

.nv-cs-badge {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  background: #178b4b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
}

.nv-cs-hero {
  margin-top: 1.15rem;
}

.nv-cs-label {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #d9ffe8;
}

.nv-cs-title {
  font-size: 1.65rem !important;
  line-height: 1.15 !important;
  margin: 0.55rem 0 0.4rem !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0 !important;
}

.nv-cs-subtitle {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #d7e5f5 !important;
  max-width: 680px;
  margin: 0 !important;
}

.nv-cs-steps {
  padding: 1.5rem 1.75rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.nv-cs-card {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(16, 43, 87, 0.04);
}

.nv-cs-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e7f6ed;
  color: #178b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
}

.nv-cs-card h4 {
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  margin: 0.85rem 0 0.45rem !important;
  color: #102b57 !important;
}

.nv-cs-card p {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: #5c6d82 !important;
  margin: 0 !important;
}

.nv-cs-rule {
  margin: 0 1.75rem 1.25rem;
  background: #eff8f2;
  border: 1px solid #d1ecd9;
  border-left: 5px solid #178b4b;
  padding: 0.95rem 1.15rem;
  border-radius: 11px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #17304f;
}

.nv-cs-rule strong {
  color: #102b57;
}

.nv-cs-footer {
  padding: 0.9rem 1.75rem 1.15rem;
  color: #60728a;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid #dbe5ef;
}

.nv-cs-footbrand {
  color: #102b57;
  font-weight: 700;
}

/* LGPD Cookie Consent Bar (Compacto, Não-Intrusivo e com 3 escolhas claras) */
.lgpd-cookie-banner {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  max-width: 1060px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.97);
  color: #f8fafc;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  font-size: 0.82rem;
}

.lgpd-cookie-banner.hidden {
  display: none;
}

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

.lgpd-cookie-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

.lgpd-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.lgpd-btn {
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.lgpd-btn-primary {
  background: var(--accent);
  color: #fff;
}

.lgpd-btn-secondary {
  background: #334155;
  color: #f8fafc;
}

.lgpd-btn-outline {
  background: transparent;
  border: 1px solid #64748b;
  color: #e2e8f0;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Desktop + Mobile Hero sem colisão de rosto/texto)
   ========================================================================== */
@media (max-width: 960px) {
  .quick-tools-list,
  .utility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-main-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .featured-tool-card,
  .featured-tool-card.has-hero-banner {
    background-image: none !important;
    background-color: #102b57;
    padding: 1.65rem 1.35rem 0;
    min-height: 0;
  }
  .hero-content-left {
    max-width: 100%;
  }
  .featured-tool-card h2 {
    font-size: 1.5rem;
  }
  .hero-mobile-visual {
    display: block;
    margin: 1.25rem -1.35rem 0;
    height: 215px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
  }
  .hero-mobile-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 82% center;
    border-radius: 0;
    display: block;
  }
  .nv-cs-steps {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }
  .nv-cs-top {
    padding: 1.35rem 1.25rem;
  }
  .nv-cs-rule {
    margin: 0 1.25rem 1.15rem;
  }
  .nv-cs-footer {
    padding: 0.85rem 1.25rem 1.1rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .site-logo-horizontal {
    height: 46px;
    max-width: 220px;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .quick-tools-list,
  .utility-grid,
  .posts-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .single-article-card {
    padding: 1.25rem;
  }
  .entry-title {
    font-size: 1.5rem;
  }
  .lgpd-main-row {
    flex-direction: column;
    text-align: center;
  }
  .lgpd-actions {
    justify-content: center;
  }
}

