/* ============================================================
   O Contraditório — Portal de Notícias
   style.css
   ============================================================ */

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 130px; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body { font-family: 'Inter', Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===================== VARIABLES ===================== */
:root {
  --red:     #c8102e;
  --red-dark:#a30d26;
  --text:    #1a1a1a;
  --text-md: #444;
  --text-sm: #777;
  --text-lt: #999;
  --border:  #e5e5e5;
  --bg:      #f5f5f5;
  --white:   #ffffff;
  --max:     1220px;
  --serif:   'Merriweather', Georgia, serif;
  --sans:    'Inter', Arial, sans-serif;
  /* section colors */
  --green:       #3d5c1a;
  --wine:        #7a1535;
  --teal:        #0d6b5e;
  --gold:        #8b6914;
  /* third-party */
  --google-blue: #4285F4;
}

/* ===================== TOP BAR ===================== */
.top-bar {
  background: #1a1a1a;
  border-bottom: 1px solid #2e2e2e;
  padding: 5px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-date {
  font-family: var(--sans);
  font-size: 11px;
  color: #999;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-bar-social-link {
  color: #777;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.top-bar-social-link:hover { color: #fff; }
@media (max-width: 480px) { .top-bar-date { font-size: 10px; } }


/* ===================== SKIP LINK (acessibilidade) ===================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--red);
  color: white;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 4px 0;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* ===================== UTILITIES ===================== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Visível apenas para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ===================== HEADER ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* Top header row */
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 96px;
  gap: 16px;
}

.header-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.menu-btn, .notif-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-md);
  padding: 6px 8px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.menu-btn:hover, .notif-btn:hover { color: var(--red); }

.discover-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-md);
  padding: 6px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.discover-btn:hover {
  border-color: var(--google-blue, #4285F4);
  box-shadow: 0 0 0 1px var(--google-blue, #4285F4);
}
.discover-siga { color: var(--text-md); }
.discover-label { color: var(--text); }
@media (max-width: 992px) { .discover-btn { display: none; } }

/* LOGO */
.header-logo { flex: 1; text-align: center; }

.logo-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
}

/* "O" — artigo em vermelho, menor, itálico */
.logo-initial {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 38px;
  color: var(--red);
  letter-spacing: 0;
  line-height: 1;
  margin-right: 10px;
  transition: color 0.2s;
}

/* "CONTRADITÓRIO" — preto, dominante, como masthead de jornal */
.logo-name {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 70px;
  color: var(--text);
  letter-spacing: -4px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.logo-link:hover .logo-name  { color: #000; }
.logo-link:hover .logo-initial { color: var(--red-dark); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }


.search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-md);
  padding: 6px 8px;
  transition: color 0.15s;
}
.search-btn:hover { color: var(--red); }

/* Category nav */
.category-nav {
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--red);
  background: var(--white);
  position: relative;
}

.category-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.category-nav ul {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.category-nav ul li a {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-md);
  padding: 13px 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.category-nav ul li a:hover,
.category-nav ul li a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.nav-arrow { font-size: 10px; }

/* ===================== SEARCH OVERLAY ===================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  padding-top: 100px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-overlay-box {
  display: flex;
  align-items: center;
  background: var(--white);
  width: 100%;
  max-width: 680px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.search-overlay-input {
  flex: 1;
  padding: 18px 20px;
  font-size: 18px;
  border: none;
  outline: none;
  font-family: var(--sans);
}
.search-overlay-close {
  padding: 18px 20px;
  font-size: 18px;
  color: var(--text-sm);
  font-weight: 700;
  transition: color 0.15s;
}
.search-overlay-close:hover { color: var(--red); }

/* ===================== MOBILE DRAWER ===================== */
.mobile-drawer {
  position: fixed;
  top: 0; left: -280px;
  width: 280px; height: 100vh;
  background: var(--white);
  z-index: 3000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 16px rgba(0,0,0,0.15);
}
.mobile-drawer.open { left: 0; }
.mobile-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer-logo { font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--red); font-style: italic; }
.mobile-drawer-close { font-size: 20px; color: var(--text-sm); font-weight: 700; }
.mobile-drawer nav ul li a {
  display: block;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
}
.mobile-drawer nav ul li a:hover { color: var(--red); border-left-color: var(--red); }
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2999;
  display: none;
}
.drawer-overlay.open { display: block; }

/* ===================== BANNER PUBLICITÁRIO TOP ===================== */
#ad-top-banner, #ad-mid-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  text-align: center;
}
.ad-top-link { display: block; text-align: center; }
.ad-top-img  { max-width: 970px; height: 250px; object-fit: cover; display: block; margin: 0 auto; width: 100%; }
@media (max-width: 768px) { .ad-top-img { height: 120px; } }

/* ===================== MAIN CONTENT ===================== */
#main-content { background: var(--bg); }

/* ===================== ARTICLE CATEGORIES ===================== */
.art-cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  background: rgba(200,16,46,0.08);
  padding: 2px 6px;
  border-radius: 2px;
}

/* Timestamp — "há X horas" */
.art-time {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-lt);
  margin-top: 2px;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

/* ===================== FEATURED TOP ===================== */
#featured-top {
  background: var(--white);
  padding: 20px 0 0;
  border-bottom: 1px solid var(--border);
}

/* Linha 1: as duas notícias em destaque — proporção 70% / 30% */
.featured-articles-row {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 0;
}

/* Notícia principal — grid 55% imagem / 45% texto */
.featured-hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 16px;
  padding-right: 20px;
  padding-bottom: 16px;
  border-right: 1px solid var(--border);
}

.featured-hero-img {
  margin: 0;
  overflow: hidden;
  height: 100%;
}
.featured-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-hero-body {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-hero-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 40px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.featured-hero-title a:hover { color: var(--red); }

.featured-hero-subtitle {
  font-size: 13px;
  color: var(--text-md);
  line-height: 1.5;
}

/* Bullets grid — completamente independente, 4 colunas iguais */
.bullets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  padding-bottom: 10px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  transition: color 0.15s;
}

.bullet-item a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bullet-item:hover { color: var(--red); }

.bullet-sq {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Segunda notícia — imagem em cima, texto embaixo */
.featured-secondary {
  padding-left: 16px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.featured-secondary-img {
  display: block;
  margin-bottom: 10px;
}
.featured-secondary-img img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
.featured-secondary-body { flex: 1; }

/* Nome do colunista/autor em vermelho (estilo Metrópoles) */
.art-cat-author {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 5px;
}

.featured-secondary-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: var(--text);
  flex-grow: 1;
}
.featured-secondary-title a:hover { color: var(--red); }


/* ===================== COLUNISTAS ===================== */
#section-colunistas {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.colunistas-heading {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.col-sq { color: var(--red); font-size: 12px; }

.colunistas-scroll-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.col-scroll-btn {
  font-size: 22px;
  color: var(--text-sm);
  width: 28px;
  flex-shrink: 0;
  font-weight: 300;
  transition: color 0.15s;
}
.col-scroll-btn:hover { color: var(--red); }

.colunistas-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  padding: 4px 0;
}
.colunistas-scroll::-webkit-scrollbar { display: none; }

.colunista-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-align: center;
}
.colunista-item img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.15s;
}
.colunista-item:hover img { border-color: var(--red); }
.colunista-item span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-md);
  white-space: nowrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.colunistas-articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.col-article { display: flex; flex-direction: column; gap: 8px; }

.col-article-header { display: flex; align-items: center; gap: 8px; }
.col-article-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.col-article-author { font-size: 12px; font-weight: 700; color: var(--red); }

.col-article h3 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); }
.col-article h3 a:hover { color: var(--red); }

/* ===================== AO VIVO ===================== */
#section-ao-vivo {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 4px solid var(--border);
}

.ao-vivo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.ao-vivo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.ao-vivo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: white;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ao-vivo-thumb {
  display: block;
  position: relative;
  margin-bottom: 10px;
}
.ao-vivo-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.ao-vivo-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  color: white;
  font-size: 36px;
  transition: background 0.15s;
}
.ao-vivo-thumb:hover .ao-vivo-play { background: rgba(200,16,46,0.7); }

.ao-vivo-desc { font-size: 13px; color: var(--text-md); line-height: 1.5; }
.ao-vivo-desc a { color: var(--red); font-weight: 600; }

.ao-vivo-articles { display: flex; flex-direction: column; gap: 14px; }

.ao-vivo-article {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ao-vivo-article:last-of-type { border-bottom: none; }

.ao-vivo-article-img { flex-shrink: 0; }
.ao-vivo-article-img img { width: 120px; height: 80px; object-fit: cover; }

.ao-vivo-article h3 { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); }
.ao-vivo-article h3 a:hover { color: var(--red); }

.ao-vivo-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid var(--red);
  padding: 6px 14px;
  border-radius: 2px;
  align-self: flex-start;
  transition: background 0.15s, color 0.15s;
}
.ao-vivo-more:hover { background: var(--red); color: white; }

/* ===================== TRIO DESTAQUES ===================== */
#section-trio {
  background: var(--white);
  border-bottom: 4px solid var(--border);
  padding: 24px 0;
}

.trio-item { display: flex; flex-direction: column; }
.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trio-img {
  margin: 0 0 12px 0;
}
.trio-img img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.trio-body .art-cat {
  display: block;
  margin-bottom: 6px;
}

.trio-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}
.trio-title a:hover { color: var(--red); }

/* ===================== CONTENT SECTIONS ===================== */
.content-section {
  margin-top: 0;
  background: var(--white);
  border-bottom: 4px solid var(--border);
}

/* Section banner */
.section-banner {
  padding: 0;
  margin-bottom: 0;
}

.section-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.section-banner-title {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 26px;
  color: white;
  letter-spacing: -0.5px;
  flex: 1;
}

.section-ver-todas {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 5px 12px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.section-ver-todas:hover { background: rgba(255,255,255,0.2); }

.section-banner-tabs { display: flex; gap: 8px; }
.banner-tab {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 5px 10px;
  border-radius: 2px;
  transition: background 0.15s;
}
.banner-tab:hover { background: rgba(255,255,255,0.2); }

/* Section color modifiers */
.cs-red   .section-banner { background: var(--red); }
.cs-green .section-banner { background: var(--green); }
.cs-wine  .section-banner { background: var(--wine); }
.cs-teal  .section-banner { background: var(--teal); }
.cs-gold  .section-banner { background: var(--gold); }

/* Cores individuais por seção */
#section-garanhuns  .section-banner { background: #a50020; }
#section-agreste    .section-banner { background: #7a3b1e; }
#section-pernambuco .section-banner { background: #C8102E; }
#section-brasil     .section-banner { background: #007a33; }
#section-mundo      .section-banner { background: #0288d1; }
#section-politica   .section-banner { background: #1c2f80; }
#section-economia   .section-banner { background: #e07b00; }
#section-esportes   .section-banner { background: #e65100; }
#section-saude      .section-banner { background: #00897b; }
#section-tecnologia .section-banner { background: #3d2b8a; }
#section-agenda     .section-banner { background: #8b0052; }
#section-curiosidades .section-banner { background: #7b00d4; }
#section-educacao   .section-banner { background: #1a5eb8; }
#section-seguranca  .section-banner { background: #37474f; }

/* ===================== SECTION LAYOUT SYSTEM ===================== */
/* Flexible grid: 1 destaque + 2 aside + ad + N grid cards (max 12 total) */

.section-body { padding: 20px 0; }

/* Outer 2-col layout: content | ad 300px */
.section-with-ad {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

/* Top zone: destaque | aside col (no ad here) */
.section-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  margin-bottom: 12px;
  align-items: stretch;
}

/* Destaque — foto em cima, título ancorado no fundo */
.art-destaque { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.art-destaque-img { display: block; width: 100%; }
.art-destaque-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: opacity 0.2s; }
.art-destaque-img:hover img { opacity: 0.92; }
.art-destaque-body { display: flex; flex-direction: column; flex: 1; justify-content: flex-end; overflow: hidden; }
.art-destaque-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}
.art-destaque-title a:hover { color: var(--red); }
.art-destaque-sub {
  display: none;
}

/* Aside: 2 stacked cards beside destaque */
.art-aside {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  align-self: stretch;
}
.art-aside .art-card {
  flex: 1;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.art-aside .art-card:first-child { padding-top: 0; }
.art-aside .art-card:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.art-aside .art-card-img { width: 100%; }
.art-aside .art-card-img img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; display: block; }
.art-aside .art-card-body { flex: 1; }
.art-aside .art-card-title {
  font-family: var(--serif);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

/* Card: used in aside and in card grid */
.art-card {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.art-card-img { display: block; flex-shrink: 0; width: 110px; }
.art-card-img img { width: 110px; aspect-ratio: 3/2; object-fit: cover; display: block; height: auto; }
.art-card-img:hover img { opacity: 0.9; }
.art-card-body { flex: 1; }
.art-card-title {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.art-card-title a:hover { color: var(--red); }

/* Ad column — estica para cobrir toda a altura da seção */
.section-ad-col { display: flex; align-self: stretch; width: 300px; }
.ad-img { width: 300px; height: 600px; object-fit: cover; display: block; }

/* Bottom card grid: 3 cols × N rows, all cards with photo */
.section-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.section-card-grid .art-card { padding: 0; border-bottom: none; align-items: flex-start; }
.section-card-grid .art-card-img { width: 90px; flex-shrink: 0; }
.section-card-grid .art-card-img img { width: 90px; height: 90px; aspect-ratio: 1/1; object-fit: cover; }
.section-card-grid .art-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section footer banner */
.section-footer-ad {
  margin-top: 20px;
  margin-bottom: 24px;
  text-align: center;
}
.footer-ad-img {
  width: 100%;
  max-width: 970px;
  height: 250px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
@media (max-width: 768px) { .footer-ad-img { height: 120px; } }

/* ===================== ÚLTIMAS NOTÍCIAS ===================== */
#section-ultimas {
  background: var(--white);
  padding: 28px 0 32px;
  border-top: 4px solid var(--border);
}

.ultimas-heading {
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  color: var(--red);
  letter-spacing: -0.5px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.ultimas-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

.ultimas-list { display: flex; flex-direction: column; gap: 0; }

.article-ultimas {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.au-img { display: block; flex-shrink: 0; }
.au-img img {
  width: 280px;
  height: 185px;
  object-fit: cover;
  transition: opacity 0.2s;
}
.au-img:hover img { opacity: 0.9; }

.au-body { flex: 1; }

.au-title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}
.au-title a:hover { color: var(--red); }

.au-desc { font-size: 14px; color: var(--text-md); line-height: 1.6; }

.ver-mais-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding: 14px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.ver-mais-btn:hover { background: var(--red); color: white; }

/* Aside - mais lidas */
.ultimas-aside { position: sticky; top: 148px; }
.ultimas-aside-widget { background: var(--bg); border: 1px solid var(--border); padding: 16px; }
.aside-widget-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  border-bottom: 2px solid var(--red);
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.mais-lidas { display: flex; flex-direction: column; gap: 0; }

.mais-lidas li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mais-lidas li:last-child { border-bottom: none; }

.ml-num {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 44px;
  color: #e0e0e0;
  line-height: 1;
  flex-shrink: 0;
  min-width: 34px;
  margin-top: -4px;
}

.mais-lidas li div { display: flex; flex-direction: column; gap: 4px; }
.mais-lidas li a {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.mais-lidas li a:hover { color: var(--red); }

/* ===================== FOOTER ===================== */
#site-footer {
  background: #1a1a1a;
  padding: 16px 0;
  border-top: 3px solid var(--red);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }

.footer-sep { color: #555; font-size: 11px; }

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-logo-o {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  color: #666;
  letter-spacing: 2px;
}
.footer-logo-farol {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 14px;
  color: var(--red);
  letter-spacing: -0.3px;
  text-transform: uppercase;
}
.footer-logo:hover .footer-logo-farol { color: #e03050; }

.footer-copy {
  font-family: var(--sans);
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ===================== IMAGE HOVER ZOOM ===================== */
/* Zoom suave ao hover — padrão G1, Metrópoles, Estadão */
.featured-hero-img img { transition: transform 0.45s ease; }
.featured-hero:hover .featured-hero-img img { transform: scale(1.04); }

.featured-secondary-img { overflow: hidden; }
.featured-secondary-img img { transition: transform 0.45s ease; }
.featured-secondary:hover .featured-secondary-img img { transform: scale(1.04); }

.trio-img { overflow: hidden; }
.trio-img img { transition: transform 0.45s ease; }
.trio-item:hover .trio-img img { transform: scale(1.05); }

.art-destaque-img { overflow: hidden; }
.art-destaque-img img { transition: transform 0.45s ease, opacity 0.2s; }
.art-destaque:hover .art-destaque-img img { transform: scale(1.04); opacity: 1; }

.art-card-img { overflow: hidden; }
.art-card-img img { transition: transform 0.35s ease; }
.art-card:hover .art-card-img img { transform: scale(1.08); }

.au-img { overflow: hidden; }
.au-img img { transition: transform 0.45s ease, opacity 0.2s; }
.article-ultimas:hover .au-img img { transform: scale(1.04); opacity: 1; }

/* Transição suave nos títulos */
.featured-hero-title a,
.featured-secondary-title a,
.trio-title a,
.art-destaque-title a,
.art-card-title a,
.au-title a { transition: color 0.18s; }

/* ===================== RESPONSIVE — 1200px ===================== */
@media (max-width: 1200px) {
  .section-top { grid-template-columns: 1fr 240px; }
}

/* ===================== RESPONSIVE — 1024px (tablet landscape) ===================== */
@media (max-width: 1024px) {
  .logo-name { font-size: 52px; letter-spacing: -3px; }
  .logo-initial { font-size: 30px; }

  .featured-hero { grid-template-columns: 1fr; border-right: none; }
  .featured-hero-img { height: 280px; overflow: hidden; }
  .featured-hero-img img { height: 280px; }
  .featured-hero-title { font-size: 28px; }
}

/* ===================== RESPONSIVE — 992px ===================== */
@media (max-width: 992px) {
  .logo-name { font-size: 48px; letter-spacing: -2.5px; }
  .logo-initial { font-size: 26px; }

  .featured-top-grid { grid-template-columns: 1fr; }
  .featured-hero { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
  .featured-secondary { grid-column: 1; grid-row: 3; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--border); display: flex; gap: 16px; }
  .featured-secondary-img { flex: 0 0 35%; margin: 0; }
  .bullets-grid { grid-template-columns: repeat(2, 1fr); border-right: none; }
  .bullet-item:nth-child(4n) { border-right: 1px solid var(--border); }
  .bullet-item:nth-child(2n) { border-right: none; }

  .colunistas-articles { grid-template-columns: repeat(2, 1fr); }

  .ao-vivo-grid { grid-template-columns: 1fr; }

  .section-with-ad { grid-template-columns: 1fr; }
  .section-with-ad .section-ad-col { display: none; }
  .section-top { grid-template-columns: 1fr 240px; }
  .section-card-grid { grid-template-columns: repeat(2, 1fr); }

  .ultimas-grid { grid-template-columns: 1fr; }
  .ultimas-aside { position: static; }

  .menu-btn span, .notif-btn span { display: none; }
}

/* ===================== RESPONSIVE — 768px ===================== */
@media (max-width: 768px) {
  .category-nav::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 48px;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--white));
    pointer-events: none;
    z-index: 1;
  }

  .header-main { height: 78px; gap: 6px; }
  .header-left { gap: 2px; }
  .header-right { gap: 2px; }
  .logo-name { font-size: 32px; letter-spacing: -1.5px; }
  .logo-initial { font-size: 18px; margin-right: 6px; }

  /* Todos os botões do header: só ícone, sem padding lateral */
  .menu-btn, .notif-btn, .search-btn { padding: 6px; }
  .notif-btn span, .search-btn span { display: none; }

  /* Google Discover: reaparecer como ícone puro, sem borda */
  .discover-btn {
    display: flex;
    padding: 6px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .discover-siga, .discover-label { display: none; }

  .featured-articles-row { grid-template-columns: 1fr; }
  .featured-secondary { padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .featured-hero { display: flex; flex-direction: column; border-right: none; }
  .featured-hero-img { flex: none; }
  .featured-hero-title { font-size: 22px; }
  .featured-hero-subtitle { display: none; }

  .bullets-grid { grid-template-columns: repeat(2, 1fr); }

  .section-top { grid-template-columns: 1fr; }
  .art-aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .art-aside .art-card { border-bottom: none; padding: 0; }
  .section-card-grid { grid-template-columns: 1fr; }

  .article-ultimas { flex-direction: column; }
  .au-img { width: 100%; }
  .au-img img { width: 100%; height: auto; }
  .au-title { font-size: 18px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  /* Camada defensiva — garantir que grids não ultrapassem a tela */
  .category-nav-inner { width: 100%; }
  .section-with-ad { grid-template-columns: 1fr; }
  .section-ad-col { display: none; }
  .ultimas-grid { grid-template-columns: 1fr; }
}

/* ===================== RESPONSIVE — 480px ===================== */
@media (max-width: 480px) {
  .logo-name { font-size: 22px; letter-spacing: -0.5px; }
  .logo-initial { font-size: 13px; margin-right: 2px; }
  .header-main { padding: 0 10px; gap: 8px; justify-content: center; }
  .header-logo { flex: 0 0 auto; }
  .header-left { gap: 0; }
  .header-right { gap: 0; }
  .menu-btn, .notif-btn, .search-btn { padding: 5px; }
  .discover-btn { padding: 4px; }
  .container { padding: 0 12px; }

  .bullets-grid { grid-template-columns: 1fr 1fr; }
  .bullet-item { font-size: 12px; padding: 8px 6px 8px 0; }

  .colunistas-articles { grid-template-columns: 1fr 1fr; }

  .section-card-grid { grid-template-columns: 1fr !important; }
  .trio-grid { grid-template-columns: 1fr; }
  .art-aside { grid-template-columns: 1fr; }
  .art-destaque { flex-direction: column; }
  .art-destaque-img { flex: none; width: 100%; }

  .au-title { font-size: 16px; }
  .ultimas-heading { font-size: 22px; }

  .footer-links { gap: 4px; }
}

/* ===================== FOCUS INDICATORS (acessibilidade) ===================== */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link:focus-visible { outline: none; }

/* ===================== COMPARTILHAMENTO SOCIAL ===================== */
.art-share {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.art-share-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-lt);
  margin-right: 2px;
}
.art-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-sm);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--sans);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.art-share-btn:hover { border-color: transparent; }
.art-share-wa:hover  { background: #25D366; color: white; }
.art-share-x:hover   { background: #000; color: white; }
.art-share-fb:hover  { background: #1877F2; color: white; }
.art-share-copy { cursor: pointer; }
.art-share-copy:hover { background: var(--red); color: white; border-color: transparent; }
.art-share-copy.copied { background: #2e7d32; color: white; border-color: transparent; }
.art-share-copy.copied svg { display: none; }

/* ===================== DARK MODE ===================== */
@media (prefers-color-scheme: dark) {
  :root {
    --text:        #e2e2e2;
    --text-md:     #aaaaaa;
    --text-sm:     #888888;
    --text-lt:     #555555;
    --border:      #2a2a2a;
    --bg:          #0f1012;
    --white:       #18191c;
    --google-blue: #7aabff;
  }

  /* Google Discover SVG — clarear cores para contraste no fundo escuro */
  .discover-btn svg line { opacity: 0.9; }
  .discover-btn { opacity: 0.85; }
  .discover-btn:hover { opacity: 1; }

  body { background: var(--bg); color: var(--text); }

  #site-header { background: var(--white); border-bottom-color: var(--border); }

  .category-nav { background: var(--white); border-top-color: var(--border); }

  .top-bar { background: #080809; border-bottom-color: #1a1a1a; }

  .logo-link:hover .logo-name { color: var(--text); }

  .discover-btn { border-color: #3a3a3a; color: var(--text-md); }
  .discover-label { color: var(--text-md); }
  .discover-siga  { color: var(--text-sm); }

  .search-overlay-box { background: var(--white); }
  .search-overlay-input { background: var(--white); color: var(--text); }
  .search-overlay-input::placeholder { color: var(--text-lt); }

  .mobile-drawer { background: var(--white); }
  .mobile-drawer-header { border-bottom-color: var(--border); }
  .mobile-drawer nav ul li a { color: var(--text); border-bottom-color: var(--border); }

  #ad-top-banner, #ad-mid-banner { background: var(--white); border-bottom-color: var(--border); }

  #featured-top { background: var(--white); border-bottom-color: var(--border); }
  .featured-hero { border-right-color: var(--border); }

  #section-colunistas { background: var(--white); border-bottom-color: var(--border); }
  .colunistas-articles { border-top-color: var(--border); }

  #section-ao-vivo { background: var(--white); border-bottom-color: var(--border); }
  .ao-vivo-article { border-bottom-color: var(--border); }

  #section-trio { background: var(--white); border-bottom-color: var(--border); }

  .content-section { background: var(--white); border-bottom-color: var(--border); }

  .art-cat { background: rgba(200,16,46,0.18); }

  .art-aside { border-left-color: var(--border); }
  .art-aside .art-card { border-bottom-color: var(--border); }

  .section-card-grid { border-top-color: var(--border); }

  .art-card { border-bottom-color: var(--border); }

  #section-ultimas { background: var(--white); border-top-color: var(--border); }
  .ultimas-heading { border-bottom-color: var(--border); }
  .article-ultimas { border-bottom-color: var(--border); }
  .ultimas-aside-widget { background: #111214; border-color: var(--border); }
  .mais-lidas li { border-bottom-color: var(--border); }
  .ml-num { color: #2c2c2c; }
  .aside-widget-title { border-bottom-color: var(--red); }

  .ver-mais-btn { border-color: var(--red); color: var(--red); }

  .art-share-btn { border-color: var(--border); color: var(--text-sm); }
}

/* ===================== PRINT STYLES ===================== */
@media print {
  .top-bar,
  .header-left,
  .header-right,
  .category-nav,
  #ad-top-banner,
  #ad-mid-banner,
  .section-ad-col,
  .section-footer-ad,
  .ao-vivo-play,
  .art-share,
  .bullets-grid,
  #section-colunistas,
  #section-ao-vivo,
  .ver-mais-btn,
  .colunistas-scroll-wrapper,
  #site-footer { display: none !important; }

  body { background: white !important; color: black !important; font-size: 11pt; }
  a { color: black !important; }
  img { max-width: 100% !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .section-banner { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
