/*
Theme Name:   Elas com Dinheiro Child
Description:  Child theme do Elas com Dinheiro
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* ============================================================
   VARIÁVEIS GLOBAIS
   ============================================================ */
:root {
  --burgundy:       #B85C45;
  --burgundy-dark:  #9A4A35;
  --burgundy-light: #F7EEE9;
  --gold:           #B85C45;
  --gold-light:     #D89B88;
  --gold-pale:      #FDFAF8;
  --ink:            #1C1916;
  --muted:          #6B5F57;
  --border:         #E8E2D9;
  --off-white:      #fdfbfc;
  --max-w:          1200px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-dark); }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.tpm-announcement-bar {
  background: var(--burgundy);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.tpm-announcement-bar a { color: var(--gold-light); text-decoration: underline; }

/* ============================================================
   HEADER — sobrescreve o Astra
   ============================================================ */
#masthead,
.ast-primary-header-bar {
  border-bottom: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: none !important;
}
/* Logo text */
.ast-site-identity .site-title,
.ast-site-identity .site-title a {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 42px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
.ast-site-identity .site-title::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--burgundy);
  margin-top: 4px;
}
/* Nav */
.main-navigation a, .ast-primary-nav-wrap a {
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
}
.main-navigation a:hover, .ast-primary-nav-wrap a:hover { color: var(--burgundy) !important; }
/* CTA button */
.menu-item.nav-cta > a, li.nav-cta > a {
  background: var(--burgundy) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 2px !important;
  font-size: 12px !important;
}
.menu-item.nav-cta > a:hover { background: var(--burgundy-dark) !important; }

/* ============================================================
   HERO
   ============================================================ */
.tpm-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  animation: fadeUp 0.8s ease 0.1s both;
}
.tpm-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
}
.tpm-hero-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }

.tpm-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.tpm-hero-title em { font-style: italic; color: var(--burgundy); }

.tpm-hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 300;
}
.tpm-hero-stats { display: flex; gap: 36px; margin-bottom: 40px; }
.tpm-stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1;
}
.tpm-stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

.tpm-hero-buttons { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tpm-btn-primary {
  background: var(--burgundy); color: #fff;
  padding: 14px 28px; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  border-radius: 2px; transition: background 0.2s, transform 0.15s; display: inline-block;
}
.tpm-btn-primary:hover { background: var(--burgundy-dark); color: #fff; transform: translateY(-1px); }
.tpm-btn-secondary {
  color: var(--burgundy); font-size: 13px; letter-spacing: 0.06em; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--burgundy); padding-bottom: 2px; transition: gap 0.2s;
}
.tpm-btn-secondary:hover { gap: 12px; color: var(--burgundy); }

/* Hero Card */
.tpm-hero-card {
  background: var(--burgundy-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.tpm-hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--burgundy);
}
.tpm-card-tag {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.tpm-card-tag::before { content: '✦'; font-size: 8px; }
.tpm-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 12px;
}
.tpm-card-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; font-weight: 300; }
.tpm-card-checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.tpm-card-checklist li {
  font-size: 13px; color: var(--ink); padding: 6px 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.tpm-card-checklist li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* Form dentro do card */
.tpm-hero-card .mc4wp-form-fields { display: flex; flex-direction: column; gap: 10px; }
.tpm-hero-card .mc4wp-form-fields input[type="text"],
.tpm-hero-card .mc4wp-form-fields input[type="email"] {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 2px;
  font-family: 'Jost', sans-serif; font-size: 14px; color: var(--ink);
  background: #fff; outline: none; transition: border-color 0.2s; width: 100%;
}
.tpm-hero-card .mc4wp-form-fields input:focus { border-color: var(--burgundy); }
.tpm-hero-card .mc4wp-form-fields input[type="submit"] {
  background: var(--burgundy); color: #fff; border: none; padding: 14px;
  font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  border-radius: 2px; transition: background 0.2s; width: 100%;
}
.tpm-hero-card .mc4wp-form-fields input[type="submit"]:hover { background: var(--burgundy-dark); }
.tpm-card-privacy { font-size: 11px; color: #aaa; text-align: center; margin-top: 10px; }

/* ============================================================
   DIVIDER
   ============================================================ */
.tpm-divider { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; border-top: 1px solid var(--border); }

/* ============================================================
   PILLAR TABS
   ============================================================ */
.tpm-pillars-nav {
  max-width: var(--max-w); margin: 0 auto; padding: 32px 32px 0;
  display: flex; overflow-x: auto; animation: fadeUp 0.8s ease 0.3s both;
}
.tpm-pillars-nav a {
  flex-shrink: 0; padding: 14px 24px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap;
}
.tpm-pillars-nav a:hover { color: var(--burgundy); border-color: var(--border); }
.tpm-pillars-nav a.active { color: var(--burgundy); border-color: var(--burgundy); }

/* ============================================================
   SECTIONS
   ============================================================ */
.tpm-section { max-width: var(--max-w); margin: 0 auto; padding: 48px 32px; }
.tpm-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.tpm-section-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tpm-section-title span { color: var(--burgundy); font-style: italic; }
.tpm-section-link {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--burgundy);
  font-weight: 500; display: flex; align-items: center; gap: 6px; transition: gap 0.2s;
}
.tpm-section-link:hover { gap: 10px; }

/* ============================================================
   FEATURED GRID
   ============================================================ */
.tpm-featured-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.4s both;
}
.tpm-article-card {
  background: #fff; padding: 32px; text-decoration: none;
  color: inherit; display: block; transition: background 0.2s; position: relative;
}
.tpm-article-card:hover { background: var(--off-white); }
.tpm-article-card.tpm-featured {
  grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 480px; background: var(--burgundy-dark); padding: 40px;
}
.tpm-article-card.tpm-featured:hover { background: var(--burgundy); }
.tpm-article-card.tpm-featured::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(92,21,53,0.95) 0%, rgba(92,21,53,0.3) 60%, transparent 100%);
  pointer-events: none;
}
.tpm-article-card.tpm-featured > * { position: relative; z-index: 1; }
.tpm-article-card.tpm-featured .tpm-article-category { color: var(--gold-light); }
.tpm-article-card.tpm-featured .tpm-article-title { color: #fff; font-size: 30px; }
.tpm-article-card.tpm-featured .tpm-article-excerpt { color: rgba(255,255,255,0.7); }
.tpm-article-card.tpm-featured .tpm-article-meta { color: rgba(255,255,255,0.5); border-top-color: rgba(255,255,255,0.15); }
.tpm-article-card.tpm-featured .tpm-read-more { color: var(--gold-light); }

.tpm-article-category { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; margin-bottom: 10px; }
.tpm-article-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.2; margin-bottom: 10px; letter-spacing: -0.01em; }
.tpm-article-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; font-weight: 300; }
.tpm-article-meta {
  font-size: 11px; color: #aaa; letter-spacing: 0.06em; text-transform: uppercase;
  padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.tpm-read-more { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }

/* ============================================================
   PILLARS STRIP
   ============================================================ */
.tpm-pillars-strip { background: var(--gold-pale); border-top: 1px solid #eddfc0; border-bottom: 1px solid #eddfc0; padding: 48px 32px; }
.tpm-pillars-strip-inner { max-width: var(--max-w); margin: 0 auto; }
.tpm-pillars-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; text-align: center; margin-bottom: 28px; }
.tpm-pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #eddfc0; border: 1px solid #eddfc0; }
.tpm-pillar-item { background: var(--gold-pale); padding: 28px 20px; text-align: center; text-decoration: none; transition: background 0.2s; display: block; }
.tpm-pillar-item:hover { background: #fff; }
.tpm-pillar-icon { font-size: 28px; margin-bottom: 10px; display: block; }
.tpm-pillar-name { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
.tpm-pillar-desc { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; line-height: 1.4; }

/* ============================================================
   ARTICLES GRID
   ============================================================ */
.tpm-articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  animation: fadeUp 0.8s ease 0.5s both;
}

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.tpm-newsletter-band {
  background: var(--burgundy); padding: 72px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.tpm-newsletter-band::before {
  content: '40+'; position: absolute;
  font-family: 'Cormorant Garamond', serif; font-size: 280px; font-weight: 700;
  color: rgba(255,255,255,0.04); top: 50%; left: 50%; transform: translate(-50%,-50%);
  white-space: nowrap; pointer-events: none; letter-spacing: -0.04em;
}
.tpm-newsletter-inner { max-width: 580px; margin: 0 auto; position: relative; z-index: 1; }
.tpm-newsletter-tag {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light);
  font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.tpm-newsletter-tag::before, .tpm-newsletter-tag::after { content: ''; display: block; width: 30px; height: 1px; background: var(--gold-light); opacity: 0.5; }
.tpm-newsletter-title { font-family: 'Cormorant Garamond', serif; font-size: 44px; font-weight: 600; color: #fff; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em; }
.tpm-newsletter-title em { font-style: italic; color: var(--gold-light); }
.tpm-newsletter-subtitle { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 32px; font-weight: 300; }

.tpm-newsletter-band .mc4wp-form-fields { display: flex; max-width: 460px; margin: 0 auto 14px; }
.tpm-newsletter-band .mc4wp-form-fields input[type="email"] {
  flex: 1; padding: 14px 18px; font-family: 'Jost', sans-serif; font-size: 14px;
  border: 1px solid rgba(255,255,255,0.15); border-right: none;
  background: rgba(255,255,255,0.12); color: #fff; border-radius: 2px 0 0 2px; outline: none;
}
.tpm-newsletter-band .mc4wp-form-fields input::placeholder { color: rgba(255,255,255,0.4); }
.tpm-newsletter-band .mc4wp-form-fields input[type="submit"] {
  background: var(--gold); color: #fff; border: none; padding: 14px 24px;
  font-family: 'Jost', sans-serif; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; cursor: pointer;
  border-radius: 0 2px 2px 0; white-space: nowrap; transition: background 0.2s;
}
.tpm-newsletter-band .mc4wp-form-fields input[type="submit"]:hover { background: var(--gold-light); }
.tpm-newsletter-fine { font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 0.03em; }

/* ============================================================
   FOOTER
   ============================================================ */
.ast-footer-area, #colophon { background: var(--ink) !important; padding: 56px 32px 32px !important; }
.tpm-footer-logo-eyebrow { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.tpm-footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 600; color: #fff; line-height: 1; }
.tpm-footer-logo-line { width: 48px; height: 2px; background: var(--gold); margin: 8px 0 16px; }
.tpm-footer-about { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; font-weight: 300; max-width: 260px; }

.ast-footer-widget-area .widget-title, .footer-widget-area .widget-title {
  font-size: 10px !important; letter-spacing: 0.18em !important; text-transform: uppercase !important;
  color: rgba(255,255,255,0.5) !important; font-weight: 600 !important; margin-bottom: 16px !important;
  font-family: 'Jost', sans-serif !important;
}
.ast-footer-widget-area ul { list-style: none; padding: 0; }
.ast-footer-widget-area ul li { margin-bottom: 10px; }
.ast-footer-widget-area ul li a { font-size: 13px !important; color: rgba(255,255,255,0.35) !important; font-weight: 300 !important; }
.ast-footer-widget-area ul li a:hover { color: var(--gold-light) !important; }

.ast-footer-bar, .site-below-footer-wrap {
  background: var(--ink) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}
.ast-footer-bar *, .site-below-footer-wrap * { font-size: 11px !important; color: rgba(255,255,255,0.2) !important; }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tpm-hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px; }
  .tpm-featured-grid { grid-template-columns: 1fr; }
  .tpm-article-card.tpm-featured { grid-row: auto; min-height: 300px; }
  .tpm-pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .tpm-articles-grid { grid-template-columns: 1fr; }
  .tpm-hero-stats { gap: 20px; }
}
@media (max-width: 600px) {
  .tpm-pillars-grid { grid-template-columns: 1fr 1fr; }
  .tpm-newsletter-title { font-size: 32px; }
  .tpm-newsletter-band .mc4wp-form-fields { flex-direction: column; }
  .tpm-newsletter-band .mc4wp-form-fields input[type="email"] { border-right: 1px solid rgba(255,255,255,0.15); border-bottom: none; border-radius: 2px; }
  .tpm-newsletter-band .mc4wp-form-fields input[type="submit"] { border-radius: 2px; }
}

/* ============================================================
   CORREÇÕES DE ESPAÇAMENTO — remove padding extra do Astra
   ============================================================ */

/* Remove padding/margin que o Astra adiciona antes do conteúdo */
.ast-above-header-wrap + .site-header + * { margin-top: 0 !important; }
#content, .ast-container, .entry-content { padding-top: 0 !important; }
.ast-page-builder-template .entry-content { padding: 0 !important; }

/* Remove padding do wrapper do Astra na homepage */
.home .site-content,
.home #content,
.home .ast-container { 
  padding-top: 0 !important; 
  margin-top: 0 !important; 
}

/* Remove espaço antes do hero */
.tpm-homepage { margin-top: 0; }

/* Garante que o header fica colado à announcement bar */
#masthead { margin-top: 0 !important; }

/* Remove padding padrão do Astra no content area da homepage */
.home.page .entry-content,
.page-template-default .entry-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove o padding interno do Astra nas páginas */
.ast-separate-container .ast-article-single,
.ast-separate-container #page { padding-top: 0 !important; }

.ast-page-builder-template #content { padding: 0 !important; }

/* ============================================================
   CORREÇÃO DO BOTÃO FREE GUIDE NO NAV
   ============================================================ */
.menu-item.nav-cta,
li.nav-cta {
  display: flex !important;
  align-items: center !important;
}
.menu-item.nav-cta > a,
li.nav-cta > a {
  background: var(--burgundy) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 2px !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  height: auto !important;
  margin: auto 0 !important;
}
.menu-item.nav-cta > a:hover { background: var(--burgundy-dark) !important; }

/* Remove fundo escuro que aparece no hover do item pai */
.main-navigation .menu-item.nav-cta:hover,
.ast-primary-nav-wrap .menu-item.nav-cta:hover {
  background: transparent !important;
}

/* ============================================================
   MAILERLITE FORM — estilo do card hero
   ============================================================ */

/* Esconde título e labels do form */
.tpm-hero-card .mailerlite-form h3,
.tpm-hero-card .mailerlite-form h4,
.tpm-hero-card .mailerlite-form .form-group label,
.tpm-hero-card [class*="mailerlite"] h3,
.tpm-hero-card [class*="mailerlite"] h4,
.tpm-hero-card [class*="mailerlite"] label {
  display: none !important;
}

/* Inputs */
.tpm-hero-card .mailerlite-form input[type="text"],
.tpm-hero-card .mailerlite-form input[type="email"],
.tpm-hero-card [class*="mailerlite"] input[type="text"],
.tpm-hero-card [class*="mailerlite"] input[type="email"] {
  padding: 13px 16px !important;
  border: 1px solid var(--border) !important;
  border-radius: 2px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  color: var(--ink) !important;
  background: #fff !important;
  outline: none !important;
  width: 100% !important;
  margin-bottom: 10px !important;
  box-shadow: none !important;
}

/* Botão Subscribe → burgundy */
.tpm-hero-card .mailerlite-form input[type="submit"],
.tpm-hero-card .mailerlite-form button[type="submit"],
.tpm-hero-card [class*="mailerlite"] input[type="submit"],
.tpm-hero-card [class*="mailerlite"] button[type="submit"],
.tpm-hero-card [class*="mailerlite"] button {
  background: var(--burgundy) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  border-radius: 2px !important;
  width: 100% !important;
  transition: background 0.2s !important;
}
.tpm-hero-card [class*="mailerlite"] button:hover { background: var(--burgundy-dark) !important; }

/* Newsletter band — mesmo estilo */
.tpm-newsletter-band .mailerlite-form input[type="submit"],
.tpm-newsletter-band .mailerlite-form button[type="submit"],
.tpm-newsletter-band [class*="mailerlite"] button {
  background: var(--gold) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 24px !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border-radius: 0 2px 2px 0 !important;
  transition: background 0.2s !important;
}
.tpm-newsletter-band [class*="mailerlite"] h3,
.tpm-newsletter-band [class*="mailerlite"] h4,
.tpm-newsletter-band [class*="mailerlite"] label { display: none !important; }

/* ============================================================
   MAILERLITE FORM — corrige labels e botão (mantém labels)
   ============================================================ */

/* Esconde só o título do form, mantém labels */
.tpm-hero-card [class*="mailerlite"] h3,
.tpm-hero-card [class*="mailerlite"] h4,
.tpm-newsletter-band [class*="mailerlite"] h3,
.tpm-newsletter-band [class*="mailerlite"] h4 { display: none !important; }

/* Estilo das labels */
.tpm-hero-card [class*="mailerlite"] label {
  font-family: 'Jost', sans-serif !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
  margin-bottom: 4px !important;
  display: block !important;
}

/* Botão burgundy */
.tpm-hero-card [class*="mailerlite"] button,
.tpm-hero-card [class*="mailerlite"] input[type="submit"] {
  background: var(--burgundy) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  width: 100% !important;
  border-radius: 2px !important;
  cursor: pointer !important;
}
.tpm-hero-card [class*="mailerlite"] button:hover { background: var(--burgundy-dark) !important; }

/* ============================================================
   FIX ESPAÇO TOPO DO HERO
   ============================================================ */
.home .site-main,
.home .ast-article-single,
.home #primary,
.home .content-area {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
.home .entry-content > *:first-child { margin-top: 0 !important; }
.tpm-hero { padding-top: 60px !important; }

/* ============================================================
   NEWSLETTER BAND — inputs transparentes
   ============================================================ */
.tpm-newsletter-band [class*="mailerlite"] input[type="text"],
.tpm-newsletter-band [class*="mailerlite"] input[type="email"] {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-radius: 2px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  width: 100% !important;
  margin-bottom: 10px !important;
}
.tpm-newsletter-band [class*="mailerlite"] input::placeholder { color: rgba(255,255,255,0.4) !important; }
.tpm-newsletter-band [class*="mailerlite"] label {
  color: rgba(255,255,255,0.6) !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}
.tpm-newsletter-band [class*="mailerlite"] button {
  background: var(--gold) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 24px !important;
  font-size: 12px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border-radius: 2px !important;
  width: 100% !important;
  margin-top: 4px !important;
}
.tpm-newsletter-band [class*="mailerlite"] button:hover { background: var(--gold-light) !important; }

/* ============================================================
   FIX DEFINITIVO — espaço e alinhamento do hero
   ============================================================ */

/* Remove TODOS os paddings do Astra no wrapper de conteúdo */
.home #content,
.home #primary,
.home .site-main,
.home .ast-article-single,
.home .entry-content,
.home .entry-content > .tpm-homepage {
  padding: 0 !important;
  margin: 0 !important;
}

/* Remove margem do post wrapper */
.home .post,
.home article {
  margin: 0 !important;
  padding: 0 !important;
}

/* Alinha o hero com o header — mesmo max-width e padding lateral */
.tpm-hero {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  width: 100% !important;
}

/* Garante que o Astra não adiciona padding no container */
.ast-separate-container .ast-article-single,
.ast-no-sidebar #primary {
  padding-top: 0 !important;
}

/* ============================================================
   FIX DEFINITIVO — ast-container na homepage
   ============================================================ */
.home .ast-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  max-width: 100% !important;
}
.home #primary.site-main {
  padding-top: 0 !important;
}
.home .ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
}
.home .entry-header { display: none !important; }

/* ============================================================
   ARTICLE PAGE — formatação padrão americano
   ============================================================ */

/* Fundo branco no corpo do artigo */
.single .site-content,
.single #primary,
.single .entry-content {
  background: #fff !important;
}

/* Container do artigo — largura e padding */
.single .entry-content {
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: 48px 32px !important;
}

/* H2 destacado */
.single .entry-content h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  color: #1A1018 !important;
  margin-top: 56px !important;
  margin-bottom: 16px !important;
  line-height: 1.2 !important;
}

/* H3 */
.single .entry-content h3 {
  font-family: 'Jost', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #1A1018 !important;
  margin-top: 36px !important;
  margin-bottom: 12px !important;
}

/* Parágrafos */
.single .entry-content p {
  font-family: 'Jost', sans-serif !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #2D2D2D !important;
  margin-bottom: 24px !important;
}

/* Bold dentro do texto */
.single .entry-content strong {
  color: #1A1018 !important;
  font-weight: 600 !important;
}

/* Links */
.single .entry-content a {
  color: #7B1D46 !important;
  text-decoration: underline !important;
}

/* Meta do autor — menor e discreta */
.entry-meta {
  font-family: 'Jost', sans-serif !important;
  font-size: 13px !important;
  color: #888 !important;
  margin-bottom: 32px !important;
}

/* Título do artigo */
.single .entry-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 44px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: #1A1018 !important;
  margin-bottom: 12px !important;
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ============================================================
   PIXEL-PERFECT HOME HEADER (custom, igual ao 40+)
   ============================================================ */
.home .site-header,
.home #masthead {
  display: none !important;
}
.home .ecd-home-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.home .ecd-home-header-inner {
  max-width: none;
  margin: 0;
  padding: 34px 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.home .ecd-logo {
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.home .ecd-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px;
  font-weight: 600;
  line-height: .92;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}
.home .ecd-logo-text em {
  font-style: italic;
  color: var(--burgundy);
}
.home .ecd-logo-line {
  width: 392px;
  max-width: 100%;
  height: 3px;
  background: var(--burgundy);
  margin-top: 12px;
}
.home .ecd-home-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.home .ecd-home-nav a {
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.home .ecd-home-nav a:hover {
  color: var(--burgundy);
}
.home .ecd-home-nav .ecd-nav-cta {
  background: var(--burgundy);
  color: #fff;
  padding: 16px 26px;
  border-radius: 2px;
}
.home .ecd-home-nav .ecd-nav-cta:hover {
  background: var(--burgundy-dark);
  color: #fff;
}

/* Hero spacing after custom header */
.home .tpm-hero {
  padding-top: 86px;
}

@media (max-width: 1200px) {
  .home .ecd-logo-text { font-size: 56px; }
  .home .ecd-home-nav { gap: 28px; }
  .home .ecd-home-nav a { font-size: 15px; }
}
@media (max-width: 920px) {
  .home .ecd-home-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px 20px;
  }
  .home .ecd-home-nav {
    width: 100%;
    gap: 18px 24px;
    justify-content: flex-start;
  }
  .home .ecd-logo-text { font-size: 48px; }
  .home .ecd-logo-line { width: 280px; }
  .home .tpm-hero { padding-top: 56px; }
}
@media (max-width: 640px) {
  .home .ecd-logo-text { font-size: 40px; }
  .home .ecd-home-nav a { font-size: 13px; }
  .home .ecd-home-nav .ecd-nav-cta { padding: 13px 18px; }
}
