/*
Theme Name: Pop Na TV
Theme URI: https://popnatv.com.br
Author: Pop Na TV
Author URI: https://popnatv.com.br
Description: Tema profissional para portal de notícias de cultura pop e TV. Hero de grande portal, faixa de últimas notícias estilo telejornal, modo claro e escuro com logo independente para cada modo, busca, contador de mais lidas, newsletter funcional e layout 100% responsivo. Todo o conteúdo é puxado do WordPress — nada de campos fictícios.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pop-na-tv
Tags: noticias, magazine, blog, modo-escuro, responsivo, busca, destaque, editorial
*/

/* ============================================================
   1. TOKENS — modo claro (padrão)
   ============================================================ */
:root{
  /* Marca */
  --brand:        #1F66FE;   /* azul do logo */
  --brand-ink:    #0B3DBF;   /* azul pressionado/hover */
  --brand-soft:   #EAF0FF;   /* fundo suave azul */
  --live:         #FF2E63;   /* badge AO VIVO / urgente */

  /* Superfícies */
  --bg:           #FFFFFF;
  --surface:      #F4F6FB;
  --surface-2:    #EDF1F9;
  --card:         #FFFFFF;
  --header-bg:    rgba(255,255,255,.86);

  /* Texto */
  --ink:          #0C1222;
  --ink-2:        #2A3346;
  --muted:        #5B6478;
  --on-brand:     #FFFFFF;

  /* Linhas */
  --line:         #E3E7F0;
  --line-strong:  #CBD3E2;

  /* Tipografia */
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Escala / forma */
  --maxw:         1240px;
  --radius:       14px;
  --radius-sm:    9px;
  --shadow:       0 2px 4px rgba(12,18,34,.04), 0 12px 30px rgba(12,18,34,.08);
  --shadow-soft:  0 1px 2px rgba(12,18,34,.05), 0 6px 18px rgba(12,18,34,.06);
  --ease:         cubic-bezier(.22,.61,.36,1);

  color-scheme: light;
}

/* ============================================================
   2. TOKENS — modo escuro
   ============================================================ */
[data-theme="dark"]{
  --brand:        #4D86FF;
  --brand-ink:    #2E6BF5;
  --brand-soft:   #14213F;
  --live:         #FF4D78;

  --bg:           #0A0E1A;
  --surface:      #111827;
  --surface-2:    #161F33;
  --card:         #121A2B;
  --header-bg:    rgba(10,14,26,.82);

  --ink:          #EEF2FB;
  --ink-2:        #C7D0E3;
  --muted:        #93A0BC;
  --on-brand:     #FFFFFF;

  --line:         #232C42;
  --line-strong:  #324061;

  --shadow:       0 2px 6px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.45);
  --shadow-soft:  0 2px 10px rgba(0,0,0,.35);

  color-scheme: dark;
}

/* ============================================================
   3. RESET / BASE
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  transition:background-color .3s var(--ease), color .3s var(--ease);
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--brand); text-decoration:none; }
a:hover{ color:var(--brand-ink); }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4,h5{ font-family:var(--font-display); color:var(--ink); line-height:1.08; margin:0 0 .4em; letter-spacing:-.02em; font-weight:800; }
p{ margin:0 0 1.1em; }
ul,ol{ margin:0 0 1.1em; padding-left:1.3em; }
:focus-visible{ outline:3px solid var(--brand); outline-offset:2px; border-radius:4px; }
.screen-reader-text{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
.skip-link{ position:absolute; left:-999px; top:0; z-index:1000; background:var(--brand); color:#fff; padding:12px 18px; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }

.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 22px; }

/* ============================================================
   4. CABEÇALHO
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:200;
  background:var(--header-bg);
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  min-height:72px;
}
.brand{ display:inline-flex; align-items:center; gap:10px; }
.brand img{ height:38px; width:auto; }
.brand .logo-dark{ display:none; }
[data-theme="dark"] .brand .logo-light{ display:none; }
[data-theme="dark"] .brand .logo-dark{ display:block; }
.brand-fallback{ font-family:var(--font-display); font-weight:900; font-size:26px; letter-spacing:-.03em; color:var(--ink); }
.brand-fallback b{ color:var(--brand); }

/* navegação desktop */
.primary-nav{ justify-self:center; }
.primary-nav ul{ list-style:none; display:flex; gap:4px; margin:0; padding:0; }
.primary-nav a{
  display:block; padding:10px 14px; border-radius:9px;
  font-weight:600; font-size:15px; color:var(--ink-2);
  transition:background .15s, color .15s;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a{ background:var(--surface); color:var(--brand); }
.primary-nav .menu-item-has-children > a::after{ content:"▾"; margin-left:6px; font-size:11px; opacity:.6; }
.primary-nav .sub-menu{
  position:absolute; min-width:210px; background:var(--card); border:1px solid var(--line);
  border-radius:12px; box-shadow:var(--shadow); padding:8px; margin-top:8px;
  display:flex; flex-direction:column; gap:2px; opacity:0; visibility:hidden;
  transform:translateY(6px); transition:.18s var(--ease); z-index:50;
}
.primary-nav li{ position:relative; }
.primary-nav li:hover > .sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }

.header-actions{ justify-self:end; display:flex; align-items:center; gap:8px; }
.icon-btn{
  display:inline-grid; place-items:center; width:42px; height:42px;
  border-radius:11px; border:1px solid var(--line); background:var(--card);
  color:var(--ink); transition:.15s var(--ease);
}
.icon-btn:hover{ border-color:var(--brand); color:var(--brand); }
.icon-btn svg{ width:20px; height:20px; }
.menu-toggle{ display:none; }

/* ============================================================
   5. FAIXA "ÚLTIMAS" (estilo telejornal) — assinatura
   ============================================================ */
.tickerbar{
  background:var(--ink); color:#fff; overflow:hidden;
  border-bottom:1px solid var(--line);
}
[data-theme="dark"] .tickerbar{ background:#000; }
.ticker-inner{ display:flex; align-items:stretch; max-width:var(--maxw); margin:0 auto; }
.ticker-label{
  background:var(--live); color:#fff; font-family:var(--font-display); font-weight:900;
  font-size:13px; letter-spacing:.06em; text-transform:uppercase;
  display:flex; align-items:center; gap:8px; padding:0 16px; white-space:nowrap; flex:none;
}
.ticker-label .dot{ width:8px; height:8px; border-radius:50%; background:#fff; animation:pulse 1.2s infinite; }
@keyframes pulse{ 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.35; transform:scale(.7);} }
.ticker-track{ overflow:hidden; flex:1; position:relative; }
.ticker-move{ display:inline-flex; gap:38px; white-space:nowrap; padding:11px 24px; animation:ticker 38s linear infinite; will-change:transform; }
.ticker-track:hover .ticker-move{ animation-play-state:paused; }
.ticker-move a{ color:#fff; font-size:14px; font-weight:500; opacity:.92; }
.ticker-move a:hover{ opacity:1; text-decoration:underline; }
.ticker-move a::before{ content:"•"; color:var(--brand); margin-right:38px; font-weight:900; }
@keyframes ticker{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ============================================================
   6. BUSCA (overlay)
   ============================================================ */
.search-overlay{
  position:fixed; inset:0; z-index:500; background:rgba(8,12,22,.55);
  backdrop-filter:blur(6px); display:none; align-items:flex-start; justify-content:center;
}
.search-overlay.open{ display:flex; animation:fade .2s ease; }
@keyframes fade{ from{ opacity:0;} to{ opacity:1;} }
.search-panel{
  background:var(--card); width:min(680px,92vw); margin-top:14vh; padding:28px;
  border-radius:18px; box-shadow:var(--shadow); border:1px solid var(--line);
}
.search-panel h2{ font-size:20px; margin-bottom:14px; }
.search-form{ display:flex; gap:10px; }
.search-form input[type="search"]{
  flex:1; border:2px solid var(--line-strong); background:var(--bg); color:var(--ink);
  border-radius:12px; padding:14px 16px; font-size:17px; font-family:inherit;
}
.search-form input[type="search"]:focus{ outline:none; border-color:var(--brand); }
.search-form .btn{ flex:none; }
.search-hint{ margin:14px 0 0; color:var(--muted); font-size:13px; }
.search-close{ position:absolute; top:18px; right:18px; }

/* ============================================================
   7. BOTÕES / BADGES
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  background:var(--brand); color:var(--on-brand); border:none;
  font-family:var(--font-display); font-weight:800; font-size:15px; letter-spacing:.01em;
  padding:13px 22px; border-radius:11px; transition:.15s var(--ease);
}
.btn:hover{ background:var(--brand-ink); color:#fff; transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--brand); border:2px solid var(--line-strong); }
.btn-ghost:hover{ background:var(--brand); color:#fff; border-color:var(--brand); }

.cat-badge{
  display:inline-block; font-family:var(--font-display); font-weight:800;
  font-size:11px; letter-spacing:.07em; text-transform:uppercase;
  color:var(--brand); background:var(--brand-soft); padding:4px 10px; border-radius:6px;
}
.cat-badge.live{ color:#fff; background:var(--live); }
a.cat-badge:hover{ filter:brightness(.95); }

.eyebrow{ font-family:var(--font-display); font-weight:800; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--brand); }

/* ============================================================
   8. CABEÇALHO DE SEÇÃO
   ============================================================ */
.section{ padding:46px 0; }
.section-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.section-head h2{
  font-size:clamp(22px,3vw,30px); display:flex; align-items:center; gap:12px; margin:0;
  text-transform:uppercase; letter-spacing:-.01em;
}
.section-head h2::before{ content:""; width:6px; height:1.05em; background:var(--brand); border-radius:3px; }
.section-head .more{ font-family:var(--font-display); font-weight:700; font-size:14px; color:var(--muted); white-space:nowrap; }
.section-head .more:hover{ color:var(--brand); }

/* ============================================================
   9. HERO (página inicial)
   ============================================================ */
.hero{ padding:30px 0 8px; }
.hero-grid{ display:grid; grid-template-columns:1.65fr 1fr; gap:22px; }

.hero-lead{
  position:relative; border-radius:var(--radius); overflow:hidden; min-height:480px;
  display:flex; align-items:flex-end; color:#fff; box-shadow:var(--shadow);
  background:#0b1020;
}
.hero-lead .ph{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.hero-lead:hover .ph{ transform:scale(1.04); }
.hero-lead::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,12,22,0) 28%, rgba(8,12,22,.5) 58%, rgba(8,12,22,.92) 100%),
             linear-gradient(90deg, rgba(31,102,254,.42), rgba(8,12,22,0) 60%);
}
.hero-lead .content{ position:relative; z-index:2; padding:34px; max-width:760px; }
.hero-lead h1{
  color:#fff; font-size:clamp(30px,4.4vw,54px); font-weight:900; margin:12px 0 10px; letter-spacing:-.025em;
  text-shadow:0 2px 30px rgba(0,0,0,.4);
}
.hero-lead h1 a{ color:#fff; }
.hero-lead .dek{ color:rgba(255,255,255,.9); font-size:17px; max-width:620px; margin-bottom:14px; }
.hero-lead .meta{ display:flex; gap:14px; align-items:center; font-size:13.5px; color:rgba(255,255,255,.78); }

.hero-side{ display:grid; grid-template-rows:repeat(3,1fr); gap:14px; }
.hero-card{
  position:relative; border-radius:var(--radius-sm); overflow:hidden; min-height:148px;
  display:flex; align-items:flex-end; color:#fff; background:#0b1020;
}
.hero-card .ph{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.hero-card:hover .ph{ transform:scale(1.05); }
.hero-card::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,12,22,.05), rgba(8,12,22,.9)); }
.hero-card .content{ position:relative; z-index:2; padding:16px 18px; }
.hero-card h3{ color:#fff; font-size:17px; line-height:1.18; margin:7px 0 0; }
.hero-card h3 a{ color:#fff; }

/* ============================================================
   10. CARDS DE NOTÍCIA
   ============================================================ */
.cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.cards.cols-3{ grid-template-columns:repeat(3,1fr); }
.cards.cols-2{ grid-template-columns:repeat(2,1fr); }

.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.2s var(--ease); display:flex; flex-direction:column; }
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--line-strong); }
.card-thumb{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--surface-2); }
.card-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.card:hover .card-thumb img{ transform:scale(1.05); }
.card-thumb .cat-badge{ position:absolute; left:12px; top:12px; }
.card-body{ padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.card-body h3{ font-size:19px; line-height:1.2; margin:0; }
.card-body h3 a{ color:var(--ink); }
.card-body h3 a:hover{ color:var(--brand); }
.card-excerpt{ color:var(--muted); font-size:14.5px; margin:0; }
.card-meta{ margin-top:auto; padding-top:8px; color:var(--muted); font-size:13px; display:flex; gap:10px; align-items:center; }

/* lista horizontal (sidebar / mais lidas) */
.list-item{ display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.list-item:last-child{ border-bottom:0; }
.list-item .thumb{ flex:none; width:88px; height:64px; border-radius:8px; overflow:hidden; background:var(--surface-2); }
.list-item .thumb img{ width:100%; height:100%; object-fit:cover; }
.list-item h4{ font-size:15.5px; line-height:1.2; margin:0 0 5px; }
.list-item h4 a{ color:var(--ink); }
.list-item h4 a:hover{ color:var(--brand); }
.list-item .meta{ color:var(--muted); font-size:12.5px; }

/* mais lidas numeradas */
.ranked{ counter-reset:rank; }
.ranked .list-item{ align-items:center; }
.ranked .list-item::before{
  counter-increment:rank; content:counter(rank);
  font-family:var(--font-display); font-weight:900; font-size:30px; line-height:1;
  color:var(--brand); opacity:.45; flex:none; width:34px; text-align:center;
}

/* ============================================================
   11. LAYOUT COM SIDEBAR
   ============================================================ */
.layout{ display:grid; grid-template-columns:1fr 340px; gap:40px; align-items:start; }
.sidebar .widget{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-bottom:24px; }
.sidebar .widget-title{ font-size:17px; text-transform:uppercase; letter-spacing:.02em; margin:0 0 14px; display:flex; align-items:center; gap:10px; }
.sidebar .widget-title::before{ content:""; width:5px; height:1em; background:var(--brand); border-radius:3px; }
.sidebar ul{ list-style:none; padding:0; margin:0; }
.sidebar .widget > ul > li{ padding:9px 0; border-bottom:1px solid var(--line); }
.sidebar .widget > ul > li:last-child{ border-bottom:0; }
.sidebar a{ color:var(--ink-2); }
.sidebar a:hover{ color:var(--brand); }

/* ============================================================
   12. ARTIGO (single)
   ============================================================ */
.article-hero{ background:var(--surface); border-bottom:1px solid var(--line); padding:40px 0 32px; }
.article-head{ max-width:820px; margin:0 auto; text-align:center; }
.article-head .cat-badge{ margin-bottom:14px; }
.article-head h1{ font-size:clamp(30px,4.6vw,52px); font-weight:900; margin:6px 0 16px; }
.article-head .dek{ font-size:20px; color:var(--ink-2); font-family:var(--font-body); font-weight:400; line-height:1.45; }
.article-meta{ display:flex; flex-wrap:wrap; gap:14px 22px; align-items:center; justify-content:center; margin-top:22px; color:var(--muted); font-size:14px; }
.article-meta .author{ display:flex; align-items:center; gap:9px; color:var(--ink-2); font-weight:600; }
.article-meta .author img{ width:34px; height:34px; border-radius:50%; }

.featured-wide{ max-width:1040px; margin:-0px auto 0; padding:0 22px; }
.featured-wide figure{ margin:0; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); transform:translateY(-28px); line-height:0; background:var(--surface-2); }
.featured-wide figure img{ width:100%; height:auto; display:block; }   /* imagem inteira, sem recorte */
.featured-wide figcaption{ text-align:center; color:var(--muted); font-size:13px; margin-top:-16px; padding:0 10px; line-height:1.5; }

.article-body{ max-width:740px; margin:0 auto; font-size:18.5px; line-height:1.75; }
.article-body > *{ margin-bottom:1.25em; }
.article-body p{ color:var(--ink-2); }
.article-body h2{ font-size:28px; margin-top:1.4em; }
.article-body h3{ font-size:23px; margin-top:1.2em; }
.article-body a{ text-decoration:underline; text-underline-offset:3px; }
.article-body img, .article-body figure{ border-radius:12px; }
.article-body figcaption{ color:var(--muted); font-size:13.5px; text-align:center; margin-top:8px; }
.article-body blockquote{
  margin:1.6em 0; padding:6px 0 6px 26px; border-left:5px solid var(--brand);
  font-family:var(--font-display); font-weight:700; font-size:24px; line-height:1.3; color:var(--ink);
}
.article-body ul li, .article-body ol li{ margin-bottom:.5em; color:var(--ink-2); }
.article-body code{ background:var(--surface-2); padding:2px 7px; border-radius:6px; font-size:.9em; }
.article-body pre{ background:var(--surface-2); padding:18px; border-radius:12px; overflow:auto; }

.share-row{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:30px 0; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.share-row strong{ font-family:var(--font-display); font-size:14px; letter-spacing:.04em; text-transform:uppercase; }
.share-row a{ width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--surface); color:var(--ink); border:1px solid var(--line); }
.share-row a:hover{ background:var(--brand); color:#fff; border-color:var(--brand); }
.share-row a svg{ width:19px; height:19px; }

.tag-row{ display:flex; flex-wrap:wrap; gap:9px; margin:22px 0; }
.tag-row a{ font-size:13px; font-weight:600; background:var(--surface); border:1px solid var(--line); color:var(--ink-2); padding:6px 13px; border-radius:30px; }
.tag-row a:hover{ background:var(--brand); color:#fff; border-color:var(--brand); }

.author-box{ display:flex; gap:18px; align-items:center; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; margin:30px 0; }
.author-box img{ width:72px; height:72px; border-radius:50%; flex:none; }
.author-box h4{ margin:0 0 4px; font-size:18px; }
.author-box p{ margin:0; color:var(--muted); font-size:14.5px; }

/* ============================================================
   13. NEWSLETTER
   ============================================================ */
.newsletter{ background:linear-gradient(120deg, var(--brand), #6F3BFF); color:#fff; border-radius:20px; padding:42px; position:relative; overflow:hidden; }
.newsletter::after{ content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.12); }
.newsletter::before{ content:""; position:absolute; left:-40px; bottom:-80px; width:200px; height:200px; border-radius:50%; background:rgba(255,255,255,.08); }
.newsletter h2{ color:#fff; font-size:clamp(24px,3vw,34px); margin:0 0 8px; position:relative; }
.newsletter p{ color:rgba(255,255,255,.9); max-width:560px; position:relative; }
.nl-form{ display:flex; gap:10px; max-width:520px; position:relative; flex-wrap:wrap; }
.nl-form input{ flex:1; min-width:200px; border:none; border-radius:11px; padding:14px 16px; font-size:16px; font-family:inherit; }
.nl-form input:focus{ outline:3px solid rgba(255,255,255,.6); }
.nl-form .btn{ background:#0b1020; color:#fff; }
.nl-form .btn:hover{ background:#000; }
.nl-msg{ margin:12px 0 0; font-size:14px; min-height:20px; position:relative; font-weight:600; }

/* ============================================================
   14. PAGINAÇÃO / ARQUIVO
   ============================================================ */
.archive-head{ padding:36px 0 6px; }
.archive-head .eyebrow{ display:block; margin-bottom:8px; }
.archive-head h1{ font-size:clamp(28px,4vw,44px); margin:0; }
.archive-head .count{ color:var(--muted); margin-top:8px; }

.pagination{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin:44px 0 10px; }
.pagination .page-numbers{
  min-width:44px; height:44px; padding:0 12px; display:inline-grid; place-items:center;
  border:1px solid var(--line); border-radius:11px; color:var(--ink-2); font-weight:700; background:var(--card);
}
.pagination .page-numbers:hover{ border-color:var(--brand); color:var(--brand); }
.pagination .current{ background:var(--brand); color:#fff; border-color:var(--brand); }

/* ============================================================
   15. RODAPÉ
   ============================================================ */
.site-footer{ background:var(--surface); border-top:1px solid var(--line); margin-top:60px; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding:54px 0 40px; }
.footer-brand .brand img{ height:40px; }
.footer-brand p{ color:var(--muted); margin-top:14px; max-width:320px; font-size:14.5px; }
.footer-col h4{ font-size:14px; text-transform:uppercase; letter-spacing:.06em; margin:0 0 14px; }
.footer-col ul{ list-style:none; padding:0; margin:0; }
.footer-col li{ margin-bottom:9px; }
.footer-col a{ color:var(--ink-2); font-size:14.5px; }
.footer-col a:hover{ color:var(--brand); }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social a{ width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--card); border:1px solid var(--line); color:var(--ink); }
.footer-social a:hover{ background:var(--brand); color:#fff; border-color:var(--brand); }
.footer-bottom{ border-top:1px solid var(--line); padding:20px 0; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color:var(--muted); font-size:13.5px; }

/* botão voltar ao topo */
.to-top{ position:fixed; right:20px; bottom:20px; width:48px; height:48px; border-radius:50%; background:var(--brand); color:#fff; border:none; display:grid; place-items:center; box-shadow:var(--shadow); opacity:0; pointer-events:none; transform:translateY(12px); transition:.25s var(--ease); z-index:180; }
.to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }

/* ============================================================
   16. ESTADO VAZIO / 404 / BUSCA
   ============================================================ */
.empty{ text-align:center; padding:60px 22px; max-width:560px; margin:0 auto; }
.empty .big{ font-family:var(--font-display); font-weight:900; font-size:clamp(60px,16vw,140px); color:var(--brand); line-height:1; letter-spacing:-.04em; }
.empty h2{ font-size:26px; margin:6px 0 10px; }
.empty p{ color:var(--muted); }
.empty .btn{ margin-top:16px; }

/* ============================================================
   17. COMENTÁRIOS / FORMULÁRIOS WP
   ============================================================ */
.comments-area{ max-width:740px; margin:40px auto 0; }
.comments-area .comments-title, .comment-respond .comment-reply-title{ font-size:24px; margin-bottom:18px; }
.comment-list{ list-style:none; padding:0; }
.comment-body{ border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:16px; background:var(--card); }
.comment-author{ font-weight:700; }
.comment-meta{ color:var(--muted); font-size:13px; margin-bottom:8px; }
.comment-list .children{ list-style:none; margin-left:26px; padding-left:0; }
input[type=text],input[type=email],input[type=url],input[type=search],input[type=password],textarea,select{
  width:100%; background:var(--bg); color:var(--ink); border:1.5px solid var(--line-strong);
  border-radius:10px; padding:12px 14px; font-family:inherit; font-size:16px;
}
input:focus,textarea:focus,select:focus{ outline:none; border-color:var(--brand); }
label{ font-weight:600; font-size:14px; display:block; margin-bottom:6px; }
.comment-form p{ margin-bottom:14px; }

/* ============================================================
   18. WP padrão (alinhamentos, legendas, galerias)
   ============================================================ */
.alignleft{ float:left; margin:6px 24px 14px 0; }
.alignright{ float:right; margin:6px 0 14px 24px; }
.aligncenter{ display:block; margin-left:auto; margin-right:auto; }
.wp-caption-text, .gallery-caption{ color:var(--muted); font-size:13px; text-align:center; }
.sticky .card{ border-color:var(--brand); }
.bypostauthor{}
.wp-block-image img{ border-radius:12px; }
.page-content, .entry-content{ max-width:740px; margin:0 auto; }

/* ============================================================
   19. MENU MOBILE (drawer)
   ============================================================ */
.mobile-drawer{ position:fixed; inset:0; z-index:400; display:none; }
.mobile-drawer.open{ display:block; }
.mobile-drawer .backdrop{ position:absolute; inset:0; background:rgba(8,12,22,.5); backdrop-filter:blur(2px); }
.mobile-drawer .panel{
  position:absolute; left:0; top:0; bottom:0; width:min(320px,82vw); background:var(--bg);
  box-shadow:var(--shadow); padding:18px; overflow-y:auto; transform:translateX(-100%);
  transition:transform .3s var(--ease); display:flex; flex-direction:column;
}
.mobile-drawer.open .panel{ transform:translateX(0); }
.mobile-drawer .panel .drawer-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.mobile-drawer nav ul{ list-style:none; padding:0; margin:0; }
.mobile-drawer nav a{ display:block; padding:14px 12px; border-radius:10px; font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--ink); border-bottom:1px solid var(--line); }
.mobile-drawer nav a:hover{ color:var(--brand); background:var(--surface); }
.mobile-drawer .sub-menu a{ font-size:15px; font-weight:600; padding-left:24px; color:var(--ink-2); }
.drawer-foot{ margin-top:auto; padding-top:18px; color:var(--muted); font-size:13px; }

/* ============================================================
   20. RESPONSIVO
   ============================================================ */
@media (max-width:1080px){
  .footer-top{ grid-template-columns:1fr 1fr; }
  .cards{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:900px){
  .layout{ grid-template-columns:1fr; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-side{ grid-template-rows:none; grid-template-columns:repeat(3,1fr); }
  .hero-lead{ min-height:380px; }
}

/* ---- BREAKPOINT MOBILE: cabeçalho ☰ menu | logo (centro) | 🔍 busca ---- */
@media (max-width:780px){
  .header-inner{
    grid-template-columns:1fr auto 1fr;   /* esquerda | centro | direita */
    min-height:62px; gap:8px;
  }
  .menu-toggle{ display:inline-grid; justify-self:start; }   /* ☰ à esquerda */
  .primary-nav{ display:none; }                              /* menu vai para o drawer */
  .brand{ justify-self:center; }                             /* logo centralizado */
  .brand img{ height:32px; }
  .header-actions{ justify-self:end; }                       /* 🔍 à direita */
  .header-actions .theme-toggle{ display:none; }             /* alternância fica no drawer */
  .cards, .cards.cols-3, .cards.cols-2{ grid-template-columns:repeat(2,1fr); gap:16px; }
  .hero-side{ grid-template-columns:1fr; grid-template-rows:repeat(3,auto); }
  .hero-lead{ min-height:340px; }
  .section{ padding:34px 0; }
  body{ font-size:16px; }
  .article-body{ font-size:17.5px; }
  .footer-top{ grid-template-columns:1fr; gap:26px; }
  .featured-wide figure{ transform:translateY(-16px); }
}
@media (max-width:520px){
  .cards, .cards.cols-3, .cards.cols-2{ grid-template-columns:1fr; }
  .hero-lead .content{ padding:22px; }
  .newsletter{ padding:28px 22px; }
  .ticker-label span.txt{ display:none; }
}
