/*
Theme Name: Maranhão em Fatos Completo
Theme URI: https://maranhaoemfatos.com.br
Author: Maranhão em Fatos
Description: Tema jornalístico completo para portal de notícias, com categorias, banners, widgets, barra lateral, rodapé e layout mobile otimizado.
Version: 2.0.0
Text Domain: maranhao-em-fatos
*/

:root{
  --mef-navy:#082a55;
  --mef-navy-2:#061d3d;
  --mef-red:#ef2b2d;
  --mef-bg:#f4f6f9;
  --mef-text:#15202b;
  --mef-muted:#6d7885;
  --mef-white:#ffffff;
  --mef-border:#e4e8ee;
  --mef-max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--mef-bg);color:var(--mef-text);font-family:Arial,Helvetica,sans-serif;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(var(--mef-max),calc(100% - 32px));margin:auto}
.site-topbar{background:var(--mef-navy-2);color:#fff;font-size:14px}
.site-topbar .container{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 0}
.site-branding{background:#fff}
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}
.brand-logo img{max-height:86px;width:auto}
.brand-text .site-title{font-size:34px;font-weight:800;color:var(--mef-navy);line-height:1.1}
.brand-text .site-tagline{color:var(--mef-muted);margin-top:4px}
.header-ad{min-width:320px;max-width:728px}
.ad-slot{background:#fff;border:1px dashed #c7ccd4;min-height:90px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ad-slot img{width:100%;height:auto}
.ad-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#89919b;text-align:center;margin-bottom:4px}
.main-nav{background:var(--mef-navy);color:#fff;position:sticky;top:0;z-index:50}
.main-nav .container{display:flex;align-items:center}
.menu-toggle{display:none;background:transparent;border:0;color:#fff;font-weight:700;font-size:17px;padding:14px 0}
.main-menu{display:flex;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.main-menu li{margin:0}
.main-menu a{display:block;padding:14px 16px;font-weight:700}
.main-menu a:hover,.main-menu .current-menu-item>a,.main-menu .current-menu-ancestor>a{background:var(--mef-red)}
.breaking{background:#fff;border-bottom:1px solid var(--mef-border)}
.breaking .container{display:flex;gap:12px;align-items:center;padding:10px 0}
.breaking-label{background:var(--mef-red);color:#fff;padding:4px 10px;border-radius:99px;font-size:12px;font-weight:800;text-transform:uppercase}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;padding:28px 0}
.content-area{min-width:0}
.sidebar{min-width:0}
.section-title{font-size:28px;line-height:1.2;margin:0 0 18px;border-left:6px solid var(--mef-red);padding-left:12px;color:var(--mef-navy)}
.hero{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;margin-bottom:28px}
.hero-main,.hero-side-card,.news-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(7,25,50,.08)}
.hero-media{aspect-ratio:16/9;overflow:hidden;background:#111}
.hero-media img{width:100%;height:100%;object-fit:cover}
.hero-body{padding:18px}
.category-pill{display:inline-block;background:var(--mef-red);color:#fff;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.hero-title{font-size:34px;line-height:1.08;margin:12px 0;color:#111;font-weight:900}
.hero-title a:hover{color:var(--mef-red)}
.hero-excerpt{color:var(--mef-muted);margin:0}
.hero-side{display:grid;gap:18px}
.hero-side-card .hero-body{padding:14px}
.hero-side-card h3{font-size:20px;line-height:1.2;margin:8px 0 0}
.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.news-card .thumb{aspect-ratio:16/10;overflow:hidden;background:#dfe4ea}
.news-card .thumb img{width:100%;height:100%;object-fit:cover}
.news-card .body{padding:16px}
.news-card h2,.news-card h3{margin:8px 0 8px;line-height:1.2;color:#111}
.news-card h2{font-size:24px}
.news-card h3{font-size:20px}
.meta{font-size:13px;color:var(--mef-muted);display:flex;gap:8px;flex-wrap:wrap}
.read-more{display:inline-block;margin-top:10px;color:var(--mef-red);font-weight:800}
.category-block{margin-top:32px}
.category-block .block-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px}
.category-block .block-head a{color:var(--mef-red);font-weight:700}
.sidebar-widget{background:#fff;border:1px solid var(--mef-border);border-radius:14px;padding:18px;margin-bottom:20px}
.sidebar-widget h2,.sidebar-widget h3{margin-top:0;color:var(--mef-navy)}
.sidebar-widget ul{margin:0;padding-left:18px}
.sidebar-widget li{margin:8px 0}
.sidebar .wp-block-search__inside-wrapper{display:flex}
.sidebar .wp-block-search__input{min-width:0;width:100%;padding:10px;border:1px solid #cfd6df}
.sidebar .wp-block-search__button{background:var(--mef-navy);color:#fff;border:0;padding:10px 14px}
.sidebar-ad{margin-bottom:20px}
.single-article{background:#fff;border-radius:14px;overflow:hidden}
.single-header{padding:24px 26px 18px}
.single-title{font-size:46px;line-height:1.05;margin:12px 0 14px;color:#111;font-weight:900}
.single-featured{background:#111}
.single-featured img{width:100%;max-height:650px;object-fit:cover}
.single-content{padding:26px;font-family:Georgia,"Times New Roman",serif;font-size:20px;color:#222}
.single-content p{margin:0 0 1.15em}
.single-content h2,.single-content h3{font-family:Arial,Helvetica,sans-serif;color:var(--mef-navy)}
.share-row{display:flex;gap:10px;flex-wrap:wrap;padding:0 26px 24px}
.share-row a{padding:9px 12px;background:#eef2f7;border-radius:8px;font-size:14px;font-weight:700}
.article-ad{margin:24px 0}
.archive-header{margin-bottom:20px}
.pagination{margin:28px 0;display:flex;gap:8px;flex-wrap:wrap}
.pagination .page-numbers{background:#fff;border:1px solid var(--mef-border);padding:8px 12px;border-radius:8px}
.pagination .current{background:var(--mef-navy);color:#fff}
.site-footer{background:var(--mef-navy-2);color:#d8e0ea;margin-top:40px}
.footer-top{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:28px;padding:42px 0}
.footer-logo img{max-height:78px;width:auto}
.footer-title{color:#fff;font-size:18px;font-weight:800;margin:0 0 12px}
.footer-list{list-style:none;padding:0;margin:0}
.footer-list li{margin:7px 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;color:#aab5c2;font-size:13px}
.footer-bottom .container{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.empty-state{background:#fff;padding:30px;border-radius:14px}
.cookie-note{font-size:12px;color:#8b96a5}
@media(max-width:980px){
  .brand-row{align-items:flex-start}
  .header-ad{display:none}
  .layout{grid-template-columns:1fr}
  .sidebar{order:2}
  .footer-top{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .container{width:min(100% - 24px,var(--mef-max))}
  .site-topbar .container{font-size:12px}
  .brand-row{padding:12px 0}
  .brand-logo img{max-height:66px}
  .brand-text .site-title{font-size:28px}
  .menu-toggle{display:block}
  .main-nav .container{display:block}
  .main-menu{display:none;flex-direction:column;width:100%}
  .main-menu.open{display:flex}
  .main-menu a{padding:12px 0}
  .hero{grid-template-columns:1fr}
  .news-grid{grid-template-columns:1fr}
  .hero-title{font-size:30px}
  .single-title{font-size:34px}
  .single-header{padding:18px 18px 14px}
  .single-content{padding:20px 18px;font-size:18px}
  .share-row{padding:0 18px 20px}
  .single-featured img{max-height:none}
  .footer-top{grid-template-columns:1fr}
}
