/* ============================================================
   LOTOFÁCIL BLOG — Design System v2
   Azul Cobalto + Dourado · Inter · Bitter · JetBrains Mono
   ============================================================ */
:root {
  /* ── Brand ── */
  --brand-primary:      #1E3A8A;
  --brand-primary-dark: #172554;
  --brand-primary-light:#3B5BDB;
  --brand-primary-soft: #E6ECFA;

  /* ── Accent ── */
  --accent-gold:        #D97706;
  --accent-gold-dark:   #B45309;
  --accent-gold-soft:   #FEF3C7;
  --accent-success:     #059669;
  --accent-danger:      #DC2626;

  /* ── Backgrounds ── */
  --bg-primary:   #F7F5F0;
  --bg-secondary: #FFFFFF;
  --bg-tertiary:  #F0EDE6;

  /* ── Text ── */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-tertiary:  #94A3B8;

  /* ── Border ── */
  --border:      #E4E1D8;
  --border-dark: #CBD5E1;

  /* ── Legacy aliases — mantém compatibilidade com HTML existente ── */
  --verde:       var(--brand-primary);
  --verde-dark:  var(--brand-primary-dark);
  --verde-light: var(--brand-primary-light);
  --verde-pale:  var(--brand-primary-soft);
  --verde-pale2: #C7D5F5;
  --amarelo:         var(--accent-gold);
  --amarelo-light:   var(--accent-gold-soft);
  --cinza-100:  var(--bg-primary);
  --cinza-200:  var(--border);
  --cinza-300:  #D1D5DB;
  --cinza-500:  var(--text-tertiary);
  --cinza-700:  var(--text-secondary);
  --cinza-900:  var(--text-primary);
  --branco:     var(--bg-secondary);

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,.10);
  --shadow-lg: 0 8px 24px rgba(15,23,42,.14);

  /* ── Radius ── */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  /* ── Layout ── */
  --max-w: 1200px;

  /* ── Typography ── */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-article: 'Bitter', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: hidden;
  touch-action: pan-y;
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  overflow-x: clip;
  max-width: 100vw;
  touch-action: pan-y;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-primary-dark); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media(max-width:640px){ .container { padding: 0 16px; } }

/* ══════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════ */
.topbar {
  background: var(--brand-primary-dark);
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: .3px;
}
.topbar a { color: rgba(255,255,255,.9); }

/* ══════════════════════════════════════════════════════
   HEADER — sticky, fundo branco, borda azul
══════════════════════════════════════════════════════ */
.site-header {
  background: var(--bg-secondary);
  border-bottom: 3px solid var(--brand-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(15,23,42,.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 24px;
}
@media(max-width:640px){ .header-inner { padding: 12px 16px; } }

.site-logo {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-primary);
  line-height: 1;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.site-logo span { color: var(--accent-gold); }
.site-logo small {
  display: block;
  font-size: .62rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  transition: background .18s, color .18s;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  text-decoration: none;
}

/* CTA do nav — fundo dourado */
.nav-cta {
  background: var(--accent-gold) !important;
  color: #fff !important;
  border-radius: var(--radius-xs) !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  transition: background .18s, box-shadow .18s !important;
}
.nav-cta:hover {
  background: var(--accent-gold-dark) !important;
  box-shadow: 0 4px 12px rgba(217,119,6,.30) !important;
  text-decoration: none !important;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: .3s;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════════
   HERO — HOME
══════════════════════════════════════════════════════ */
.hero-home {
  background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 55%, var(--brand-primary-light) 100%);
  color: #fff;
  padding: 72px 32px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-home .container { position: relative; z-index: 1; }
.hero-home h1 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-home p {
  font-size: 1.15rem;
  opacity: .9;
  max-width: 580px;
  margin: 0 auto 32px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badge {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════
   CATEGORY HERO
══════════════════════════════════════════════════════ */
.cat-hero {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-light));
  color: #fff;
  padding: 48px 32px;
  text-align: center;
}
.cat-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 10px;
}
.cat-hero p { opacity: .9; max-width: 560px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════
   ARTICLE HERO
══════════════════════════════════════════════════════ */
.article-hero {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  color: #fff;
  padding: 40px 32px;
}
.article-hero .container { max-width: 840px; }

.breadcrumb { font-size: .78rem; opacity: .7; margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb span { margin: 0 6px; }

.article-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: .82rem;
  opacity: .8;
  flex-wrap: wrap;
}
.article-meta .cat-tag {
  background: var(--accent-gold);
  color: #fff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: .75rem;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   MAIN LAYOUT (artigos + sidebar)
══════════════════════════════════════════════════════ */
.main-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.main-layout > * { min-width: 0; }
.main-layout.full-width { grid-template-columns: 1fr; }

/* ══════════════════════════════════════════════════════
   ARTICLE BODY — fonte Bitter (editorial)
══════════════════════════════════════════════════════ */
.article-body {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-family: var(--font-article);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #1e293b;
}
.article-body h2 {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 40px 0 16px;
  line-height: 1.3;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-primary-soft);
}
.article-body h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin: 28px 0 12px;
}
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); }
.article-body a { color: var(--brand-primary); font-weight: 600; }
.article-body a:hover { color: var(--brand-primary-dark); }

/* Números/dezenas em JetBrains Mono */
.article-body .num-ball,
.article-body .numbers-row,
.article-body td:first-child,
.data-table td:first-child { font-family: var(--font-mono); }

/* ── Dropcap ── */
.dropcap::first-letter {
  float: left;
  font-size: 4.2rem;
  line-height: .85;
  font-weight: 900;
  color: var(--brand-primary);
  margin-right: 10px;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* ── Pull quote ── */
.pull-quote {
  border-left: 4px solid var(--brand-primary);
  background: var(--brand-primary-soft);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--brand-primary-dark);
  font-family: var(--font-body);
}

/* ── Info box ── */
.info-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-family: var(--font-body);
  font-size: .93rem;
}
.info-box strong { color: #1E40AF; display: block; margin-bottom: 4px; }

/* ── Warn box ── */
.warn-box {
  background: var(--accent-gold-soft);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-family: var(--font-body);
  font-size: .93rem;
}
.warn-box strong { color: var(--accent-gold-dark); display: block; margin-bottom: 4px; }

/* ── Success box ── */
.success-box {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
  font-family: var(--font-body);
  font-size: .93rem;
}
.success-box strong { color: #065F46; display: block; margin-bottom: 4px; }

/* ══════════════════════════════════════════════════════
   DATA TABLE — cabeçalho azul, mono nos números
══════════════════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-family: var(--font-body);
  font-size: .9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.data-table th {
  background: var(--brand-primary);
  color: #fff;
  padding: 11px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .88rem;
}
.data-table td:last-child { font-family: var(--font-body); }
.data-table tr:nth-child(even) td { background: var(--bg-primary); }
.data-table tr:hover td { background: var(--brand-primary-soft); }

/* ══════════════════════════════════════════════════════
   CTA BUTTONS
══════════════════════════════════════════════════════ */
.btn-cta {
  display: inline-block;
  background: var(--accent-gold);
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-xs);
  text-decoration: none !important;
  transition: background .18s, box-shadow .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(217,119,6,.25);
  font-family: var(--font-body);
}
.btn-cta:hover {
  background: var(--accent-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,.35);
  color: #fff !important;
}

.btn-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--brand-primary) !important;
  font-weight: 700;
  font-size: .95rem;
  padding: 11px 24px;
  border-radius: var(--radius-xs);
  border: 2px solid var(--brand-primary);
  text-decoration: none !important;
  transition: all .18s;
}
.btn-cta-outline:hover {
  background: var(--brand-primary);
  color: #fff !important;
}

/* ══════════════════════════════════════════════════════
   CTA BOX (in-article)
══════════════════════════════════════════════════════ */
.cta-box {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 40px 0;
  text-align: center;
  font-family: var(--font-body);
}
.cta-box h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.cta-box p {
  font-size: .95rem;
  opacity: .9;
  margin-bottom: 22px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════════════════════
   FAQ ACCORDION
══════════════════════════════════════════════════════ */
.faq-section { margin-top: 48px; font-family: var(--font-body); }
.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-secondary);
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  gap: 12px;
  user-select: none;
}
.faq-q:hover { background: var(--brand-primary-soft); }
.faq-q .icon { font-size: 1.2rem; flex-shrink: 0; transition: transform .3s; color: var(--brand-primary); }
.faq-q.open .icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  font-size: .92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}
.faq-a.open { display: block; }

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 24px; overflow: hidden; max-width: 100%; }

.sidebar-widget {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-primary-soft);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: .88rem;
}
.sidebar-widget li:last-child { border-bottom: none; }
.sidebar-widget a {
  color: var(--text-primary);
  font-weight: 500;
  display: block;
  line-height: 1.4;
}
.sidebar-widget a:hover { color: var(--brand-primary); text-decoration: none; }
.sidebar-widget .cat-label {
  font-size: .72rem;
  color: var(--brand-primary);
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sidebar-cta h3 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.2);
  font-size: .95rem;
}
.sidebar-cta p { font-size: .85rem; opacity: .9; margin: 12px 0 16px; }
.sidebar-cta .btn-cta { font-size: .85rem; padding: 11px 20px; width: 100%; display: block; }

/* ── Anúncio (moldura discreta tracejada) ── */
.ad-container {
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--bg-tertiary);
  text-align: center;
  font-size: .7rem;
  color: var(--text-tertiary);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 16px 0;
}
ins.adsbygoogle { max-width: 100% !important; }
.sidebar ins.adsbygoogle { max-width: 100% !important; display: block; }

/* ══════════════════════════════════════════════════════
   CARD GRID
══════════════════════════════════════════════════════ */
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  border: 1px solid var(--border);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card-img {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

.card-body { padding: 20px; }
.card-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--brand-primary); text-decoration: none; }
.card-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-tertiary);
}

/* Meta de data/tempo de leitura nos cards */
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.read-more {
  color: var(--brand-primary) !important;
  font-weight: 700;
  font-size: .82rem;
  transition: color .18s;
}
.read-more:hover { color: var(--accent-gold) !important; text-decoration: none !important; }

/* Featured card */
.card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-featured .card-img { height: 100%; min-height: 200px; font-size: 5rem; }
@media(max-width:600px){
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-img { height: 140px; }
}

/* ══════════════════════════════════════════════════════
   CATEGORY PILLS
══════════════════════════════════════════════════════ */
.cat-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-pill {
  padding: 7px 18px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  transition: all .18s;
  cursor: pointer;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--brand-primary);
  color: #fff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════
   RELATED ARTICLES
══════════════════════════════════════════════════════ */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
  font-family: var(--font-body);
}
.related-section h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.related-card:hover {
  background: var(--brand-primary-soft);
  border-color: #C7D5F5;
}
.related-card .r-cat {
  font-size: .7rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.related-card a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: block;
}
.related-card a:hover { color: var(--brand-primary); text-decoration: none; }

/* ══════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════ */
.stats-bar {
  background: var(--brand-primary);
  color: #fff;
  padding: 24px 32px;
}
.stats-bar .container {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.stat-item .num {
  font-size: 2rem;
  font-weight: 900;
  display: block;
  font-family: var(--font-mono);
}
.stat-item .label {
  font-size: .75rem;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════════
   HOME CTA BANNER
══════════════════════════════════════════════════════ */
.home-cta-banner {
  background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
  color: #fff;
  padding: 64px 32px;
  text-align: center;
  margin: 48px 0;
}
.home-cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.home-cta-banner p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 540px;
  margin: 0 auto 28px;
}

/* ══════════════════════════════════════════════════════
   NUMBERS / DEZENAS
══════════════════════════════════════════════════════ */
.numbers-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 24px 0;
  font-family: var(--font-mono);
}
.num-ball {
  background: var(--brand-primary);
  color: #fff;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-mono);
}
.num-ball.excluded { background: var(--accent-danger); }
.num-ball.neutral { background: var(--border-dark); color: var(--text-secondary); }
.num-ball.highlight { background: var(--accent-gold); color: #fff; }

/* ══════════════════════════════════════════════════════
   FEATURED IMAGE (article hero image)
══════════════════════════════════════════════════════ */
.article-featured-img {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 420px;
}
.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ══════════════════════════════════════════════════════
   FOOTER — escuro (#0F172A)
══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--text-primary);   /* #0F172A */
  color: rgba(255,255,255,.65);
  padding: 56px 32px 28px;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto 48px;
}
.footer-brand .site-logo {
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand p { font-size: .85rem; line-height: 1.75; }

.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  transition: color .18s;
}
.footer-col a:hover { color: var(--accent-gold); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-disclaimer {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  max-width: var(--max-w);
  margin: 16px auto 0;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   COOKIE BANNER (injetado via JS)
══════════════════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text-primary);
  color: rgba(255,255,255,.85);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(15,23,42,.3);
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: .85rem;
}
#cookie-banner p { flex: 1; min-width: 200px; line-height: 1.5; margin: 0; }
#cookie-banner a { color: var(--accent-gold); text-decoration: underline; }
#cookie-accept {
  background: var(--accent-gold);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-body);
  transition: background .18s;
  flex-shrink: 0;
}
#cookie-accept:hover { background: var(--accent-gold-dark); }

/* ══════════════════════════════════════════════════════
   SCROLL TO TOP
══════════════════════════════════════════════════════ */
#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--brand-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s, background .18s;
  border: none;
  z-index: 99;
}
#scrollTop:hover { background: var(--brand-primary-dark); }
#scrollTop.visible { opacity: 1; }

/* ══════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════ */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 40px 0; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: .88rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-secondary);
}
.pagination a:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  text-decoration: none;
}
.pagination .current {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ══════════════════════════════════════════════════════
   TABLE SCROLL WRAPPER (mobile)
══════════════════════════════════════════════════════ */
.table-scroll-wrap {
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  display: block;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  border-radius: var(--radius-sm);
}
.data-table { white-space: nowrap; }
.data-table th, .data-table td { white-space: normal; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media(max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr 280px; gap: 32px; }
}

@media(max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; padding: 32px 24px; }
  .main-layout > * { min-width: 0; max-width: 100%; overflow: hidden; }
  .sidebar { order: 2; }
  article, .main-layout > div { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-body { padding: 28px 24px; }
  .article-body > * { max-width: 100%; }
  .article-body img, .article-body figure { max-width: 100%; overflow: hidden; }
  .cta-box, .info-box, .warn-box, .success-box, .pull-quote { max-width: 100%; overflow: hidden; }
  .ad-container { display: none !important; }
  .sidebar ins.adsbygoogle,
  aside ins.adsbygoogle,
  .sidebar-widget ins.adsbygoogle { display: none !important; }
}

@media(max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: 12px 20px; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 11px 20px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
  }
  .hamburger { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar .container { gap: 20px; }
  .article-hero { padding: 28px 20px 24px; }
  .hero-home { padding: 56px 20px 48px; }
  .site-footer { padding: 40px 20px 24px; }
  #cookie-banner { padding: 14px 20px; }
}

@media(max-width: 480px) {
  .topbar { display: none; }
  .site-logo small { display: none; }
  .nav-cta { font-size: .78rem; padding: 7px 12px !important; }
  .header-inner { padding: 10px 16px; }
  .article-hero { padding: 20px 16px 18px; }
  .breadcrumb { font-size: .72rem; }
  .card-grid { grid-template-columns: 1fr !important; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 6px; font-size: .75rem; }
  .article-body { padding: 20px 16px; font-size: .97rem; }
  .article-body h2 { font-size: 1.3rem; }
  .numbers-row { grid-template-columns: repeat(5, 1fr); }
  .hero-home { padding: 48px 16px 40px; }
  .main-layout { padding: 24px 16px; }
}

@media(max-width: 400px) {
  .numbers-row { gap: 6px; }
  .num-ball { font-size: .8rem; }
  .related-grid { grid-template-columns: 1fr; }
  .dropcap::first-letter { display: none; }
}

@media(max-width: 600px) {
  .dropcap::first-letter { font-size: 3rem; margin-right: 6px; }
}

/* ══════════════════════════════════════════════════════
   MISC / ANTI-OVERFLOW
══════════════════════════════════════════════════════ */
.article-body * { max-width: 100%; }
.article-body img { height: auto; }
figure { max-width: 100%; overflow: hidden; }
.faq-q span, .faq-a p { word-break: break-word; }
.sidebar-cta, .sidebar-widget { margin-bottom: 0; }

/* ============================================================
   REFINAMENTO VISUAL 2026
   Layout editorial limpo, responsivo e acessivel
   ============================================================ */
:root {
  --brand-primary: #1d4ed8;
  --brand-primary-dark: #102a63;
  --brand-primary-light: #3b82f6;
  --brand-primary-soft: #eaf1ff;
  --accent-gold: #e08a12;
  --accent-gold-dark: #b96508;
  --bg-primary: #f6f7fb;
  --bg-tertiary: #eef1f6;
  --border: #e2e7ef;
  --text-secondary: #526072;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, .11);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --max-w: 1180px;
}

body {
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,.055), transparent 26rem),
    var(--bg-primary);
}

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(224,138,18,.55);
  outline-offset: 3px;
}

.topbar {
  padding: 7px 0;
  background: #0b1f49;
  font-size: .73rem;
}

.site-header {
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 30px rgba(15,23,42,.07);
  backdrop-filter: blur(14px);
}

.header-inner { min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.site-logo { font-size: 1.48rem; letter-spacing: -.045em; }
.site-logo small { color: #718096; letter-spacing: .18em; }
.main-nav { gap: 2px; }
.main-nav a { padding: 9px 12px; border-radius: 9px; }
.nav-cta { border-radius: 10px !important; box-shadow: 0 6px 16px rgba(224,138,18,.22); }

.hero-home {
  padding: 78px 32px 86px;
  background:
    radial-gradient(circle at 15% 20%, rgba(96,165,250,.34), transparent 24rem),
    radial-gradient(circle at 86% 85%, rgba(224,138,18,.18), transparent 22rem),
    linear-gradient(128deg, #0b1f49 0%, #173a83 52%, #1d4ed8 100%);
}
.hero-home::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.hero-home .container { max-width: 960px; }
.hero-home h1 {
  max-width: 850px;
  margin: 0 auto 20px;
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-home p {
  max-width: 720px;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  color: rgba(255,255,255,.84);
}
.hero-badges { margin-bottom: 34px; gap: 9px; }
.hero-badge {
  padding: 8px 14px;
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px rgba(255,255,255,.09);
}
.btn-cta { border-radius: 11px; padding: 14px 26px; box-shadow: 0 10px 28px rgba(224,138,18,.3); }

.stats-bar {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 1040px);
  margin: -34px auto 0;
  padding: 0;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  color: var(--text-primary);
  box-shadow: 0 20px 55px rgba(15,23,42,.14);
  overflow: hidden;
}
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; }
.stat-item { padding: 22px 18px; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border); }
.stat-item .num { color: var(--brand-primary); font-size: 1.8rem; letter-spacing: -.05em; }
.stat-item .label { color: var(--text-secondary); font-weight: 700; }

main > div[style*="max-width:1180px"] {
  max-width: var(--max-w) !important;
  padding: 72px 24px 16px !important;
}
.section-title {
  margin: 12px 0 26px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -.025em;
}
.section-title:not(:first-child) { margin-top: 58px; }
.section-title::after { height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 52px; }
.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-color: rgba(15,23,42,.08);
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(29,78,216,.18); }
.card-img { height: auto; aspect-ratio: 16 / 9; background: #e8edf5; }
.card-img img { aspect-ratio: 16 / 9; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.card-cat { color: #1d4ed8; letter-spacing: .08em; }
.card-title { font-size: 1.04rem; line-height: 1.43; letter-spacing: -.012em; }
.card-desc { font-size: .88rem; line-height: 1.65; }
.read-more { margin-top: auto; padding-top: 4px; }
.card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  border: 0;
  box-shadow: 0 22px 55px rgba(15,23,42,.22);
}
.card-featured .card-img { min-height: 320px; }
.card-featured .card-body { padding: clamp(28px, 4vw, 48px); }

.home-cta-banner {
  position: relative;
  overflow: hidden;
  padding: 58px clamp(24px, 7vw, 80px);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 90% 0, rgba(96,165,250,.28), transparent 20rem),
    linear-gradient(130deg, #0b1f49, #173a83) !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.16);
}
.home-cta-banner h2 { letter-spacing: -.03em; text-wrap: balance; }
.home-cta-banner p { max-width: 700px; line-height: 1.7; }

.cat-hero, .article-hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(96,165,250,.28), transparent 24rem),
    linear-gradient(128deg, #0b1f49, #173a83 62%, #1d4ed8);
}
.cat-hero { padding: 58px 24px; }
.article-hero { padding: 52px 24px; }
.article-hero h1 { letter-spacing: -.035em; text-wrap: balance; }
.main-layout { gap: 34px; padding-top: 44px; }
.article-body { box-shadow: var(--shadow-sm); border-color: rgba(15,23,42,.08); }
.article-body h2 { letter-spacing: -.025em; border-bottom-color: var(--brand-primary-soft); }
.sidebar { position: sticky; top: 104px; }
.sidebar-widget { box-shadow: var(--shadow-sm); border-color: rgba(15,23,42,.08); }

.site-footer { margin-top: 72px; padding-top: 64px; background: #09172f; }
.footer-grid { gap: 40px; }

#cookie-banner {
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(15,23,42,.35);
}
#cookie-accept { min-height: 42px; border-radius: 9px; }

@media (max-width: 980px) {
  .main-nav a { padding-inline: 9px; font-size: .82rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .header-inner { min-height: 64px; }
  .hamburger { width: 44px; height: 44px; border-radius: 10px; }
  .hamburger:hover { background: var(--brand-primary-soft); }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 16px 16px;
    border-top: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(15,23,42,.12);
  }
  .main-nav a { width: 100%; padding: 13px 14px; border: 0; border-radius: 9px; font-size: .95rem; }
  .nav-cta { margin-top: 6px; text-align: center; }
  .hero-home { padding: 58px 20px 76px; }
  .hero-home h1 br { display: block; }
  .stats-bar { width: calc(100% - 28px); margin-top: -30px; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 18px 10px; }
  .stat-item:nth-child(3)::before { display: none; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  main > div[style*="max-width:1180px"] { padding: 54px 16px 8px !important; }
  .card-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-featured { grid-template-columns: 1fr; }
  .card-featured .card-img { min-height: 0; }
  .card-featured .card-body { padding: 26px 22px; }
  .home-cta-banner { margin: 40px 0; padding: 42px 22px; }
  .main-layout { padding: 30px 16px; }
  .article-body { padding: 28px 22px; border-radius: 14px; font-size: 1rem; line-height: 1.78; }
  .site-footer { margin-top: 52px; }
  #cookie-banner { align-items: stretch; }
  #cookie-accept { width: 100%; }
}

@media (max-width: 480px) {
  .site-logo { font-size: 1.28rem; }
  .hero-home { padding: 48px 16px 70px; }
  .hero-home h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .hero-badges { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-badge { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 7px 8px; font-size: .72rem; }
  .hero-home .btn-cta { display: block; width: 100%; }
  .stat-item .num { font-size: 1.48rem; }
  .stat-item .label { font-size: .64rem; }
  .section-title:not(:first-child) { margin-top: 44px; }
  .card-body { padding: 19px; }
  .home-cta-banner .btn-cta { display: block; width: 100%; padding-inline: 16px !important; font-size: .95rem !important; }
  .cat-hero { padding: 42px 16px; }
  .article-hero { padding: 34px 16px; }
  #cookie-banner { right: 10px; bottom: 10px; left: 10px; font-size: .79rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
