/* ================= 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);
}

* {
    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;
}

/* ================= 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;
    border-radius: 50%;
    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::after {
    width: 100%;
}

.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);
}

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

/* ================= 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: fixed;
    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;
}

/* ================= SEÇÕES E ANIMAÇÕES DE SCROLL ================= */
.secao {
    padding: 100px 10% 80px;
    background: var(--white);
    /* Classes para o JavaScript de animação */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Quando o JS detectar o scroll, adiciona esta classe */
.secao.visible {
    opacity: 1;
    transform: translateY(0);
}

.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: 0 auto 50px;
    margin-top: 35px;
}

/* ================= CARDS DE COMUNIDADES ================= */
/* Container que segura os cards */
.container-comunidades {
    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 */
}

/* O Card em si */
.box-comunidade {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition); 
}

.box-comunidade:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* A sombra aumenta ao subir */
}

/* Parte de cima do card (Verde) */
.box-comunidade-top {
    background: var(--primary-color);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 88px;
}

.logo-comunidade {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

/* Estilo do Texto dentro do Card */
.text-info-in-inside {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-dark); /* No dark mode, isso vai mudar via JS */
}

/* Dark Mode para os Cards */
body.dark-theme .box-comunidade {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
}

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

.text-info-in {
    font-size: 1.8rem;
    color: var(--white);
    font-family: 'Pathway Gothic One', sans-serif;
}

.text-info-in-inside {
    font-size: 1.05rem;
    padding: 25px;
    color: #555;
    flex: 1 1 auto; /* garante que o conteúdo principal cresça para preencher o card */
}

.box-comunidade-listas-efeito {
    background: #f1f8e9; /* Verde bem clarinho */
    margin: 0 20px 20px;
    border-radius: 15px;
    border-left: 6px solid var(--accent-color);
}

/* Variante de efeito para outros boxes (compatibilidade) */
.box-comunidade-efeito {
    background: #f1f8e9; /* Verde bem clarinho */
    margin: 0 20px 20px;
    border-radius: 15px;
    border-left: 6px solid var(--accent-color);
}

/* ================= NUMBERS (BLOCOS DE METRICS) ================= */
.container-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Espaço entre os blocos de números */
    margin: 40px 0;
    flex-wrap: wrap; /* Permite quebrar linha se não couber */
}

.numbers {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.numbers-text {
    font-size: 3.5rem; /* Usar rem é melhor para acessibilidade */
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Pathway Gothic One', sans-serif;
    line-height: 1;
}

.numbers-text-label {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* 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 */
    }
}

/* ================= 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);
}

/* se n der certo  */
.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.scrolled {
  opacity: 0.8;
  /* Torna a navbar ligeiramente transparente ao rolar */
  transform: translateY(-40%);
  /* Desloca a navbar para cima um pouco */
}

.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: 100%;
  height: auto;
  border-radius: 8px;
}

.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;
}

.navbar #redes ul li a {
    transition: var(--transition);
}

.navbar #redes ul li a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ================= BOTTOM NAVIGATION (MOBILE ONLY) ================= */
.bottom-nav {
    display: none; /* Escondido por padrão (Desktop) */
    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);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1002; /* Acima de tudo */
    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);
}

/* ================= 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: 0 auto 40px;
    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;
}

/* Definições do Tema Escuro */
/* Definições do Tema Escuro */
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 {
    color: var(--text-dark) !important;
}

/* Ajustes específicos do Footer no Dark Mode */
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);
}

/* Garante que os parágrafos e links fiquem brancos */
body.dark-theme .main-footer p,
body.dark-theme .footer-links a,
body.dark-theme .footer-bottom p {
    color: #ffffff !important;
}

/* Mantém os títulos e a frase de desenvolvimento em verde */
body.dark-theme .footer-links h4,
body.dark-theme .footer-contact h4,
body.dark-theme .dev-team {
    color: var(--primary-color) !important;
}

/* Efeito hover nos links no modo escuro */
body.dark-theme .footer-links a:hover {
    color: var(--accent-color) !important;
}

/* Ajuste para o card de listas (que tem um fundo verde clarinho no Light Mode) */
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;
}

/* Container no Header */
/* Container no Header (definido mais abaixo com ajustes finais) */

/* 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);
}

/* Ajustes específicos para o Dark Mode */
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 .navbar ul {
    background-color: rgba(30, 30, 30, 0.6); /* Glassmorphism escuro */
}

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

/* Container para alinhar o toggle no header */
/* Container 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);
}

#dark-mode-toggle:hover {
    transform: scale(1.1) rotate(15deg); /* Leve inclinação ao passar o mouse */
    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;
}

/* 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);
}

/* Transição suave para todos os elementos quando mudar o tema */
body, body *, header, footer, .secao, .box-comunidade {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease !important;
}.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>");
}

#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);
}

/* ================= RESPONSIVIDADE E BOTTOM NAV E DARK MODE ================= */
@media (max-width: 768px) {
    .dark-mode-container {
        position: absolute;
        right: 15px;
        top: 15px;
        margin-right: 0;
    }
}

/* ================= RESPONSIVIDADE E BOTTOM NAV ================= */
@media (max-width: 768px) {
    .main-footer {
        padding-bottom: 120px; 
        text-align: center;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* RESPONSIVIDADE: Mostrar apenas no mobile */
@media (min-width: 1025px) {
    .bottom-nav {
        display: none !important; /* Garante que não apareça no Desktop */
    }
}

@media (max-width: 1024px) {
    .bottom-nav {
        display: flex; /* Aparece no mobile/tablet */
    }
    
    /* Ajuste o botão Voltar ao Topo para não ficar em cima do menu */
    #backToTop {
        bottom: 80px; 
    }
}

/* ================= RESPONSIVIDADE E BOTTOM NAV ================= */

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

@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. Ativação da Bottom Nav */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background: rgba(255, 255, 255, 0.98);
        -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: 2000;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        padding-bottom: 5px;
    }

    .nav-item {
        text-decoration: none;
        color: var(--primary-color);
        font-family: 'Pathway Gothic One', sans-serif;
        font-size: 1rem;
        font-weight: bold;
    }

    /* Estilo do ícone do WhatsApp que "salta" da barra */
    .zap-highlight img {
        width: 55px;
        height: 55px;
        margin-top: 40px; 
        background: white;
        border-radius: 50%;
        padding: 5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    /* 3. Ajuste do Botão Voltar ao Topo para não sobrepor a barra */
    #backToTop {
        bottom: 85px; 
        right: 20px;
        width: 45px;
        height: 45px;
    }

    /* 4. Ajustes de texto nas seções */
    .secao { padding: 80px 20px 100px; }
    .title h1 { font-size: 2.5rem; }
    .frase-kant { font-size: 1.1rem; }
}

/* Animação de surgimento da barra */
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex; /* */
        animation: slideUp 0.6s ease-out; /* Nova animação */
    }
    
    /* Feedback visual ao tocar nos itens */
    .nav-item:active {
        transform: scale(0.9);
        transition: 0.1s;
        color: var(--accent-color);
    }
}

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

@media (max-width: 768px) {
    .zap-highlight img {
        animation: pulseZap 2s infinite ease-in-out; /* Pulsação suave */
    }
}

@media (max-width: 768px) {
    /* Faz os cards surgirem um pouco mais devagar no mobile */
    .box-comunidade {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease-out;
    }

    /* Quando a seção pai ficar visível, os cards aparecem */
    .secao.visible .box-comunidade {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delay para o segundo e terceiro card (efeito cascata) */
    .box-comunidade:nth-child(2) { transition-delay: 0.2s; }
    .box-comunidade:nth-child(3) { transition-delay: 0.4s; }
}

/* ================= AJUSTES MOBILE: espaçamentos e fontes ================= */
@media (max-width: 768px) {
    /* Evita que o header fixo sobreponha o conteúdo */
    main { margin-top: 88px; padding-bottom: 96px; }

    /* Grid mais simples e espaçamento reduzido */
    .container-comunidades {
        gap: 18px;
        padding: 8px 6px;
        grid-template-columns: 1fr;
    }

    /* Cards ocupando menos espaço vertical e com padding interno adequado */
    .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; }
}

@media (max-width: 480px) {
    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;
    }
}

/* ================= RESPONSIVIDADE ADICIONAL (do bloco recebido) ================= */
@media (max-width: 992px) {
    header { padding: 12px 3%; }
    .menu { gap: 15px; }
    .menu a { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .title h1 { font-size: 2.5rem; }
    .frase-kant { font-size: 1.1rem; }
}

/* ================= 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); }
/* removido: botão de fechar separado; usamos o próprio hambúrguer como ação de fechar (seta) */

/* 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);
}

/* removed close-btn dark-mode styles (close button removed) */

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

/* Mostrar o hambúrguer no mobile e garantir que logo fique central */
@media (max-width: 768px) {
    .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; }
}

/* ================= SOCIAL FAB (mobile) ================= */
.social-fab {
    position: fixed;
    right: 18px;
    bottom: 140px; /* acima do botão Voltar ao Topo por padrão */
    z-index: 1400;
    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: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.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:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

/* Quando o FAB estiver fechado, manter as ações ocultas com pequena translação */
.social-fab:not(.open) .social-actions { pointer-events: none; }

@media (max-width: 1024px) {
    /* garante que o FAB apareça apenas em telas menores */
    .social-fab { display: flex; }
}

@media (min-width: 1025px) {
    .social-fab { display: none; }
}

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