/*
Theme Name:  W3D Dhayse
Theme URI:   https://w3d.com.br
Author:      W3D Agência Digital
Author URI:  https://w3d.com.br
Description: Tema profissional para blog jornalístico. Layout de 3 colunas, áreas de widgets dinâmicas, customizador de redes sociais, contador de visitantes, templates completos e design responsivo.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: w3d-dhayse
Tags:        blog, news, one-column, two-columns, three-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support
*/

/* ---- Reset e base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #f0f0f0;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #cc0000; }

img { display: block; width: 100%; height: auto; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Screen-reader text (acessibilidade) */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ================================================
   BARRA DE TOPO (busca + redes sociais)
   ================================================ */
.top-bar {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-form {
  display: flex;
  flex: 1;
  min-width: 200px;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
}

.search-form input[type="search"] {
  flex: 1;
  border: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #555;
  background: #f9f9f9;
  outline: none;
}

.search-form button[type="submit"] {
  background: #cc0000;
  border: none;
  padding: 7px 12px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.search-form button[type="submit"]:hover { background: #aa0000; }

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #cc0000;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s, transform 0.15s;
}

.social-icons a:hover {
  background: #aa0000;
  transform: scale(1.1);
}

/* ================================================
   CABEÇALHO / LOGO
   ================================================ */
.site-header {
  background: linear-gradient(135deg, #cc0000 0%, #8b0000 100%);
  padding: 50px 0 50px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 38px;
  font-weight: 900;
  color: #d4a017;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.logo-tagline {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  margin-top: 4px;
}

/* Logo customizável via Customizer */
.custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-logo-link img {
  max-height: 80px;
  width: auto;
}

/* ================================================
   BANNER DE ANÚNCIO TOPO
   ================================================ */
.ad-banner-top {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.ad-banner-top .widget { box-shadow: none; background: transparent; }

.ad-placeholder {
  background: #e8e8e8;
  border: 2px dashed #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.ad-placeholder.wide {
  width: 100%;
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

.ad-placeholder.vertical {
  width: 160px;
  height: 600px;
}

.sidebar-right .ad-placeholder.vertical {
  width: 100%;
  height: 250px;
}

/* ================================================
   LAYOUT PRINCIPAL (3 colunas)
   ================================================ */
.main-layout {
  display: grid;
  grid-template-columns: 170px 1fr 300px;
  grid-template-areas: "left center right";
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  align-items: start;
}

.sidebar-left  { grid-area: left; }
.content-center { grid-area: center; }
.sidebar-right { grid-area: right; }

/* ================================================
   CARROSSEL / DESTAQUE PRINCIPAL
   ================================================ */
.featured-slider {
  position: relative;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.featured-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  opacity: 0.85;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85) 60%);
  padding: 40px 20px 20px;
  color: #fff;
}

.slide-category {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  margin-bottom: 8px;
  border-radius: 2px;
}

.slide-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.slide-title a { color: #fff; }
.slide-title a:hover { color: #d4a017; }

/* ================================================
   GRID DE NOTÍCIAS (3 cards)
   ================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.news-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card img {
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 12px;
}

.card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #d4a017;
  margin-bottom: 6px;
}

.news-card h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
}

.news-card h3 a:hover { color: #cc0000; }

/* ================================================
   ANÚNCIO ENTRE BLOCOS
   ================================================ */
.mid-ad { margin-bottom: 24px; }
.mid-ad .widget { box-shadow: none; background: transparent; }

/* ================================================
   LISTA DE NOTÍCIAS RECENTES
   ================================================ */
.news-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: #cc0000;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 2px;
}

.list-item {
  display: flex;
  gap: 14px;
  background: #fff;
  padding: 12px;
  margin-bottom: 2px;
  border-radius: 3px;
}

.list-thumb {
  flex-shrink: 0;
  width: 160px;
}

.list-thumb img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: 3px;
}

.list-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list-body h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #1a1a1a;
}

.list-body h3 a:hover { color: #cc0000; }

.list-body time {
  font-size: 13px;
  color: #888;
  margin-top: auto;
}

/* Placeholder sem thumbnail */
.thumb-placeholder {
  background: #ddd;
  border-radius: 3px;
}

/* ================================================
   PAGINAÇÃO
   ================================================ */
.pagination {
  margin-top: 32px;
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination ul li a,
.pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  transition: background 0.2s, color 0.2s;
}

.pagination ul li a:hover { background: #cc0000; color: #fff; border-color: #cc0000; }
.pagination ul li span.current { background: #cc0000; color: #fff; border-color: #cc0000; }

/* ================================================
   SIDEBAR DIREITA
   ================================================ */
.sidebar-right {
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Widget genérico com padding */
.widget .textwidget,
.widget .widget-content {
  padding: 14px;
}

.author-widget {
  text-align: center;
  padding: 20px 16px;
  border-top: 4px solid #cc0000;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 12px;
  border: 3px solid #cc0000;
  display: block;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-name {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.author-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* ===== CONTADORES DE VISITANTES ===== */
.counter-widget {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #1a1a1a;
  border-radius: 6px;
  padding: 16px 12px;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.counter-icon {
  font-size: 18px;
  line-height: 1;
}

.counter-number {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  color: #cc0000;
  line-height: 1.1;
}

.counter-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
}

.counter-divider {
  width: 1px;
  height: 48px;
  background: #333;
  flex-shrink: 0;
}

.author-widget-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.author-widget-link:hover .author-widget {
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s;
}

.author-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #cc0000;
  font-weight: 600;
}
.author-widget-link:hover .author-more { text-decoration: underline; }

.widget-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: #cc0000;
  padding: 8px 14px;
  margin: 0;
}

.contact-list {
  list-style: none;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.category-list,
.widget_categories ul,
.widget_archive ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.category-list li a,
.category-list li > a,
.widget_categories ul li a,
.widget_archive ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s;
}

.category-list li a:hover,
.widget_categories ul li a:hover,
.widget_archive ul li a:hover {
  background: #cc0000;
  color: #fff;
}

/* Oculta contagem automática do WP */
.category-list li .count,
.widget_categories ul li .count { display: none; }

/* Sidebar esquerda – widget area */
.sidebar-left {
  grid-area: left;
}

.sidebar-left .widget {
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ================================================
   RODAPÉ
   ================================================ */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #ccc;
  padding: 32px 0 20px;
  text-align: center;
}

.footer-widgets {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #444;
}

.footer-widgets .widget {
  background: transparent;
  box-shadow: none;
  color: #ccc;
}

.footer-widgets .widget-title {
  background: transparent;
  color: #d4a017;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 0 0 8px 0;
  border-bottom: 1px solid #444;
  margin-bottom: 12px;
}

.footer-logo {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  color: #d4a017;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: 3px;
  color: #888;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  list-style: none;
}

.footer-nav li a,
.footer-links a {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-nav li a:hover,
.footer-links a:hover { color: #d4a017; }

.footer-copy { font-size: 12px; color: #666; }

/* ================================================
   PÁGINA DE MATÉRIA (SINGLE)
   ================================================ */
.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-areas: "body right";
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  align-items: start;
}

.art-body { grid-area: body; min-width: 0; }
.art-layout .sidebar-right { grid-area: right; }

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: #cc0000; }
.breadcrumb a:hover { text-decoration: underline; }

/* Artigo completo */
.article-full {
  background: #fff;
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.art-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.art-category {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 2px;
}

.art-date {
  font-size: 14px;
  color: #888;
}

.art-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.art-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.art-author-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #cc0000;
  flex-shrink: 0;
}

.art-author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}

.art-author span {
  font-size: 13px;
  color: #888;
}

.art-hero {
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.art-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.art-hero figcaption {
  font-size: 13px;
  color: #888;
  padding: 8px 0 0;
  font-style: italic;
}

/* Texto da matéria — 19px para facilitar leitura para público 50+ */
.art-content {
  font-size: 19px;
  line-height: 1.85;
  color: #222;
}

.art-content p { margin-bottom: 22px; }

.art-content h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 14px;
}

.art-content h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 26px 0 12px;
}

.art-content strong { font-weight: 700; }
.art-content em { font-style: italic; }

.art-content img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

.art-content figure { margin: 20px 0; }

.art-content figcaption {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-top: 6px;
}

/* Vídeo do YouTube — responsivo */
.art-content .wp-block-embed,
.art-content .wp-block-video { margin: 28px 0; }

.art-content .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 4px;
}

.art-content .wp-block-embed__wrapper iframe,
.art-content .wp-block-embed__wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.art-content video {
  width: 100%;
  border-radius: 4px;
  margin: 20px 0;
}

/* Compartilhar */
.art-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
}

.art-share span {
  font-size: 15px;
  font-weight: 700;
  color: #555;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  transition: opacity 0.2s;
}

.share-btn:hover { opacity: 0.85; }
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }

/* Matérias relacionadas */
.related-news { margin-top: 32px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ================================================
   COMENTÁRIOS
   ================================================ */
.comments-area {
  background: #fff;
  border-radius: 4px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.comments-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #cc0000;
}

.comment-list {
  list-style: none;
  margin-bottom: 32px;
}

.comment-list .comment {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
  background: #fafafa;
}

.comment-list .children {
  list-style: none;
  margin-left: 32px;
  margin-top: 16px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.comment-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author-name {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
}

.comment-date {
  font-size: 12px;
  color: #888;
}

.comment-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 8px;
}

.comment-reply-link {
  font-size: 13px;
  color: #cc0000;
  font-weight: 600;
}
.comment-reply-link:hover { text-decoration: underline; }

.comment-respond {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.comment-reply-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  color: #1a1a1a;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #cc0000;
  outline: none;
}

.comment-form textarea { height: 120px; resize: vertical; }

.comment-form .submit,
.comment-form input[type="submit"] {
  background: #cc0000;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover { background: #aa0000; }

.comment-awaiting-moderation {
  font-size: 13px;
  color: #888;
  font-style: italic;
  margin-top: 6px;
}

/* ================================================
   PÁGINA GENÉRICA E SOBRE
   ================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-areas: "body right";
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  align-items: start;
}

.page-body { grid-area: body; min-width: 0; }
.page-layout .sidebar-right { grid-area: right; }

/* ================================================
   ARQUIVO / CATEGORIA / BUSCA
   ================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-areas: "body right";
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 40px;
  align-items: start;
}

.archive-body { grid-area: body; min-width: 0; }
.archive-layout .sidebar-right { grid-area: right; }

.archive-header {
  background: #fff;
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border-left: 4px solid #cc0000;
}

.archive-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.archive-description {
  font-size: 15px;
  color: #666;
  margin-top: 6px;
}

.search-header { border-left-color: #d4a017; }

.search-info {
  font-size: 14px;
  color: #888;
  margin-top: 6px;
}

/* ================================================
   PÁGINA 404
   ================================================ */
.error-layout {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 16px 60px;
  text-align: center;
}

.error-code {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 120px;
  font-weight: 900;
  color: #cc0000;
  line-height: 1;
  opacity: 0.15;
}

.error-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: -20px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 28px;
}

.error-layout .search-form {
  max-width: 400px;
  margin: 0 auto 20px;
}

.btn-home {
  display: inline-block;
  background: #cc0000;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-home:hover { background: #aa0000; }

/* ================================================
   CLASSES WORDPRESS (alinhamento, galeria, etc.)
   ================================================ */
.alignleft  { float: left;  margin: 0 20px 16px 0; max-width: 50%; }
.alignright { float: right; margin: 0 0 16px 20px; max-width: 50%; }
.aligncenter { display: block; margin: 16px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: #888; font-style: italic; margin-top: 6px; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.gallery-item img { border-radius: 3px; }
.wp-block-image figcaption { font-size: 14px; color: #888; font-style: italic; }

/* ================================================
   RESPONSIVO — TABLET
   ================================================ */
@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "right"
      "left";
  }

  .sidebar-left { display: none; }
  .ad-placeholder.vertical { width: 100%; height: 120px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-slide img { height: 260px; }
  .slide-title { font-size: 18px; }
  .logo-name { font-size: 26px; }

  .art-layout,
  .page-layout,
  .archive-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "body" "right";
  }

  .art-title { font-size: 24px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  .archive-layout { grid-template-areas: "body" "right"; }
}

/* ================================================
   RESPONSIVO — CELULAR
   ================================================ */
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; align-items: stretch; }
  .social-icons { margin-left: 0; justify-content: center; }
  .list-item { flex-direction: column; }
  .list-thumb,
  .list-thumb img { width: 100%; height: 180px; }
  .logo-name { font-size: 20px; letter-spacing: 1px; }
  .art-title { font-size: 22px; }
  .art-content { font-size: 18px; }
  .article-full { padding: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .art-author-photo { width: 44px; height: 44px; }
  .comments-area { padding: 16px; }
  .error-code { font-size: 80px; }
  .error-title { font-size: 22px; }
}
