/* ============================================
   Centro Educacional Dom Fernando — Design System
   Sistema E4 | Presença Digital Escolar
   ============================================ */

/* Google Fonts */
/* ---- CSS Variables (Design Tokens) ---- */
:root {
  --primary: #27B8E5;
  --primary-dark: #1895BD;
  --primary-light: #7ADAF4;
  --primary-bg: #EDF9FD;

  --secondary: #F06D5C;
  --secondary-dark: #D85746;

  --accent: #F7B15A;
  --accent-light: #FFD089;

  --bg: #FFFDF9;
  --bg-alt: #FEF6EC;

  --bg-rich: #1F384A;

  --white: #FFFFFF;

  --text: #2C2C2C;
  --text-light: #5B5B5B;
  --text-muted: #7A7A7A;
  --text-on-rich: #FFFFFF;

  /* Borders & Glass */
  --border: rgba(39, 184, 229, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Advanced Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 42, 92, 0.05);
  --shadow-md: 0 12px 30px rgba(0, 42, 92, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 42, 92, 0.12);
  --shadow-premium: 0 30px 60px -12px rgba(0, 42, 92, 0.18), 0 18px 36px -18px rgba(0, 0, 0, 0.2);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 40px;
  --radius-xl: 80px;

  --transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --header-height: 80px;
  --max-width: 1300px;
  --shadow-glow: 0 0 20px rgba(0, 0, 0, 0.05);
  --gold-line: 1px solid rgba(247, 177, 90, 0.25);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--header-height, 80px);
}

body {
  font-family: 'Nunito', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* ---- Utilities ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Utilities (Enhanced) ---- */
.section,
.section-alt,
.section-white,
.section-beige,
.section-blue-light,
.section-blue-deep,
.section-rich {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-white {
  background: var(--white);
}

.section-beige {
  background: #fdfaf5;
}

.section-blue-light {
  background: #f4f8fc;
}

/* Premium rich-blue section for high contrast */
.section-rich {
  background: var(--bg-rich);
  color: var(--white);
  overflow: hidden;
}

.section-rich::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 1;
}

.section-rich .section-title {
  color: var(--white);
}

.section-rich .highlight-accent {
  color: var(--accent-light);
}

/* Concern Overlap Layout */
.concern-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.concern-visual {
  position: relative;
}

.concern-visual .overlap-img {
  width: 100%;
  height: 650px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -12px rgba(0, 42, 92, 0.25), 0 20px 40px -18px rgba(0, 0, 0, 0.3);
  transform: scale(1.02) rotate(-2deg);
}

.concern-visual::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  z-index: -1;
  transform: rotate(2deg);
}

.rich-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.rich-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 32px;
}

.concern-text blockquote {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 24px;
  border-left: 4px solid var(--secondary);
  padding-left: 24px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.15;
  text-wrap: balance;
}

.section-title::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a14a 0%, #e5c980 100%);
}

.section-subtitle {
  max-width: 680px;
  margin: 14px auto 42px;
  text-align: center;
  font-size: 1.02rem;
  line-height: 1.68;
  color: rgba(31, 41, 55, 0.78);
  text-wrap: balance;
}

@media (max-width: 768px) {
  .section-title {
    margin-bottom: 10px;
    font-size: 2rem;
  }

  .section-title::after {
    width: 50px;
    margin-top: 12px;
  }

  .section-subtitle {
    max-width: 92%;
    margin: 12px auto 32px;
    font-size: 0.97rem;
    line-height: 1.62;
  }
}

/* ---- Floating Decorations ---- */
.decorative-element {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.decorative-element img {
  display: block;
  width: 100%;
  height: auto;
}

.decorative-section {
  position: relative;
  overflow: hidden;
}

/* Tamanhos das decorações e Responsividade */
.deco-80 {
  width: 80px;
}

.deco-90 {
  width: 90px;
}

.deco-100 {
  width: 100px;
}

/* SPRINT 7D — Aumentar tamanho do avião paper-plane na seção Acolhimento Real */
#pais .deco-100 {
  width: 150px;
}

.deco-120 {
  width: 120px;
}

.deco-140 {
  width: 140px;
}

@media (max-width: 991px) {

  /* Tablet - 90% */
  .deco-80 {
    width: 72px;
  }

  .deco-90 {
    width: 81px;
  }

  .deco-100 {
    width: 90px;
  }

  .deco-120 {
    width: 108px;
  }

  .deco-140 {
    width: 126px;
  }
}

@media (max-width: 768px) {

  /* Mobile - 80% */
  .deco-80 {
    width: 64px;
  }

  .deco-90 {
    width: 72px;
  }

  .deco-100 {
    width: 80px;
  }

  .deco-120 {
    width: 96px;
  }

  .deco-140 {
    width: 112px;
  }
}

/* ---- Page Headers ---- */
.page-header {
  padding: 100px 0 60px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 75, 141, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.breadcrumb span {
  color: var(--primary);
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
}

.highlight {
  color: var(--primary);
}

.highlight-accent {
  color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  justify-content: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 75, 141, 0.3);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
  transform: translateY(-3px);
  border-color: var(--primary-dark);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--secondary-dark));
  color: var(--white);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(231, 111, 81, 0.3);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ---- Header / Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: var(--gold-line);
  transition: all var(--transition);
  height: var(--header-height);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition);
}

.logo-img {
  width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
  transition: all var(--transition);
}

.footer-logo-img {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-menu .nav-cta,
.nav-menu .nav-cta:hover,
.nav-menu .nav-cta.active {
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

.nav-cta {
  margin-left: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Hero (Montessoriando) ---- */
.hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 160px;
  position: relative;
  overflow: hidden;
  min-height: auto;
  background: var(--bg-alt);
}

.hero-cloud-divider {
  position: relative;
  height: 0;
  z-index: 20;
  pointer-events: none;
}

.hero-cloud-divider img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 25vh;
  object-fit: cover;
  object-position: center bottom;
  margin-top: -30px;
  pointer-events: none;
  user-select: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
  position: relative;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(39, 184, 229, 0.15);
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title .highlight {
  color: var(--secondary);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-buttons .btn {
  border-radius: 100px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
}

.hero-microcopy {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0;
}

/* Coluna Direita - Visual */
.hero-visual-wrapper {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: center;
  transform: translateY(-40px);
}

.hero-arch-mask {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  border-radius: 1000px 1000px 24px 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -12px rgba(240, 109, 92, 0.15);
  z-index: 5;
  border: 6px solid var(--white);
  background: var(--bg-alt);
  margin-bottom: 40px;
}

/* Blocos Sensoriais */
.sensory-block {
  position: absolute;
  border-radius: 40px;
  z-index: 1;
  animation: floatSensory 8s ease-in-out infinite;
  opacity: 0.8;
}

.sensory-block-cyan {
  width: 120px;
  height: 120px;
  background: var(--primary-light);
  top: 10%;
  right: -5%;
  transform: rotate(15deg);
  animation-delay: 0s;
}

.sensory-block-coral {
  width: 160px;
  height: 160px;
  background: var(--secondary);
  bottom: 5%;
  left: -10%;
  transform: rotate(-10deg);
  animation-delay: -2s;
  border-radius: 50px;
}

.sensory-block-orange {
  width: 80px;
  height: 80px;
  background: var(--accent);
  top: 40%;
  left: -5%;
  transform: rotate(25deg);
  animation-delay: -4s;
  border-radius: 24px;
}

@keyframes floatSensory {

  0%,
  100% {
    transform: translateY(0) rotate(var(--rot, 0deg));
  }

  50% {
    transform: translateY(-15px) rotate(var(--rot, 0deg));
  }
}

/* Fio de Descoberta */
.hero::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 200px;
  background-image: radial-gradient(var(--accent-light) 2px, transparent 2px);
  background-size: 30px 30px;
  background-position: 0 0;
  opacity: 0.2;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 30%, black 70%, transparent);
}

@media (max-width: 991px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-description {
    max-width: 100%;
    margin: 0 auto 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual-wrapper {
    padding: 0;
  }

  .hero-arch-mask {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 120px;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}

/* ---- Parents Concern Section ---- */
.parents-concern {
  text-align: center;
}

.concern-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.concern-card::before {
  content: '❤️';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
}

.concern-card blockquote {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.9;
  font-style: italic;
  margin-top: 20px;
}

.concern-card p {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 16px;
}

/* ---- Features (Exclusive Card System) ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: var(--white);
  padding: 50px 32px;
  border-radius: var(--radius-lg);
  border-bottom-right-radius: 0;
  /* Breaking symmetry */
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--white) 0%, var(--bg-alt) 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: #e5e7eb;
  box-shadow: 0 12px 28px rgba(0, 42, 92, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 96px;
  height: 96px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.feature-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Routine (WOW Section) ---- */
.routine-timeline {
  max-width: 1000px;
  margin: 80px auto 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.routine-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  z-index: 0;
}

.routine-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.routine-item:nth-child(even) {
  flex-direction: row-reverse;
}

.routine-time {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  z-index: 10;
}

.routine-content {
  width: 42%;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 6px solid var(--primary);
}

.routine-item:nth-child(even) .routine-content {
  border-top-color: var(--secondary);
}

.routine-content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-premium);
}

.routine-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.routine-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}

.routine-deco-text {
  position: absolute;
  top: -40px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--bg-alt);
  z-index: -1;
  user-select: none;
  opacity: 0.5;
}

.routine-item:nth-child(odd) .routine-deco-text {
  right: -20px;
}

.routine-item:nth-child(even) .routine-deco-text {
  left: -20px;
}

/* ---- Development Section ---- */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dev-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-top: 4px solid var(--primary);
  /* Institutional Signature */
}

.dev-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.dev-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 75, 141, 0.05);
  border: 2px solid var(--secondary);
  /* Premium Gold Frame */
}

.dev-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.dev-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.dev-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Gallery (Masonry-Hybrid) ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:nth-child(1) {
  grid-column: 1 / span 5;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: 6 / span 4;
}

.gallery-item:nth-child(3) {
  grid-column: 10 / span 3;
}

.gallery-item:nth-child(4) {
  grid-column: 6 / span 3;
}

.gallery-item:nth-child(5) {
  grid-column: 9 / span 4;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.5s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:nth-child(1) img {
  aspect-ratio: 5 / 4;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28) 0%, transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-overlay-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: flex !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 10px 6px 30px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.testimonials-grid.hydrated {
  opacity: 1;
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.testimonials-carousel {
  position: relative;
  padding: 0 10px;
}

@media (min-width: 768px) {
  .testimonials-carousel {
    padding: 0 40px;
  }
}

.testimonial-card {
  flex: 0 0 calc(100% - 10px);
  scroll-snap-align: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition);
}

.testimonial-card:nth-child(even) {
  background: #fafafa;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  border-color: rgba(76, 175, 80, 0.2);
}

.testimonial-stars {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  /* Destacar texto do depoimento */
  color: #2d3748;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 24px;
}


.testimonial-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.testimonial-name {
  font-weight: 600;
  /* peso médio */
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-light);
  opacity: 0.85;
  /* mais suave */
}

.testim-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  /* fundo leve/translúcido */
  backdrop-filter: blur(4px);
  border: 1px solid rgba(76, 175, 80, 0.15);
  /* borda suave */
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.testim-prev {
  left: 0;
}

.testim-next {
  right: 0;
}

@media (min-width: 768px) {
  .testim-prev {
    left: 0;
  }

  .testim-next {
    right: 0;
  }
}

.testim-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
  transform: translateY(-50%) scale(1.08);
}

/* ---- Structure Gallery ---- */
.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.structure-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-top: 4px solid var(--secondary);
  /* Gold Signature for Structure */
}

.structure-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
}

.structure-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.structure-card img:hover {
  transform: scale(1.03);
}

.structure-caption {
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 10px 20px 0;
  font-style: italic;
  opacity: 0.85;
  display: block;
}

.structure-card-content {
  padding: 20px;
}

.structure-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.structure-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- Map Section ---- */
.map-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-iframe {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-iframe iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.map-info {
  padding: 20px;
}

.map-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.map-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.map-detail-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.map-detail-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.map-detail h3,
.map-detail h4 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.map-detail p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---- Form Section ---- */
.form-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: start;
}

.form-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.form-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea,
.form-survey textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: all var(--transition);
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-survey textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 140, 90, 0.1);
  background: var(--white);
}

.form-group textarea,
.form-survey textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-survey textarea::placeholder {
  color: var(--text-muted);
}

.form-survey {
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.form-survey label {
  font-size: 0.85rem;
  color: var(--primary-dark);
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.form-success-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.form-success h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
}

/* ---- Blog Section ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#blogCardHeroImage {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blog-card-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card .read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition);
}

.blog-card:hover .read-more {
  gap: 12px;
}

/* ---- Footer ---- */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand .logo img {
  position: relative;
  z-index: 2;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-contact-item span:first-child {
  font-size: 1.1rem;
}

.footer-contact-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
  color: rgba(255, 255, 255, 0.8);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: var(--primary-light);
  font-weight: 700;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---- WhatsApp Float Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@keyframes pulse-whatsapp {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
  }
}

/* ---- Page Header (Sub-pages) ---- */
.page-header {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--bg) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(91, 140, 90, 0.05) 0%, transparent 70%);
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

/* ---- Info Cards Grid ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-top: 4px solid var(--primary);
  /* Signature */
}

.info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.info-card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.info-card-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 120px 24px;
  border-radius: 0;
  position: relative;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cta-section .btn-primary:hover {
  background: var(--bg);
}

/* ---- Age Groups ---- */
.age-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.age-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.age-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.age-card-header {
  padding: 24px;
  color: var(--white);
}

.age-card:nth-child(1) .age-card-header {
  background: linear-gradient(135deg, #E76F51, #F4A261);
}

.age-card:nth-child(2) .age-card-header {
  background: linear-gradient(135deg, #5B8C5A, #8FBC8F);
}

.age-card:nth-child(3) .age-card-header {
  background: linear-gradient(135deg, #2196F3, #64B5F6);
}

.age-card-age {
  font-size: 2rem;
  font-weight: 900;
}

.age-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
}

.age-card-body {
  padding: 24px;
}

.age-card-body ul {
  text-align: left;
}

.age-card-body li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-card-body li:last-child {
  border-bottom: none;
}

.age-card-body li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
}

/* ---- Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Override: cards de depoimentos criados via JS (não capturados pelo IntersectionObserver) ---- */
/* Os .testimonial-card são injetados após o observer já ter registrado os elementos,            */
/* então nunca recebem a classe .visible. Este override garante visibilidade via animação CSS pura. */
.testimonials-grid .fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: testimonialEntrance 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonials-grid .fade-in:nth-child(2) {
  animation-delay: 0.1s;
}

.testimonials-grid .fade-in:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes testimonialEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Contact Page Specific ---- */
/* ---- Premium Contact System (Consolidated) ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-top: 3px solid var(--primary);
  /* Signature */
}

.contact-card.whatsapp-card {
  border-top-color: #25D366;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 75, 141, 0.06);
  border: 1.5px solid var(--secondary);
  flex-shrink: 0;
}

.contact-card-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text);
  margin-top: 0;
}

.contact-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Blog Page Styles ---- */
.blog-page-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  /* Reduz espaços excessivos */
}

.blog-article {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  /* Tiramos o gap para criar um card único */
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.blog-article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-article-reversed {
  grid-template-columns: 1.1fr 0.9fr;
}

.blog-article-reversed .blog-article-image {
  order: 2;
}

.blog-article-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: var(--transition);
}

.blog-article-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-article-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 16px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 4px;
  /* Mais elegante do que 50px para cards */
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Tag mais visível e premium */
}

.blog-article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  /* Levemente menor mas mais elegante */
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-article-body p {
  font-size: 1.05rem;
  /* Ajustado para melhor leitura */
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.blog-article-body .blog-cta-text {
  font-weight: 700;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 0;
}

.blog-article-body .btn-primary {
  align-self: flex-start;
  margin-top: 24px;
  /* Mais espaço acima do CTA */
  padding: 14px 28px;
  font-size: 0.95rem;
}

@media (max-width: 991px) {

  .blog-article,
  .blog-article-reversed {
    grid-template-columns: 1fr;
  }

  .blog-article-image {
    min-height: 250px;
    height: 250px;
  }

  .blog-article-reversed .blog-article-image {
    order: 0;
  }

  .blog-article-body {
    padding: 32px 24px;
  }

  .blog-article-body h2 {
    font-size: 1.6rem;
  }
}

/* ---- Matriculas (Age Cards) ---- */
.age-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.age-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 50px 40px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.age-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.age-card-header {
  margin-bottom: 32px;
}

.age-card-age {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.age-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.age-card-body ul {
  margin-bottom: 32px;
}

.age-card-body li {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.age-card-body li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 900;
}

/* Enrollment Steps */
.enrollment-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.enrollment-step {
  background: var(--white);
  padding: 40px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.enrollment-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-light);
}

.enrollment-step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 42, 92, 0.2);
}

.enrollment-step h3 {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.enrollment-step p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* WhatsApp Card Home/Contact Interactivity */
.whatsapp-card {
  text-decoration: none;
  color: inherit;
}

.whatsapp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #25D366;
}

/* Header Logo Responsiveness */
@media (max-width: 991px) {
  .logo-img {
    width: 190px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    width: 160px;
  }

  .logo {
    gap: 0;
  }
}

/* ---- Jornada Educacional ---- */
.jornada-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.jornada-card {
  background: var(--white);
  padding: 64px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--secondary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 480px;
  justify-content: space-between;
}

.jornada-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.jornada-card.primary-card {
  border-top-color: var(--primary);
}

.jornada-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 18px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.jornada-badge.primary {
  background: #fef8f0;
  color: var(--secondary-dark);
}

.jornada-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.jornada-card p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
}

.jornada-list {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.jornada-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.jornada-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 900;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .jornada-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .jornada-card {
    padding: 32px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 96px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-description {
    font-size: 1.18rem;
    color: var(--text-light);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 90%;
  }

  .hero-image-wrapper {
    padding-left: 0;
  }

  .hero-image img {
    height: 400px;
  }

  .e4-social-proof-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ---- Component Normalization (Form) ---- */
.visit-form-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

.form-disclaimer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 20px;
  font-style: italic;
}

.e4-signature {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 16px;
  text-align: center;
  opacity: 0.9;
}

.hero-microcopy {
  margin-top: -8px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 320px;
  line-height: 1.5;
  text-align: left;
}

.e4-signature {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  display: inline-block;
  margin-left: 5px;
}

/* ---- Form Consent LGPD ---- */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  margin-top: 4px;
  cursor: pointer;
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-consent a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 700;
}

.form-consent a:hover {
  color: var(--primary-dark);
}

.e4-signature {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 16px;
  text-align: center;
  opacity: 0.9;
  max-width: 420px;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-microcopy {
    margin-top: 0;
    margin-bottom: 14px;
    text-align: center;
    max-width: 100%;
  }

  .e4-signature {
    text-align: center;
    max-width: 100%;
    line-height: 1.5;
    padding: 0;
  }
}

.nav-cta {
  color: #ffffff !important;
}

.nav-cta:hover {
  color: #ffffff !important;
}

.nav-menu .nav-cta {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.nav-menu .nav-cta:hover {
  background: linear-gradient(135deg, #c5a059, #a68546);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.3);
}

.nav-menu .nav-cta {
  box-shadow: 0 4px 20px rgba(0, 75, 141, 0.25);
}

.nav-menu .nav-cta:hover {
  box-shadow: 0 8px 30px rgba(0, 75, 141, 0.35);
}

/* ===== E4 — CARDS PREMIUM ===== */

.competencias .card,
.section-competencias .card {
  transition: all 0.3s ease;
  border-radius: 14px;
}

.competencias .card:hover,
.section-competencias .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.competencias .card p,
.section-competencias .card p {
  line-height: 1.5;
  max-width: 320px;
}

.features-grid .feature-card {
  transition: all 0.3s ease;
}

.features-grid .feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 42, 92, 0.08);
}

/* PADRÃO E4 — FEATURES CLEAN */

.feature-card {
  border: 1px solid #e5e7eb;
}

.feature-icon {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px;
}

.instagram-proof {
  margin-top: 40px;
  text-align: center;
}

.instagram-label {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.instagram-text {
  font-size: 15px;
  color: #374151;
  margin-bottom: 12px;
}

.instagram-handle {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  color: #1f2937;
  font-weight: 500;
  font-size: 14px;
  background: #f9fafb;
}

.instagram-proof {
  margin-top: 28px;
  text-align: center;
}

.instagram-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.instagram-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.25s ease;
}

.instagram-handle.is-enabled {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
  cursor: pointer;
  opacity: 1;
}

.instagram-handle.is-enabled:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 75, 141, 0.12);
}

/* Instagram no footer */
.footer .social-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer .social-instagram svg {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.footer .social-instagram span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.footer .social-instagram:hover {
  color: #fff;
  opacity: 1;
}

.footer .social-instagram:hover svg,
.footer .social-instagram:hover span {
  color: #fff;
}

/* Override: cancela herança do círculo de .footer-social a */
.footer-social .social-instagram {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  box-shadow: none;
}

.footer-social .social-instagram:hover {
  background: transparent;
  transform: translateY(-2px);
  box-shadow: none;
}

/* Selos institucionais no footer */
.footer-seals {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.footer-seals .seal {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-seals .seal strong {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Matrículas — Continuidade e Formulário (Novos Componentes)
   ========================================================================== */

/* ---- Faixa de Continuidade: Ensino Fundamental I ---- */
.fundamental-continuity-banner {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  padding: 32px 40px;
  background: linear-gradient(110deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 42, 92, 0.2);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fundamental-continuity-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.continuity-icon {
  font-size: 3rem;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.continuity-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.continuity-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.continuity-text strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.continuity-text span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.fundamental-continuity-banner .btn-primary {
  flex-shrink: 0;
  background: var(--white);
  color: var(--primary-dark);
  padding: 14px 28px;
  font-weight: 800;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fundamental-continuity-banner .btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .fundamental-continuity-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 32px 24px;
  }
}

/* ---- Formulário: Lado Esquerdo Premium ---- */
.form-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.form-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.8px;
}

.form-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
}

.form-lead strong {
  color: var(--primary);
  font-weight: 800;
}

.form-trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.form-trust-list li {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

.form-trust-list li strong {
  color: var(--primary-dark);
}

@media (min-width: 769px) {
  body>.section.section-alt:nth-of-type(3) {
    padding-bottom: 80px;
  }

  #form-matricula {
    padding-top: 80px;
  }
}

/* ---- LGPD / Privacidade ---- */
.form-lgpd {
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: rgba(0, 42, 92, 0.03);
  border: 1px solid rgba(0, 42, 92, 0.08);
  border-radius: var(--radius-sm);
}

.lgpd-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin: 0;
}

.lgpd-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.lgpd-label span {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.55;
}

.lgpd-label span a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.lgpd-label span a:hover {
  color: var(--primary-dark);
}

.lgpd-micro {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
  padding-left: 30px;
}



/* ==========================================================================
   Fundamental I — Journey Section (v2 Premium)
   ========================================================================== */

.fundamental-journey.age-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 80px;
  padding: 20px 0;
  position: relative;
  overflow: visible;
  align-items: stretch;
}

/* ---- Card base ---- */
.fundamental-journey .age-card {
  background: var(--white);
  border-radius: 24px;
  padding: 56px 36px 44px;
  border: 1px solid rgba(0, 42, 92, 0.05);
  box-shadow:
    0 10px 30px -10px rgba(0, 42, 92, 0.08),
    0 4px 6px -1px rgba(0, 0, 0, 0.02);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-top: 5px solid transparent;
}

/* Sutil fundo decorativo por card */
.fundamental-journey .age-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(240, 247, 255, 0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Nuances de cor por etapa - Bordas Premium */
.fundamental-journey .age-card:nth-child(1) {
  border-top-color: #3182ce;
}

.fundamental-journey .age-card:nth-child(2) {
  border-top-color: #004b8d;
}

.fundamental-journey .age-card:nth-child(3) {
  border-top-color: #c5a059;
}

.fundamental-journey .age-card:nth-child(4) {
  border-top-color: #002a5c;
}

/* ---- Hover Altamente Refinado ---- */
.fundamental-journey .age-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 30px 60px -12px rgba(0, 42, 92, 0.18),
    0 18px 36px -18px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 75, 141, 0.12);
}

/* ---- Numeração (Marca d'água elegante) ---- */
.journey-step {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.8;
  font-family: 'Playfair Display', serif;
  color: rgba(0, 75, 141, 0.03);
  -webkit-text-stroke: 1px rgba(0, 75, 141, 0.06);
  letter-spacing: -4px;
  z-index: 0;
  user-select: none;
  transition: all 0.5s ease;
}

.fundamental-journey .age-card:hover .journey-step {
  color: rgba(0, 75, 141, 0.05);
  transform: scale(1.1);
}

/* ---- Header do card ---- */
.fundamental-journey .age-card-header {
  position: relative;
  z-index: 1;
}

/* Fase pedagógica — rótulo discreto */
.fundamental-journey .age-card-age {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* Ano/série — destaque principal */
.fundamental-journey .age-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

/* ---- Microcopy ---- */
.journey-micro {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 75, 141, 0.08);
  margin-top: auto;
  font-weight: 500;
}

/* ---- Responsivo ---- */
@media (max-width: 991px) {
  .fundamental-journey.age-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding-top: 10px;
  }
}

/* ---- Cookie Banner Premium ---- */
/* ---- Cookie Banner Premium Refined ---- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #001a35;
  /* Azul petróleo profundo ultra premium */
  color: var(--white);
  padding: 12px 24px;
  /* Mais compacto ainda */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  justify-content: center;
  visibility: hidden;
}

@media (min-width: 992px) {
  .cookie-banner {
    max-width: 850px;
    /* Mais estreito para elegância */
    margin: 0 auto;
  }
}

.cookie-banner.show {
  transform: translateY(0);
  visibility: visible;
}

.cookie-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

.cookie-banner p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-buttons .btn {
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.cookie-banner-buttons .btn-primary {
  background: var(--primary);
  border: none;
}

.btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Prevenção de Conflito com WhatsApp */
.whatsapp-float {
  transition: bottom 0.5s ease !important;
  /* Transição suave quando o banner aparece */
}

body.cookie-banner-active .whatsapp-float {
  bottom: 90px !important;
  /* Sobe o botão do WhatsApp quando o banner está aberto */
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 16px;
  }

  .cookie-banner-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-banner-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.cookie-banner-active .whatsapp-float {
    bottom: 180px !important;
    /* Sobe mais no mobile para não cobrir os botões empilhados */
  }
}

@media (max-width: 640px) {
  .fundamental-journey.age-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fundamental-journey .age-card {
    padding: 48px 28px 36px;
  }

  .journey-step {
    font-size: 3.5rem;
    top: 10px;
    right: 15px;
  }

  .fundamental-journey .age-card-name {
    font-size: 1.65rem;
  }
}

/* =========================================
   RESPONSIVIDADE MOBILE — FIX GLOBAL
========================================= */

@media (max-width: 768px) {

  /* Containers */
  .container {
    padding: 0 16px;
  }

  /* Sections */
  .section,
  .section-alt,
  .section-white,
  .section-beige,
  .section-blue-light,
  .section-blue-deep,
  .section-rich {
    padding: 60px 0;
  }

  /* HERO */
  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  /* PAGE HEADER */
  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  /* GRID GERAL */
  .info-grid,
  .structure-grid,
  .blog-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* CARDS */
  .info-card,
  .structure-card,
  .blog-article {
    width: 100%;
  }

  /* BOTÕES */
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* NAV MENU */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 20px;
    transition: 0.3s;
  }

  .nav-menu.active {
    right: 0;
  }

}

@media (max-width: 768px) {

  .hero {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-microcopy {
    text-align: center;
  }

  .e4-social-proof-stats {
    justify-content: center;
    gap: 16px;
  }

}

@media (max-width: 768px) {

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 50px 0;
  }

  .section-subtitle {
    margin-bottom: 24px;
  }

  /* HERO */
  .hero {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-microcopy {
    text-align: center;
  }

  .e4-social-proof-stats {
    justify-content: center;
    gap: 16px;
  }

  .hero-image img {
    max-height: 260px;
    object-fit: cover;
    border-radius: 16px;
  }

  /* GRID */
  .info-grid,
  .structure-grid,
  .blog-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* CARDS */
  .info-card,
  .structure-card,
  .blog-article {
    padding: 20px;
  }

  /* BOTÕES */
  .btn {
    width: 100%;
    justify-content: center;
  }

  /* MENU MOBILE */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 20px;
    transition: 0.3s;
  }

  .nav-menu.active {
    right: 0;
  }

}

/* =========================================
   RESPONSIVIDADE SEÇÕES ESPECÍFICAS
========================================= */

@media (max-width: 768px) {

  /* ACOLHIMENTO (concern) */
  #pais {
    overflow: visible;
  }

  .concern-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .concern-visual .overlap-img {
    height: 260px;
  }

  .rich-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .concern-text {
    text-align: center;
  }

  /* PILARES */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* COMPETÊNCIAS */
  .dev-grid {
    grid-template-columns: 1fr;
  }

  .dev-card {
    flex-direction: column;
    text-align: center;
  }

  .dev-icon {
    margin: 0 auto;
  }

  /* DEPOIMENTOS (já quase ok, só ajuste leve) */
  .testimonial-card {
    padding: 20px;
  }

  /* ESTRUTURA */
  .structure-grid {
    grid-template-columns: 1fr;
  }

  /* MAPA */
  .map-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .map-iframe iframe {
    height: 250px;
  }

  /* FORMULÁRIO */
  .form-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-card {
    padding: 24px;
  }

  /* BLOG */
  .blog-page-grid {
    grid-template-columns: 1fr;
  }

  /* FOOTER — mobile: alinhamento à esquerda */
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .footer-brand,
  .footer-links,
  .footer-contact-item {
    text-align: left;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-social {
    justify-content: flex-start;
  }

}

/* =========================================
   BLOG MOBILE FIX
========================================= */

@media (max-width: 768px) {

  .blog-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .blog-article {
    width: 100%;
    display: block;
  }

  .blog-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .blog-article-content {
    padding: 16px;
  }

}

/* =========================================
   BLOG MOBILE FIX (CORRETO)
========================================= */

@media (max-width: 768px) {

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card {
    width: 100%;
  }

  .blog-card-image {
    height: 200px;
  }

}

.emocional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.emocional-item {
  margin-bottom: 20px;
}

.emocional-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .emocional-grid {
    grid-template-columns: 1fr;
  }
}

.emocional-image img {
  max-width: 280px;
  margin: 0 auto;
  display: block;
}

/* =========================================
   SEÇÃO SOCIOEMOCIONAL PREMIUM
========================================= */

.emocional-premium {
  position: relative;
}

.emocional-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.emocional-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.emocional-image img {
  max-width: 320px;
  display: block;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.emocional-image img:hover {
  transform: scale(1.05);
}

.emocional-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.emocional-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.emocional-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.emocional-icon {
  font-size: 22px;
  background: linear-gradient(135deg, #004b8d, #0a6ed1);
  color: #fff;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.emocional-card h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.emocional-card p {
  font-size: 14px;
  color: #555;
}

.emocional-cta {
  text-align: center;
  margin-top: 50px;
}

.emocional-cta p {
  margin-bottom: 15px;
  font-weight: 500;
}

/* MOBILE */
@media (max-width: 768px) {
  .emocional-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .emocional-image img {
    max-width: 260px;
  }

  .emocional-card {
    padding: 16px;
  }
}

.emocional-card {
  opacity: 0;
  transform: translateY(20px);
}

.emocional-card.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

/* ============================================
   NOVA SEÇÃO SOCIOEMOCIONAL — Alta Conversão
   ============================================ */

.emocional-absurdo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.emocional-left img {
  max-width: 440px;
  margin: -10px auto 0;
  display: block;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.emocional-badge {
  background: rgba(0, 75, 141, 0.1);
  color: #004b8d;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.emocional-right h2 {
  font-size: 32px;
  line-height: 1.3;
}

.emocional-right h2 span {
  color: #004b8d;
}

.emocional-lead {
  margin: 16px 0;
  color: #555;
}

.emocional-points {
  margin-bottom: 20px;
}

.emocional-point {
  padding: 12px;
  border-left: 4px solid #ccc;
  margin-bottom: 10px;
  background: #f9f9f9;
}

.emocional-point.highlight {
  border-left: 4px solid #004b8d;
  background: #eef5fb;
}

.emocional-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.emocional-benefits li {
  margin-bottom: 8px;
  font-weight: 500;
}

.emocional-btn {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .emocional-absurdo {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .emocional-point {
    text-align: left;
  }
}

/* ============================================
   E4 PREMIUM — SEÇÃO EMOCIONAL
   ============================================ */

.emocional-premium {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
}

/* Fundo com profundidade */
.emocional-premium::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 75, 141, 0.06), transparent 70%);
  z-index: 0;
}

.emocional-premium::after {
  content: "";
  position: absolute;
  bottom: -120px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.08), transparent 70%);
  z-index: 0;
}

/* Garante que conteúdo fique acima */
.emocional-absurdo {
  position: relative;
  z-index: 2;
}

/* Imagem com aura premium */
.emocional-left img {
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0, 42, 92, 0.25);
  transition: transform 0.4s ease;
}

/* Glow atrás da imagem */
.emocional-left {
  position: relative;
}

.emocional-left::before {
  background: radial-gradient(circle, rgba(0, 75, 141, 0.06), transparent 70%);
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hover muito sutil */
.emocional-left img:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Cards (Antes/Depois) mais premium */
.emocional-point {
  background: rgba(0, 75, 141, 0.03);
  border-left: 3px solid rgba(0, 75, 141, 0.2);
  padding: 14px 16px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.emocional-point.highlight {
  background: rgba(0, 75, 141, 0.08);
  border-left: 3px solid var(--primary);
}

/* Lista mais leve */
.emocional-benefits li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Botão com glow premium */
.emocional-btn {
  margin-top: 16px;
  position: relative;
}

.emocional-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.3), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.emocional-btn:hover::after {
  opacity: 1;
}

/* Micro animação leve */
@keyframes floatSoft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.emocional-left img {
  animation: floatSoft 6s ease-in-out infinite;
}


/* ---- Fix: Isola seção emocional de pseudo-elementos globais ---- */
.hero::before,
.hero::after,
.page-header::before {
  z-index: -2;
}

.emocional-premium {
  position: relative;
  z-index: 2;
}

.emocional-premium::before,
.emocional-premium::after {
  display: none !important;
}

.fundamental-continuity-banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  height: 48px;
}

.fundamental-continuity-banner a {
  position: relative;
  z-index: 10;
}

.fundamental-continuity-banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  line-height: 1;
  /* evita desalinhamento vertical */
}

/* ---- Sistema de Feedback Visual Premium ---- */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.success-box {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.success-box p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f2a44;
  margin: 0;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---- Botão toggle de som ---- */
.sound-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  background: #0f2a44;
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(15, 42, 68, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(15, 42, 68, 0.4);
}

/* ---- Admin toast de notificação ---- */
.admin-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #0f2a44;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   Efeitos de Alta Dopamina (Feedback Form)
   ============================================ */

.success-box {
  animation: successPop 0.4s ease-out;
}

@keyframes successPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  60% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
  }
}

.sparkle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: gold;
  border-radius: 50%;
  animation: sparkleAnim 1.2s ease-out forwards;
  z-index: 99999;
}

@keyframes sparkleAnim {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* ============================================
   ADMIN REALTIME TOAST NOTIFICATION
   ============================================ */

.lead-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  z-index: 99999;
  animation: slideIn 0.3s ease;
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVIDADE DOS COMPONENTES CUSTOM
   ============================================ */

@media (max-width: 768px) {

  .emotional-absurdo,
  .concern-layout,
  .levels-grid,
  .blog-page-grid,
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .emocional-left,
  .emocional-right {
    width: 100%;
  }

  .age-card,
  .level-card {
    width: 100%;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
}

/* ============================================
   UX MELHORIAS E ESCONDER WHATSAPP / FORM
   ============================================ */
.whatsapp-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.9);
}

.form-success-state {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border-radius: 16px;
  animation: fadeInUp 0.4s ease;
}

.success-icon {
  font-size: 32px;
  color: #22c55e;
  margin-bottom: 10px;
}

/* ============================================
   CORRE��O DEFINITIVA DE RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {

  /* 1. Menu Mobile */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    gap: 20px;
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* 2. Grid Correction */
  .hero .container,
  .concern-layout,
  .contact-grid,
  .blog-page-grid,
  .info-grid,
  .age-cards,
  .routine-timeline {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* 3. Text & Sizing */
  h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  p {
    font-size: 0.95rem;
  }

  /* 4. Padding & Container */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  /* 5. Cards */
  .info-card,
  .age-card,
  .blog-article,
  .contact-card {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================
   CORRE��O DEFINITIVA DOS BLOCOS MOBILE
   ============================================ */
@media (max-width: 768px) {

  /* 1. Menu Mobile */
  .hamburger {
    display: flex !important;
  }

  .nav-menu {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column !important;
    align-items: flex-start;
    padding: 100px 24px;
    gap: 16px;
    transition: right 0.3s ease;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
  }

  .mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* 2. Rotina (Timeline) */
  .routine-timeline {
    gap: 40px;
  }

  .routine-timeline::before {
    display: none;
  }

  .routine-item {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .routine-item:nth-child(even) {
    flex-direction: column !important;
  }

  .routine-time {
    position: relative;
    left: auto;
    transform: none;
    margin-bottom: 10px;
  }

  .routine-content {
    width: 100% !important;
    padding: 20px;
  }

  .routine-deco-text {
    display: none;
  }

  /* 3. Estrutura */
  .structure-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .structure-card {
    width: 100%;
  }

  /* 4. Matr�culas */
  .age-cards {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .age-card {
    width: 100%;
  }

  /* 5. Global padding */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }
}

/* ============================================
   CORRE��O CR�TICA DE Z-INDEX E GRIDS MOBILE
   ============================================ */

/* Failsafe Z-Index (Global) */
.header {
  z-index: 9999 !important;
}

.nav-menu {
  z-index: 10000 !important;
}

.mobile-overlay {
  z-index: 9998 !important;
}

@media (max-width: 768px) {

  /* 1. Pilares / Features */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* 2. Blocos de Seguran�a e Grids de Informa��o */
  .dev-grid,
  .info-grid {
    grid-template-columns: 1fr !important;
  }

  /* 3. Se��o Matr�culas (Steps / Process) */
  .steps-grid,
  .process-grid,
  .matricula-steps {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* 4. For�ar Comportamento do Menu */
  body {
    overflow-x: hidden;
  }

  .nav-menu {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column !important;
    padding: 100px 24px;
    gap: 16px;
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  /* 5. Corre��o Global Anti-Quebra */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  * {
    max-width: 100%;
  }
}

/* ============================================
   CORRE��O DEFINITIVA: COMO MATRICULAR E MENU
   ============================================ */

/* 1. Transformar enrollment-steps em GRID REAL */
.enrollment-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.enrollment-step {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.enrollment-step-number {
  flex-shrink: 0;
}

.enrollment-step-content {
  flex: 1;
}

/* 2. Z-INDEX TOTAL (M�XIMA PRIORIDADE) */
.header {
  z-index: 999999 !important;
}

.nav-menu {
  z-index: 1000000 !important;
}

.mobile-overlay {
  z-index: 999998 !important;
}

/* 3. MOBILE (CORRE��O TOTAL) */
@media (max-width: 768px) {
  .enrollment-steps {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .enrollment-step {
    flex-direction: row;
    align-items: flex-start;
  }

  .nav-menu {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column !important;
    padding: 100px 20px;
    transition: right 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }
}

/* Ajuste Mobile WhatsApp */
@media (max-width: 768px) {

  .whatsapp-float a {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .whatsapp-float span {
    display: none !important;
  }

  .whatsapp-float img,
  .whatsapp-float svg {
    width: 26px !important;
    height: 26px !important;
  }
}

/* =========================================================================
   E1.1 - SKELETON FOUNDATION LAYER (FRONTEND)
   ========================================================================= */

.skeleton {
  background-color: #e2e8f0;
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.5) 20%,
      rgba(255, 255, 255, 0) 40%);
  background-size: 600px 100%;
  background-repeat: no-repeat;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

.skeleton * {
  visibility: hidden !important;
}

@keyframes shimmer {
  0% {
    background-position: -300px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.skeleton-text {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-title {
  height: 24px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: 70%;
}

.skeleton-card {
  height: 200px;
  border-radius: 12px;
  width: 100%;
}

.skeleton-circle {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

/* Fallback para backgrounds escuros (ex: section-blue-deep) */
.section-blue-deep .skeleton {
  background-color: rgba(255, 255, 255, 0.1);
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.08) 20%,
      rgba(255, 255, 255, 0) 40%);
}

/* =========================================================================
   E2.1 - MOBILE UX POLISH & TOUCH ERGONOMICS
   ========================================================================= */
@media (max-width: 768px) {

  /* 1. HERO MOBILE: Redução de densidade cognitiva e respiro */
  .hero-badge {
    display: none !important;
  }

  .hero-content {
    margin-top: 20px !important;
  }

  .hero-title {
    font-size: 2.28rem !important;
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
  }

  .hero-title>p {
    font: inherit;
    line-height: inherit;
    margin: 0;
  }

  .hero-description {
    font-size: 1.05rem !important;
    margin-bottom: 32px !important;
  }

  /* 2. CTA MOBILE: Empilhamento, gap consistente e full-width */
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 54px !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 3. TOUCH TARGETS (Min 48px) */
  .nav-menu a {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding-left: 12px !important;
    font-size: 1.1rem !important;
  }

  .hamburger {
    min-width: 48px !important;
    min-height: 48px !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
  }

  /* 4. TYPOGRAPHY MOBILE: Line-height & Scannability */
  p {
    line-height: 1.65 !important;
  }

  /* 5. SECTION SPACING: Harmonizar gaps e reduzir entulho */
  .container {
    padding: 0 24px !important;
  }

  .section {
    padding: 70px 0 !important;
  }

  .section-title {
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
  }

  .section-subtitle {
    margin-bottom: 40px !important;
  }
}

/* =========================================================================
   E2.2 - MOBILE NAVIGATION & SCROLL EXPERIENCE (GPU & NEURO UX)
   ========================================================================= */
@media (max-width: 768px) {

  /* 1. GPU Accelerated Menu (Elimina jitter) */
  .nav-menu {
    right: 0 !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    will-change: transform;
  }

  .nav-menu.active {
    transform: translateX(0) !important;
  }

  /* 2. Premium Glass Overlay (Glassmorphism) */
  .mobile-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.4) !important;
  }

  /* 3. Body Scroll Lock (CSS-only via :has, sem tocar no JS) */
  body:has(.nav-menu.active) {
    overflow: hidden !important;
    touch-action: none !important;
  }
}

/* =========================================================================
   F3.3 - SMART WHATSAPP PRESENCE (CRO & NEURO UX)
   ========================================================================= */

/* 1. Aparição Inteligente (CSS-only Scroll Detection) */
.whatsapp-float {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s !important;
}

/* Gatilho: Quando o header ganha '.scrolled', o WhatsApp aparece */
.header.scrolled~.whatsapp-float {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 2. Micro-Pulse Premium (GPU Accelerated, sem repaint) */
.whatsapp-float a {
  animation: none !important;
  /* Remove pulso antigo pesado */
  position: relative;
}

.whatsapp-float a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: inherit;
  z-index: -1;
  animation: smartPulse 4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes smartPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* =========================================================================
   G1 - LCP OPTIMIZATION & RUNTIME CACHE
   ========================================================================= */
#heroImage.cache-hydrated {
  opacity: 1 !important;
}

@media (min-width: 769px) {

  .section-alt:has(.enrollment-steps) {
    padding-bottom: 70px !important;
  }

  #form-matricula {
    padding-top: 70px !important;
  }

}

@media (min-width: 769px) {

  #form-matricula .form-layout {
    margin-top: -70px;
  }

}

/* ============================================================
   SPRINT 3 — BLOB COMPOSITION SYSTEM
   Profundidade visual | blob-blue.webp + blob-yellow.webp
   Somente HTML + CSS. Sem JavaScript.
   pointer-events: none em todos os blobs.
   ============================================================ */

/* ---- Sistema base ---- */
.blob-decoration {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: block;
  line-height: 0;
}

/* Tamanhos dos blobs — Desktop */
.blob-lg {
  width: 340px;
}

.blob-md {
  width: 260px;
}

.blob-sm {
  width: 180px;
}

/* Tablet — 85% */
@media (max-width: 991px) {
  .blob-lg {
    width: 289px;
  }

  .blob-md {
    width: 221px;
  }

  .blob-sm {
    width: 153px;
  }
}

/* Mobile — 70% */
@media (max-width: 768px) {
  .blob-lg {
    width: 238px;
  }

  .blob-md {
    width: 182px;
  }

  .blob-sm {
    width: 126px;
  }
}

/* ---- Hero — blob-blue atrás da imagem removido na SPRINT 3.1 ---- */

/* ---- Hero — blob-yellow atrás do bloco textual ---- */
/* Inserido como primeiro filho de .hero-content (position: relative) */
/* z-index: -1 fica atrás de todo o conteúdo textual              */
.blob-hero-text {
  top: -30px;
  left: -55px;
  opacity: 0.28;
  z-index: -1;
}

/* ---- Emocional — imagem central ---- */
.emocional-left {
  position: relative;
}

.emocional-left>picture {
  position: relative;
  z-index: 1;
}

/* ---- Pais / Ambiente Acolhedor — blob-blue atrás da imagem --- */
/* .concern-visual já tem position: relative                       */
.blob-pais-image {
  top: -80px;
  left: -80px;
  opacity: 0.38;
  z-index: 0;
}

/* Garante que o conteúdo do concern-visual fique à frente         */
.concern-visual>picture {
  position: relative;
  z-index: 1;
}

/* ---- Galeria — blob-blue e blob-yellow atrás da grade ---- */
/* #galeria é decorative-section → position: relative; overflow: hidden */
.blob-galeria-blue {
  bottom: 20px;
  left: 20px;
  opacity: 0.32;
  z-index: 5;
}

.blob-galeria-yellow {
  top: -20px;
  left: 15%;
  opacity: 0.32;
  z-index: 0;
}

/* .container e .gallery-grid ficam acima via stacking order      */
#galeria .container {
  position: relative;
  z-index: 1;
}

/* ---- Depoimentos — blobs discretos (primeiro e último card) ---- */
/* #depoimentos é decorative-section → position: relative          */
.blob-testim-first {
  top: 30px;
  left: -35px;
  opacity: 0.32;
  z-index: 0;
}

.blob-testim-last {
  bottom: 30px;
  right: -35px;
  opacity: 0.32;
  z-index: 0;
}

/* Garante que cards fiquem acima dos blobs de depoimentos         */
.testimonials-carousel {
  position: relative;
  z-index: 1;
}

/* ---- Localização — blob-blue atrás do mapa ---- */
/* .map-container precisa de position: relative                   */
.map-container {
  position: relative;
}

.blob-mapa {
  top: -42px;
  left: -55px;
  opacity: 0.38;
  z-index: 0;
}

/* map-iframe e map-info acima do blob                            */
.map-iframe,
.map-info {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FIM SPRINT 3 — BLOB COMPOSITION SYSTEM
   ============================================================ */

/* ============================================================
   SPRINT 8A — DECORATION ANIMATIONS
   Microanimações sutis e naturais para elementos decorativos
   ============================================================ */

/* ---- Nuvens: Movimento horizontal suave ---- */
@keyframes cloudDrift {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(10px);
  }
}

@keyframes cloudDriftReverse {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-10px);
  }
}

/* ---- Flores: Leve rotação ---- */
@keyframes flowerSway {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

/* ---- Borboletas: Leve flutuação ---- */
@keyframes butterflyFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ---- Torre Montessori: Respiração (scale) ---- */
@keyframes towerBreathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

/* ---- Sparkles: Brilho sutil ---- */
@keyframes sparkleGlow {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* ---- Paper plane: Deslizar suave ---- */
@keyframes paperGlide {

  0%,
  100% {
    transform: translateY(0) rotate(35deg);
  }

  50% {
    transform: translateY(-5px) rotate(35deg);
  }
}

/* ---- Rainbow: Aparição suave pulsante ---- */
@keyframes rainbowPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }
}

/* ---- Wooden blocks: Respiração muito sutil ---- */
@keyframes blockBreathe {

  0%,
  100% {
    transform: scale(1) rotate(-15deg);
  }

  50% {
    transform: scale(1.02) rotate(-15deg);
  }
}

/* ---- Kite: Movimento horizontal suave ---- */
@keyframes kiteFloat {

  0%,
  100% {
    transform: translateX(0) rotate(15deg);
  }

  50% {
    transform: translateX(8px) rotate(15deg);
  }
}

/* ---- Blobs: Flutuação ultra sutil ---- */
@keyframes blobFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ---- Classes de animação para decorations ---- */
.deco-anim-cloud {
  animation: cloudDrift 12s ease-in-out infinite;
}

.deco-anim-cloud-reverse {
  animation: cloudDriftReverse 14s ease-in-out infinite;
}

.deco-anim-flower {
  animation: flowerSway 9s ease-in-out infinite;
  transform-origin: center bottom;
}

.deco-anim-butterfly {
  animation: butterflyFloat 7s ease-in-out infinite;
}

.deco-anim-tower {
  animation: towerBreathe 11s ease-in-out infinite;
}

.deco-anim-sparkle {
  animation: sparkleGlow 8s ease-in-out infinite;
}

.deco-anim-paper {
  animation: paperGlide 10s ease-in-out infinite;
}

.deco-anim-rainbow {
  animation: rainbowPulse 13s ease-in-out infinite;
}

.deco-anim-blocks {
  animation: blockBreathe 12s ease-in-out infinite;
}

.deco-anim-kite {
  animation: kiteFloat 11s ease-in-out infinite;
}

.deco-anim-blob {
  animation: blobFloat 15s ease-in-out infinite;
}

/* ---- Delays individuais para evitar sincronia ---- */
.deco-delay-1 {
  animation-delay: 0s;
}

.deco-delay-2 {
  animation-delay: 1.2s;
}

.deco-delay-3 {
  animation-delay: 2.5s;
}

.deco-delay-4 {
  animation-delay: 0.8s;
}

.deco-delay-5 {
  animation-delay: 3.1s;
}

.deco-delay-6 {
  animation-delay: 1.8s;
}

.deco-delay-7 {
  animation-delay: 0.4s;
}

.deco-delay-8 {
  animation-delay: 2.2s;
}

.deco-delay-9 {
  animation-delay: 1.5s;
}

.deco-delay-10 {
  animation-delay: 3.5s;
}

/* ============================================================
   FIM SPRINT 8A — DECORATION ANIMATIONS
   ============================================================ */


/* ============================================================
   SPRINT 7B — ESTABILIZAÇÃO MOBILE (SOMENTE MOBILE)
   ============================================================ */

@media (max-width: 768px) {

  /* ETAPA 2 — Hero Mobile: Ocultar elementos decorativos sobre texto */
  .hero .decorative-element {
    display: none !important;
  }

  /* ETAPA 3 — Foto da Hero Mobile: Neutralizar deslocamentos artificiais */
  .hero-visual-wrapper {
    transform: none !important;
    padding: 0 !important;
  }

  .hero-arch-mask {
    transform: none !important;
    margin-bottom: 0 !important;
  }

  /* ETAPA 4 — Nuvem Mobile: Ocultar hero-cloud-divider */
  .hero-cloud-divider {
    display: none !important;
  }

  .hero-cloud-divider img {
    display: none !important;
  }

  /* SPRINT 7C — Hero Mobile: Reordenar elementos (Badge → Imagem → Título → Texto → Botões) */
  /* display:contents achata a hierarquia para que os filhos de .hero-content
     se comportem como filhos diretos de .hero .container, permitindo reordenar
     o badge antes da imagem sem alterar o HTML */
  .hero .container {
    display: flex !important;
    flex-direction: column !important;
  }

  .hero-content {
    display: contents !important;
  }

  .hero-badge-pill {
    order: 0 !important;
  }

  .hero-visual-wrapper {
    order: 1 !important;
  }

  .hero-title {
    order: 2 !important;
  }

  .hero-description {
    order: 3 !important;
  }

  .hero-buttons {
    order: 4 !important;
  }

  .hero-microcopy {
    order: 5 !important;
  }

  /* SPRINT 7C — Socioemocional Mobile: Reduzir espaço entre imagem e label */
  .emocional-premium {
    padding-top: 0 !important;
    overflow: visible !important;
  }

  .emocional-premium .container {
    padding-top: 0 !important;
  }

  .emocional-absurdo {
    gap: 35px !important;
  }

  .emocional-left img {
    max-width: 100% !important;
    margin: 0 auto !important;
    animation: none !important;
  }

  .emocional-right {
    text-align: center !important;
  }

  .emocional-point {
    text-align: left !important;
  }
}