@charset "UTF-8";

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

body {
  padding-top: 15px; /* Compensa a altura total dos headers fixos */
  font-family: Arial, sans-serif;
}

/* Barra de redes sociais */
.social-bar {
  background: #003300;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  transition: top 0.3s ease; /* Adicione ease para suavizar */
}

.social-icons i {
  margin-right: 10px;
  margin-left: 10px;
  cursor: pointer;
}

.social-icons {
  display: flex;
  gap: 0px; /* Espaço entre ícones */
}

.social-icons a {
  color: inherit;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.contact-info {
  font-size: 0.9em;
}

/* Cabeçalho com menu */
header {
  background: white;
  padding: 25px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 40px; /* Posição inicial fixa */
  left: 0;
  width: 100%;
  z-index: 100;
  transition: top 0.3s ease; /* Adicione ease para suavizar */
  border-bottom: 1px solid #000000;
  height: 100px;
}

.logo {
  height: 60px;
  margin-right: 20px;
  position: relative;
  top: -7px;
  transition: filter 0.2s ease; /* Transição suave para o efeito */
}

.logo:hover {
  filter: 
    brightness(0.3)       /* Escurece um pouco */
    sepia(0.4)           /* Adiciona um tom amarelado/base */
    hue-rotate(90deg)     /* Rotaciona para o verde */
    saturate(2);       /* Aumenta a saturação */
}

/* ==================== */
/* MENU PRINCIPAL */
/* ==================== */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  height: 100%;
}

nav ul li {
  position: relative;
}

/* Estilo base do botão */
nav ul li.donation-btn a {
  background-color: #014b01; /* Verde - altere para sua cor preferida */
  color: rgb(255, 255, 255) !important;
  border-radius: 0px;
  padding: 10px 20px;
  margin-left: 15px; /* Espaço do item anterior */
  font-weight: normal;
  transition: all 0.3s ease;
}

/* Efeito hover */
nav ul li.donation-btn a:hover {
  background-color: #15a000; /* Tom mais escuro */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

nav ul > li > a {
  text-decoration: none;
  color: #003300;
  padding: 12px 18px;
  display: block;
  transition: all 0.3s ease;
}

nav ul > li > a:hover {
  background-color: #003300;
  color: white;
}

/* ==================== */
/* SUBMENUS */
/* ==================== */
nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 200px;
  background-color: #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  padding: 0;
  margin: 0;
}

nav ul li:hover > ul {
  display: block;
}

nav ul li ul li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

nav ul li ul li a {
  display: block;
  padding: 10px 15px;
  color: #003300;
  background-color: #f0f0f0;
  border-bottom: 0px solid #ddd;
  transition: all 0.2s ease;
}

nav ul li ul li:last-child a {
  border-bottom: none;
}

nav ul li ul li a:hover {
  background-color: #003300;
  color: white;
}

/* Carrossel */

.carousel {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  margin: 0 auto;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
  animation: zoom 5s linear forwards;
}

@keyframes zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}


/* Seções com fundos diferentes */
.section {
  padding: 10px 20px;
  color: white;
  text-align: center;
}

.bg1 { background: #fcf2df; }
.bg2 { background: #eaebec; }
.bg3 { background: #cad6bf; }
.bg4 { background: #ffffff; }

/* Separação de seções onduladas */
.organic-wave {
    position: relative;
    height: 20px;
    margin-top: 0px !important; /* Puxa a seção seguinte para cima */
    overflow: hidden;
}

.organic-wave::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 100%;
    background: #003300; /* Cor da sua seção anterior */
    left: -50%;
    border-radius: 100% 100% 0 0;
    transform: rotate(1deg);
    animation: wave-animation 8s infinite ease-in-out alternate;
}

.organic-wave.reverse {
    top: 0px;
}

.organic-wave.reverse::before {
    background: #005500; /* Cor da sua próxima seção */
    border-radius: 0 0 100% 100%;
    transform: rotate(-1deg);
    animation: wave-animation-reverse 7s infinite ease-in-out alternate;
}

@keyframes wave-animation {
    0%, 100% {
        transform: rotate(1deg) scaleY(1.2);
    }
    50% {
        transform: rotate(-1deg) scaleY(0.8);
    }
}

@keyframes wave-animation-reverse {
    0%, 100% {
        transform: rotate(-1deg) scaleY(1.3);
    }
    50% {
        transform: rotate(1deg) scaleY(0.7);
    }
}

/* Ajustes da seção 1*/
.section.bg1 {
  margin-top: 0px;
  padding: 0px 0; /* Reduzi o padding vertical (cima/baixo) */
  min-height: auto; /* Remove altura mínima se existir */
}

/* Container do YouTube */
.youtube-section-simple {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px; /* Reduzi o padding interno */
  color: rgb(0, 0, 0);
  text-align: center;
}

/* Força o link a ficar clicável */
.youtube-section-simple a {
  text-decoration: none;
  position: relative;
  z-index: 1 !important;
  pointer-events: auto !important;
}


.section-title {
  color: #000000;
  margin-bottom: 20px;
  font-size: 2rem;
}

.channel-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.youtube-icon {
  
  color: #ff0000;
  font-size: 3rem;
}

.channel-name {
  font-size: 1.3rem;
  color: rgba(0, 0, 0, 0.9);
}

.last-video h3 {
  margin-bottom: 20px;
  font-weight: normal;
  line-height: 1.4;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  overflow: hidden;
  margin: 15px auto;
  max-width: 1600px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Ajustes da seção 2*/

.section.bg2 {
  margin-top: 0px;
  padding: 0px 0; /* Reduzi o padding vertical (cima/baixo) */
  min-height: 600px; /* Remove altura mínima se existir */
}

.programacao-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #333;
}

.programacao-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #003300;
}

.horarios {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  text-align: center;
}

.horarios h2 {
  flex: 1;
  font-size: 1.3rem;
  color: #ffffff;
  background: rgba(130, 130, 63,0.8);
  padding: 12px 0;
  margin: 0 5px;
  border-radius: 5px;
}

.programacao-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.programacao-col {
  background: rgba(255, 255, 255, 0.85);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.programacao-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid;
}

.culto-col .programacao-header {
  border-color: #9b782d; /* Cor do ouro para Culto */
}

.ebd-col .programacao-header {
  border-color: #002200; /* Verde escuro para EBD */
}

.programacao-col h1 {
  color: #002200;
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.programacao-col h2 {
  color: #014b01;
  font-size: 1.3rem;
}

.programacao-col p {
  line-height: 1.6;
  margin-top: auto; /* Alinha o texto no topo */
}

/* Ajustes da seção 3*/

.section.bg3 {
  margin-top: 0px;
  padding: 0px 0; /* Reduzi o padding vertical (cima/baixo) */
  min-height: 600px; /* Remove altura mínima se existir */
}


figure.foto1 {
  /* CONTROLE DE TAMANHO */
  width: 100%; /* Ajuste este valor conforme necessário (60% da largura do container) */
  max-width: 1400px; /* Largura máxima absoluta */
  min-width: 300px; /* Largura mínima para mobile */

  /* CENTRALIZAÇÃO */
  margin: 20px auto; /* Espaço vertical + centralização horizontal */
  display: block; /* Fundamental para margin:auto funcionar */
  
  /* ESTILOS VISUAIS */
  position: relative;
  border: 0px solid white;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3); /* Sombra mais suave */
  overflow: hidden; /* Contém a imagem dentro da figure */
  border-radius: 4px; /* Bordas levemente arredondadas (opcional) */
}

figure.foto1 img {
  width: 100%; /* Ocupa 100% da largura da figure */
  height: auto; /* Mantém proporção original */
  display: block; /* Remove espaços indesejados abaixo da imagem */
}

/* Footer */
footer#rodape {
  background: #002200; /* Verde escuro original */
  color: white;
  padding: 0px 0;
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  margin-bottom: 20px;
}

.social-icon {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.address {
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 12pt;
}

.map-container {
  margin: 20px 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.copyright {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

.copyright p {
  margin: 5px 0;
}

/* ============================================= */
/* MENU MOBILE - HAMBURGER E SUBMENUS */
/* ============================================= */

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.submenu-arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s;
  font-size: 0.8em;
}

/* ============================================= */
/* MEDIA QUERIES PARA RESPONSIVIDADE */
/* ============================================= */

@media (max-width: 1024px) {
  /* Ajustes no header */
  header {
    justify-content: flex-start;
    padding-left: 20px;
    height: 120px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Menu principal */
  nav {
    position: fixed;
    top: 130px;
    left: 0;
    width: 100%;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  nav.active {
    max-height: 1000px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  nav ul > li {
    width: 100%;
    text-align: left;
  }
  
  nav ul > li > a {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Submenus - Comportamento melhorado */
  nav ul li ul {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    padding-left: 20px;
    background-color: rgba(0,0,0,0.03);
    animation: slideDown 0.3s ease-out;
  }
  
  nav ul li.active > ul {
    display: block;
  }
  
  nav ul li ul li a {
    padding: 12px 20px 12px 30px;
    background-color: transparent;
    border-bottom: 1px solid #f0f0f0;
  }
  
  nav ul li.active > a > .submenu-arrow {
    transform: rotate(180deg);
  }
  
  /* Botão de doação */
  nav ul li.donation-btn a {
    margin: 15px auto;
    display: inline-block;
    width: auto;
    justify-content: center;
  }
  
  /* Ajustes no carrossel */
  .carousel {
    margin-top: 140px;
    width: 100%;
    max-width: 412px; /* Ajuste conforme necessário */
  }
  
  .slide {
    height: 300px;
    background-size: cover;
  }
  
  /* Seção 1 */

  .section.bg1 {
  margin-top: 10px;
  padding: 0px 0; /* Reduzi o padding vertical (cima/baixo) */
  min-height: auto; /* Remove altura mínima se existir */
}

  /* Seção de programação */
  .programacao-grid {
    grid-template-columns: 1fr;
  }
  
  .horarios {
    flex-direction: column;
    gap: 10px;
  }
  
  .horarios h2 {
    margin: 0;
  }

  /* Rodapé */
  .map-container {
    width: 100%;
  }
  
  .map-container iframe {
    width: 100%;
  }
  
  @keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
  }
}

/* ====================================== */
/* RESPONSIVIDADE HEADER E CARROSSEL */
/* ====================================== */

@media (max-width: 1024px) {
  /* Ajustes gerais para tablets */
  .carousel {
    margin-top: 0; /* Remove qualquer margem superior */
  }
  
  .section.bg1 {
    margin-top: 0; /* Remove margem superior da primeira seção */
    padding-top: 0; /* Remove padding superior se existir */
  }
  
  /* Ajustes no header */
  header {
    justify-content: flex-start;
    padding-left: 20px;
    height: 120px;
    top: 40px; /* Posição ajustada para mobile */
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Ajuste da altura do carrossel */
  .slide {
    height: 300px;
  }
}

@media (max-width: 768px) {
  /* Ajustes para tablets pequenos */
  .social-bar {
    flex-direction: column;
    padding: 10px;
  }

  .social-icons {
    margin-bottom: 8px;
  }

  .contact-info {
    font-size: 0.8em;
  }

  header {
    top: 60px; /* Ajuste fino da posição */
  }

  nav {
    top: 100px; /* Posição abaixo do header */
  }
  
  /* Ajuste do carrossel */
  .carousel {
    height: 280px;
  }
}

@media (max-width: 480px) {
  /* ==================== */
  /* ELEMENTOS FIXOS SUPERIORES */
  /* ==================== */
  .social-bar {
    height: 50px;
    padding: 8px 10px;
    position: fixed;
    top: 0;
    z-index: 101; /* Camada mais alta */
  }

  header {
    top: 50px; /* Abaixo da social bar */
    height: 80px;
    position: fixed;
    z-index: 100; /* Abaixo da social bar */
  }

  nav {
    top: 130px; /* Abaixo do header + social bar */
    z-index: 99; /* Abaixo do header mas acima do conteúdo */
  }

  /* ==================== */
  /* CARROSSEL AJUSTADO */
  /* ==================== */
  .carousel {
    margin-top: 130px; /* Espaço para header (80px) + social bar (50px) */
    height: 220px;
    z-index: 1; /* Fica abaixo de todos os elementos fixos */
  }

  .slide {
    height: 220px; /* Altura correspondente ao container */
  }

  /* ==================== */
  /* LOGO E ELEMENTOS DO HEADER */
  /* ==================== */
  .logo {
    height: 50px;
  }

  nav ul > li > a {
    padding: 12px 15px;
  }

  nav ul li ul li a {
    padding: 10px 15px 10px 25px;
  }

  /* ==================== */
  /* SEÇÃO DO YOUTUBE */
  /* ==================== */
  .youtube-section-simple {
    padding: 20px 10px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* ==================== */
  /* AJUSTES GERAIS */
  /* ==================== */
  body {
    padding-top: 0; /* Removido pois usamos margin-top no carrossel */
  }
}

