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

.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; /* Alinha verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: top 0.3s;
  border-bottom: 1px solid #000000;
  height: 100px; /* Altura fixa opcional */
}

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

/* SEÇÃO HISTÓRIA */

.section.historia {
  margin-top: 80px; /* Compensa o header fixo */
  padding: 70px 20px;
  background-color: #eaebec; /* Cor de fundo clara */
  color: #333; /* Cor do texto */
  min-height: 700px; /* Garante altura mínima */
}


figure.barra{
	position: relative;
  border: 0px solid white;
	box-shadow: 1px 1px 4px black;
}
figure.barra img{
	width: 100%;
	height: 100%;
 }

.primeiro-paragrafo {
  margin-top: 50px !important;
}

.section.historia p{
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.15rem; /* ≈18.4px */
  line-height: 1.6;
  margin: 10px auto 0;
  max-width: 800px;
  text-align: justify;
  text-indent: 30px;
}

figure.foto1 {
  /* CONTROLE DE TAMANHO */
  width: 100%; /* Ajuste este valor conforme necessário (60% da largura do container) */
  max-width: 500px; /* 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;
  }
  
  /* 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  */

@media (max-width: 768px) {
  .social-bar {
    flex-direction: column;
    padding: 10px;
  }

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

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

  header {
    top: 60px;
  }

  nav {
    top: 30px;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 50px;
  }
  
  .slide {
    height: 250px;
  }
  
  .youtube-section-simple {
    padding: 20px 10px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  /* Melhorias para telas muito pequenas */
  nav ul > li > a {
    padding: 12px 15px;
  }
  
  nav ul li ul li a {
    padding: 10px 15px 10px 25px;
  }
}
