:root {
  --azul-escuro: #003087;
  --dourado: #d4af37;
  --branco: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
}
/********************** menu HAMBUEGUER****************/
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 101;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--azul-escuro);
  margin: 4px 0;
  transition: all 0.3s;
  border-radius: 3px;
}

.nav-btn-mobile {
  display: none;
}

/* Top Bar */
.top-bar {
  background: var(--azul-escuro);
  color: white;
  padding: 12px 20px;
  font-size: 0.95rem;
  text-align: right;
  height: 40px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
}
.top-bar img {
  height: 28px;
  margin-left: 15px;
}

/* Navegação */
nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.logo-nav img {
  height: 65px;
}

.menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.menu a {
  text-decoration: none;
  color: var(--azul-escuro);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 18px;
}

.menu a:hover {
  color: var(--dourado);
}

/* Hero */
header {
  background:
    linear-gradient(rgba(0, 48, 135, 0.85), rgba(0, 48, 135, 0.85)),
    url("../imagens/hero.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 180px 20px 140px;
  display: flex;
  align-self: center;
  justify-content: center;
  flex-direction: row;
}
header div {
  text-align: center;
  display: flex;
  align-self: center;
  justify-content: center;
  flex-direction: column;
}

header div img {
  width: 300px;
  height: 300px; /* Aumentei de 40px para 200px para ser visível */
}

.section-sobre {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
}

.section-projetos {
  display: flex;
  width: 100%;
  position: relative;
  height: 100%;
  align-self: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 5px;
}

.section-projetos aside {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
}

/* Ajuste das imagens para não ficarem achatadas */
.section-projetos aside img {
  width: 300px;
  height: 300px; /* Aumentei de 40px para 200px para ser visível */
  object-fit: cover;
  margin-top: 15px;
}

.section-projetos aside .cards {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--azul-escuro);
  border-radius: 15px;
  position: relative;
  background-color: var(--branco);
  filter: drop-shadow(0 4px 6px rgb(0, 0, 0));
}
.section-projetos aside .cards:nth-child(even) {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--azul-escuro);
  border-radius: 15px;
  position: relative;
  transform: scale(1.03);
}

.section-projetos h3 {
  position: absolute;
  top: -17px;
  left: 55px;
  color: var(--branco);
  border-radius: 10px;
  background-color: var(--azul-escuro);
  padding: 1px;
  width: 190px;
}

.section-projetos strong {
  color: var(--dourado);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.slogan {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 40px;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 16px 38px;
  margin: 10px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15rem;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--dourado);
  color: #003087;
}

.btn-primary:hover {
  background: #f0c040;
  transform: translateY(-4px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-large {
  font-size: 1.4rem;
  padding: 22px 50px;
}

/* Seções */
section {
  padding: 90px 20px;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--azul-escuro);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-12px);
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.card-content {
  padding: 28px;
}

.card h3 {
  color: var(--azul-escuro);
  margin-bottom: 14px;
  font-size: 1.4rem;
}

/* ==================== CALENDÁRIO ==================== */
.section-calendario {
  padding: 60px 20px;
  background-color: #f9f9f9; /* Ou a cor de fundo que preferir */
  text-align: center;
}

.section-calendario h2 {
  margin-bottom: 10px;
  color: #0b3d91; /* Cor azul do seu logo */
}

.calendario-aviso {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 40px;
  font-style: italic;
}

.calendario-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

.calendario-card {
  flex: 1;
  min-width: 300px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  border-top: 5px solid #d32f2f; /* Cor vermelha do seu logo */
}

.calendario-card h3 {
  color: #d32f2f;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 1.5rem;
  text-align: center;
}

.calendario-lista {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.calendario-lista li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
  color: #333;
}

.calendario-lista li:last-child {
  border-bottom: none;
}

.calendario-lista li strong {
  color: #0b3d91;
  display: inline-block;
  min-width: 85px; /* Mantém as datas alinhadas */
}

/* Seção Contato */
.section-contato {
  text-align: center;
  background: #f8f9fa;
}

.contato-texto {
  max-width: 750px;
  margin: 0 auto 40px;
  font-size: 1.25rem;
}

/* Footer */
footer {
  background: var(--azul-escuro);
  color: white;
  text-align: center;
  padding: 80px 20px 40px;
}

.footer-contato {
  margin: 30px 0 20px;
  font-size: 1.1rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 30px;
}

/* ====================== SLIDE redes-socias ====================== */
.section-redes-sociais {
  background: #f8f9fa;
  text-align: center;
  padding: 90px 20px;
}
.section-redes-sociais aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-redes-sociais aside div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
}

.redes-socias-texto {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 50px;
  color: #555;
}

.redes-socias-slider {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 50px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.redes-socias-slider .slide {
  min-width: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
  scroll-snap-align: center;
}

.redes-socias-slider .slide:hover {
  transform: scale(1.03);
}

.redes-socias-slider .slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: white;
  padding: 25px 20px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.redes-socias-button {
  margin-top: 30px;
}

/* ====================== FOOTER ====================== */
footer {
  background: var(--azul-escuro);
  color: #ffffff;
  text-align: center;
  padding: 60px 20px 40px;
  border-top: 1px solid #ddd;
}
footer strong {
  color: var(--dourado);
}
footer a {
  color: var(--branco);
  text-decoration: none;
}

footer .footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

footer .footer-content p {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

footer .footer-links {
  margin: 25px 0;
}

footer .footer-links a {
  color: var(--branco);
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s;
}

footer .footer-links a:hover {
  color: var(--dourado);
}

footer .copyright {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* Responsivo */
@media (max-width: 968px) {
  .menu-toggle {
    display: flex;
  }

  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row !important;
  }

  .menu {
    position: fixed;
    left: -100%; /* Esconde o menu para a esquerda */
    top: 100px; /* Ajuste conforme a altura da sua nav */

    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 1000;
  }
  .menu.active {
    display: flex;
    left: 0; /* Mostra o menu */
  }
  .menu.is-active {
    display: flex;
  }

  .menu li {
    margin: 15px 0;
  }

  .nav-btn-desktop {
    display: none;
  } /* Esconde o botão da nav no mobile */
  .nav-btn-mobile {
    display: inline-block;
  } /* Mostra o botão dentro do menu hambúrguer */

  /* Animação do X no hambúrguer */
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
  .btn-nav {
    display: none;
  }
  .top-bar {
    display: none;
  }
  .footer-links a {
    display: block;
    margin: 10px 0;
  }

  header  {
    text-align: center;
    display: flex;
    align-self: center;
    justify-content: center;
    flex-direction: column;
  }

  .section-projetos aside {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }
  .section-projetos aside div {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }

  .redes-socias-slider .slide {
    min-width: 300px;
  }
  .redes-socias-slider .slide img {
    height: 260px;
  }

  h1 {
    font-size: 2.4rem;
  }
  .slogan {
    font-size: 1.3rem;
  }
  .menu {
    flex-direction: column;
    gap: 15px;
  }
  .nav-content {
    flex-direction: column;
    gap: 15px;
  }
}
