html {
  scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Da navbar */
/* Estilos Base */
body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
}
section {
  scroll-margin-top: 80px; /* Ajuste esse valor para a altura da sua navbar */
}
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease; /* Transição suave */
  background-color: transparent;
}

.nav-container {
  display: flex;
  justify-content: space-between; /* Mantém a logo na esquerda e menu na direita */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px; /* Controle a distância exata aqui (diminua se quiser mais perto) */
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Garante que as imagens não empurrem o texto para longe */
.logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0; /* Impede que a imagem diminua ou mude de proporção */
}
.logo-vermelha {
    display: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff; /* Cor inicial */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bolder;
}

/* Estágio Adaptado (Quando scrollar) */
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0; /* Navbar fica mais fina */
  backdrop-filter: blur(10px); /* Efeito de vidro */
}

#navbar.scrolled .logo, 
#navbar.scrolled .nav-links a {
  color: #7d0d0d; /* Cor do texto muda para contrastar com fundo claro */
}

/* Apenas para visualização */
.hero {
  height: 200vh;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.menu-icon {
  display: none; /* Escondido no desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white; /* Cor inicial */
  transition: 0.3s;
}

/* Quando o navbar rolar, o hambúrguer fica escuro */
#navbar.scrolled .bar {
  background-color: #333;
}

/* Quando a navbar ganha a classe .scrolled (fundo branco) */
#navbar.scrolled .logo-container {
    color: #8b0000; /* Texto vira vinho */
}

#navbar.scrolled .logo-branca {
    display: none; /* Esconde a branca */
}

#navbar.scrolled .logo-vermelha {
    display: block; /* Mostra a vermelha */
}

/* Ajuste Mobile para garantir que o texto não quebre */
@media (max-width: 480px) {
    .logo-container span {
        font-size: 1.1rem;
    }
    .logo-img {
        height: 30px;
    }
}


/* --- Media Query para Celular --- */
@media (max-width: 768px) {
  .menu-icon {
    display: flex; /* Aparece no celular */
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Começa fora da tela */
    width: 70%;
    height: 100vh;
    background-color: rgba(139, 0, 0, 0.95); /* Cor vinho para combinar com a vaquinha */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  }

  .nav-links.active {
    right: 0; /* Desliza para dentro */
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    color: white !important; /* Sempre branco no menu lateral */
    font-size: 1.5rem;
  }
  
  /* Animação do X no hambúrguer quando ativo */
  .menu-icon.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-icon.active .bar:nth-child(2) { opacity: 0; }
  .menu-icon.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Da primeira sessão */

.hero-section {
  position: relative;
  height: 100vh; /* Ocupa 100% da altura da tela */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  
  /* Substitua 'sua-imagem.jpg' pelo caminho real da sua foto */
  background: linear-gradient(
      to bottom, 
      rgba(139, 0, 0, 0.6), /* Vinho transparente */
      rgba(255, 0, 0, 0.4)  /* Vermelho transparente */
    ), 
    url('assets/pholia1.jpeg') center/cover no-repeat;
}

.content {
  z-index: 2;
  padding: 0 15px;
}

.content img{
    width: 15vw;
    margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem); /* Tamanho responsivo: min 2.5rem, max 5rem */
  margin-top: 0;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 900;
}

.btn-grande {
  padding: 20px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  background-color: white;
  color: #8b0000;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-grande:hover {
  transform: scale(1.1);
  background-color: #f0f0f0;
}

/* Esconde a div e centraliza a imagem do QR Code */
.hidden {
  display: none !important;
}

#qrcode-container {
  margin-top: 30px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  display: inline-block;
  color: black;
  animation: fadeIn 0.5s ease;
}

#qrcode-container img {
  width: 200px;
  height: 200px;
}

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

/* sessao meta */

.meta-section {
    background-color: #ffffff;
    padding: 80px 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.meta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
    min-height: 50vh; /* Ocupa uma boa parte da tela */
}

.meta-titulos {
    flex: 1; /* Ocupa metade da tela */
}

.meta-titulos h1 {
    font-size: 3rem;
    line-height: 1.1;
    color: #000;
    margin-bottom: 15px;
}

.subtitulo-meta {
    font-size: 2rem;
    color: #aaaaaa; /* Cinza claro */
    font-weight: 500;
}

.valor-total {
    color: #000; /* 12.000 em preto conforme solicitado */
}

.meta-texto {
    flex: 1; /* Ocupa a outra metade */
    color: #666; /* Cinza para o parágrafo */
    font-size: 1.1rem;
    line-height: 1.8;
}

.meta-texto strong {
    color: #8b0000; /* Um leve toque de vinho nos instrumentos para destacar */
}

/* Responsividade para Celular */
@media (max-width: 768px) {
    .meta-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .meta-titulos h1 {
        font-size: 2rem;
    }
}

.att{
    color: #666; /* Cinza para o parágrafo */
    font-size: 1.1rem;
    line-height: 1.8;
}

.tragedia-section {
    background-color: #000; /* Fundo preto para dar peso ao tema */
    padding: 80px 0;
    color: white;
    text-align: center;
}

.tragedia-header h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    padding: 0 20px;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden; /* Esconde as imagens que estão fora do foco */
    border-radius: 10px;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.media-item {
    min-width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
}

.media-item img, .media-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Garante que a imagem inteira apareça */
}

/* Botões */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    background-color: rgba(139, 0, 0, 0.8);
}

.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

@media (max-width: 768px) {
    .media-item { height: 300px; }
    .tragedia-header h1 { font-size: 1.8rem; }
}


/* sessao ajuda */
.ajudar-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.ajudar-container {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ajudar-texto-projeto {
    flex: 0 0 100%; /* Força a ocupar 100% da largura da linha */
    margin-bottom: 20px;
    text-align: left;
}

.ajudar-texto-projeto p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd; /* Uma linha sutil para separar da parte de contratação */
}

.ajudar-cards {
    flex: 1;
}

.ajudar-cards h2 {
    margin-bottom: 30px;
    color: #8b0000;
}

.card-ajuda {
    background: white;
    border: 3px solid #8b0000; /* Borda vermelha */
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.card-ajuda:hover {
    transform: translateX(10px);
}

.card-ajuda h3 {
    color: #8b0000;
    margin-bottom: 10px;
}

/* --- Estilo do Slide de Apresentações --- */
.ajudar-slide {
    flex: 1;
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ajudar-cards, .ajudar-slide {
    flex: 1; /* Divide o espaço restante (50% cada aproximadamente) */
    min-width: 300px; /* Garante que no mobile eles empilhem */
}

@media (max-width: 768px) {
    .ajudar-texto-projeto {
        text-align: center;
    }
}

.apresentacao-carousel {
    position: relative;
    height: 450px;
}

.apresentacao-item {
    display: none;
    height: 100%;
}

.apresentacao-item.active {
    display: block;
}

.apresentacao-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Setas sobre a imagem */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
}

.prev-arrow { left: 0; border-radius: 0 5px 5px 0; }
.next-arrow { right: 0; border-radius: 5px 0 0 5px; }

/* Bolinhas */
.dots-container {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.dot.active {
    background-color: #8b0000;
}

/* --- Responsividade Mobile --- */
@media (max-width: 768px) {
    .ajudar-container {
        flex-direction: column; /* Retângulos por cima, fotos embaixo */
    }
    
    .card-ajuda:hover {
        transform: translateY(-5px);
    }
}

/* footer */
footer {
    box-sizing: border-box;
}

.footer-section {
    position: relative;
    padding: 60px 0;
    color: white;
    text-align: center;
    /* Substitua pela sua imagem */
    background: linear-gradient(
      to bottom, 
      rgba(139, 0, 0, 0.428), /* Vinho transparente */
      rgba(255, 0, 0, 0.4)  /* Vermelho transparente */
    ), 
    url('assets/pholiageral.jpg') center/cover no-repeat;
    width: 100%;
    overflow: hidden; /* Corta qualquer transbordamento lateral */
}
.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 0, 0, 0.85); /* Vinho bem escuro e transparente */
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 60px;
}

.footer-info, .footer-map {
    flex: 1;
    min-width: 300px;
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid white;
    display: inline-block;
}

.footer-info p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-info a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Frases Finais */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.grito {
    font-weight: 900;
    margin-top: 10px;
    font-size: 1.3rem;
    color: #ffcccc; /* Um destaque suave para o grito */
}

/* --- CORREÇÃO MOBILE --- */
@media (max-width: 768px) {
    .footer-main {
        display: block; /* Remove o flex que pode entortar */
        width: 100%;
    }

    .footer-info {
        text-align: center;
        margin-bottom: 40px;
        width: 100%;
    }

    .footer-info h2 {
        margin-bottom: 20px;
        font-size: 2.5rem;
        border-bottom: 2px solid white;
    }

    .footer-info p {
        word-wrap: break-word; /* Evita que o email longo quebre o layout */
        font-size: 1.2rem;
    }

    .footer-map {
        width: 100%;
        justify-content: center;
    }

    .footer-map iframe {
        height: 250px;
        width: 100%; /* Garante que ocupe a largura disponível no celular */
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    .footer-info a {
        color: white;
        text-decoration: none;
        font-weight: bold;
    }
}

/* botao fechar pix */
.close-btn {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #8b0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Qrcode flutuante */
.pix-bubble {
    position: fixed;
    right: 20px; /* Distância da borda direita */
    top: 50%;
    transform: translateY(-50%); /* Centraliza verticalmente */
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999; /* Fica acima de todas as seções */
    text-align: center;
    border: 2px solid #8b0000;
    width: 140px;
    transition: opacity 0.3s ease;

    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

.pix-bubble p {
    color: #8b0000;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.pix-bubble img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 5px;
}

.pix-bubble small {
    color: #666;
    font-size: 0.65rem;
}

/* No Mobile: Diminuir para não cobrir muito o texto */
@media (max-width: 768px) {
    .pix-bubble {
        width: 100px;
        right: 10px;
        padding: 8px;
    }
    .pix-bubble p { font-size: 0.6rem; }
}

/* Quando passa o mouse (Desktop) ou recebe foco/clique (Mobile) */
.pix-bubble:hover, 
.pix-bubble:active {
    /* Mantemos o translateY(-50%) para ele continuar centralizado e adicionamos o scale */
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    z-index: 10000; /* Garante que fique acima de tudo ao crescer */
}

/* Ajuste para o botão de fechar não crescer junto de forma estranha */
.close-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
}


/* barra de carregamento */
.progress-container {
    width: 100%;
    height: 25px;
    background-color: #fff;
    border: 2px solid #8b0000; /* Vermelho da bateria */
    border-radius: 50px;
    margin-top: 15px;
    overflow: hidden; /* Garante que o preenchimento respeite o arredondamento */
}

.progress-bar {
    width: 0%; /* Começa em 0 para a animação funcionar */
    height: 100%;
    background-color: #8b0000;
    border-radius: 50px 0 0 50px;
    transition: width 1.5s ease-out; /* Velocidade da animação */
}