/* ==========================================================================
   POETA BENEDITO CUNHA MELO (1911–1981) - MEMORIAL PARALLAX
   Estilo Visual: Moderno, Tons Brancos, Bege/Pergaminho e Acentos Vermelho Escuro
   ========================================================================== */

:root {
  /* Paleta de Cores: Branco, Bege, Creme, Vermelho Escuro */
  --bg-main: #FDFBF7;
  --bg-surface: #FFFFFF;
  --bg-warm-100: #FAF7F2;
  --bg-warm-200: #F3ECE1;
  --bg-warm-300: #EADFCF;
  --bg-warm-400: #DFD1BC;
  
  /* Textos */
  --text-title: #221C18;
  --text-body: #4A4036;
  --text-muted: #7E7265;
  --text-light: #FAF7F2;

  /* Vermelho Escuro / Carmesim / Vinho */
  --red-deep: #721622;
  --red-accent: #8A1C2B;
  --red-hover: #A12537;
  --red-light: #F7EBED;
  --red-tint: rgba(138, 28, 43, 0.08);
  --red-tint-strong: rgba(138, 28, 43, 0.18);
  --red-border: rgba(138, 28, 43, 0.28);

  /* Dourado / Bronze Sutil */
  --gold-subtle: #C29B58;
  --gold-tint: rgba(194, 155, 88, 0.12);

  /* Bordas & Sombras */
  --border-light: #EFE6D8;
  --border-medium: #E2D4BF;
  --shadow-sm: 0 4px 12px rgba(45, 30, 20, 0.04);
  --shadow-md: 0 10px 30px rgba(45, 30, 20, 0.07);
  --shadow-lg: 0 20px 50px rgba(45, 30, 20, 0.10);
  --shadow-red: 0 12px 35px rgba(138, 28, 43, 0.22);

  /* Tipografia */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;

  /* Transições & Curvas */
  --transition-fast: 0.2s cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 0.35s cubic-bezier(0.2, 0, 0, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-body);
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 10% 20%, rgba(234, 223, 207, 0.2) 0%, transparent 20%),
                    radial-gradient(circle at 90% 80%, rgba(138, 28, 43, 0.03) 0%, transparent 25%);
  -webkit-font-smoothing: antialiased;
}

/* Barra de Progresso de Leitura */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-hover), var(--gold-subtle));
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Background Parallax Layers Globais */
.parallax-bg-layer {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  top: 0;
  left: 0;
}

.floating-ornament {
  position: absolute;
  opacity: 0.05;
  color: var(--red-deep);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 5rem;
  user-select: none;
  white-space: nowrap;
  will-change: transform;
}

/* Header & Barra de Navegação */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 990;
  padding: 1.25rem 2rem;
  transition: all var(--transition-normal);
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 0.8rem 2rem;
  background: rgba(253, 251, 247, 0.96);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-title);
}

.brand-monogram {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-deep), var(--red-accent));
  color: var(--bg-surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  border: 2px solid #FFF;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-title);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.72rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-deep);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  transition: color var(--transition-fast);
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red-deep);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--red-deep);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header {
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--red-border);
  background: var(--red-tint);
  color: var(--red-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-header:hover {
  background: var(--red-deep);
  color: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-title);
  font-size: 1.4rem;
}

/* ==========================================================================
   HERO SECTION (Parallax Monumental)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 2rem 5rem;
  background: linear-gradient(180deg, #FDFBF7 0%, #FAF7F2 60%, #F3ECE1 100%);
  overflow: hidden;
}

.hero-parallaxes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: 18vw;
  font-weight: 800;
  color: rgba(138, 28, 43, 0.025);
  top: 10%;
  left: -5%;
  line-height: 0.9;
  user-select: none;
  will-change: transform;
}

.hero-decor-badge {
  position: absolute;
  bottom: 8%;
  right: 6%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px dashed var(--red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--red-deep);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.5rem;
  animation: rotateBadge 60s linear infinite;
  will-change: transform;
}

@keyframes rotateBadge {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-left: 3px solid var(--red-deep);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-deep);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4.8vw, 4.5rem);
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--red-deep);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 580px;
  line-height: 1.6;
}

/* Bloco da Trova em Destaque na Hero */
.hero-quote-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-md);
  margin-top: 0.5rem;
  overflow: hidden;
}

.hero-quote-card::before {
  content: "“";
  position: absolute;
  top: -15px;
  left: 15px;
  font-family: var(--font-serif);
  font-size: 7rem;
  color: var(--red-tint-strong);
  line-height: 1;
  pointer-events: none;
}

.hero-quote-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-title);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero-quote-author {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--red-deep);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.8rem;
}

.hero-quote-origin {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-deep), var(--red-accent));
  color: var(--bg-surface);
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-red);
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-hover), var(--red-deep));
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(138, 28, 43, 0.32);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-title);
  padding: 0.95rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  background: var(--bg-warm-100);
  border-color: var(--red-border);
  color: var(--red-deep);
  transform: translateY(-3px);
}

/* Moldura do Retrato Hero */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  will-change: transform;
}

.portrait-backdrop {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--bg-warm-300), var(--bg-warm-400));
  border: 1px solid var(--border-medium);
  z-index: 1;
}

.portrait-frame {
  position: relative;
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  transition: transform var(--transition-slow);
}

.portrait-frame:hover {
  transform: translateY(-6px);
}

.portrait-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #EAE3D6;
  border: 3px solid #FFF;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.06);
}

.portrait-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: sepia(0.2) contrast(1.05);
  transition: filter var(--transition-normal), transform var(--transition-slow);
}

.portrait-frame:hover .portrait-img {
  filter: sepia(0.08) contrast(1.08);
  transform: scale(1.02);
}

.portrait-caption {
  margin-top: 1.2rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  padding-top: 0.9rem;
}

.portrait-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-title);
}

.portrait-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.portrait-floating-tag {
  position: absolute;
  bottom: -15px;
  left: -20px;
  background: var(--red-deep);
  color: #FFF;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

/* Indicador de Scroll */
.scroll-indicator-wrap {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 5;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.scroll-indicator-wrap:hover {
  color: var(--red-deep);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-medium);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--red-deep);
  border-radius: 2px;
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 10px); opacity: 0.2; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   STRIP DE FATOS E ESTATÍSTICAS
   ========================================================================== */
.stats-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.stats-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-light);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--red-deep);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0.2rem;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PADRÃO DE SEÇÕES (Containers, Headers, Divisores)
   ========================================================================== */
.section-pad {
  padding: 7rem 2rem;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4.5rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 0.8rem;
  position: relative;
}

.section-kicker::before,
.section-kicker::after {
  content: "—";
  margin: 0 0.5rem;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: var(--text-title);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Divisor Decorativo */
.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 0;
  color: var(--gold-subtle);
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium));
}

.divider-line.rev {
  background: linear-gradient(90deg, var(--border-medium), transparent);
}

.divider-icon {
  font-size: 1.1rem;
  color: var(--red-deep);
}

/* ==========================================================================
   SEÇÃO 1: BIOGRAFIA PARALLAX & LINHA DO TEMPO
   ========================================================================== */
.bio-section {
  background-color: var(--bg-warm-100);
  background-image: linear-gradient(180deg, var(--bg-warm-100) 0%, #F5EFEB 100%);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--red-deep), var(--border-medium) 85%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding: 0 3rem;
  will-change: transform, opacity;
  transition: all var(--transition-slow);
}

.timeline-item.left {
  left: 0;
  text-align: right;
  padding-left: 0;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-right: 0;
}

.timeline-dot {
  position: absolute;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 4px solid var(--red-deep);
  box-shadow: 0 0 0 4px rgba(138, 28, 43, 0.15);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item.left .timeline-dot {
  right: -10px;
}

.timeline-item.right .timeline-dot {
  left: -10px;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--red-deep);
  border-color: #FFF;
}

.timeline-card {
  background: var(--bg-surface);
  border-radius: 18px;
  padding: 2.2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red-deep);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.timeline-item:hover .timeline-card {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border-medium);
}

.timeline-item:hover .timeline-card::before {
  opacity: 1;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red-deep);
  background: var(--red-tint);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
  border: 1px solid var(--red-border);
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 0.7rem;
}

.timeline-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}

.timeline-highlight {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-warm-100);
  border-radius: 8px;
  border-left: 3px solid var(--gold-subtle);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
}

/* ==========================================================================
   SEÇÃO 2: ANTOLOGIA DE TROVAS INTERATIVA
   ========================================================================== */
.poetry-section {
  background-color: var(--bg-main);
  position: relative;
}

.poetry-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--red-deep);
  color: var(--red-deep);
}

.filter-btn.active {
  background: var(--red-deep);
  color: #FFF;
  border-color: var(--red-deep);
  box-shadow: var(--shadow-red);
}

.trovas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.trova-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem 2.2rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
}

.trova-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.trova-theme-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red-deep);
  background: var(--red-tint);
  border: 1px solid var(--red-border);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.trova-verse-body {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-title);
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1.2rem;
  border-left: 2px solid var(--red-border);
}

.trova-card:hover .trova-verse-body {
  border-left-color: var(--red-deep);
}

.trova-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1.2rem;
  font-size: 0.85rem;
}

.trova-source {
  color: var(--text-muted);
  font-style: italic;
}

.trova-actions {
  display: flex;
  gap: 0.6rem;
}

.action-icon-btn {
  background: var(--bg-warm-100);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-icon-btn:hover {
  background: var(--red-deep);
  color: #FFF;
  border-color: var(--red-deep);
}

/* ==========================================================================
   SEÇÃO 3: HINO OFICIAL DE JABOATÃO DOS GUARARAPES
   ========================================================================== */
.anthem-section {
  background: linear-gradient(135deg, #F5EFE6 0%, #EDE4D3 100%);
  position: relative;
  overflow: hidden;
}

.anthem-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 16vw;
  font-weight: 900;
  color: rgba(138, 28, 43, 0.03);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.anthem-box {
  background: var(--bg-surface);
  border-radius: 28px;
  padding: 4rem;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

.anthem-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.anthem-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--text-title);
  line-height: 1.2;
}

.anthem-credits {
  margin-top: 0.8rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.anthem-credits strong {
  color: var(--red-deep);
}

.anthem-lyrics-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.lyric-stanza {
  background: var(--bg-warm-100);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.stanza-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red-deep);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stanza-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-title);
}

.anthem-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-warm-100);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-title);
  margin-bottom: 1.2rem;
}

.sidebar-text {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.anthem-badge-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.anthem-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red-tint);
  color: var(--red-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.anthem-badge-info h5 {
  font-size: 0.9rem;
  color: var(--text-title);
  font-weight: 700;
}

.anthem-badge-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SEÇÃO 4: O JORNALISTA, A SÁTIRA & O BODE CHEIROSO
   ========================================================================== */
.press-section {
  background-color: var(--bg-main);
  position: relative;
}

.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.press-card {
  background: var(--bg-surface);
  border-radius: 24px;
  padding: 3.2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.press-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.press-card-kicker {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-deep);
  margin-bottom: 0.8rem;
}

.press-card-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 1.2rem;
}

.press-card-body {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
}

.press-quote-box {
  background: var(--bg-warm-100);
  border-radius: 12px;
  padding: 1.4rem;
  border-left: 3px solid var(--red-deep);
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-title);
}

.press-sources-box {
  background: var(--bg-warm-100);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border-medium);
  margin-top: 1.6rem;
  border-left: 4px solid var(--red-deep);
  box-shadow: var(--shadow-sm);
}

.press-sources-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  color: var(--red-deep);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.press-sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

.press-sources-list li {
  position: relative;
  padding-left: 1.2rem;
}

.press-sources-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red-deep);
  font-weight: bold;
}

.press-sources-list code {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--red-deep);
  font-family: inherit;
  font-weight: 700;
}

/* ==========================================================================
   SEÇÃO 5: BIBLIOGRAFIA COMPLETA (OS 8 LIVROS)
   ========================================================================== */
.books-section {
  background-color: var(--bg-warm-100);
  position: relative;
}

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

.book-card {
  background: var(--bg-surface);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-border);
}

.book-spine-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--red-deep), var(--red-accent));
}

.book-year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red-deep);
  margin-bottom: 0.5rem;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.book-genre {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-subtle);
  font-weight: 600;
  margin-bottom: 1rem;
}

.book-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

.book-badge-posthumous {
  margin-top: 1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--red-tint);
  color: var(--red-deep);
  width: fit-content;
}

/* ==========================================================================
   SEÇÃO 6: A FAMÍLIA POÉTICA (TRÊS GERAÇÕES)
   ========================================================================== */
.dynasty-section {
  background-color: var(--bg-main);
  position: relative;
}

.dynasty-tree {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
}

.dynasty-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.dynasty-card.featured {
  background: linear-gradient(180deg, #FFF 0%, var(--bg-warm-100) 100%);
  border: 2px solid var(--red-border);
  box-shadow: var(--shadow-md);
}

.dynasty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.dynasty-gen-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-deep);
  background: var(--red-tint);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.dynasty-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg-warm-200);
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--red-deep);
  border: 2px solid var(--border-medium);
}

.dynasty-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-title);
  margin-bottom: 0.4rem;
}

.dynasty-role {
  font-size: 0.82rem;
  color: var(--red-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}

.dynasty-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Caixa dos Filhos */
.children-box {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.8rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.children-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-title);
  margin-bottom: 1.5rem;
}

.children-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  list-style: none;
}

.child-badge {
  background: var(--bg-warm-100);
  border: 1px solid var(--border-medium);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-title);
  transition: all var(--transition-fast);
}

.child-badge:hover {
  background: var(--red-deep);
  color: #FFF;
  border-color: var(--red-deep);
}

.child-badge.highlight {
  border-color: var(--red-border);
  background: var(--red-tint);
  color: var(--red-deep);
}

/* ==========================================================================
   SEÇÃO 7: HOMENAGENS & ESPAÇOS DE MEMÓRIA
   ========================================================================== */
.tributes-section {
  background: linear-gradient(180deg, var(--bg-warm-100) 0%, var(--bg-main) 100%);
  position: relative;
}

.tributes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.tribute-card {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.tribute-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.tribute-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-tint);
  color: var(--red-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.tribute-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-title);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.tribute-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.tribute-meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border-light);
  padding-top: 0.8rem;
}

/* ==========================================================================
   MODAL DE TROVA ALEATÓRIA (LAYOUT QUADRADO PARA INSTAGRAM)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 28, 24, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Card Quadrado para Prints de Instagram (1:1 no PC) */
.modal-content.modal-square-insta {
  background: #FAF7F2;
  border-radius: 20px;
  width: 500px;
  max-width: 92vw;
  height: 500px;
  max-height: 92vh;
  aspect-ratio: 1 / 1;
  padding: 3.2rem 2.8rem 2.4rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(34, 28, 24, 0.35);
  border: 2px solid var(--border-medium);
  transform: scale(0.92);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  background-image: radial-gradient(circle at 10% 10%, rgba(138, 28, 43, 0.03) 0%, transparent 30%),
                    radial-gradient(circle at 90% 90%, rgba(194, 155, 88, 0.05) 0%, transparent 35%);
}

.modal-overlay.active .modal-content.modal-square-insta {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: 1px solid var(--border-medium);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--red-deep);
  color: #FFF;
  border-color: var(--red-deep);
}

.modal-insta-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.modal-trova-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.52rem);
  font-style: italic;
  line-height: 1.85;
  color: var(--text-title);
  text-align: center;
  margin: 0;
  white-space: pre-line;
}

.modal-insta-author {
  width: 100%;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  color: var(--red-deep);
  margin-top: 1.8rem;
  padding-right: 0.6rem;
  letter-spacing: 0.02em;
}

.modal-insta-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: 1.2rem;
}

.modal-insta-btn {
  padding: 0.75rem 2.2rem;
  font-size: 0.92rem;
  border-radius: 50px;
}

@media (max-width: 600px) {
  .modal-content.modal-square-insta {
    width: 92vw;
    height: auto;
    min-height: 420px;
    aspect-ratio: auto;
    padding: 2.5rem 1.8rem 1.8rem;
  }
}

/* Toast de Notificação (Copiado) */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-title);
  color: #FFF;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RODAPÉ MEMORIAL
   ========================================================================== */
.site-footer {
  background: #1C1714;
  color: #C8BFB5;
  padding: 5rem 2rem 2.5rem;
  border-top: 3px solid var(--red-deep);
  position: relative;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #FFF;
  margin-bottom: 0.5rem;
}

.footer-brand-subtitle {
  font-size: 0.85rem;
  color: var(--red-hover);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 440px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FFF;
  margin-bottom: 1.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  text-decoration: none;
  color: #C8BFB5;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--red-hover);
}

.footer-quote-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--red-deep);
  padding: 1.2rem;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8C8276;
}

/* ==========================================================================
   RESPONSIVIDADE (Tablets e Smartphones)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .portrait-frame-wrapper {
    max-width: 320px;
  }

  .portrait-img {
    height: 380px;
  }

  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-item:nth-child(3)::after {
    display: none;
  }

  .trovas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .anthem-box {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }

  .press-grid {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dynasty-tree {
    grid-template-columns: 1fr;
  }

  .tributes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 6rem 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    z-index: 998;
    align-items: flex-start;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
    z-index: 999;
  }

  .hero-section {
    padding-top: 7rem;
  }

  .stats-container {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item::after {
    display: none !important;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item.right {
    left: 0;
  }

  .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .trovas-grid {
    grid-template-columns: 1fr;
  }

  .anthem-lyrics-columns {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .tributes-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
