/* =========================== 1. VARIÁVEIS & RESET =========================== */
:root {
  --red: #D51317;
  --yellow: #ED9A00;
  --purple: #7A62A6;
  --orange: #E76B2A;
  --pink: #F36B6B;
  --wine: #B21E1E;
  --text-dark: #1D1D1B;
  --text-light: #555;
  --bg-light: #f9f6f3;
  --white: #fff;
  --border-color: #eee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", sans-serif;
  background: var(--white);
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.25s ease;
}

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

h1, h2, h3, h4 {
  color: var(--text-dark);
  font-weight: 700;
}

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

/* Espaçamentos Padrão */
section {
  padding: 50px 0;
  position: relative;
}

/* Espaçamentos Compactos (A Escola) */
section.compact-section { padding: 36px 0; }
section.compact-section-top { padding-top: 36px; padding-bottom: 36px; }

.bg-light { background: var(--bg-light); }

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red) !important;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.15rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px auto;
}

.lead { font-size: 1.15rem; }

/* UTILIDADES */
.text-white { color: #fff !important; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 40px; }

/* =========================== 2. BOTÕES & LINKS =========================== */
.btn {
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: var(--yellow);
  color: var(--text-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(237, 154, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--red);
  border: 2px solid var(--red);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--text-dark);
}

.btn-large { padding: 14px 26px; }

/* =========================== 3. TOPBAR & HEADER =========================== */
.topbar {
  background: var(--red);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--white);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.topbar a { color: var(--white) !important; }
.topbar a:hover { color: var(--yellow) !important; }

.topbar .social {
  display: flex;
  gap: 16px;
}

.topbar .social svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: 0.3s ease;
}

/* DESKTOP: mantém grid */
.header__content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 15px 24px;
}

.header__logo {
  height: 60px;
  object-fit: contain;
}

/* Menu Desktop */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 8px 14px;
  border-radius: 50px;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link .arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

/* Hover Duplo */
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: 0.3s ease;
}

.nav__link:hover {
  color: var(--white);
  background: var(--red);
}

.nav__link:hover::after { width: 60%; }
.nav__link:hover .arrow-icon { transform: rotate(180deg); }

.nav__link.active-page {
  color: var(--red);
  background: transparent;
}

/* Dropdown Desktop */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 10px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 110;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.9rem;
  border-radius: 8px;
  transition: 0.2s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--red);
}

/* Botão Agende Header */
.nav__cta {
  padding: 10px 24px;
  background: var(--red);
  color: var(--white);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.header__cta { justify-self: end; }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  min-height: 69dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url("hero-banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* overlay de contraste */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.40) 45%, rgba(0, 0, 0, 0.15) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero__title {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
  line-height: 1.75;
  font-weight: 500;
  max-width: 780px;
  margin: 0 auto 20px auto;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-scroll-hint {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 10px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-btns {
  margin-top: 26px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #1D1D1B;
}

/* WAVE DIVIDER UNIVERSAL */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ✅ NÃO deixar overlay / wave bloquear clique nos botões (desktop) */
.hero::after {
  pointer-events: none;
}

.wave-divider,
.wave-divider svg {
  pointer-events: none;
}

/* ✅ Garante que o conteúdo clicável fica acima de qualquer camada */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero-btns,
.hero-btns a {
  position: relative;
  z-index: 3;
}
 

/* =========================== COUNTER + SCROLL INDICATOR =========================== */
.counter-section {
  padding: 40px 0 60px 0;
  position: relative;
  background: var(--white);
}

.scroll-indicator {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(213, 19, 23, 0.5);
  border-radius: 999px;
  margin: 0 auto 26px auto;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: scrollDot 1.3s infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(18px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

.premium-counter.center { text-align: center; }

.counter-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(213, 19, 23, 0.06);
  border: 1px solid rgba(213, 19, 23, 0.18);
}

.counter-prefix,
.counter-suffix {
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.counter-number {
  font-weight: 900;
  color: var(--text-dark);
  font-size: 2.2rem;
  line-height: 1;
}

.badge-text {
  margin-top: 12px;
  font-weight: 700;
  color: var(--text-dark);
  opacity: 0.92;
}

/* =========================== MANIFESTO VISUAL =========================== */
.manifesto-visual {
  background: var(--bg-light);
  padding: 70px 0;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}

.manifesto-text {
  background: #fff;
  border-radius: 18px;
  padding: 22px 22px 18px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.manifesto-text p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 10px;
}

.manifesto-text span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(213, 19, 23, 0.06);
  border: 1px solid rgba(213, 19, 23, 0.18);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.manifesto-image {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
  border: 8px solid #fff;
}

.manifesto-img-frame {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =========================== 5. SOBRE NÓS =========================== */
#casa { z-index: 3; }

.about-container {
  width: 100%;
  max-width: 1200px;
}

.highlight-box-red {
  background: var(--red);
  color: var(--white);
  padding: 30px;
  border-radius: 18px;
  text-align: center;
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 20px auto 40px auto;
  border: 4px solid var(--yellow);
  box-shadow: 0 10px 30px rgba(213, 19, 23, 0.3);
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
}

.about-content-below {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--red);
  transition: transform 0.3s ease;
}

.about-content-below:hover { transform: translateY(-5px); }

.about-highlight {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 16px;
}

.lead-text {
  color: var(--red);
  font-weight: 700;
  font-size: 1.2rem !important;
}

/* =========================== 6. ELEMENTOS PÁGINA INTERNA =========================== */
.page-hero {
  height: 50vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.page-hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: 40px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.feature-row.reverse { direction: rtl; }
.feature-row.reverse .feature-text { direction: ltr; }

.feature-text h2 { text-align: left; margin-bottom: 16px; }
.feature-text p { text-align: left; margin-bottom: 16px; color: var(--text-light); }

.feature-image img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Quote Box */
.quote-box {
  position: relative;
  padding: 26px 26px 22px 30px;
  margin: 26px 0;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(237, 154, 0, 0.14), transparent 55%),
              radial-gradient(circle at 85% 0%, rgba(213, 19, 23, 0.14), transparent 60%),
              linear-gradient(135deg, rgba(213, 19, 23, 0.08), rgba(237, 154, 0, 0.06));
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
  color: var(--text-dark);
  text-align: left;
}

.quote-box cite {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(213, 19, 23, 0.20);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-style: normal;
}

.founder-box {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  margin-top: 20px;
  text-align: left;
}

.founder-box strong {
  display: block;
  color: var(--red);
  margin-top: 10px;
}

.premium-divider {
  height: 4px;
  width: 100px;
  background: linear-gradient(to right, var(--red), var(--yellow));
  margin: 40px auto;
  border-radius: 2px;
}

/* =========================== VIDEO HOME =========================== */
.video-home { background: var(--bg-light); }
.video-home .section-title { margin-bottom: 22px; }

.video-container-wrapper {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.video-half { padding-top: 10px; }

.video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  background: #000;
}

.video-portrait {
  aspect-ratio: 9 / 16;
  max-width: 420px;
}

.video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sound-toggle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 5;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: var(--text-dark);
  box-shadow: 0 10px 25px rgba(0,0,0,0.22);
  transition: 0.2s ease;
}

.sound-toggle:hover { transform: translateY(-2px); }

.sound-toggle.is-on {
  background: rgba(237, 154, 0, 0.95);
}

.video-caption {
  text-align: center;
  margin-top: 18px;
  color: var(--text-dark);
  font-weight: 600;
  opacity: 0.9;
}

.video-caption strong { color: var(--red); }
.video-caption a { color: var(--red); text-decoration: underline; }

/* Botões Matrículas + WhatsApp abaixo da caption (index) — desktop e mobile, lado a lado */
.video-home-mobile-ctas {
  display: flex;
  margin-top: 20px;
  padding: 0 16px;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.video-home-mobile-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 700;
}
.video-home-cta-whatsapp {
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
}
.video-home-cta-whatsapp:hover {
  background: #20bd5a !important;
  color: #fff !important;
  transform: translateY(-2px);
}
.video-home-cta-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* Botões logo abaixo do banner (index) — sempre lado a lado, inclusive no mobile */
.hero-below-ctas {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  background: var(--red);
  text-align: center;
  position: relative;
  z-index: 10;
}
.hero-below-ctas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
}
.hero-below-cta-whatsapp svg,
.hero-below-ctas .video-home-cta-whatsapp svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 480px) {
  .hero-below-ctas {
    gap: 8px;
    padding: 16px 12px;
  }
  .hero-below-ctas .btn {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* =========================== 7. CARROSSEL PREMIUM =========================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 60px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
}

.carousel-container.premium-carousel,
.carousel-container.premium-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: #fff;
  border: 10px solid #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #fff;
  color: var(--red);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 20;
  transition: all 0.3s ease;
}

.carousel-btn svg { width: 22px; height: 22px; }

.carousel-btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 10px 25px rgba(213, 19, 23, 0.4);
}

.prev-btn { left: -10px; }
.next-btn { right: -10px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(2px);
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* =========================== 8. TABS & CARDS =========================== */
#proposta { background: var(--white); }

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  color: var(--text-light);
  border: 2px solid #eee;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 10px rgba(213, 19, 23, 0.3);
}

.tab-btn i { width: 18px; }

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active { display: block; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.card {
  background: var(--white);
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  border-top: 4px solid var(--yellow);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.card:nth-child(2) { border-top-color: var(--purple); }
.card:nth-child(3) { border-top-color: var(--pink); }

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card.no-hover-effect:hover {
  transform: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.text-red { color: var(--red); }
.text-yellow { color: var(--yellow); }

.card p {
  flex-grow: 1;
  font-size: 1rem;
  color: var(--text-light);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-light);
  color: var(--text-dark);
  margin-bottom: 20px;
}

.card-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* =========================== 9. CONTATO =========================== */
#contato {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
}

#contato.bg-red-logo::before {
  content: '';
  position: absolute;
  z-index: 1;
  opacity: 0.15;
  width: 500px;
  height: 500px;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  background-image: url('./img/downloaded/uploads/logo_branco-casa.png');
  background-size: contain;
  background-repeat: no-repeat;
}

#contato .section-title { color: var(--white) !important; }
#contato .section-subtitle { color: #f0f0f0 !important; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(0, 0, 0, 0.1);
  padding: 40px;
  border-radius: 18px;
  z-index: 2;
  position: relative;
}

.contact-info h3, .contact-action h3 {
  font-size: 1.6rem;
  color: var(--yellow);
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-info h3 svg, .contact-action h3 svg { width: 20px; height: 20px; }

.contact-info .unit h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.contact-info .unit p {
  color: #eee;
  font-size: 0.95rem;
}

.contact-action .btn {
  background: var(--yellow);
  color: var(--text-dark);
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.contact-action .btn svg { width: 18px; height: 18px; }

/* =========================== 10. FOOTER =========================== */
footer {
  background: var(--text-dark);
  padding-top: 40px;
  color: #aaa;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-logo {
  height: 40px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--yellow); padding-left: 4px; }
.footer-col p { color: #ccc; }

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
}

/* =========================== 11. UTILS & FABS =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }

.no-js .fade-in {
  opacity: 1 !important;
  transform: none !important;
}

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

.whats-fab, .scroll-top-btn, .matriculas-fab {
  position: fixed;
  z-index: 9999;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: env(safe-area-inset-bottom);
}

.whats-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  bottom: 30px;
  right: 30px;
  display: grid;
  place-items: center;
  color: #fff;
}
.whats-fab svg { width: 22px; height: 22px; stroke: #fff; }

.scroll-top-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red);
  bottom: 100px;
  right: 35px;
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.scroll-top-btn svg { width: 20px; height: 20px; stroke: #fff; }

.scroll-top-btn.active {
  opacity: 1;
  pointer-events: auto;
}

.matriculas-fab {
  background: var(--yellow);
  color: var(--text-dark);
  bottom: 30px;
  left: 30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* FABs: visíveis no desktop, ocultos no mobile (todas as páginas) */
@media (max-width: 768px) {
  .whats-fab,
  .scroll-top-btn,
  .matriculas-fab {
    display: none !important;
  }
}

/* =========================== 12. MOBILE MENU & RESPONSIVE =========================== */
.hamburger {
  display: none;
  width: 34px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 200;
  margin-left: auto;
}

.hamburger span {
  height: 3px;
  background: var(--red);
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: none;
  height: 100vh;
  background: #fff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 80px 24px;
  gap: 16px;
  transition: 0.4s ease;
  z-index: 150;
  overflow-y: auto;
}

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

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 140;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}

.nav-mobile a:active, .nav-mobile a:hover {
  background: rgba(237, 154, 0, 0.15);
  color: var(--red);
  padding-left: 16px;
}

/* DROPDOWN MOBILE */
.nav-mobile .dropdown-menu {
  display: none;
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  padding: 6px 0 6px 14px;
  margin: 6px 0 10px 0;
  border-left: 3px solid rgba(213, 19, 23, 0.2);
}

.nav-mobile .dropdown.open .dropdown-menu { display: block; }
.nav-mobile .dropdown-trigger { justify-content: space-between; width: 100%; }
.nav-mobile .dropdown.open .arrow-icon { transform: rotate(180deg); }

.nav-mobile .dropdown-menu a {
  font-size: 0.95rem;
  padding: 8px 10px;
  color: var(--text-light);
  border-radius: 6px;
}
.nav-mobile .dropdown-menu a:hover {
  background: rgba(237, 154, 0, 0.12);
  color: var(--red);
  padding-left: 14px;
}

/* Elementos adicionais da Escola e Etapas */
.poetic-list {
  list-style: none;
  margin: 20px 0;
  padding-left: 15px;
  border-left: 3px solid var(--yellow);
}
.poetic-list li {
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.scrollable-text-content p {
  margin-bottom: 16px;
  text-align: justify;
}

.custom-list { list-style: none; margin-top: 15px; }
.custom-list li { position: relative; padding-left: 20px; margin-bottom: 12px; }
.custom-list li::before {
  content: "•";
  color: var(--red);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.highlight-block {
  background: #fff;
  border-left: 5px solid var(--red);
  padding: 30px;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

/* =========================== 13. RESPONSIVO / MEDIA QUERIES =========================== */
@media (max-width: 1100px) {
  .topbar { display: none !important; }

  /* Troca Grid por Flex */
  .header__content {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 15px 24px;
  }

  .nav { display: none !important; }
  .header__cta { display: none !important; }
  .hamburger { display: flex !important; }

  .hero {
    height: auto;
    min-height: 69dvh;
    background-image: url("hero-banner.jpg");
    background-size: cover;
    background-position: center;
    padding-bottom: 140px;
  }

  .hero__title { font-size: 2.2rem; }

  .hero-btns {
    flex-direction: column;
    width: 90%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .btn { width: 100%; }

  .manifesto-grid {
    grid-template-columns: 1fr;
  }
  .manifesto-image { order: -1; }

  .page-hero {
    height: auto;
    min-height: 300px;
    padding: 100px 0 60px 0;
  }

  .page-hero__bg { background-attachment: scroll; }

  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }

  .feature-image { order: -1; }

  .carousel-wrapper { flex-direction: column; }

  .carousel-container.premium-carousel {
    height: 300px;
    margin: 20px 0;
  }

  .carousel-container.premium-frame {
    aspect-ratio: 4/3;
    border-width: 5px;
  }

  .carousel-btn {
    margin: 0 10px;
    width: 40px;
    height: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  #contato.bg-red-logo::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; }

  .highlight-box-red {
    font-size: 1.2rem;
    padding: 24px;
  }

  .video-portrait { max-width: 360px; }

  /* Vídeo portrait do index: limita altura no mobile para não cortar (mantém proporção) */
  .video-home .video-responsive.video-portrait {
    max-height: 75vh;
  }
}

/* Carrossel “Imagens que Narram” (home, nossas-casas, culminancias): 1 slide por vez no mobile */
@media (max-width: 768px) {
  .carousel-wrapper.premium-gallery {
    padding: 0 12px;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .carousel-wrapper.premium-gallery .carousel-container.premium-frame {
    max-height: 52vh;
    min-height: 220px;
    border-width: 4px;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
  }
  .carousel-wrapper.premium-gallery .carousel-track {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
  }
  .carousel-wrapper.premium-gallery .carousel-slide {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    height: 100%;
  }
  .carousel-wrapper.premium-gallery .carousel-slide img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    display: block;
  }
  .carousel-wrapper.premium-gallery .carousel-btn {
    width: 36px;
    height: 36px;
  }
  .carousel-wrapper.premium-gallery .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* =========================================================
   MENU MOBILE — dropdowns estáveis + setinha + texto quebrando
   (deixe como ÚLTIMO bloco do style.css)
========================================================= */

.nav-mobile,
.nav-mobile * {
  box-sizing: border-box;
}

.nav-mobile a,
.nav-mobile .dropdown-menu a {
  white-space: normal;
  overflow: visible;
}

/* dropdown menu dentro do painel mobile */
.nav-mobile .dropdown-menu {
  display: none;                 /* fechado por padrão */
  position: static !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;

  opacity: 1 !important;
  visibility: visible !important;

  width: 100% !important;
  min-width: 0 !important;

  box-shadow: none !important;
  border-radius: 0 !important;

  padding: 6px 0 6px 14px !important;
  margin: 6px 0 10px 0 !important;
  border-left: 3px solid rgba(213, 19, 23, 0.2) !important;

  background: transparent !important;
}

.nav-mobile .dropdown-menu::before {
  display: none !important;
}

.nav-mobile .dropdown.open .dropdown-menu {
  display: block !important;
}

/* garante alinhamento do trigger + seta */
.nav-mobile .dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-mobile .dropdown.open .arrow-icon {
  transform: rotate(180deg);
}


/* =========================================================
   PAGE: FUNDAMENTAL I — POLIMENTO VISUAL
   (colar no FINAL do style.css)
========================================================= */

/* 1) Hero do Fundamental: overlay mais elegante + texto mais legível */
.page-fundamental .page-hero {
  background-size: cover;
  background-position: center;
  min-height: clamp(420px, 55vh, 640px);
  position: relative;
}

.page-fundamental .page-hero__overlay {
  /* deixa o texto sempre legível */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,.10) 100%
  ) !important;
}

.page-fundamental .page-hero__content {
  padding: 84px 0 70px;
  max-width: 920px;
}

.page-fundamental .hero__title{
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.page-fundamental .page-hero .lead{
  max-width: 820px;
  margin-top: 14px;
  font-size: clamp(1.02rem, 1.1vw + 0.9rem, 1.25rem);
  line-height: 1.65;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* 2) Seções: espaçamento mais “premium” */
.page-fundamental .content-section{
  padding: 70px 0;
}

.page-fundamental .content-section.bg-light{
  padding: 78px 0;
}

/* 3) Feature row: mais grid, mais respiro, imagem com moldura */
.page-fundamental .feature-row{
  gap: clamp(22px, 3vw, 54px);
  align-items: center;
}

.page-fundamental .feature-text p{
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-light);
}

.page-fundamental .feature-image img{
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
  transform: translateZ(0);
}

/* 4) Highlight block vira “cartão” de destaque */
.page-fundamental .highlight-block{
  margin: 18px 0 18px;
  border-radius: 18px;
  padding: 18px 18px;
  background: linear-gradient(
    135deg,
    rgba(213,19,23,.10),
    rgba(122,98,166,.08)
  );
  border: 1px solid rgba(0,0,0,.06);
}

.page-fundamental .highlight-block p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* 5) “Como Educamos?” — cards com layout melhor */
.page-fundamental .steps-grid{
  gap: 18px;
}

.page-fundamental .step-card{
  position: relative;
  border-radius: 18px;
  padding: 20px 18px 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  overflow: hidden;
}

.page-fundamental .step-card::before{
  content:"";
  position:absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(122,98,166,.10), transparent 55%),
              radial-gradient(circle at 100% 40%, rgba(213,19,23,.08), transparent 60%);
  pointer-events: none;
}

.page-fundamental .step-number{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(122,98,166,.14);
  color: #4f3f79;
  margin-bottom: 10px;
  position: relative;
}

.page-fundamental .step-card h3{
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  position: relative;
}

.page-fundamental .step-card p{
  font-size: .98rem;
  line-height: 1.65;
  color: var(--text-light);
  position: relative;
}

/* 6) Bloco vídeo + texto: alinhamento e moldura */
.page-fundamental .two-columns{
  gap: clamp(18px, 3vw, 50px);
  align-items: center;
}

.page-fundamental .video-responsive{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
}

.page-fundamental .text-block p{
  font-size: 1.02rem;
  line-height: 1.75;
}

/* 7) Títulos: um pouco mais de presença */
.page-fundamental .section-title{
  letter-spacing: -0.02em;
}

.page-fundamental .section-subtitle{
  max-width: 820px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* 8) Mobile: hero e seções mais compactas + cards respirando */
@media (max-width: 768px){
  .page-fundamental .page-hero__content{
    padding: 74px 0 52px;
  }

  .page-fundamental .content-section{
    padding: 56px 0;
  }

  .page-fundamental .step-card{
    padding: 18px 16px 16px;
  }

  .page-fundamental .feature-image img,
  .page-fundamental .video-responsive{
    border-radius: 16px
  }
  }
  
  /* =========================================================
   FIX DEFINITIVO: YouTube iframe pequeno no canto
   (colar no FINAL do style.css)
========================================================= */

/* 16:9 só para vídeos landscape (não aplicar ao .video-portrait do index) */
.video-responsive:not(.video-portrait){
  width: 100% !important;
  position: relative !important;
  height: 0 !important;
  padding-top: 56.25% !important; /* 16:9 */
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #000 !important;
}

.video-responsive iframe{
  position: absolute !important;
  inset: 0 !important;           /* top/right/bottom/left = 0 */
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* =========================================================
   DOC PED — layout premium (colar no FINAL do style.css)
========================================================= */

.docPed{
  margin-top: 10px;
}

.docPed .section-subtitle{
  max-width: 900px;
}

/* GRID geral */
.docPed__grid{
  display: grid;
  grid-template-columns: 1.65fr .95fr;
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}

/* Texto */
.docPed__text{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

/* Parágrafos em 2 colunas (quando cabe) */
.docPed__columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 14px;
}

.docPed__columns p{
  margin: 0;
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1.02rem;
}

/* Lista */
.docPed__list{
  list-style: none;
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(213,19,23,.08), rgba(237,154,0,.06));
  border: 1px solid rgba(0,0,0,.06);
}

.docPed__list li{
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  font-weight: 700;
  color: var(--text-dark);
}

.docPed__list li::before{
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--red);
  font-weight: 900;
}

/* Aside (card do Loris) */
.docPed__aside{
  position: sticky;
  top: 110px; /* abaixo do header sticky */
}

/* Card */
.docPed__card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-top: 4px solid var(--yellow);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  overflow: hidden;
}

.docPed__avatar{
  width: 100%;
  max-width: 280px;
  margin: 0 auto 14px auto;
  display: block;
  border-radius: 16px;
  border: 8px solid #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  object-fit: cover;
}

.docPed__cardBody{
  text-align: left;
}

.docPed__cardQuote{
  margin: 0;
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.6;
  font-size: 1.02rem;
}

.docPed__cardName{
  display: block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 900;
}

.docPed__cardRole{
  display: block;
  margin-top: 4px;
  color: var(--text-light);
  font-weight: 600;
  font-size: .95rem;
}

/* Responsivo */
@media (max-width: 980px){
  .docPed__grid{ grid-template-columns: 1fr; }
  .docPed__aside{ position: static; }
  .docPed__columns{ grid-template-columns: 1fr; }
  .docPed__avatar{ max-width: 340px; }
}


/* =========================================================
   PAGE: ETAPAS — ESTILIZAÇÃO (colar no FINAL do style.css)
========================================================= */

/* utilitários da página */
.page-etapas .pt-0 { padding-top: 0 !important; }
.page-etapas .pb-large { padding-bottom: 110px !important; }

.page-etapas .pill-tag{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(213, 19, 23, 0.07);
  border: 1px solid rgba(213, 19, 23, 0.18);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

/* HERO */
.stage-hero{
  position: relative;
  padding: 110px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(237,154,0,.18), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(122,98,166,.16), transparent 60%),
    linear-gradient(180deg, rgba(213,19,23,.08), rgba(249,246,243,1) 55%);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.stage-hero::before{
  content:"";
  position:absolute;
  inset:-40px -60px auto -60px;
  height: 260px;
  background: radial-gradient(circle at 30% 40%, rgba(213,19,23,.14), transparent 60%);
  filter: blur(2px);
  pointer-events:none;
}

.hero-text-center{
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.page-etapas .stage-hero .hero__title{
  color: var(--text-dark);
  text-shadow: none;
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}

.page-etapas .stage-hero .section-subtitle{
  margin-bottom: 0;
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* GRID CARDS */
.stages-grid-vibrant{
  margin-top: 24px; /* “encosta” no hero e dá cara premium */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* CARD BASE */
.vibrant-card{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 55px rgba(0,0,0,.10);
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
}

.vibrant-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,0,0,.14);
}

.vibrant-card::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 12% 0%, rgba(255,255,255,.35), transparent 55%);
  pointer-events:none;
}

.card-bg-icon{
  position: absolute;
  right: -8px;
  top: -10px;
  width: 90px;
  height: 90px;
  border-radius: 24px;
  opacity: .14;
  display: grid;
  place-items: center;
  transform: rotate(10deg);
  pointer-events: none;
  z-index: 2;
}

.card-bg-icon svg{
  width: 44px;
  height: 44px;
}

/* imagem */
.card-image-wrapper{
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image-wrapper img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.vibrant-card:hover .card-image-wrapper img{
  transform: scale(1.06);
}

.card-image-wrapper::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.00) 45%, rgba(0,0,0,.22) 100%);
  pointer-events:none;
}

/* conteúdo */
.card-content{
  position: relative;
  z-index: 3;
  padding: 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.card-content h3{
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.card-content p{
  margin: 0;
  color: var(--text-light);
  line-height: 1.75;
  font-size: 1.0rem;
}

/* badge idade */
.age-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  color: var(--text-dark);
}

/* botão circular */
.btn-circle{
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 6px;
  margin-left: auto;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.btn-circle svg{
  width: 18px;
  height: 18px;
}

.vibrant-card:hover .btn-circle{
  transform: translateX(2px);
}

/* variações de cor por card */
.card-yellow{
  border-top: 4px solid var(--yellow);
}
.card-yellow .card-bg-icon{
  background: rgba(237,154,0,.35);
}
.card-yellow .btn-circle{
  color: var(--yellow);
}

.card-red{
  border-top: 4px solid var(--red);
}
.card-red .card-bg-icon{
  background: rgba(213,19,23,.30);
}
.card-red .btn-circle{
  color: var(--red);
}

.card-purple{
  border-top: 4px solid var(--purple);
}
.card-purple .card-bg-icon{
  background: rgba(122,98,166,.35);
}
.card-purple .btn-circle{
  color: var(--purple);
}

/* deixa o card inteiro clicável sem “sublinhar” */
.vibrant-card,
.vibrant-card:hover{
  text-decoration: none;
}

/* responsivo */
@media (max-width: 1100px){
  .stages-grid-vibrant{
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .card-image-wrapper{ height: 240px; }
  .page-etapas .pb-large{ padding-bottom: 80px !important; }
}


/* WAVE da Primeiríssima (classe hero-wave) */
.page-hero { position: relative; } /* garantia */

.hero-wave{
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  z-index: 4;          /* acima do overlay */
  pointer-events: none;
}

.hero-wave svg{
  display: block;
  width: 100%;
  height: 120px;       /* ajuste se quiser maior/menor */
}

.hero-wave path{
  fill: var(--red);    /* ou #D51317 */
}


/* =========================================================
   CURRÍCULO — AJUSTES (ESCOPADO)
   ========================================================= */
.page-curriculo .card-long-text{
  text-align:left;
  border-top-width:6px;
}
.page-curriculo .card-long-text h3{ margin-bottom:20px; font-size:1.5rem; }
.page-curriculo .card-long-text p{
  font-size:1rem;
  line-height:1.8;
  color:#444;
  margin-bottom:15px;
}

/* Ícones por imagem (igual home) */
.page-curriculo .card-icon img{
  width:48px;
  height:48px;
  object-fit:contain;
}



.voice-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(320px, 1fr));
  gap:42px;
  margin-top:40px;
}
.voice-card{ text-align:center; }
.voice-media{
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:22px;
  border:8px solid #fff;
  box-shadow:0 18px 55px rgba(0,0,0,.16);
  margin-bottom:22px;
  background:#000;
}
.voice-media video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* =========================================================
   ARTIGOS — MODELO A & MODELO B (SEM MUDAR HTML)
   Cole no FINAL do style.css
   ========================================================= */

/* Base comum pros dois modelos */
body.model-a,
body.model-b{
  background:#f9f6f3;
  color: var(--text-dark, #1D1D1B);
}

/* Container do artigo */
body.model-a .article-container,
body.model-b .article-container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 80px;
}

/* Botão voltar */
body.model-a .btn-back,
body.model-b .btn-back{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:800;
  color: var(--text-dark, #1D1D1B);
  background:#fff;
  border:1px solid rgba(0,0,0,.07);
  border-radius:999px;
  padding:12px 16px;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  margin: 28px 0 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.model-a .btn-back:hover,
body.model-b .btn-back:hover{
  transform: translateY(-2px);
  box-shadow:0 18px 45px rgba(0,0,0,.10);
}
body.model-a .btn-back i,
body.model-b .btn-back i{
  width:18px; height:18px;
}

/* Intro */
body.model-a .intro-text,
body.model-b .intro-text{
  background:#fff;
  border:1px solid rgba(0,0,0,.05);
  border-radius:18px;
  padding:26px 28px;
  box-shadow:0 14px 35px rgba(0,0,0,.06);
  color:#444;
  line-height:1.85;
  font-size:1.05rem;
  margin: 0 0 28px;
}

/* =========================================================
   MODELO A — layout “revista” com blocos lado a lado
   (classes usadas: .article-hero .hero-title .hero-subtitle
                    .content-block .text-box .image-box .img-frame .quote-box)
   ========================================================= */

body.model-a .article-hero{
  padding: 80px 0 34px;
  background: linear-gradient(180deg, rgba(213,19,23,.08) 0%, rgba(237,154,0,.06) 55%, rgba(249,246,243,1) 100%);
}
body.model-a .article-hero .container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  text-align:center;
}
body.model-a .article-hero .hero-title{
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  color: var(--text-dark, #1D1D1B);
  margin: 14px 0 10px;
}
body.model-a .article-hero .hero-subtitle{
  font-size: 1.1rem;
  line-height: 1.75;
  color:#555;
  max-width: 820px;
  margin: 0 auto;
}

body.model-a .content-block{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
  align-items:center;
  margin: 26px 0 34px;
}
body.model-a .content-block.reverse{
  grid-template-columns: 1fr 1.2fr;
}
body.model-a .content-block.reverse .text-box{ order: 2; }
body.model-a .content-block.reverse .image-box{ order: 1; }

body.model-a .text-box{
  background:#fff;
  border-radius:20px;
  padding: 30px 30px;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 16px 45px rgba(0,0,0,.07);
}
body.model-a .text-box h2{
  font-size: 1.6rem;
  margin: 0 0 14px;
  color: var(--text-dark, #1D1D1B);
}
body.model-a .text-box p{
  margin: 0 0 14px;
  color:#444;
  line-height:1.9;
  font-size:1.02rem;
}
body.model-a .text-box p:last-child{ margin-bottom:0; }

body.model-a .image-box{
  border-radius:22px;
  overflow:hidden;
  background:#000;
  box-shadow:0 18px 55px rgba(0,0,0,.14);
  border:8px solid #fff;
}
body.model-a .img-frame{
  width:100%;
  height:auto;
  display:block;
}

/* Quote central do Modelo A */
body.model-a .quote-box{
  margin: 34px 0;
  background:#fff;
  border-left:6px solid var(--red, #D51317);
  border-radius:18px;
  padding: 26px 28px;
  font-family:"Playfair Display", serif;
  font-style: italic;
  font-size:1.2rem;
  line-height:1.7;
  color:#333;
  box-shadow:0 14px 40px rgba(0,0,0,.06);
}

/* =========================================================
   MODELO B — layout “reportagem” com imagens grandes + cards
   (classes usadas: .hero-journal .tag-cat .hero-title
                    .report-image .highlights-grid .highlight-card)
   ========================================================= */

body.model-b .hero-journal{
  padding: 90px 0 40px;
  background: radial-gradient(circle at 20% 10%, rgba(122,98,166,.12) 0%, rgba(213,19,23,.06) 45%, rgba(249,246,243,1) 100%);
}
body.model-b .hero-journal .container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  text-align:left;
}
body.model-b .tag-cat{
  display:inline-block;
  padding: 10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.06);
  font-weight:900;
  letter-spacing:.8px;
  font-size:.78rem;
  text-transform:uppercase;
}
body.model-b .hero-title{
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height:1.12;
  font-weight:900;
  color: var(--text-dark, #1D1D1B);
}

/* Imagens “report” */
body.model-b .report-image{
  width:100%;
  display:block;
  margin: 24px 0;
  border-radius: 18px;
  box-shadow:0 18px 55px rgba(0,0,0,.14);
  border: 8px solid #fff;
}

/* Texto comum */
body.model-b .article-container h2{
  margin: 26px 0 10px;
  color: var(--text-dark, #1D1D1B);
  font-size: 1.55rem;
}
body.model-b .article-container p{
  color:#444;
  line-height:1.9;
  font-size:1.03rem;
  margin: 0 0 14px;
}

/* Cards destaque */
body.model-b .highlights-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 20px;
}
body.model-b .highlight-card{
  background:#fff;
  border-radius:18px;
  padding: 22px 22px;
  border-left:6px solid var(--red, #D51317);
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 14px 40px rgba(0,0,0,.07);
}
body.model-b .highlight-card h3{
  margin: 0 0 10px;
  font-size:1.2rem;
  color: var(--text-dark, #1D1D1B);
}
body.model-b .highlight-card p{
  margin:0;
  color:#444;
  line-height:1.85;
  font-size:1.02rem;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 980px){
  body.model-a .content-block,
  body.model-a .content-block.reverse{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  body.model-a .content-block.reverse .text-box,
  body.model-a .content-block.reverse .image-box{
    order: initial;
  }
  body.model-b .highlights-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  body.model-a .article-hero{ padding: 70px 0 26px; }
  body.model-b .hero-journal{ padding: 78px 0 30px; }

  body.model-a .text-box{ padding: 22px 20px; }
  body.model-a .quote-box{ padding: 20px 18px; font-size:1.08rem; }

  body.model-a .image-box,
  body.model-b .report-image{
    border-width:6px;
  }
}


/* =========================================================
   PATCH MOBILE — página infantil (sem mexer em HTML)
   ========================================================= */
body.page-infantil {
  overflow-x: hidden; /* corta qualquer "vazamento" */
}

/* Segurança geral: nada pode ultrapassar a viewport */
body.page-infantil img,
body.page-infantil video,
body.page-infantil iframe {
  max-width: 100%;
}

/* Container: garante padding lateral no mobile */
@media (max-width: 768px) {
  body.page-infantil .container {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* HERO: título e lead não estourarem */
@media (max-width: 768px) {
  body.page-infantil .page-hero {
    background-position: center;
  }

  body.page-infantil .page-hero__content .hero__title {
    font-size: 2.1rem;
    line-height: 1.15;
    word-break: break-word;
  }

  body.page-infantil .page-hero__content .lead {
    font-size: 1.05rem;
    line-height: 1.5;
  }

  body.page-infantil .wave-divider {
    height: 95px; /* evita “buraco”/sobras */
  }
}

/* FEATURE ROW: vira 1 coluna no mobile */
@media (max-width: 860px) {
  body.page-infantil .feature-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  body.page-infantil .feature-row.reverse {
    direction: ltr; /* evita bug de reverse no mobile */
  }

  body.page-infantil .feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
  }

  body.page-infantil .feature-text {
    width: 100%;
  }
}

/* GRID 2 colunas: vira 1 coluna no mobile */
@media (max-width: 860px) {
  body.page-infantil .grid.two-columns {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.page-infantil .text-block {
    overflow-wrap: anywhere; /* quebra texto longo */
    word-break: break-word;
  }
}

/* QUOTE BOX (infantil): Rosa Bertolini em caixa normal, centralizado no desktop e no mobile */
body.page-infantil .quote-box cite,
body.page-infantil .quote-box .quote-cite {
  text-transform: none;
  display: block;
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

body.page-infantil .quote-box .quote-cite .quote-name,
body.page-infantil .quote-box .quote-cite .quote-role {
  display: block;
}

body.page-infantil .quote-box .quote-cite .quote-role + .quote-role {
  margin-top: 4px;
}

@media (max-width: 768px) {
  body.page-infantil .quote-box {
    padding: 18px !important;
  }

  body.page-infantil .quote-box .quote-cite,
  body.page-infantil .quote-box cite {
    margin-top: 12px;
    line-height: 1.35;
  }

  body.page-infantil .quote-box a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* YouTube: responsivo + altura boa */
body.page-infantil .video-responsive {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
}

/* fallback universal */
body.page-infantil .video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Aspect ratio (usa se o browser suportar) */
@supports (aspect-ratio: 16 / 9) {
  body.page-infantil .video-responsive {
    aspect-ratio: 16 / 9;
  }
}

/* Fallback para browsers sem aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  body.page-infantil .video-responsive {
    padding-top: 56.25%;
  }
}

/* Contato: empilha colunas e evita overflow */
@media (max-width: 860px) {
  body.page-infantil .contact-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body.page-infantil .contact-action .btn,
  body.page-infantil .contact-action a.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* Botões flutuantes: evita empurrar lateral */
@media (max-width: 420px) {
  body.page-infantil .matriculas-fab {
    right: 14px;
    left: 14px;      /* vira “barra” */
    width: auto;
    text-align: center;
  }
}


/* FABs: garantia ocultos no mobile - regra final */
@media (max-width: 768px) {
  html body .whats-fab,
  html body .scroll-top-btn,
  html body .matriculas-fab {
    display: none !important;
    visibility: hidden !important;
  }
}
