/* ============================================
   REVISTA BANTO — WordPress Theme CSS
   Based on Design System v2.0
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent); }

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

/* ============================================
   UTILITIES
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }

.title-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-text-main);
  color: white;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}
.tag.outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border);
}
.tag.accent {
  background: var(--color-accent);
  color: white;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: var(--color-text-main);
  color: white;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--color-terracotta); color: white; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid currentColor;
  color: var(--color-text-main);
}
.btn-outline:hover { background: var(--color-text-main); color: white; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.header .container,
.header [class*="container"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo */
.logo {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-text .l-b,
.logo-text .l-a,
.logo-text .l-n,
.logo-text .l-t { color: var(--color-black); }
.logo-text .l-o { color: var(--color-terracotta); }

/* Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-main);
  padding: 0.5rem;
  margin-right: 1rem;
  order: 3;
}

/* Nav */
#mobileMenu {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-accent); }

.sponsor-btn { margin-left: auto; flex-shrink: 0; }

/* ============================================
   MAIN / LAYOUT
   ============================================ */

main { margin-top: 4.5rem; }

/* ============================================
   WEB STORIES RIBBON
   ============================================ */

.stories-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.5rem 0;
  scrollbar-width: none;
}
.stories-wrapper::-webkit-scrollbar { display: none; }

.story-item {
  flex: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.story-item:hover { transform: scale(1.05); }

.story-ring {
  width: 76px; height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, var(--color-terracotta), var(--color-beige), var(--color-black));
}
.story-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-surface);
}
.story-title {
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ============================================
   HERO GRID (Homepage)
   ============================================ */

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-text-main);
  height: 560px;
  display: block;
}
.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.6s ease;
}
.hero-card:hover img { transform: scale(1.04); }
.hero-content {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  color: white;
}
.hero-content h1, .hero-content h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1.15;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.hero-content p { color: #d1d5db; font-size: 1rem; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-card {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  transition: box-shadow 0.2s ease;
}
.side-card:hover { box-shadow: var(--shadow-md); }
.side-card img {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.side-content { flex: 1; }
.side-content h3 { font-size: 1rem; margin-top: 0.4rem; line-height: 1.3; }

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.section-header h2 { font-size: 1.8rem; }
.section-header a { font-weight: 600; font-size: 0.85rem; }
.editorial-border { border-bottom: 3px solid var(--color-text-main); }

/* ============================================
   NEWS GRID (4 columns)
   ============================================ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.post-card-small {
  display: block;
  transition: transform 0.2s ease;
}
.post-card-small:hover { transform: translateY(-3px); }
.post-card-small img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}
.post-card-small h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.35;
  margin-top: 0.4rem;
}
.post-card-small p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* ============================================
   INTERVIEWS DARK SECTION
   ============================================ */

.interviews-dark {
  background: var(--color-black);
  color: white;
  padding: 5rem 0;
}
.interviews-dark .section-header {
  border-bottom-color: rgba(255,255,255,0.15);
}
.interviews-dark h2 { color: white; }
.interview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.interview-content h3 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 1.5rem 0;
}
.interview-content p { color: #9ca3af; font-size: 1.1rem; margin-bottom: 2rem; }
.interview-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ============================================
   AGENDA GRID
   ============================================ */

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.agenda-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-left: 3px solid var(--color-terracotta);
  transition: box-shadow 0.2s ease;
}
.agenda-card:hover { box-shadow: var(--shadow-md); }
.agenda-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.5rem;
}
.agenda-card h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0.5rem 0;
}
.agenda-card p { font-size: 0.85rem; color: var(--color-text-muted); }

/* ============================================
   FEATURED ARTISTS GRID
   ============================================ */

.featured-artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.artist-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.artist-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.artist-card:hover img { transform: scale(1.06); }
.artist-info {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}
.artist-info span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-beige);
  display: block;
  margin-bottom: 0.3rem;
}
.artist-info h3 { font-size: 1.1rem; font-weight: 700; }

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
  background: var(--color-beige);
  padding: 5rem 0;
  text-align: center;
}
.newsletter-container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.newsletter-container h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-black);
}
.newsletter-container p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  background: white;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-form input:focus { border-color: var(--color-terracotta); }
.newsletter-form .btn {
  background: var(--color-terracotta);
  white-space: nowrap;
}
.newsletter-form .btn:hover { background: var(--color-black); }

/* ============================================
   AD BLOCKS
   ============================================ */

.ad-leaderboard { text-align: center; padding: 1rem 0; }

.ad-block {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--color-black);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: #9ca3af; max-width: 300px; font-size: 0.9rem; margin-top: 1rem; }
.footer-links h4 { font-size: 1rem; margin-bottom: 1.25rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: #9ca3af; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #6b7280;
  font-size: 0.82rem;
}

/* Footer logo colors */
footer .logo .l-b,
footer .logo .l-a,
footer .logo .l-n,
footer .logo .l-t { color: white; }
footer .logo .l-o { color: var(--color-terracotta); }

/* ============================================
   CAPTAÇÃO PAGE
   ============================================ */

.captacao-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.captacao-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.captacao-ods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 3rem;
}

.captacao-large-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 4rem;
  align-items: start;
}

.captacao-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.hero-landing {
  text-align: center;
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--color-bg), var(--color-surface));
  border-bottom: 1px solid var(--color-border);
}
.hero-landing h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
  line-height: 1.15;
}
.hero-landing p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--color-terracotta); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ============================================
   POST / ARTICLE PAGE
   ============================================ */

.post-main {
  margin-top: 5rem;
  padding-bottom: 5rem;
}

.article-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.article-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.15;
  margin: 1.25rem 0 1.5rem;
  color: var(--color-black);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.article-meta .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-meta .author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.article-meta .author span { font-size: 0.9rem; }
.article-meta .date,
.article-meta .read-time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.article-meta .read-time::before {
  content: "·";
  margin-right: 0.5rem;
  color: var(--color-border);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.post-date { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 500; }
.post-title { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1.5rem; }
.post-excerpt { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: 2rem; }

.post-cover {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.post-cover img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.cover-caption {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-style: italic;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #374151;
  padding: 0 1.5rem;
}
.post-content h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin: 3rem 0 1rem;
  color: var(--color-black);
}
.post-content p { margin-bottom: 1.5rem; }

.post-content .dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 0.75;
  padding-top: 6px;
  padding-right: 10px;
  color: var(--color-terracotta);
  font-weight: 700;
}

.post-content blockquote {
  font-size: 1.45rem;
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-black);
  border-left: 4px solid var(--color-terracotta);
  margin: 2.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  background: transparent;
}
.post-content blockquote cite {
  display: block;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
}

.post-content img {
  width: 100%;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
}

.article-footer {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid var(--color-border);
}
.article-footer .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.share-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.share-buttons a {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
}
.share-buttons a:hover { background: var(--color-black); color: white; border-color: var(--color-black); }

.related-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.related-posts .post-card-small img { aspect-ratio: 16/9; }
.related-posts .post-card-small h4 { font-size: 1rem; }

/* ============================================
   CATEGORY PAGE
   ============================================ */

.categoria-header {
  padding: 5rem 0 3rem;
  border-bottom: 3px solid var(--color-black);
  margin-bottom: 3rem;
}
.categoria-header h1 { font-size: 3.5rem; }
.categoria-header p { color: var(--color-text-muted); margin-top: 0.75rem; font-size: 1.1rem; }

.categoria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
.categoria-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2rem;
  align-items: start;
}
.categoria-card img {
  width: 200px; height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.categoria-card-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0.5rem 0;
}
.categoria-card-content p { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* ============================================
   SOBRE PAGE
   ============================================ */

.sobre-hero {
  padding: 6rem 0 4rem;
  border-bottom: 3px solid var(--color-black);
}
.sobre-hero h1 { font-size: 4rem; line-height: 1.1; }
.sobre-hero .lead {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-top: 1.5rem;
  line-height: 1.6;
}
.sobre-content {
  max-width: 780px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  padding: 4rem 0;
}
.sobre-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-black);
  margin: 3rem 0 1rem;
}
.sobre-content p { margin-bottom: 1.25rem; }

/* ============================================
   WEB STORIES MODAL
   ============================================ */

.story-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.story-modal.active { opacity: 1; pointer-events: all; }
.story-modal-content {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 80vh;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.story-progress-bar {
  display: flex; gap: 4px; padding: 10px;
  position: absolute; top: 0; left: 0; width: 100%; z-index: 10;
}
.story-progress-segment {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 2px; overflow: hidden;
}
.story-progress-fill { height: 100%; background: white; width: 0%; transition: width linear; }
.story-close {
  position: absolute; top: 20px; right: 15px;
  color: white; font-size: 1.5rem; cursor: pointer;
  z-index: 10; background: rgba(0,0,0,0.5);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.story-image { width: 100%; height: 100%; object-fit: cover; }
.story-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: white;
}
.story-overlay h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.5rem; }
.story-link-btn {
  display: inline-block; margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--color-terracotta);
  color: white; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.85rem;
}
.story-link-btn:hover { background: white; color: var(--color-black); }
.story-header-overlay {
  position: absolute; top: 25px; left: 15px; z-index: 10;
}
.story-profile {
  display: flex; align-items: center; gap: 0.5rem;
  color: white; font-weight: 600; font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.story-profile img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); }
.story-time { font-weight: 400; opacity: 0.8; }
.story-tap-zone { position: absolute; top: 0; height: 100%; width: 40%; z-index: 5; cursor: pointer; }
.story-tap-zone.left { left: 0; }
.story-tap-zone.right { right: 0; width: 60%; }

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--color-black);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
#backToTop:hover { background: var(--color-terracotta); }

/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */

.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: white;
}

/* ============================================
   NAV ACTIVE STATE
   ============================================ */

.nav-links a.nav-active {
  color: var(--color-terracotta);
  font-weight: 700;
}

/* ============================================
   NOTÍCIAS POR CAPITAIS — TABS
   ============================================ */

.capitais-section {
  padding: 5rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.capitais-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0;
}

.capital-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.capital-tab:hover {
  color: var(--color-text-main);
  background: rgba(0,0,0,0.03);
}

.capital-tab.active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
  background: none;
}

.capital-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.capital-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   INSTAGRAM REELS GRID
   ============================================ */

.instagram-section {
  padding: 5rem 0;
  background: var(--color-black);
}

.instagram-section .section-header {
  border-bottom-color: rgba(255,255,255,0.15);
  margin-bottom: 2.5rem;
}

.instagram-section .section-header h2 { color: white; }
.instagram-section .section-header p { color: #9ca3af; }
.instagram-section .section-header strong { color: white; }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.insta-reel {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  background: #111;
  cursor: pointer;
}

.insta-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.insta-reel:hover img {
  transform: scale(1.06);
  opacity: 0.6;
}

.insta-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: white;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-reel:hover .insta-overlay { opacity: 1; }

.insta-overlay svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

.insta-overlay span {
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
}

.insta-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.insta-reel:hover .insta-caption { opacity: 1; }

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */

/* WordPress pagination */
.nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  transition: all 0.2s ease;
}
.page-numbers.current {
  background: var(--color-terracotta);
  color: white;
  border-color: var(--color-terracotta);
}
.page-numbers:hover {
  background: var(--color-black);
  color: white;
  border-color: var(--color-black);
}
.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0 1rem;
  border-radius: var(--radius-full);
}

/* WordPress avatar */
.avatar {
  border-radius: 50%;
}

/* WordPress search form */
.search-form {
  display: flex;
  gap: 0.75rem;
}
.search-form .search-field {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  background: white;
  outline: none;
}
.search-form .search-field:focus {
  border-color: var(--color-terracotta);
}
.search-form .search-submit {
  padding: 0.65rem 1.4rem;
  background: var(--color-text-main);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
}
.search-form .search-submit:hover {
  background: var(--color-terracotta);
}

/* WordPress admin bar fix */
.admin-bar .header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .captacao-split-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { height: 440px; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1 1 45%; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-artists-grid { grid-template-columns: repeat(2, 1fr); }
  .interview-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .categoria-grid { grid-template-columns: 1fr; }
  .related-posts { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .capitais-tabs { gap: 0; }
  .capital-tab { padding: 0.65rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 768px) {
  /* Mobile Nav */
  .hamburger-btn { display: flex; }
  #mobileMenu {
    position: fixed;
    top: 4.5rem; left: -100%;
    width: 270px;
    height: calc(100vh - 4.5rem);
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transform: none;
    transition: left 0.3s ease;
    border-right: 1px solid var(--color-border);
    z-index: 90;
    overflow-y: auto;
  }
  #mobileMenu.active { left: 0; }
  /* Override WP nav-links styles for mobile menu */
  #mobileMenu .nav-links { flex-direction: column; gap: 1rem; width: 100%; justify-content: flex-start; }
  .sponsor-btn { display: none; }

  /* Layout */
  .news-grid { grid-template-columns: 1fr; }
  .agenda-grid { grid-template-columns: 1fr; }
  .featured-artists-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .interview-grid { grid-template-columns: 1fr; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }

  /* Typography */
  .hero-content h1, .hero-content h2 { font-size: 1.75rem; }
  .article-title { font-size: 2.2rem; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .article-meta .read-time::before { display: none; }
  .hero-landing h1 { font-size: 2.2rem; }
  .sobre-hero h1 { font-size: 2.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form .btn { width: 100%; }
  .categoria-card { grid-template-columns: 1fr; }
  .categoria-card img { width: 100%; height: 200px; }

  /* Stories Modal */
  .story-modal-content { height: 100vh; max-width: 100%; border-radius: 0; }

  /* Instagram */
  .insta-overlay { opacity: 0.7; }
  .insta-caption { opacity: 1; font-size: 0.7rem; padding: 1rem 0.5rem 0.5rem; }
}
