/*
Theme Name: Revista Tempo Digital
Theme URI: https://revistatempodigital.com.br/
Author: T3 Comunicação
Author URI: https://t3comunicacao.com/
Description: Tema oficial da Revista Tempo Digital — portal de notícias de Goiás, Itumbiara e região.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: revista-tempo-digital
Tags: news, magazine, custom-colors, custom-logo, featured-images, flexible-header, full-width-template
*/

/* ─── Neutraliza interferências de plugins ─── */
body { margin: 0 !important; padding: 0 !important; }
body.home { background: #fff !important; }

/* Fonte padrão do Elementor não deve sobrescrever o tema */
body, p, h1, h2, h3, h4, h5, h6, a {
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
}

/* ─── Variables ─── */
:root {
  --gold: #FF5200;
  --gold-light: #CC4200;
  --gold-pale: #fff3ee;
  --black: #111111;
  --dark: #1a1a1a;
  --dark2: #222222;
  --gray: #555;
  --gray-light: #888;
  --border: #e5e5e5;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: var(--sans); background: #fff; color: var(--black); font-size: 15px; line-height: 1.6; }

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

/* ─── HEADER ─── */
.rtd-header-top {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.rtd-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rtd-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  width: 220px;
  color: var(--gray);
  font-size: 13px;
  transition: border-color .2s;
}
.rtd-header-search:focus-within { border-color: var(--gold); }
.rtd-header-search input { border: none; outline: none; background: none; font-size: 13px; width: 100%; color: var(--black); }
.rtd-header-search svg { flex-shrink: 0; color: var(--gray-light); }

.rtd-header-logo {
  text-align: center;
  flex: 1;
}
.rtd-header-logo .custom-logo-link,
.rtd-header-logo a {
  display: inline-block;
  line-height: 0;
}
.rtd-header-logo .custom-logo,
.rtd-header-logo img {
  height: 52px !important;
  width: auto !important;
  max-width: 240px !important;
  display: block;
}

.rtd-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-entrar {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all .2s;
}
.btn-entrar:hover { border-color: var(--gold); color: var(--gold); }

.btn-assine {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--gold);
  padding: 7px 18px;
  border-radius: 6px;
  letter-spacing: .5px;
  transition: background .2s;
}
.btn-assine:hover { background: var(--gold-light); }

/* ─── NAVBAR ─── */
.rtd-navbar {
  background: var(--black);
  position: sticky;
  top: 73px;
  z-index: 99;
}
.rtd-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rtd-navbar-inner::-webkit-scrollbar { display: none; }
.rtd-navbar-inner a,
.rtd-navbar-inner .menu-item a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  padding: 13px 13px;
  white-space: nowrap;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  display: block;
}
.rtd-navbar-inner a:hover,
.rtd-navbar-inner .menu-item a:hover { color: #fff; }
.rtd-navbar-inner .current-menu-item > a,
.rtd-navbar-inner a.active { color: var(--gold); border-bottom-color: var(--gold); }
/* WordPress menu ul reset */
.rtd-navbar-inner ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 2px; }
.rtd-navbar-inner ul li { display: flex; }
.rtd-navbar-inner > ul { flex-shrink: 0; }

/* ─── PROMO BANNER ─── */
.rtd-promo-banner {
  background: var(--gold);
  text-align: center;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.rtd-promo-banner p {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}
.rtd-promo-banner p span { font-weight: 400; }
.btn-ghost {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  padding: 5px 16px;
  border-radius: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ─── CONTAINER ─── */
.rtd-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── SECTION HEADERS ─── */
.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 24px;
  display: inline-block;
}
.section-title.white { color: #fff; border-bottom-color: var(--gold); }

/* ─── CATEGORY BADGE ─── */
.cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
.cat.white { color: var(--gold); }
.cat-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
}

/* ─── IMAGE WRAPPER (zoom hover) ─── */
.img-wrap { overflow: hidden; }
.img-wrap img { transition: transform .4s ease; width: 100%; height: 100%; object-fit: cover; }
.img-wrap:hover img { transform: scale(1.05); }

/* ─── SECTION 1: EDIÇÃO ATUAL ─── */
.edicao-atual {
  background: var(--dark);
  padding: 44px 0;
}
.edicao-grid {
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.edicao-capa .img-wrap {
  height: 280px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.edicao-capa-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.edicao-card {
  border-left: 1px solid rgba(255,255,255,.1);
  padding-left: 20px;
}
.edicao-card .img-wrap {
  height: 130px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.edicao-card h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 8px;
}
.edicao-card h3:hover { color: var(--gold); }
.edicao-card .author { font-size: 12px; color: var(--gold); }

/* ─── SECTION 2: DESTAQUE + SIDEBAR ─── */
.destaque-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 44px 0;
  align-items: start;
}
.destaque-main .img-wrap {
  height: 360px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.destaque-main h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--black);
}
.destaque-main h2:hover { color: var(--gold); cursor: pointer; }
.destaque-main p { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* sidebar */
.rtd-sidebar { display: flex; flex-direction: column; gap: 24px; }

.newsletter-widget {
  background: var(--gold-pale);
  border: 1px solid #ffd6c0;
  border-radius: 8px;
  padding: 20px;
}
.newsletter-widget h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.newsletter-widget p { font-size: 13px; color: var(--gray); margin-bottom: 14px; line-height: 1.5; }
.newsletter-widget input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .2s;
}
.newsletter-widget input:focus { border-color: var(--gold); }
.newsletter-widget button {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.newsletter-widget button:hover { background: var(--gold-light); }

.sidebar-news h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.sidebar-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item .img-wrap { width: 72px; height: 56px; flex-shrink: 0; border-radius: 4px; }
.sidebar-item-text .cat { display: block; margin-bottom: 3px; }
.sidebar-item-text h5 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
}
.sidebar-item-text h5:hover { color: var(--gold); }
.sidebar-item-text .time { font-size: 11px; color: var(--gray-light); margin-top: 4px; }

/* ─── SECTION 3: FEED ─── */
.feed-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding-bottom: 44px;
  align-items: start;
}
.feed-card-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.feed-card-big .img-wrap { height: 220px; border-radius: 6px; }
.feed-card-big-text { display: flex; flex-direction: column; justify-content: center; }
.feed-card-big-text h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 8px 0 12px;
  cursor: pointer;
}
.feed-card-big-text h3:hover { color: var(--gold); }
.feed-card-big-text p { font-size: 14px; color: var(--gray); line-height: 1.7; }

.feed-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  cursor: pointer;
}
.feed-card .img-wrap { height: 160px; border-radius: 5px; margin-bottom: 12px; }
.feed-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 0 8px;
}
.feed-card h3:hover { color: var(--gold); }
.feed-card .meta { font-size: 12px; color: var(--gray-light); }

/* ─── SECTION 4: GRID 4 COLUNAS ─── */
.grid-4 {
  padding: 44px 0;
  background: #f9f9f9;
}
.grid-4-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.article-card { cursor: pointer; }
.article-card .img-wrap { height: 180px; border-radius: 5px; margin-bottom: 12px; }
.article-card h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 0 8px;
  color: var(--black);
}
.article-card h3:hover { color: var(--gold); }
.article-card .author { font-size: 12px; color: var(--gray); }
.article-card .date { font-size: 11px; color: var(--gray-light); margin-top: 3px; }

/* ─── SECTION 5: NO PONTO ─── */
.no-ponto {
  background: var(--dark);
  padding: 44px 0;
}
.no-ponto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.np-card {
  background: var(--dark2);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s;
}
.np-card:hover { transform: translateY(-3px); }
.np-card .img-wrap { height: 160px; }
.np-card-body { padding: 16px; }
.np-card-body h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-top: 8px;
}
.np-card-body h3:hover { color: var(--gold); }
.np-card-body .author { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 8px; }

/* ─── SECTION 6: COLUNISTAS ─── */
.colunistas {
  background: var(--dark);
  padding: 44px 0;
}
.colunistas-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin-top: 28px;
}
.colunistas-scroll::-webkit-scrollbar { display: none; }
.colunista-card {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
  cursor: pointer;
}
.colunista-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2px solid var(--gold);
  filter: grayscale(100%);
  transition: filter .3s;
}
.colunista-card:hover .colunista-avatar { filter: grayscale(0%); }
.colunista-avatar img { width: 100%; height: 100%; object-fit: cover; }
.colunista-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.colunista-bio { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.5; }

/* ─── SECTION 7: CATEGORIAS ─── */
.cat-section {
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.cat-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.btn-ver-todas {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 7px 18px;
  border-radius: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
}
.btn-ver-todas:hover { background: var(--gold); color: #fff; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card { cursor: pointer; }
.cat-card .img-wrap { height: 170px; border-radius: 5px; margin-bottom: 12px; }
.cat-card h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--black);
}
.cat-card h3:hover { color: var(--gold); }
.cat-card .meta { font-size: 12px; color: var(--gray-light); margin-top: 6px; }

/* ─── SECTION 8: NEWSLETTER CTA ─── */
.newsletter-cta {
  background: var(--gold-pale);
  border-top: 3px solid var(--gold);
  padding: 56px 0;
  text-align: center;
}
.newsletter-cta h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}
.newsletter-cta p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--gold); }
.newsletter-form button {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-light); }

/* ─── FOOTER ─── */
.rtd-footer {
  background: var(--black);
  padding: 56px 0 32px;
  color: rgba(255,255,255,.7);
}
.rtd-footer-top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.rtd-footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  margin-top: 10px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--gold); background: rgba(255,82,0,.15); }
.rtd-footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.rtd-footer-col ul { list-style: none; }
.rtd-footer-col ul li { margin-bottom: 10px; }
.rtd-footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.rtd-footer-col ul li a:hover { color: #fff; }
.rtd-footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ─── SCROLL UP ─── */
.rtd-scroll-up {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px; height: 42px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: background .2s, opacity .2s;
  z-index: 200;
  opacity: 0;
}
.rtd-scroll-up.visible { opacity: 1; }
.rtd-scroll-up:hover { background: var(--gold-light); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .edicao-grid { grid-template-columns: 1fr 1fr; }
  .destaque-row, .feed-row { grid-template-columns: 1fr; }
  .rtd-sidebar { display: none; }
  .grid-4-inner, .no-ponto-grid, .cat-grid { grid-template-columns: 1fr 1fr; }
  .rtd-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .edicao-grid { grid-template-columns: 1fr; }
  .grid-4-inner, .no-ponto-grid, .cat-grid { grid-template-columns: 1fr; }
  .rtd-footer-top { grid-template-columns: 1fr; }
  .feed-card-big { grid-template-columns: 1fr; }
}
