/* =============================================================
   Revista Moderna - Layout 2
   Clean magazine style with Playfair Display headings
   ============================================================= */
:root {
  --accent: #283593;
  --accent-dark: #ffffff;
  --bg: #ffffff;
  --text: #2c2c2c;
  --text-light: #666;
  --border: #e8e8e8;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fafafa;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.3px;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; }
ul, li { list-style: none; padding: 0; margin: 0; }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  background: #fff;
  border-top: 4px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
}
.header-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.header-logo span { color: var(--accent); }
.header-nav { display: flex; gap: 24px; }
.header-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.header-nav a:hover, .header-nav a.active { color: var(--accent); }

/* ══════════════════════════════════════════════
   MAIN LAYOUT
   ══════════════════════════════════════════════ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Hero Section */
.hero-section {
  margin-bottom: 40px;
}
.hero-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.hero-card img {
  height: 420px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 40px 30px 30px;
  color: #fff;
}
.hero-overlay .hero-chapeu {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.hero-overlay h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
}
.hero-overlay .hero-resumo {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 650px;
}
.hero-overlay .hero-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 12px;
}

/* Destaque Section */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
.featured-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.featured-card-img {
  height: 180px;
  overflow: hidden;
}
.featured-card-img img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.featured-card:hover .featured-card-img img { transform: scale(1.05); }
.featured-card-body { padding: 16px; }
.featured-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.featured-card-body .card-date {
  font-size: 0.78rem;
  color: #999;
}

/* Category Sections */
.category-section { margin-bottom: 50px; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-3px); }
.card-img-wrap {
  height: 140px;
  overflow: hidden;
}
.card-img-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.news-card:hover .card-img-wrap img { transform: scale(1.05); }
.card-text { padding: 12px 14px; }
.card-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 6px;
}
.card-text .card-time {
  font-size: 0.75rem;
  color: #aaa;
}

/* ══════════════════════════════════════════════
   ARTICLE PAGE
   ══════════════════════════════════════════════ */
.article-page { background: #fff; }
.article-hero {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.article-hero img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
}
.article-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}
.breadcrumb-nav {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 20px;
}
.breadcrumb-nav a { color: var(--accent); }
.breadcrumb-nav span { color: #666; }
.article-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.article-title {
  font-size: 2.6rem;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #111;
}
.article-resumo {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #888;
  padding-bottom: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}
.article-body-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
}
.article-body-content p { margin-bottom: 18px; }
.article-body-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 30px 0 12px;
  color: #111;
}
.article-body-content img {
  border-radius: 6px;
  margin: 20px 0;
}
.article-body-content blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 25px 0;
}
.related-section {
  max-width: 750px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 30px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand span { color: var(--accent); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-social-icons { display: flex; gap: 12px; }
.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #555;
  border-radius: 50%;
  color: #aaa;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.footer-social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.footer-bottom-bar {
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #333;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-overlay h1 { font-size: 1.6rem; }
  .article-title { font-size: 1.8rem; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .hero-card img { height: 250px; }
  .hero-overlay { padding: 20px 15px; }
  .hero-overlay h1 { font-size: 1.3rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .article-title { font-size: 1.5rem; }
}