/*
Theme Name: Licittapar Notícias
Description: Tema do portal Licittapar Notícias (licitações públicas para fornecedores), com espaços de anúncio configuráveis (AdSense ou banner vendido).
Author: Licittapar
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: licittapar
*/
/* Licittapar Notícias — folha de estilo principal */
:root {
  /* Cores do Manual da Marca LICITTAPAR: Azul #061B3A, Dourado #C9A24D, Branco, Cinza claro #E6E6E6 */
  --navy: #061B3A;
  --navy-line: #1B3256;
  --navy-muted: #C3CCDA;
  --gold: #C9A24D;
  --gold-soft: #F7F1E3;
  --gold-text: #7A5C1E;
  --teal: #8A6A24;      /* dourado escuro: etiquetas e links sobre fundo claro */
  --teal-soft: #F7F1E3;
  --bg: #F2F2F2;
  --card: #FFFFFF;
  --text: #061B3A;
  --text-2: #374151;
  --text-3: #4B5563;
  --line: #E6E6E6;
  --ad-line: #9AA6B4;
  --radius: 10px;
  --font-head: Sylfaen, "Noto Serif", Georgia, serif;
  --font-body: "Avenir LT Std", Avenir, "Avenir Next", "Nunito Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: 0; font-weight: 400 !important; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 600; z-index: 10; }
.skip-link:focus { top: 12px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Cabeçalho */
.site-header { background: var(--navy); color: #fff; }
.header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-symbol { width: 40px; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; gap: 3px; }
.logo:hover { color: #fff; }
.logo-name { font-family: var(--font-head); font-weight: 400; font-size: 26px; letter-spacing: 3px; text-transform: uppercase; }
.logo-tag { font-family: var(--font-body); font-weight: 600; font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 4px; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; }
.search label { font-size: 13px; color: var(--navy-muted); }
.search input { height: 40px; width: 240px; border: 0; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 6px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D6B56A; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #12305C; color: #fff; }
.btn-teal { background: var(--navy); color: #fff; }
.btn-teal:hover { background: #12305C; color: #fff; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 15px; }

.site-nav { border-top: 1px solid var(--navy-line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 28px; font-size: 14px; font-weight: 500; overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { display: block; color: var(--navy-muted); padding: 13px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* Conteúdo */
main.container { padding-top: 24px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 32px; }
.card { background: var(--card); border-radius: var(--radius); }
.kicker { font-size: 12px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; }
.kicker a { color: inherit; }
.meta { font-size: 13px; color: var(--text-3); }
.placeholder { background: var(--gold-soft); border-radius: 3px; padding: 0 3px; }

/* Anúncios */
.ad { border: 2px dashed var(--ad-line); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-3); font-size: 13px; background: var(--card); padding: 8px; }
.ad strong { font-size: 14px; }
.ad-leaderboard { height: 90px; max-width: 728px; width: 100%; margin: 0 auto; }
.ad-infeed { min-height: 120px; }
.ad-rect { height: 250px; }
.ad-article { height: 280px; max-width: 336px; width: 100%; margin: 4px auto; }
.ad-sky { height: 600px; position: sticky; top: 16px; }

/* Destaques */
.hero-row { display: flex; flex-wrap: wrap; gap: 24px; }
.hero { flex: 999 1 560px; min-width: 0; overflow: hidden; }
.hero-media { height: 300px; background: #D9DEE6; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; padding: 16px; text-align: center; }
.hero-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-weight: 800; font-size: 34px; line-height: 1.15; letter-spacing: -0.5px; }
.hero-body > p { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.most-read { flex: 1 1 300px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.most-read h2 { font-size: 18px; font-weight: 700; }
.most-read ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; counter-reset: rank; }
.most-read li { display: flex; gap: 14px; counter-increment: rank; }
.most-read li::before { content: counter(rank); font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--teal); line-height: 1; min-width: 18px; }
.most-read a { font-weight: 600; font-size: 15px; line-height: 1.4; }

/* Radar */
.radar { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; scroll-margin-top: 16px; }
.radar-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.radar .kicker { color: var(--gold); }
.radar h2 { font-size: 26px; font-weight: 800; }
.radar p { font-size: 15px; color: var(--navy-muted); }

/* Editorias */
.sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.section-box { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.section-box h2 { font-size: 18px; font-weight: 700; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.section-box h2 a:hover { color: var(--teal); }
.section-box > a { font-weight: 600; font-size: 15px; line-height: 1.4; }
.see-all { font-size: 14px; font-weight: 600; color: var(--teal) !important; }

/* Lista + barra lateral */
.with-sidebar { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.feed > h2, .page-title { font-size: 22px; font-weight: 800; }
.story { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.story h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.story p { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.story p strong { color: var(--navy); }
.sidebar { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; align-self: stretch; }
.kit-box { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.kit-box .kicker, .kit-banner .kicker { color: var(--gold-text); }
.kit-box h2 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.kit-box p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.newsletter { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.newsletter h2 { font-size: 18px; font-weight: 700; }
.newsletter p { font-size: 14px; color: var(--text-2); }
.field-label { font-size: 13px; font-weight: 600; }
.field { height: 44px; border: 1px solid var(--ad-line); border-radius: 6px; padding: 0 12px; font: inherit; font-size: 14px; width: 100%; background: #fff; }
textarea.field { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; }
.form-msg { font-size: 14px; color: var(--teal); font-weight: 600; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--card); font-weight: 600; font-size: 14px; padding: 0 12px; }
.pagination span[aria-current] { background: var(--navy); color: #fff; }

/* Página de notícia */
.article { flex: 999 1 560px; min-width: 0; padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.breadcrumb { font-size: 13px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:last-child { color: var(--teal); font-weight: 600; }
.article h1 { font-weight: 800; font-size: 38px; line-height: 1.15; letter-spacing: -0.5px; }
.standfirst { font-size: 18px; line-height: 1.5; color: var(--text-2); }
.byline { font-size: 13px; color: var(--text-3); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary { background: var(--teal-soft); border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.summary h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; }
.summary ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; color: #1F2937; }
.prose h2 { margin: 8px 0 0; font-size: 24px; font-weight: 700; }
.prose p, .prose ol, .prose ul { font-size: 17px; line-height: 1.7; color: #1F2937; }
.prose ol, .prose ul { margin: 0; padding-left: 22px; }
.source-box { background: var(--bg); border-radius: 8px; padding: 18px 22px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.source-box strong { color: var(--navy); }
.source-box a, .text-link { color: var(--teal); font-weight: 600; }
.kit-banner { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.kit-banner div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.kit-banner .title { font-family: var(--font-head); font-size: 19px; font-weight: 800; }
.read-also { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.read-also h2 { font-size: 18px; font-weight: 700; }
.read-also a { font-weight: 600; font-size: 15px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-3); }
.share a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; color: var(--text); }

/* Páginas institucionais */
.page { flex: 999 1 560px; min-width: 0; padding: 36px 40px; display: flex; flex-direction: column; gap: 18px; }
.page h1 { font-size: 34px; font-weight: 800; line-height: 1.15; }
.lead { font-size: 18px; color: var(--text-2); }
.note { background: var(--gold-soft); border-radius: 8px; padding: 14px 18px; font-size: 14px; color: var(--gold-text); }
.form-grid { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.cat-header { padding: 28px 32px; display: flex; flex-direction: column; gap: 8px; }
.cat-header h1 { font-size: 32px; font-weight: 800; }
.cat-header p { color: var(--text-2); }

/* Rodapé */
.site-footer { background: var(--navy); color: var(--navy-muted); margin-top: 16px; }
.footer-inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.footer-brand .logo-name { font-size: 18px; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-nav a { color: var(--navy-muted); min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: #fff; }
.copyright { border-top: 1px solid var(--navy-line); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }

/* Aviso de cookies (LGPD) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(15,27,45,.25); padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; z-index: 20; font-size: 14px; }
.cookie-bar p { flex: 1 1 320px; }
.cookie-bar[hidden] { display: none; }

/* Celular */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .search { width: 100%; }
  .search input { flex: 1; width: auto; }
  .header-actions { width: 100%; }
  .header-actions .btn { width: 100%; }
  .hero h1 { font-size: 26px; }
  .hero-media { height: 200px; }
  .hero-body { padding: 20px; }
  .article, .page { padding: 24px 20px; }
  .article h1, .page h1 { font-size: 28px; }
  .radar { padding: 24px 20px; }
  .radar h2 { font-size: 22px; }
  .ad-sky { display: none; }
}

/* WordPress */
.ad-banner { display: block; margin: 0 auto; }
.ad-banner img { margin: 0 auto; }
.ad-slot { text-align: center; }
.ad-slot.ad-sky-wrap { position: sticky; top: 16px; }
.hero-media img, .story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prose a { color: var(--teal); font-weight: 600; }
.prose img { border-radius: 8px; }
.wp-caption-text { font-size: 13px; color: var(--text-3); }
.alignwide, .alignfull { max-width: 100%; }
.ai-note { font-size: 13px; color: var(--text-3); }
.prose .summary h2 { margin: 0; font-family: var(--font-body); font-size: 13px; }

/* Página de vendas do kit */
.kit-hero h1 { color: #fff; }
.kit-price { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 240px; }
.kit-price-old { font-size: 14px; color: var(--navy-muted); }
.kit-price-now { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--gold); }
@media (max-width: 720px) { .kit-hero h1 { font-size: 26px !important; } .kit-price, .kit-price .btn { width: 100%; } }

/* Navegação simples */
.site-nav .nav-destaque a { color: var(--gold); font-weight: 700; }
.site-nav .nav-destaque a[aria-current="page"] { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; }
.chips a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.proximas { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.proximas-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.proximas-head h2 { font-size: 22px; }
.proximas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.proxima { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.proxima:hover { border-color: var(--gold); }
.proxima strong { font-size: 15px; line-height: 1.35; }
