/* ==========================================================================
   CENTRO EDUCACIONAL CHAMBARELLI - DESIGN SYSTEM MODERNO
   Identidade: Verde Institucional, Azul Nobre, Detalhes Dourados e Alta Legibilidade
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Cores Oficiais e Modernizadas */
  --primary: #007a33;
  --primary-hover: #006028;
  --primary-dark: #00471d;
  --primary-light: #eaf6ee;
  --primary-surface: #f2fbf5;
  --primary-gradient: linear-gradient(135deg, #00873a 0%, #005624 100%);
  --primary-gradient-subtle: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);

  --neutral-dark: #1e293b;
  --neutral-gray: #475569;
  --neutral-light: #f1f5f9;
  --neutral-border: #e2e8f0;
      
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;

  /* Neutros e Superfícies */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Efeitos e Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(0, 80, 25, 0.09), 0 6px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 30px -6px rgba(0, 100, 35, 0.16), 0 8px 16px -4px rgba(0, 0, 0, 0.06);

  /* Tipografia */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transições e Raios */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   TOP BAR - PORTAIS EXTERNOS & ACESSO RÁPIDO
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.top-bar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
}

.top-bar-contact a:hover {
  color: #ffffff;
}

.top-bar-portals {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.775rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.portal-badge:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
  color: #ffffff;
}

.portal-badge.highlight {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.portal-badge.highlight:hover {
  background: var(--primary-hover);
}

/* Ocultar e-mail e compactar espaçamentos em telas médias para a barra superior e navegação nunca quebrarem */
@media (max-width: 1250px) {
  .top-bar-email {
    display: none !important;
  }
  .navbar {
    gap: 0.75rem;
  }
  .nav-links {
    gap: 0.25rem;
  }
  .nav-link {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
  }
  .btn-header-cta {
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   HEADER & NAVBAR PRINCIPAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  min-height: 72px;
  gap: 1.5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: var(--transition);
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.04);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav Container Desktop */
.nav-container {
  display: flex;
  align-items: center;
}

/* O botão de fechar mobile NUNCA deve aparecer no desktop */
.mobile-close-btn {
  display: none !important;
}

/* Lista de Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  display: inline-flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap !important;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-surface);
}

.nav-link.active {
  color: #ffffff !important;
  background: var(--primary) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 122, 51, 0.25);
}

/* Dropdown de Segmentos */
.nav-item-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  margin-top: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1005;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.4;
  transition: var(--transition);
}

.dropdown-link:hover {
  background-color: var(--primary-surface);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown-link:hover .dropdown-bullet {
  opacity: 1;
  transform: scale(1.3);
}

.dropdown-link.active {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.dropdown-link.active .dropdown-bullet {
  opacity: 1;
  background-color: var(--primary);
}

/* Botões de Ação do Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 122, 51, 0.25);
  transition: var(--transition);
  white-space: nowrap !important;
  text-decoration: none;
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 122, 51, 0.35);
  color: #ffffff;
}

/* Mobile Toggle - oculto no desktop */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ==========================================================================
   CONTAINER & ESTRUTURA GERAL
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 6.5rem 0;
}

.bg-white {
  background-color: var(--bg-surface);
}

.bg-light {
  background-color: var(--bg-page);
}

.bg-primary-subtle {
  background: var(--primary-gradient-subtle);
}

.bg-blue-brand {
  background-color: var(--primary);
  color: #ffffff;
}

.bg-primary-brand {
  background: var(--primary-gradient);
  color: #ffffff;
}

/* Header de Seção */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-header.text-start {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.badge-tag.tag-gray {
  background: var(--neutral-light);
  color: var(--neutral-dark);
  border: 1px solid var(--neutral-border);
}

.badge-tag.tag-blue {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-tag.tag-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-tag.tag-gold {
  background: var(--accent-gold-light);
  color: #b45309;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.bg-blue-brand .section-title,
.bg-primary-brand .section-title {
  color: #ffffff;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.bg-blue-brand .section-description,
.bg-primary-brand .section-description {
  color: #cbd5e1;
}

/* ==========================================================================
   BOTÕES & COMPONENTES INTERATIVOS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 122, 51, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 122, 51, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover {
  background: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-hover);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem 0;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 122, 51, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 122, 51, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary-dark);
  font-size: 0.825rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.2);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 122, 51, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0, 122, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 122, 51, 0); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-title span.text-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  white-space: nowrap;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Imagem e Cards do Hero */
.hero-media {
  position: relative;
}

.hero-image-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-box:hover .hero-img {
  transform: scale(1.025);
}

/* Card Flutuante 1 - Anos de tradição */
.hero-floating-card-1 {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: float 4s ease-in-out infinite;
}

/* Card Flutuante 2 - Metodologia STEAM */
.hero-floating-card-2 {
  position: absolute;
  top: -15px;
  right: -20px;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-icon.green {
  background: var(--primary-light);
  color: var(--primary);
}

.floating-icon.blue {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.floating-title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.floating-desc {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ==========================================================================
   PORTAIS RÁPIDOS (ACESSO DA COMUNIDADE ESCOLAR)
   ========================================================================== */
.portals-strip {
  background: #ffffff;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.portal-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.portal-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.portal-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.portal-card:hover .portal-icon {
  transform: scale(1.08);
}

.portal-icon.blue, .portal-icon.gray {
  background: var(--primary-light);
  color: var(--primary);
}

.portal-icon.green {
  background: var(--primary-light);
  color: var(--primary);
}

.portal-icon.purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.portal-icon.orange {
  background: #ffedd5;
  color: #c2410c;
}

.portal-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.portal-info p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   TURNOS E HORÁRIOS ESCOLARES (SISTEMA DE CARDS RESPONSIVOS)
   ========================================================================== */
.turnos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.turnos-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}

.turno-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.turno-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.turno-card.destaque {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
}

.turno-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease;
}

.turno-card:hover .turno-icon {
  transform: scale(1.08);
}

.turno-manha .turno-icon {
  background: #fef3c7;
  color: #d97706;
}

.turno-tarde .turno-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.turno-integral .turno-icon {
  background: #dcfce7;
  color: var(--primary);
}

.turno-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--neutral-light);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.turno-badge.badge-destaque {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
}

.turno-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.turno-time {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.85rem;
  display: inline-block;
  letter-spacing: -0.01em;
}

.turno-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   SEGMENTOS EDUCACIONAIS (CARDS PRINCIPAIS)
   ========================================================================== */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.segment-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.segment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 122, 51, 0.3);
}

.segment-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.segment-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.segment-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.segment-card:hover .segment-img {
  transform: scale(1.05);
}

.segment-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.segment-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.segment-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.segment-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.segment-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-main);
  font-weight: 500;
}

.segment-feature-item svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.segment-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 0.25rem;
}

.segment-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.segment-card:hover .segment-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   DIFERENCIAIS: EDUCAÇÃO 4.0, MAKER, STEAM, SAS E SOCIOEMOCIONAL
   ========================================================================== */
.differentials-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.differential-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.5rem;
  transition: var(--transition);
}

.differential-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 122, 51, 0.3);
}

.diff-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-icon-box.green {
  background: var(--primary-light);
  color: var(--primary);
}

.diff-icon-box.gray,
.diff-icon-box.blue {
  background: var(--neutral-light);
  color: var(--primary);
}

.diff-icon-box.gold {
  background: var(--accent-gold-light);
  color: #b45309;
}

.diff-icon-box.purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.diff-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.diff-content p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.diff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.diff-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-page);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   FEATURE BANNER (DESTAQUE CULTURA MAKER & SAS)
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.feature-split.reversed {
  direction: rtl;
}

.feature-split.reversed > * {
  direction: ltr;
}

.feature-image-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.feature-badge-float {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}

.feature-list-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.feature-check-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-item-text h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-item-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* ==========================================================================
   ATIVIDADES EXTRACURRICULARES
   ========================================================================== */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.extra-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  transition: var(--transition);
}

.extra-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 122, 51, 0.3);
}

.extra-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.extra-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.extra-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.extra-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.extra-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   LISTAS DE MATERIAIS ESCOLARES (DOWNLOADS)
   ========================================================================== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.materials-grid.two-cols {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.material-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.material-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.material-card-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pdf-icon-box {
  width: 44px;
  height: 44px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.material-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-download-pdf {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.material-card:hover .btn-download-pdf {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   TABELAS E HORÁRIOS
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: var(--primary-surface);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 1.15rem 1.5rem;
  border-bottom: 2px solid var(--border-color);
  font-size: 0.925rem;
}

.custom-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.925rem;
  color: var(--text-main);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background-color: #fafbfc;
}

/* ==========================================================================
   TABELA RESPONSIVA EM CARDS (CELULAR / MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
  .table-responsive {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .custom-table {
    display: block !important;
    width: 100% !important;
    border-collapse: separate !important;
  }

  .custom-table thead {
    display: none !important; /* Esconde o cabeçalho rígido que quebra e espreme no mobile */
  }

  .custom-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .custom-table tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    position: relative !important;
    border-left: 5px solid var(--primary) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .custom-table tr:nth-child(1) { border-left-color: #045d39 !important; }
  .custom-table tr:nth-child(2) { border-left-color: #10b981 !important; }
  .custom-table tr:nth-child(3) { border-left-color: #f59e0b !important; }
  .custom-table tr:nth-child(4) { border-left-color: #0284c7 !important; }
  .custom-table tr:nth-child(5) { border-left-color: #8b5cf6 !important; }

  .custom-table tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07) !important;
  }

  .custom-table tr:hover td {
    background-color: transparent !important;
  }

  .custom-table td {
    border-bottom: none !important;
    padding: 0 !important;
  }

  /* 1ª coluna: Idade da Criança */
  .custom-table td:nth-child(1) {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--primary-dark) !important;
    font-family: var(--font-heading) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  /* 2ª coluna: Tag da Turma */
  .custom-table td:nth-child(2) {
    display: inline-flex !important;
    align-items: center !important;
    margin-left: auto !important;
  }

  .custom-table td:nth-child(2) .badge-tag {
    margin: 0 !important;
    padding: 0.38rem 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    border-radius: 100px !important;
  }

  /* 3ª coluna: Principais Focos de Desenvolvimento */
  .custom-table td:nth-child(3) {
    width: 100% !important;
    margin-top: 0.85rem !important;
    padding-top: 0.85rem !important;
    border-top: 1px dashed #e2e8f0 !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    color: #334155 !important;
  }

  .custom-table td:nth-child(3)::before {
    content: "Foco de Desenvolvimento:";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
  }
}


/* ==========================================================================
   LINHA DO TEMPO HISTÓRICA (PÁGINA SOBRE)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(0, 122, 51, 0.2) 100%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
  padding: 0 2.5rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0.4rem;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 4px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 122, 51, 0.15);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 122, 51, 0.3);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   UNIDADES & CONTATO
   ========================================================================== */
.units-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.unit-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.unit-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.unit-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.unit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unit-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.unit-badge {
  font-size: 0.775rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.unit-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.unit-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.unit-detail-row svg {
  color: var(--primary);
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Formulário de Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.contact-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fafbfc;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 122, 51, 0.15);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-success-message {
  display: none;
  background: #dcfce7;
  color: #166534;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-top: 1rem;
  text-align: center;
}

/* ==========================================================================
   CALL TO ACTION BANNER (MATRÍCULAS 2026 / 2027)
   ========================================================================== */
.cta-banner {
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER COMPLETO & MODERNO
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  width: 50px;
  height: 50px;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-md);
}

.footer-logo-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
  color: #ffffff;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #94a3b8;
}

.footer-contact-item svg {
  color: var(--primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #ffffff;
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   BREADCRUMBS & PÁGINAS INTERNAS
   ========================================================================== */
.page-banner {
  background: linear-gradient(135deg, #007a33 0%, #004d20 100%);
  color: #ffffff;
  padding: 4rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.page-banner-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-size: 2.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.page-banner-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVIDADE (TABLETS E TELAS MENORES)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-media {
    max-width: 600px;
    margin: 0 auto;
  }

  .portals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .differentials-wrapper {
    grid-template-columns: 1fr;
  }

  .feature-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-split.reversed {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Ativação do Menu Mobile em Tablets / Telas Médias */
  .mobile-toggle {
    display: flex !important;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem 1.5rem;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
    z-index: 1002;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-container.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-close-btn {
    display: flex !important;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: var(--transition);
  }

  .mobile-close-btn:hover {
    background: #e2e8f0;
    color: #ef4444;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-links li {
    display: block;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
  }

  /* Dropdown no Menu Mobile */
  .nav-item-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .dropdown-toggle {
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 0.35rem 0.5rem;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
    border-left: 3px solid var(--primary-light) !important;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .dropdown-link {
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
  }

  .mobile-overlay.active {
    display: block;
  }

  .header-actions .btn-header-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.4rem 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .top-bar-contact {
    display: none;
  }
  
  .top-bar .container {
    width: 100%;
    padding: 0 0.75rem;
    justify-content: center;
  }

  .top-bar-portals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 0.35rem;
  }

  .portal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.45rem;
    font-size: 0.74rem;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    border-radius: var(--radius-full);
  }

  /* Alinhamento dos 3 Badges de Estatísticas do Hero (Foto 3) */
  .hero-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding-top: 1.5rem;
    align-items: stretch;
  }

  .hero-stat-card {
    background: #ffffff;
    padding: 0.85rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    min-height: 100%;
  }

  .hero-stat-number {
    font-size: 1.25rem;
    white-space: nowrap;
    line-height: 1.15;
    margin-bottom: 0.25rem;
    display: block;
  }

  .hero-stat-label {
    font-size: 0.72rem;
    line-height: 1.35;
    margin-top: 0;
    display: block;
  }

  /* Evitar que os cards flutuantes vazem além da tela em celulares */
  .hero-media {
    max-width: 100%;
    padding: 0 0.25rem;
  }

  .hero-floating-card-1 {
    bottom: 10px;
    left: 10px;
    padding: 0.65rem 0.85rem;
  }

  .hero-floating-card-2 {
    top: 10px;
    right: 10px;
    padding: 0.65rem 0.85rem;
  }

  .floating-icon {
    width: 36px;
    height: 36px;
  }

  .floating-title {
    font-size: 0.825rem;
  }

  .floating-desc {
    font-size: 0.725rem;
  }

  .hero {
    padding: 3rem 0 4rem 0;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .section-title {
    font-size: 1.95rem;
  }

  .segments-grid {
    grid-template-columns: 1fr;
  }

  .turnos-grid,
  .turnos-grid.two-cols,
  .portals-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .turno-card {
    padding: 1.6rem 1.4rem !important;
    width: 100% !important;
  }

  .extras-grid {
    grid-template-columns: 1fr;
  }

  .extra-card {
    grid-template-columns: 1fr;
  }

  .materials-grid,
  .materials-grid.two-cols {
    grid-template-columns: 1fr !important;
  }

  .units-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 45px;
    padding-right: 0;
  }

  .timeline-item .timeline-dot {
    left: 10px !important;
    right: auto !important;
  }

  .cta-banner {
    padding: 3rem 1.5rem;
  }

  .cta-title {
    font-size: 1.85rem;
  }

  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 440px) {
  .portal-badge {
    font-size: 0.7rem;
    padding: 0.28rem 0.35rem;
    gap: 0.25rem;
  }

  .hero-badges {
    gap: 0.45rem;
  }

  .hero-stat-card {
    padding: 0.75rem 0.45rem;
  }

  .hero-stat-number {
    font-size: 1.08rem;
    letter-spacing: -0.02em;
  }

  .hero-stat-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }
}
