/* ======================================================
   PLANTEL - style.css (OTIMIZADO E COMPLETO)
   - Mantém 100% da funcionalidade original
   - Adiciona animações suaves
   - Tratamento de erros CSS
   - Performance otimizada
====================================================== */

/* ================= PROGRESSIVE ENHANCEMENT ================= */
.secao,
.reveal,
.box-comunidade {
  opacity: 1;
  transform: none;
}

body.js .reveal,
body.js .secao.reveal,
body.js .box-comunidade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.js .reveal.visible,
body.js .secao.reveal.visible,
body.js .box-comunidade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeita reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ======================================================
   SAFETY & PROGRESSIVE ENHANCEMENT
   - Conteúdo nunca fica invisível se JS falhar
====================================================== */

/* Por padrão: tudo visível */
.secao,
.reveal {
  opacity: 1;
  transform: none;
}

/* Se JS ativar (opcional): começa oculto e revela por classe .visible */
body.js .reveal,
body.js .secao.reveal {
  opacity: 0;
  transform: translateY(18px);
}

/* Respeita reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .secao,
  .reveal,
  .box-comunidade,
  .box-redes,
  .card-professor,
  #backToTop,
  .social-actions,
  .social-toggle,
  .logo-parceiros {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ================= VARIÁVEIS E CONFIGURAÇÕES GERAIS ================= */
:root {
  --primary-color: #2e7d32;
  /* Verde institucional */
  --accent-color: #4caf50;
  /* Verde destaque */
  --whatsapp-color: #25d366;
  /* Cor oficial do WhatsApp */
  --text-dark: #2c3e50;
  --text-light: #f8f9fa;
  --bg-light: #f4f7f6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  --hero-height: 85vh;
  --hero-padding: 0 20px;
  --hero-margin-bottom: 25vh;
  --logo-size: 200px;
  --logo-radius: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Deixa a fonte mais bonita no iPhone */
}

/* ================= HEADER (MODERNIZADO E ALINHADO) ================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Distribui: Logo | Menu | WhatsApp */
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

#logo-header-zap {
  width: 40px;
  height: 30px;
  padding-right: 10px;
}

.logo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Menu centralizado */
.menu {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex: 1;
  /* Ocupa o espaço central para empurrar os outros itens */
}

.menu a {
  font-family: "Pathway Gothic One", sans-serif;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.menu a:hover {
  color: var(--primary-color);
}

.menu a:hover::after {
  width: 100%;
}

/* Link WhatsApp no canto superior direito */
#link {
  text-decoration: none;
  background-color: var(--whatsapp-color);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

#link h3 {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1rem;
  margin: 0;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

#link:hover {
  background-color: #128c7e;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ================= HERO SECTION (COM EFEITO PARALLAX) ================= */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("images/bandeirabrasil.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.title h1 {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--white);
  text-shadow: 2px 4px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 15px;
}

.frase-kant {
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px;
  border-left: 4px solid var(--accent-color);
  padding-left: 25px;
  line-height: 1.4;
}

/* Container dos botões */
.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
}

/* Estilo base dos botões */
.btn-hero {
  padding: 10px 20px;
  border-radius: 50px;
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* Espaço entre o texto e a seta */
  transition: all 0.3s ease;
}

.btn-hero img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Botão Entrar (Verde) */
.btn-entrar {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-entrar:hover {
  background-color: #1b5e20;
  transform: translateY(-3px);
}

/* Botão Saiba Mais (Transparente + Seta) */
.btn-saiba-mais {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-saiba-mais i {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-saiba-mais:hover {
  background-color: rgba(255, 255, 255, 0.1);
  /* Fundo leve no hover */
  transform: translateY(-3px);
}

.btn-saiba-mais:hover i {
  transform: translateY(3px);
  /* Seta mexe um pouco para baixo no hover */
}

/* Responsivo */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero {
    width: 100%;
  }
}

/* ================= SEÇÕES E ANIMAÇÕES DE SCROLL ================= */
.secao {
  padding: 100px 10% 80px;
  background: var(--white);
}

.secao:nth-child(even) {
  background: var(--bg-light);
}

.secao h2 {
  text-align: center;
  font-size: 2.8rem;
  font-family: "Pathway Gothic One", sans-serif;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.line {
  background: linear-gradient(to right,
      transparent,
      var(--primary-color),
      transparent);
  width: 250px;
  height: 4px;
  margin: 0 auto 40px;
  border-radius: 10px;
}

.text-info-out {
  font-weight: 400;
  font-size: 1.2rem;
  color: #444;
  text-align: justify;
  max-width: 900px;
  margin: 35px auto 50px;
}

/* ================= CARDS DE COMUNIDADES (VERSÃO PROFISSIONAL) ================= */
.container-comunidades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  align-items: stretch;
}

.box-comunidade {
  opacity: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.03),
    0 10px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animar quando entrar na tela */
.box-comunidade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover elegante */
.box-comunidade:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 6px 12px rgba(46, 125, 50, 0.08);
  border-color: var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Cabeçalho do card - Limpo e elegante */
.box-comunidade-top {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

/* Linha decorativa sutil no topo */
.box-comunidade-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

/* Logo com borda sutil */
.logo-comunidade {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  object-fit: cover;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.box-comunidade:hover .logo-comunidade {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Título */
.text-info-in {
  font-size: 1.6rem;
  color: white;
  font-family: "Pathway Gothic One", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Conteúdo do card */
.text-info-in-inside {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  padding: 24px;
  flex: 1;
  background: linear-gradient(to bottom,
      transparent 95%,
      rgba(76, 175, 80, 0.03) 100%);
}

/* Destaques dentro do card (lista de benefícios) */
.box-comunidade-listas-efeito,
.box-comunidade-efeito {
  background: #f8fdf8;
  margin: 0 24px 24px;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  position: relative;
}

/* Ícone sutil no destaque */
.box-comunidade-listas-efeito::before,
.box-comunidade-efeito::before {
  content: "✓";
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0.3;
}

/* Itens com check verde */
.box-comunidade-listas-efeito p,
.box-comunidade-efeito p {
  color: #2e7d32;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.box-comunidade-listas-efeito p:before,
.box-comunidade-efeito p:before {
  content: "• ";
  color: var(--accent-color);
  font-weight: bold;
  margin-right: 6px;
}

/* ================= DARK MODE ELEGANTE ================= */
body.dark-theme .box-comunidade {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.15);
}

body.dark-theme .box-comunidade:hover {
  border-color: rgba(76, 175, 80, 0.3);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.2),
    0 6px 12px rgba(76, 175, 80, 0.1);
}

body.dark-theme .text-info-in-inside {
  color: #e0e0e0;
  background: linear-gradient(to bottom,
      transparent 95%,
      rgba(76, 175, 80, 0.05) 100%);
}

body.dark-theme .box-comunidade-listas-efeito,
body.dark-theme .box-comunidade-efeito {
  background: rgba(46, 125, 50, 0.08);
  border-left-color: var(--accent-color);
}

body.dark-theme .box-comunidade-listas-efeito p,
body.dark-theme .box-comunidade-efeito p {
  color: #a5d6a7;
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 768px) {
  .container-comunidades {
    gap: 20px;
    padding: 10px;
  }

  .box-comunidade-top {
    padding: 20px;
    gap: 12px;
  }

  .logo-comunidade {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .text-info-in {
    font-size: 1.4rem;
  }

  .text-info-in-inside {
    padding: 20px;
    font-size: 0.95rem;
  }

  .box-comunidade-listas-efeito,
  .box-comunidade-efeito {
    margin: 0 20px 20px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .container-comunidades {
    grid-template-columns: 1fr;
  }

  .box-comunidade {
    border-radius: 14px;
  }
}

/* ================= NUMBERS (BLOCOS DE METRICS) - ATUALIZADO ================= */
.container-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.numbers {
  flex: 1 1 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.numbers-text {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  width: 100%;
  color: var(--primary-color);
  font-family: "Segoe UI", system-ui, sans-serif;
  opacity: 0;
  /* Inicia invisível */
  transform: translateY(20px);
  /* Posição inicial para animação */
  transition: transform 0.3s ease;
  /* Apenas para transições suaves */
}

/* Estado ANIMANDO */
.numbers-text.animating {
  opacity: 1;
  animation: countUp 0.8s ease-out forwards;
}

/* Estado FINALIZADO */
.numbers-text.animated {
  opacity: 1;
  transform: translateY(0);
  color: var(--primary-color);
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Dark mode para animação */
body.dark-theme .numbers-text.animating {
  color: #81c784 !important;
  text-shadow: 0 0 10px rgba(129, 199, 132, 0.4);
}

.numbers-text-label {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-top: 8px;
  opacity: 0;
  /* Começa invisível */
  transform: translateY(10px);
  transition: all 0.5s ease 0.3s;
  /* Delay para aparecer depois do número */
}

/* Quando o número terminar de animar, mostra o label */
.numbers-text.animated+.numbers-text-label,
.numbers-text.animating+.numbers-text-label {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ANIMAÇÃO DO CONTADOR ATUALIZADA ================= */
@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    color: #2e7d32;
    /* Cor inicial (mais escura) */
  }

  50% {
    transform: translateY(-5px) scale(1.05);
    color: #4caf50;
    /* Cor intermediária (mais vibrante) */
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    color: var(--primary-color);
    /* Cor final */
  }
}

/* Efeito de pulso suave quando termina a contagem */
@keyframes gentlePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.numbers-text.animating:after {
  animation: gentlePulse 0.3s ease 0.8s;
}

/* ================= SEÇÃO NOSSO ALCANCE (REDES DE APOIO) ================= */
.container-redes {
  display: grid;
  /* Isso cria colunas automáticas de no mínimo 300px */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  /* limita largura para centralizar visualmente */
  margin: 0 auto;
  padding: 20px 0;
  align-items: stretch;
  /* força colunas com mesma altura */
  min-height: 650px;
}

.box-redes {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow);
}

.box-redes:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.title-rede {
  font-size: 1.5em;
  margin: auto;
  padding-top: 10px;
}

/* --- SEÇÃO COMO FUNCIONA (IDENTIDADE VERDE) --- */
.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  /* O verde do "Nosso Alcance" */
  margin: 15px auto 50px;
  border-radius: 2px;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* A LINHA - Fica no fundo (z-index: 1) */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #e0e0e0;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
}

/* O ÍCONE - Fica na frente (z-index: 10) */
.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  /* Verde Identidade */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  width: 42%;
  background: var(--bg-light);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: var(--transition);
  border-bottom: 3px solid var(--primary-color);
  /* Detalhe verde na base */
}

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

.step-label {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 5px 0 10px;
  color: var(--text-dark);
}

/* Posicionamento Esquerda/Direita */
.side-left {
  justify-content: flex-start;
}

.side-right {
  justify-content: flex-end;
}

/*=================== SEÇÃO PARCEIROS =================*/
.hero-parceiro {
  height: var(--hero-height);
  background-size: cover;
  background-position: center 100px;
  background-attachment: scroll;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--hero-padding);
  margin-bottom: 10vh;
}

.logo-parceiros {
  width: var(--logo-size);
  border-radius: var(--logo-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo-parceiros:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.hero-parceiro[data-parceiro="cosseno"] {
  background-image: var(--gradient-overlay), url("fundo_parceiros/cosseno.png");
  background-position: center 0px;
}

.hero-parceiro[data-parceiro="fenix"] {
  background-image: var(--gradient-overlay), url("fundo_parceiros/fênix.png");
  background-position: center 100px;
}

.hero-parceiro[data-parceiro="japa"] {
  background-image: var(--gradient-overlay), url("fundo_parceiros/japa.png");
  background-position: center 50px;
}

.hero-parceiro[data-parceiro="puppin"] {
  background-image: var(--gradient-overlay), url("fundo_parceiros/puppin.png");
  background-position: center -25px;
}

.hero-parceiro[data-parceiro="mobius"] {
  background-image:
    var(--gradient-overlay), url("fundo_parceiros/fundo-mobius.png");
  background-position: center 90px;
}

.logo-japa {
  border-radius: 0;
  box-shadow: none;
}

.logo-fenix {
  width: 250px;
  box-shadow: none;
}

.logo-cosseno {
  width: 150px;
}

.logo-mobius {
  width: 150px;
}

.hero-parceiro-text {
  text-align: center;
  margin: 10px;
  font-size: 1.5em;
  font-family: "Pathway Gothic One", sans-serif;
  text-shadow: var(--shadow);
  color: white;
}

/* ================= BOTÃO VOLTAR AO TOPO ================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  /* Fica acima do header se necessário */
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

/* ================= NAVBAR LATERAL ================= */
.navbar {
  display: flex;
  background-color: transparent;
  position: fixed;
  top: 50%;
  left: 28px;
  /* Reduzido de 80px para 20px para ficar mais no canto */
  transform: translateY(-50%);
  z-index: 99;
  opacity: 1;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  /* Transparência ajustada (o final '5d' ou '80' define a opacidade) */
  background-color: rgba(238, 242, 245, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: left;
  border-radius: 10px;
  /* Borda sutil para ajudar no efeito de vidro */
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 50px #2e7d3231;
}

.navbar li+li {
  margin-top: 0.75rem;
}

.navbar a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 8px;
  position: relative;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.navbar a:hover,
.navbar a:focus,
.navbar a.active {
  background-color: #2e7d32;
  box-shadow: 0px 14px 60px #4caf50;
}

.navbar a img {
  width: 30px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* Ajuste para quando o item está ativo/hover */
.navbar a:hover img,
.navbar a:focus img,
.navbar a.active img {
  filter: brightness(1.1);
  /* Pequeno realce visual */
}

.navbar a span {
  position: absolute;
  background-color: #2e7d32;
  color: #ffffff;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  left: calc(100% + 1.5rem);
  transform-origin: center left;
  transform: scale(0);
  opacity: 0;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.navbar a:hover span,
.navbar a:focus span,
.navbar a.active span {
  transform: scale(1);
  opacity: 1;
}

.navbar a span:before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  position: absolute;
  background-color: #2e7d32;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 3px;
}

/* Chamada para novos professores no final da seção */
.professores-footer {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  /* Um fundo sutil para destacar */
  border-radius: 20px;
}

.professores-footer h3 {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Centraliza o botão dentro dessa área */
.professores-footer .hero-cta {
  justify-content: center;
  margin-top: 0;
}

/* Chamada para parceiros no final da seção */
.parceiros-footer {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  border-radius: 20px;
}

.parceiros-footer h3 {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Centraliza o botão */
.parceiros-footer .hero-cta {
  justify-content: center;
  margin-top: 0;
}

/* ================= FAQ SECTION ================= */
.faq-section {
  padding: 100px 20px;
  background-color: var(--bg-light);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: var(--transition);
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  /* Transição suave de tempo e movimento */
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-item.active .faq-answer {
  /* Use um valor alto o suficiente para qualquer texto (ex: 500px) */
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  padding: 0 25px 20px 25px;
  color: #666;
  line-height: 1.6;
}

/* Estado Aberto */
.faq-item.active .faq-question {
  color: var(--primary-color);
}

/* Garante que o ícone gire para indicar que está aberto */
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Efeito de Hover nos itens do FAQ */
.faq-item:hover {
  transform: translateY(-4px);
  /* Sobe um pouquinho */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  /* Sombra mais profunda */
  border-color: var(--primary-color);
  /* Se tiver borda, ela destaca */
  background-color: rgba(255, 255, 255, 0.98);
  /* Fundo destaca levemente */
}

/* Efeito de Hover específico no texto da pergunta */
.faq-question:hover {
  color: var(--primary-color);
}

/* Faz o ícone dar um pequeno pulinho no hover */
.faq-item:not(.active):hover .faq-question i {
  transform: scale(1.2);
  color: var(--primary-color);
}

/* ================= FILTROS MODERNOS ================= */
.filters {
  display: flex;
  flex-direction: row;
  /* Força um ao lado do outro */
  justify-content: center;
  /* Centraliza o grupo na tela */
  align-items: center;
  gap: 8px;
  /* Espaço reduzido entre botões */
  margin: 20px auto;
  padding: 10px 5px;
  width: 100%;
  max-width: 1000px;
}

.filter-btn {
  /* Ajuste de tamanho para caber tudo em uma linha */
  padding: 8px 15px;
  font-size: 0.85rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  /* Impede que o texto quebre linha */
  flex: 0 1 auto;
  /* Permite que o botão encolha se a tela for mini */
}

/* Efeito Ativo e Hover */
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  /* Removido o transform: translateY para garantir que nada seja cortado */
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

/* ================= SEÇÃO PROFESSORES ================= */
.container-professores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.card-professor {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  width: 250px;
  /* Faz o card ocupar o espaço do slide */
  max-width: 350px;
  margin: 0;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  min-height: 500px;
}

.card-professor:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}

.foto-professor {
  width: 100%;
  height: 250px;
}

.foto-professor img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center -40px;
}

.foto-germano img {
  object-position: center -5px;
}

.info-professor {
  padding: 20px;
}

.info-professor h3 {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 2.5em;
  color: var(--primary-color);
}

.info-professor h2 {
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.info-professor .materia {
  display: block;
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.info-professor p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.redes-professor {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.redes-professor a {
  color: var(--text-dark);
  transition: var(--transition);
}

.redes-professor a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.swiper {
  width: 100%;
  padding: 40px 50px !important;
  /* Espaço para a sombra do card não cortar */
}

.swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  /* Garante que todos os cards tenham a mesma altura */
}

/* Customizando as setas para o verde do Plantel */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color) !important;
  transform: scale(0.8);
}

.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}

/* ================= FOOTER MODERNIZADO ================= */
.main-footer {
  background-color: rgba(255, 255, 255, 0.8);
  /* Transparência */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 60px 5% 40px;
  border-top: 1px solid rgba(46, 125, 50, 0.1);
  margin-top: 50px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: 10%;
  padding-left: 5%;
  text-align: left;
}

.footer-logo {
  width: 60px;
  margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: "Pathway Gothic One", sans-serif;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: #666;
  margin-bottom: 8px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  text-align: center;
}

.dev-team {
  font-weight: 600;
  color: var(--primary-color) !important;
  font-family: "Pathway Gothic One", sans-serif !important;
  font-size: 1.2rem !important;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* ================= DARK THEME ================= */
body.dark-theme {
  --bg-light: #121212;
  --white: #1e1e1e;
  --text-dark: #ffffff;
  /* Texto principal agora é branco total */
  --text-light: #f4f7f6;
  /* Invertemos para o fundo */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Força todos os parágrafos e textos informativos a ficarem brancos no Dark Mode */
body.dark-theme p,
body.dark-theme .text-info-out,
body.dark-theme .text-info-in-inside,
body.dark-theme h1,
body.dark-theme .frase-kant,
body.dark-theme .main-footer p,
body.dark-theme .footer-links a,
body.dark-theme .footer-bottom p {
  color: var(--text-dark) !important;
}

body.dark-theme .secao {
  background-color: #121212;
  color: var(--text-dark);
}

body.dark-theme .box-comunidade {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .text-info-in-inside {
  color: #ffffff !important;
}

body.dark-theme .navbar ul {
  background-color: rgba(30, 30, 30, 0.6);
  /* Glassmorphism escuro */
}

body.dark-theme header {
  background: rgba(18, 18, 18, 0.9);
}

body.dark-theme .main-footer {
  background-color: rgba(18, 18, 18, 0.9);
  /* Fundo escuro com transparência */
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .footer-links h4,
body.dark-theme .footer-contact h4,
body.dark-theme .dev-team {
  color: var(--primary-color) !important;
}

body.dark-theme .footer-links a:hover {
  color: var(--accent-color) !important;
}

body.dark-theme .box-comunidade-listas-efeito {
  background: rgba(46, 125, 50, 0.1);
  /* Verde escuro transparente */
  border-left-color: var(--primary-color);
}

body.dark-theme .box-comunidade-listas-efeito p {
  color: #e0e0e0 !important;
}

body.dark-theme .faq-item {
  background: #1e1e1e;
  color: var(--text-light);
}

body.dark-theme .faq-answer {
  background-color: #252525;
}

body.dark-theme .faq-question {
  color: var(--text-light);
}

body.dark-theme .filter-btn {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

body.dark-theme .filter-btn.active {
  background: var(--accent-color);
  color: #000;
}

body.dark-theme .card-professor {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.1);
}

/* Ajuste para o Dark Mode Ativo */
body.dark-theme #dark-mode-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--whatsapp-color);
  color: var(--whatsapp-color);
}

/* Container para alinhar o toggle no header */
.dark-mode-container {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

#dark-mode-toggle {
  background: rgba(255, 255, 255, 0.2);
  /* Fundo semi-transparente */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(46, 125, 50, 0.3);
  /* Borda sutil verde */
  color: var(--primary-color);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  /* Quadrado levemente arredondado para combinar com o botão Zap */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Animação elástica */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  right: 15px;
}

#dark-mode-toggle:hover {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

#dark-mode-toggle .icon {
  font-size: 1.3rem;
  line-height: 1;
}

#dark-mode-toggle [data-lucide] {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

#dark-mode-toggle:hover [data-lucide] {
  transform: rotate(15deg) scale(1.1);
}

.icon-sun {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* SVG do Sol (user-provided) codificado como URI simples) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v2'/><path d='M12 20v2'/><path d='m4.93 4.93 1.41 1.41'/><path d='m17.66 17.66 1.41 1.41'/><path d='M2 12h2'/><path d='M20 12h2'/><path d='m6.34 17.66-1.41 1.41'/><path d='m19.07 4.93-1.41 1.41'/></svg>");
}

/* quando estiver em modo claro mostre lua em vez de sol (ou vice-versa) */
.icon-sun.dark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z'/></svg>");
}

/* Transição suave para todos os elementos quando mudar o tema */
body,
body *,
header,
footer,
.secao {
  transition:
    background-color 0.5s ease,
    color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease !important;
}

/* ================= MOBILE MENU (HAMBURGUER + SLIDE DOWN) ================= */
.hamburger {
  position: absolute;
  right: 15px;
  top: 12px;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: none;
  /* visível apenas em mobile via media queries */
  align-items: center;
  justify-content: center;
  z-index: 1100;
  cursor: pointer;
}

.hamburger .bar {
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  display: block;
  position: relative;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.hamburger .bar:before,
.hamburger .bar:after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition:
    transform 0.3s ease,
    top 0.3s ease;
}

.hamburger .bar:before {
  top: -7px;
}

.hamburger .bar:after {
  top: 7px;
}

.hamburger.open .bar {
  background: transparent;
}

.hamburger.open .bar:before {
  transform: rotate(45deg) translate(4px, 4px);
  top: 0;
}

.hamburger.open .bar:after {
  transform: rotate(-45deg) translate(4px, -4px);
  top: 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  transition:
    height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.mobile-menu.open {
  height: 100vh;
  opacity: 1;
}

.mobile-menu .inner {
  padding: 60px 6% 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu .inner a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  padding: 12px 0;
}

.mobile-menu .inner a:hover {
  color: var(--primary-color);
}

/* ================= SOCIAL FAB (mobile) ================= */
.social-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  /* acima do botão Voltar ao Topo por padrão */
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.social-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.social-actions {
  display: none;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
  margin-bottom: 15px;
}

.social-fab.open .social-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  display: flex;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.social-btn img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}

.social-btn.instagram {
  background-color: rgba(225, 48, 107, 0.253);
}

.social-btn.discord {
  background-color: rgba(88, 101, 242, 0.253);
}

.social-btn.youtube {
  background-color: rgba(255, 0, 0, 0.274);
}

.social-btn.whatsapp {
  background-color: rgba(37, 211, 101, 0.26);
}

.social-btn.telegram {
  background-color: rgba(0, 136, 204, 0.25);
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ================= SEÇÃO SOBRE ================= */
#sobre {
  width: 100%;
  min-height: 100dvh;
  /* dvh = Dynamic Viewport Height (perfeito para iPhone) */
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  /* Obrigatório para mobile */
}

/* ================= ANIMAÇÕES ================= */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseZap {
  0% {
    transform: translateY(-30px) scale(1);
  }

  50% {
    transform: translateY(-35px) scale(1.1);
  }

  100% {
    transform: translateY(-30px) scale(1);
  }
}

/* ================= RESPONSIVIDADE ================= */

/* Timeline Responsividade Mobile */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
    transform: none;
  }

  .timeline-icon {
    left: 30px;
    transform: translateX(-50%);
  }

  .timeline-item {
    justify-content: flex-start;
    padding-left: 70px;
  }

  .timeline-content {
    width: 100%;
  }
}

/* Responsividade para Celulares */
@media (max-width: 768px) {
  .container-numbers {
    gap: 30px;
    /* Reduz o espaço no mobile */
    flex-direction: column;
    /* Coloca um número embaixo do outro */
  }

  .numbers-text {
    font-size: 2.8rem;
    /* Diminui um pouco o tamanho da fonte */
  }

  .numbers-text-label {
    font-size: 1.2rem;
    padding-left: 0;
    /* Remove o padding que pode desalinhá-los no centro */
  }
}

/* Ajuste extremo para telas muito pequenas (ex: iPhone SE) */
@media (max-width: 400px) {
  .filters {
    gap: 4px;
    /* Espaço mínimo entre botões */
    padding: 10px 2px;
  }

  .filter-btn {
    padding: 6px 10px;
    /* Botão mais "magro" */
    font-size: 0.7rem;
    /* Letra pequena o suficiente para caber os 4 */
    border-width: 1.5px;
  }
}

/* Responsividade: Social FAB apenas no mobile */
@media (min-width: 1025px) {
  .social-fab {
    display: none;
  }

  #sobre {
    background-attachment: fixed;
    /* Parallax só no PC */
  }
}

@media (max-width: 1024px) {
  .social-fab {
    display: flex;
  }
}

/* Esconde a barra lateral antiga em mobile */
@media (max-width: 1024px) {
  .navbar {
    display: none !important;
  }
}

/* Mobile específico (768px e abaixo) */
@media (max-width: 768px) {

  /* 1. Ajuste do Header: Apenas a Logo centralizada */
  header {
    justify-content: center;
    padding: 10px;
  }

  header .menu,
  header #link {
    display: none !important;
    /* Remove o menu e o botão do topo */
  }

  .logo {
    width: 60px;
    height: 60px;
  }

  /* 2. Ajuste do Botão Voltar ao Topo */
  #backToTop {
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* 3. Ajustes de texto nas seções */
  .secao {
    padding: 80px 20px 60px;
  }

  .title h1 {
    font-size: 2.5rem;
  }

  .frase-kant {
    font-size: 1.1rem;
  }

  /* Mostrar o hambúrguer no mobile */
  .hamburger {
    display: flex;
  }

  header {
    justify-content: center;
    padding: 10px 16px;
  }

  /* ajusta posição do toggle de tema para não sobrepor */
  .dark-mode-container {
    right: 72px;
    position: absolute;
    top: 12px;
    margin-right: 0;
  }

  /* Ajustes para cards de comunidades */
  .container-comunidades {
    gap: 18px;
    padding: 8px 6px;
  }

  .box-comunidade {
    padding: 12px;
    border-radius: 14px;
  }

  .box-comunidade-top {
    padding: 12px;
    gap: 12px;
    min-height: 64px;
  }

  .logo-comunidade {
    width: 48px;
    height: 48px;
  }

  .text-info-in {
    font-size: 1.4rem;
  }

  .text-info-in-inside {
    padding: 14px;
    font-size: 0.98rem;
  }

  .container-numbers {
    gap: 12px;
  }

  /* Evita que o header fixo sobreponha o conteúdo */
  main {
    margin-top: 88px;
    padding-bottom: 96px;
  }

  .main-footer {
    padding-bottom: 120px;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .container-comunidades {
    padding: 10px;
    gap: 15px;
  }

  .box-comunidade {
    flex: 1 1 100%;
    /* No telemóvel, ocupa a largura toda */
    max-width: 100%;
    margin: 0;
  }

  .social-fab {
    right: 12px;
    bottom: 130px;
  }

  .social-toggle {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .social-btn {
    width: 40px;
    height: 40px;
  }

  main {
    margin-top: 76px;
    padding-bottom: 140px;
  }

  .container-comunidades {
    gap: 12px;
    padding: 6px 6px;
  }

  .box-comunidade {
    padding: 10px;
  }

  .box-comunidade-top {
    padding: 10px;
    min-height: 56px;
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .text-info-in {
    font-size: 1.15rem;
  }

  .text-info-in-inside {
    padding: 12px;
    font-size: 0.95rem;
  }
}

/* Tablets e telas médias */
@media (max-width: 992px) {
  header {
    padding: 12px 3%;
  }

  .menu {
    gap: 15px;
  }

  .menu a {
    font-size: 1.1rem;
  }
}

/* Quando o menu móvel estiver aberto, esconder elementos flutuantes */
.menu-open .social-fab,
.menu-open #link {
  display: none !important;
}

/* Classes para JavaScript (se necessário) */
.secao.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hambúrguer em dark mode */
body.dark-theme .hamburger .bar,
body.dark-theme .hamburger .bar:before,
body.dark-theme .hamburger .bar:after {
  background: #ffffff;
}

/* Ajustes no Dark Mode para o mobile menu */
body.dark-theme .mobile-menu {
  background: rgba(8, 8, 8, 0.98);
}

body.dark-theme .mobile-menu .inner a {
  color: #ffffff;
}

body.dark-theme .mobile-menu .inner a:hover {
  color: var(--accent-color);
}

/* ================= GRID NO MOBILE PARA PROFESSORES ================= */

@media (max-width: 768px) {

  /* Desativa completamente o swiper no mobile */
  .mySwiper {
    display: block !important;
    padding: 0 15px !important;
  }

  .swiper-wrapper {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100% !important;
    transform: none !important;
    height: auto !important;
  }

  .swiper-slide {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    margin: 0 !important;
  }

  /* Remove controles do swiper */
  .swiper-button-next,
  .swiper-button-prev,
  .swiper-pagination {
    display: none !important;
  }

  /* Ajusta os cards */
  .card-professor {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    max-height: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
  }

  /* Foto responsiva mantendo proporção */
  .foto-professor {
    height: 300px;
    width: 100%;
  }

  .foto-professor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Info responsiva */
  .info-professor {
    padding: 25px 20px;
    flex: 1;
  }

  .info-professor h3 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .info-professor h2 {
    font-size: 1.2rem;
    margin: 5px 0;
  }

  .info-professor p {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px;
  }

  /* Ajusta os filtros para mobile */
  .filters {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
  }

  .filter-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .card-professor {
    width: 100%;
    min-height: 500px;
  }

  .foto-professor {
    height: 230px;
  }

  .info-professor p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* ================= BOTTOM NAV (MOBILE) ================= */
.bottom-nav {
  display: none;
  /* desktop por padrão */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  justify-content: space-around;
  align-items: center;
  z-index: 1002;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 10px;
  font-weight: bold;
  transition: var(--transition);
}

.nav-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.nav-item:active {
  transform: scale(0.9);
  color: var(--primary-color);
}

/* Dark mode para bottom nav */
body.dark-theme .bottom-nav {
  background: rgba(18, 18, 18, 0.9);
}

/* Ativar em mobile */
@media (max-width: 1024px) {
  .navbar {
    display: none !important;
  }

  #backToTop {
    bottom: 80px;
  }

}

/* Melhor transição para elementos principais */
header,
.secao,
.box-comunidade,
.box-redes,
.card-professor,
.faq-item,
.main-footer {
  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Evita repaints desnecessários no body */
body {
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

/* ======================================================
   ANIMAÇÕES ADICIONAIS (NOVAS)
====================================================== */

/* Fade in ao scroll - já aplicado via JS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Melhoria nos hovers dos cards - transições suaves */
.box-comunidade,
.box-redes,
.card-professor {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box-comunidade:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15);
}

.box-redes:hover {
  transform: translateY(-8px) rotate(1deg);
}

.card-professor:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Animação de entrada para as seções */
.secao {
  animation: fadeIn 0.8s ease-in-out;
}

/* Transição suave entre seções */
.secao:nth-child(even) {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}

.secao:nth-child(odd) {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

/* Animação nos botões */
.btn-hero,
.filter-btn,
#dark-mode-toggle {
  position: relative;
  overflow: hidden;
}

.btn-hero::before,
.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before,
.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Animação suave no scroll do header */
header {
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 8px 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hover effect melhorado para logos */
.logo-comunidade,
.logo-parceiros {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-comunidade:hover,
.logo-parceiros:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Animação de pulsação suave */
@keyframes pulse-subtle {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.numbers:hover .numbers-text {
  animation: pulse-subtle 0.6s ease-in-out;
}

/* Efeito de shimmer nos cards */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.box-comunidade::after,
.card-professor::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  transition: left 0.5s;
  pointer-events: none;
}

.box-comunidade:hover::after,
.card-professor:hover::after {
  left: 100%;
}

/* Animação de entrada escalonada para cards */
.box-comunidade:nth-child(1) {
  animation-delay: 0.1s;
}

.box-comunidade:nth-child(2) {
  animation-delay: 0.2s;
}

.box-comunidade:nth-child(3) {
  animation-delay: 0.3s;
}

.box-comunidade:nth-child(4) {
  animation-delay: 0.4s;
}

.box-comunidade:nth-child(5) {
  animation-delay: 0.5s;
}

.box-comunidade:nth-child(6) {
  animation-delay: 0.6s;
}

/* Transição suave para dark mode */
body,
.secao,
.box-comunidade,
.card-professor,
.faq-item,
header,
.main-footer {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Animação de loading suave */
@keyframes loading {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.loading {
  background: linear-gradient(90deg,
      var(--bg-light) 25%,
      rgba(76, 175, 80, 0.1) 50%,
      var(--bg-light) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* Esconde a seção de parceiros e seus links apenas em telas menores que 1024px (Tablets e Celulares) */
@media (max-width: 1024px) {

  #parceiros,
  .hero-parceiro,
  .bottom-nav a[href="#parceiros"],
  /* Esconde do menu inferior mobile */
  .mobile-menu a[href="#parceiros"] {
    /* Esconde do menu hambúrguer */
    display: none !important;
  }
}

/* FIM DAS ANIMAÇÕES OTIMIZADAS */