/*
Theme Name: Fato e Notícia Newspaper
Theme URI: https://fatoenoticia.com.br/
Description: Child theme do tagDiv Newspaper para o portal Fato e Notícia. Header compacto, publicidade gerenciável e SEO. Requer o tema pai Newspaper.
Author: Fato e Notícia
Template: Newspaper
Version: 1.0.0
Text Domain: fato-e-noticia-newspaper
*/

/* Estilos visuais específicos do portal */

/* === MENU HEADER: remove indentação das listas (override do tema pai) === */
.nav ul li,
.nav ol li,
.site-header ul li,
.site-header ol li {
  margin-left: 0;
}

/* === HERO === */
/* fundo/cores agora controlados por assets/site.css (sem faixa preta) */
.fato-hero-main {
  position: relative;
  overflow: hidden;
}
.fato-hero-main img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  min-height: 420px;
}
.fato-hero-main .td-block-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 28px 26px;
  background: linear-gradient(transparent, rgba(8,9,12,0.94) 58%);
  color: #fff;
}
.fato-hero-main .td-post-title a { color: #fff; font-size: clamp(28px, 3.5vw, 46px); }
.fato-hero-main .td-post-category { color: var(--fato-red); }
.fato-hero-main .td-post-category:hover { color: #fff; text-decoration: underline; }
.fato-hero-main .td-post-date { color: #c9c2b6; }

/* === STORY ROWS === */
.fato-story-row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #ddd6cb;
  align-items: center;
  background: #fff;
}
.fato-story-row:last-child { border-bottom: 0; }
.fato-story-row .td-thumb-container img { width: 128px; height: 96px; object-fit: cover; }
.fato-story-row .td-post-title a { font-size: 18px; }

/* === LIST ITEMS === */
.fato-list-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #ddd6cb;
  background: #fff;
}
.fato-list-item .td-thumb-container img { width: 210px; height: 132px; object-fit: cover; }
.fato-list-item .td-post-title a { font-size: 22px; }

/* === CARDS === */
.fato-card {
  background: #fff;
  border: 1px solid #ddd6cb;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fato-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18,20,24,0.08); }
.fato-card .td-thumb-container img { width: 100%; height: 190px; object-fit: cover; }
.fato-card .td-block-inner { padding: 14px; }
.fato-card .td-post-title a { font-size: 20px; }

/* === FEATURED BLOCK (Limeira) === */
.fato-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  background: #fff;
  border: 1px solid #ddd6cb;
}
.fato-featured img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.fato-featured .td-block-inner { padding: 20px 18px; }
.fato-featured .td-post-title a { font-size: 30px; }

/* === MINI ITEMS (Câmara) === */
.fato-mini {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #ddd6cb;
}
.fato-mini img { width: 92px; height: 68px; object-fit: cover; }
.fato-mini .td-post-title a { font-size: 16px; }

/* === WIDGET "MAIS LIDAS" === */
.fato-mais-lidas {
  background: #fff;
  border: 1px solid #ddd6cb;
  padding: 16px;
  margin-bottom: 18px;
}
.fato-mais-lidas h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fato-mais-lidas ol { margin: 0; padding: 0 0 0 18px; }
.fato-mais-lidas li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd6cb;
  font-family: Georgia, serif;
  font-size: 16px;
}

/* === SECTION HEAD (reutilizável) === */
.fato-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 16px;
  border-bottom: 2px solid #121418;
  padding-bottom: 8px;
}
.fato-section-head h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
}
.fato-section-head a {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #121418;
}

/* === GRID === */
.fato-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fato-grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }

/* === RESPONSIVO === */
@media (max-width: 980px) {
  .fato-grid-3, .fato-grid-2, .fato-featured, .fato-hero-main .td-block-inner {
    grid-template-columns: 1fr;
  }
  .fato-list-item { grid-template-columns: 120px 1fr; }
  .fato-list-item .td-thumb-container img { width: 120px; height: 86px; }
}
