/*
Theme Name: GiroMotor
Theme URI: https://revistagiromotor.com.br
Author: Giro Motor
Description: Portal de notícias automotivas — carros, motos, elétricos e F1
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: giromotor
*/

/* ── Tokens ── */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --red:  #D62828;
  --rc:   8px;
  --rt:   4px;
  --mw:   1240px;
  --fs:   1;
}
[data-theme="light"] {
  --bg:      #F7F7F7; --card:    #FFFFFF; --hdr:  #0D0D0D;
  --surf:    #EFEFEF; --hero-bg: #EFEFEF; --bdr:  #E5E5E5;
  --t1:      #191919; --t2:      #5A5A5A; --t3:   #999;
  --ad-bg:   #F0F0F0; --ad-bdr:  #E0E0E0; --ad-t: #AAAAAA;
  --nav-sub: #FFFFFF; --nav-sub-bdr: #E5E5E5;
  --srch-bg: #FFFFFF; --srch-bdr: #D0D0D0;
}
[data-theme="dark"] {
  --bg:      #1E1E1E; --card:    #242424; --hdr:  #0D0D0D;
  --surf:    #272727; --hero-bg: #191919; --bdr:  #383838;
  --t1:      #FFFFFF; --t2:      #FFFFFF; --t3:   #FFFFFF;
  --ad-bg:   #242424; --ad-bdr:  #383838; --ad-t: #FFFFFF;
  --nav-sub: #202020; --nav-sub-bdr: #383838;
  --srch-bg: #242424; --srch-bdr: #3E3E3E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--t1); font-size: calc(15px * var(--fs)); line-height: 1.65; transition: background .2s, color .2s; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wrap { max-width: var(--mw); margin: 0 auto; padding: 0 20px; }

/* TOP BAR */
.topbar { background: #080808; border-bottom: 1px solid #333333; height: 32px; display: flex; align-items: center; }
.topbar-inner { display: flex; align-items: center; gap: 20px; width: 100%; }
.topbar-date { font-size: calc(10px * var(--fs)); color: #fff; flex-shrink: 0; white-space: nowrap; }
.topbar-ticker {
  flex: 1; min-width: 0; overflow: hidden; position: relative; height: 100%;
  display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.topbar-ticker-track { display: flex; align-items: center; gap: 36px; white-space: nowrap; animation: ticker-scroll 90s linear infinite; }
.topbar-ticker-track a { font-size: calc(10px * var(--fs)); color: #fff; display: inline-flex; align-items: center; gap: 8px; transition: color .15s; }
.topbar-ticker-track a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.topbar-ticker-track a:hover { color: #fff; }
.topbar-ticker:hover .topbar-ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .topbar-ticker-track { animation: none; }
  .topbar-ticker { overflow-x: auto; }
}

/* MAIN HEADER */
.site-header { background: var(--hdr); position: sticky; top: 0; z-index: 300; border-bottom: 1px solid #333333; }
.header-main { display: flex; align-items: center; gap: 16px; height: 56px; }
.logo { font-size: calc(20px * var(--fs)); font-weight: 700; letter-spacing: -.04em; color: #fff; white-space: nowrap; }
.logo span { color: var(--red); }

.main-nav { display: flex; align-items: stretch; margin-left: 12px; height: 56px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 13px; font-size: calc(12px * var(--fs)); font-weight: 500; color: #fff; transition: color .15s; white-space: nowrap; }
.nav-item > a:hover, .nav-item > a.active { color: #fff; }
.nav-item > a svg { width: 10px; height: 10px; fill: currentColor; opacity: .5; }
.nav-item:hover > a { color: #fff; }

.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--nav-sub); border: 1px solid var(--nav-sub-bdr);
  border-radius: 0 0 var(--rc) var(--rc);
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .15s, transform .15s; z-index: 400;
}
.nav-item:hover .nav-drop { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-drop a { display: block; padding: 9px 16px; font-size: calc(12px * var(--fs)); color: var(--t2); border-bottom: 1px solid var(--nav-sub-bdr); transition: color .15s, background .15s; }
.nav-drop a:last-child { border-bottom: none; }
.nav-drop a:hover { color: var(--t1); background: var(--surf); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-wrap { position: relative; }
.search-input {
  background: var(--srch-bg); border: 1px solid var(--srch-bdr); border-radius: 20px;
  padding: 5px 14px 5px 34px; font-size: calc(12px * var(--fs)); color: var(--t1);
  font-family: var(--font); width: 200px; transition: width .2s, border-color .2s;
}
.search-input:focus { outline: none; border-color: var(--red); width: 280px; }
.search-input::placeholder { color: var(--t3); }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--t3); pointer-events: none; }

.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: 380px;
  background: var(--nav-sub); border: 1px solid var(--nav-sub-bdr); border-radius: var(--rc);
  z-index: 500; display: none; max-height: 440px; overflow-y: auto;
}
.search-results.open { display: block; }
.sr-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--nav-sub-bdr); transition: background .15s; cursor: pointer; }
.sr-item:last-child { border-bottom: none; }
.sr-item:hover { background: var(--surf); }
.sr-thumb { width: 56px; height: 40px; border-radius: 4px; background: var(--surf); flex-shrink: 0; overflow: hidden; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-text { flex: 1; min-width: 0; }
.sr-tag { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.sr-title { font-size: calc(12px * var(--fs)); font-weight: 500; color: var(--t1); line-height: 1.35; }
.sr-empty { padding: 20px; text-align: center; font-size: calc(12px * var(--fs)); color: var(--t3); }

.theme-btn { background: none; border: none; padding: 6px; color: #fff; cursor: pointer; line-height: 0; opacity: .8; transition: opacity .15s; }
.theme-btn:hover { opacity: 1; }
.theme-btn svg { width: 18px; height: 18px; }

.hamburger-btn { display: none; background: #242424; border: 1px solid #383838; border-radius: 6px; padding: 8px 10px; color: #fff; cursor: pointer; line-height: 0; }
.hamburger-btn svg { width: 18px; height: 14px; }

.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 480; display: none; }
.mobile-menu-overlay.open { display: block; }
.mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0; width: 78%; max-width: 320px;
  background: var(--hdr, #191919); z-index: 490;
  transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #1F1F1F; }
.mobile-menu-head .logo { font-family: var(--font); font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -.02em; }
.mobile-menu-head .logo span { color: var(--red); }
.mobile-menu-close { background: none; border: none; color: #fff; cursor: pointer; padding: 6px; line-height: 0; }
.mobile-menu-close svg { width: 16px; height: 16px; }
.mobile-menu-nav { display: flex; flex-direction: column; padding: 8px 0; }
.mobile-menu-nav a { padding: 16px 20px; color: #fff; font-weight: 600; font-size: 15px; border-bottom: 1px solid #333333; text-decoration: none; }
.mobile-menu-nav a:active { background: #333333; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

/* AD LEADERBOARD */
.ad-leaderboard { background: var(--ad-bg); border-bottom: 1px solid var(--ad-bdr); display: flex; align-items: center; justify-content: center; height: 70px; }
.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px dashed var(--ad-bdr); border-radius: 4px; color: var(--ad-t); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.ad-slot span:last-child { font-size: 9px; opacity: .6; }
.ad-leaderboard .ad-slot { width: min(728px,95%); height: 54px; }

/* HERO */
.hero { background: var(--hero-bg); padding: 40px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; }
.hero-extra-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; margin-top: 32px; }
.hero-main { position: relative; display: block; height: 460px; border-radius: var(--rc); overflow: hidden; }
.hero-main-img { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--surf); }
.hero-main-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 26px 24px; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 100%); }
.hero-title { font-size: calc(24px * var(--fs)); font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 0; }
.hero-excerpt { font-size: calc(13px * var(--fs)); color: #fff; line-height: 1.65; margin-bottom: 12px; }
.hero-meta { font-size: calc(11px * var(--fs)); color: #fff; }
.hero-list { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.hero-card { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: 1; padding-bottom: 20px; border-bottom: 1px solid var(--bdr); }
.hero-card:last-child { border-bottom: none; padding-bottom: 0; }
.hero-card-img { width: 160px; aspect-ratio: 16/10; height: auto; flex-shrink: 0; background: var(--surf); overflow: hidden; border-radius: var(--rc); }
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero-card-title { font-size: calc(13px * var(--fs)); font-weight: 600; color: var(--t1); line-height: 1.35; margin-bottom: 5px; }
.hero-card-meta { font-size: calc(10px * var(--fs)); color: #fff; }

/* Tags */
.tag { display: inline-block; padding: 3px 8px; border-radius: var(--rt); font-size: calc(9px * var(--fs)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.tag-red   { background: var(--red); color: #fff; }
.tag-moto  { background: #1a3a5c; color: #5aacf5; }
.tag-elet  { background: #0f3320; color: #4ade80; }
.tag-carro { background: #2a1a00; color: #f5a623; }
.tag-f1    { background: #1e1030; color: #b09af5; }
.tag-lanc  { background: #3a2500; color: #ffc94d; }
.tag-dark  { background: #262626; color: #fff; border: 1px solid #3E3E3E; }

.breaking { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; padding: 3px 9px; border-radius: var(--rt); font-size: calc(9px * var(--fs)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.breaking-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* LAYOUT PRINCIPAL */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 32px 0 48px; }
.home-feed { padding: 44px 0 60px; display: flex; flex-direction: column; gap: 28px; }

.sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; border-left: 3px solid var(--red); padding-left: 10px; }
.sec-head-title { font-size: calc(12px * var(--fs)); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t1); }
.sec-head-line { flex: 1; height: 1px; background: var(--bdr); }
.see-all { font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--red); white-space: nowrap; }
.see-all:hover { text-decoration: underline; }
.single-lg { margin-bottom: 28px; }
.news-grid-2 { grid-template-columns: 1fr 1fr; }
.home-section { margin-bottom: 0; }

.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 0; }
.news-card { display: flex; flex-direction: column; transition: transform .15s; }
.news-card:hover { transform: translateY(-2px); }
.news-card-img { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--surf); border-radius: var(--rc); }
.ad-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--rt); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 16px; flex: 1; }
.news-card-title { font-size: calc(15px * var(--fs)); font-weight: 600; color: var(--t1); line-height: 1.35; margin-bottom: 8px; }
.news-card-excerpt { font-size: calc(13px * var(--fs)); color: var(--t2); line-height: 1.6; margin-bottom: 10px; }
.news-card-meta { font-size: calc(11px * var(--fs)); color: var(--t3); margin-top: auto; }

/* Bloco de destaque: card grande + lista de cards pequenos */
.feature-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; margin-bottom: 0; align-items: start; }
.feature-row-compact { grid-template-columns: 1fr 1.5fr; }
.feature-row-compact .card-lg-img { aspect-ratio: 16/10; max-height: 220px; }
.card-sm-grid-2row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px 28px; align-content: start; }

.card-lg { display: flex; flex-direction: column; transition: transform .15s; }
.card-lg:hover { transform: translateY(-2px); }
.card-lg-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--surf); border-radius: var(--rc); }
.card-lg-img img { width: 100%; height: 100%; object-fit: cover; }
.card-lg-body { padding: 20px; }
.card-lg-title { font-size: calc(20px * var(--fs)); font-weight: 700; color: var(--t1); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 10px; }
.card-lg-excerpt { font-size: calc(14px * var(--fs)); color: var(--t2); line-height: 1.6; margin-bottom: 10px; }

.card-sm-list { display: flex; flex-direction: column; gap: 18px; }
.card-sm { display: flex; gap: 12px; }
.card-sm-img { width: 84px; height: 64px; flex-shrink: 0; border-radius: var(--rc); overflow: hidden; background: var(--surf); }
.card-sm-img img { width: 100%; height: 100%; object-fit: cover; }
.card-sm-body { flex: 1; min-width: 0; }
.card-sm-body .tag { font-size: calc(8px * var(--fs)); padding: 2px 6px; margin-bottom: 4px; }
.card-sm-title { font-size: calc(13px * var(--fs)); font-weight: 600; color: var(--t1); line-height: 1.35; margin-bottom: 4px; }
.card-sm-meta { font-size: calc(10px * var(--fs)); color: var(--t3); }

/* Mini notícias de Carros: trava em 3 linhas com reticências */
.feature-row-compact .card-sm-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 32px; }

/* Geralzão (Caminhões + Corridas + Motorhome): grande + 3 pequenas + grande */
.feature-row-geral { display: grid; grid-template-columns: 1.3fr .9fr 1.3fr; gap: 32px; align-items: start; margin-bottom: 32px; }

/* Fileira de 5 thumbs (Motos e Geralzão): imagem em cima, título embaixo */
.thumb-row-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card-thumb { display: flex; flex-direction: column; transition: transform .15s; }
.card-thumb:hover { transform: translateY(-2px); }
.card-thumb-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--surf); border-radius: var(--rc); }
.card-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb-title {
  margin-top: 10px;
  font-size: calc(13px * var(--fs));
  font-weight: 600;
  color: var(--t1);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Destaque de anúncio entre blocos */
.ad-featured { margin: 0; display: flex; justify-content: center; background: var(--ad-bg); border: 1px dashed var(--ad-bdr); border-radius: var(--rc); padding: 8px; }

/* ARTIGOS */
.article-full { margin-bottom: 20px; }
.article-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--surf); border-radius: var(--rc); }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px 0; }
.article-tag-row { margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.article-title { font-size: calc(25px * var(--fs)); font-weight: 700; color: var(--t1); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px; }
.article-deck { font-size: calc(16px * var(--fs)); color: var(--t2); line-height: 1.65; margin-bottom: 16px; }
.article-meta { font-size: calc(12px * var(--fs)); color: var(--t3); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--bdr); display: flex; gap: 16px; flex-wrap: wrap; }
.article-body p { font-size: calc(15px * var(--fs)); color: var(--t2); line-height: 1.8; margin-bottom: 18px; }
.article-body h2 { font-size: calc(18px * var(--fs)); font-weight: 700; color: var(--t1); letter-spacing: -.01em; margin: 28px 0 12px; }
.article-body h3 { font-size: calc(15px * var(--fs)); font-weight: 600; color: var(--t1); margin: 22px 0 10px; }
.article-body strong { color: var(--t1); font-weight: 600; }
.article-body img { max-width: 100%; height: auto; display: block; border-radius: var(--rc); margin: 20px 0; }
.article-body figcaption { font-size: calc(12px * var(--fs)); color: var(--t3); margin: -12px 0 20px; }

.article-body table, .specs-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: calc(13px * var(--fs)); }
.article-body th, .article-body td, .specs-table th, .specs-table td { padding: 9px 13px; text-align: left; border-bottom: 1px solid var(--bdr); }
.article-body th, .specs-table th { font-weight: 600; color: var(--t1); background: var(--surf); font-size: calc(10px * var(--fs)); text-transform: uppercase; letter-spacing: .05em; }
.article-body td, .specs-table td { color: var(--t2); }
.article-body tr:last-child td, .specs-table tr:last-child td { border-bottom: none; }

.callout { border-left: 3px solid var(--red); padding: 13px 16px; margin: 20px 0; background: var(--surf); border-radius: 0 var(--rc) var(--rc) 0; font-size: calc(14px * var(--fs)); color: var(--t2); line-height: 1.7; }
.callout strong { color: var(--t1); }

.ad-mid { margin: 24px 0; display: flex; justify-content: center; }
.ad-mid .ad-slot { width: 100%; max-width: 640px; height: 96px; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { border-top: 2px solid var(--bdr); }
.sw-title { padding: 11px 16px; border-bottom: 1px solid var(--bdr); font-size: calc(10px * var(--fs)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.ad-sidebar .ad-slot { width: 268px; height: 218px; margin: 14px auto; }

.mini-list { list-style: none; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 16px; border-bottom: 1px solid var(--bdr); }
.mini-list li:last-child { border-bottom: none; }
.mini-num { font-size: calc(17px * var(--fs)); font-weight: 700; color: var(--red); line-height: 1; flex-shrink: 0; min-width: 22px; }
.mini-title { font-size: calc(12px * var(--fs)); font-weight: 500; color: var(--t1); line-height: 1.4; }
.mini-meta  { font-size: calc(10px * var(--fs)); color: var(--t3); margin-top: 2px; }

.newsletter-form { padding: 16px; }
.newsletter-form p { font-size: calc(12px * var(--fs)); color: var(--t2); margin-bottom: 12px; line-height: 1.5; }
.nl-input { width: 100%; background: var(--surf); border: 1px solid var(--bdr); border-radius: 6px; padding: 8px 12px; font-size: calc(12px * var(--fs)); color: var(--t1); font-family: var(--font); margin-bottom: 8px; }
.nl-input:focus { outline: none; border-color: var(--red); }
.nl-btn { width: 100%; background: var(--red); color: #fff; border: none; border-radius: 6px; padding: 9px; font-size: calc(12px * var(--fs)); font-weight: 600; font-family: var(--font); cursor: pointer; transition: opacity .15s; }
.nl-btn:hover { opacity: .88; }

/* FOOTER */
.site-footer { background: #080808; border-top: 1px solid #333333; margin-top: 16px; }
.footer-body { padding: 40px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.footer-logo { font-size: calc(18px * var(--fs)); font-weight: 700; letter-spacing: -.04em; color: #fff; margin-bottom: 10px; display: block; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: calc(12px * var(--fs)); color: #fff; line-height: 1.7; margin-bottom: 16px; }
.footer-contact { font-size: calc(11px * var(--fs)); color: #fff; line-height: 1.8; }
.footer-col-title { font-size: calc(10px * var(--fs)); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: calc(12px * var(--fs)); color: #fff; transition: color .15s; }
.footer-links a:hover { color: #fff; }

.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-badge { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #1E1E1E; border-radius: 4px; font-size: calc(10px * var(--fs)); color: #fff; }
.footer-badge svg { width: 12px; height: 12px; fill: currentColor; opacity: .5; }

.footer-bottom { border-top: 1px solid #333333; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom-left { font-size: calc(11px * var(--fs)); color: #fff; }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: calc(11px * var(--fs)); color: #fff; transition: color .15s; }
.footer-bottom-links a:hover { color: #fff; }

.back-top { position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px; background: var(--red); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; font-size: 18px; z-index: 200; }
.back-top.visible { opacity: 1; pointer-events: auto; }

.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 450; display: none; }
.search-overlay.open { display: block; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-extra-row { grid-template-columns: 1fr 1fr; }
  .thumb-row-5 { grid-template-columns: repeat(3, 1fr); }
  .feature-row-geral { grid-template-columns: 1fr 1fr; }
  .feature-row-geral > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { height: 280px; }
  .hero-list { height: auto; }
  .hero-card { flex-direction: column; flex: none; }
  .hero-card-img { width: 100%; height: 80px; }
  .hero-extra-row { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .card-sm-grid-2row { grid-template-columns: 1fr 1fr; }
  .card-sm-grid { grid-template-columns: 1fr; }
  .thumb-row-5 { grid-template-columns: 1fr 1fr; }
  .feature-row-geral { grid-template-columns: 1fr; }
  .feature-row-geral > div:last-child { grid-column: auto; }
  .main-nav { display: none; }
  .topbar { display: none; }
  .hamburger-btn { display: flex; align-items: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-input { width: 160px; }
  .search-input:focus { width: 200px; }
  .article-body { padding: 16px 0; }
}
