/* Reset e Estilos Gerais */
body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: #0f2936;
  line-height: 1.6;
}

/* Cabeçalho */
header {
  background: linear-gradient(to right,
    #05060a,   /* Azul muito escuro (quase preto) */
    #0d1b3d,   /* Azul profundo */
    #132d66,   /* Azul escuro intenso */
    #1e40af,   /* Azul médio forte */
    #3b82f6    /* Azul claro vibrante */
  );
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}


header h1 {
  font-size: 2.8rem;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.2rem;
  margin: 15px 0 25px;
  opacity: 0.9;
}

header .highlight {
  color: #67e8f9;
  font-weight: 600;
}

header button {
  background: #14b8a6;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

header button:hover {
  background: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}


/* Links */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: rgba(11, 48, 113, 0); /* transparente */
  transition: background-color 0.3s ease;
  z-index: 1000;
  /* sem sombra ou bordas brancas */
  box-shadow: none;
  border-bottom: none;
}
nav.scrolling {
  background-color: rgba(11, 48, 113, 0.2); /* fundo azul muito transparente */
  box-shadow: none; /* sem sombra */
}

/* Cor da fonte que está no topo */
.logo a {
  color: white;	
  text-decoration: none;
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
}

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


/* Estilo padrão */
#navbar {
  background-color: #0f2936;
  transition: background-color 0.3s ease;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  font-size: 26px;
  transition: color 0.3s ease;
}

/* Estilo após rolagem */
#navbar.scrolled {
  background-color: black;
}

#navbar.scrolled .nav-links a {
  color: black;
}

.nav-links a.active,
.nav-links a:hover {
  border-bottom: 2px solid white;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.logo {
  height: 200px;
  max-width: 450px;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.header-text {
  text-align: left;
  flex: 1;
}


/* Seções */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #1e3a8a;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #14b8a6;
  margin: 15px auto;
  border-radius: 2px;
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.light-bg {
  background-color: #f9fafb;
}

/* Cards */
.services,
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  flex: 1 1 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  font-size: 20px;
  text-align: center;
}

.card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 3.5rem;
  color: #1e40af;
  margin-bottom: 20px;
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  height: 420px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.03);
}

/* Formulário de Contato */
.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-form form,
.contact-info {
  flex: 1 1 400px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

button.submit {
  background-color: #1d4ed8;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button.submit:hover {
  background-color: #1e3a8a;
}

.contact-info div {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.contact-info i {
  color: #1e40af;
  font-size: 1.3rem;
}

/* Efeitos Especiais */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 600ms linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Alerta moderno */
.modern-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modern-alert {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.modern-alert h3 {
  margin-top: 0;
  color: #1e3a8a;
}

.modern-alert .close-alert {
  background: #1e3a8a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modern-alert .close-alert:hover {
  background: #1e40af;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  /* aumentei o gap de 2rem para 3rem */
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.contact-form,
.map {
  flex: 1 1 45%;
  min-width: 300px;
}

/* margem extra só na coluna do mapa */
.map {
  margin-left: 1rem;
  /* ou 2rem, se quiser mais distância ainda */
}

/* Estilização do rodapé */
footer {
  background: linear-gradient(135deg, #1e3a8a, #0f2936, #0e7490);
  color: white;
  text-align: center;
  padding: 20px 0;
  position: relative;
  width: 100%;
  font-size: 18px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  /* Espaçamento entre os ícones */
  margin-top: 20px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  /* Aumenta o tamanho do ícone */
  height: 50px;
  border-radius: 50%;
  background-color: #f0f0f0;
  /* Cor de fundo suave */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a img {
  width: 30px;
  /* Ajusta o tamanho da imagem do ícone */
  height: 30px;
}

.social-links a:hover {
  transform: scale(1.2);
  /* Efeito de zoom ao passar o mouse */
  background-color: #ddd;
  /* Muda a cor de fundo no hover */
}

* Estilo para o carrossel */
/* Container do carrossel */

.container {
  width: 100%;
  margin: 100px auto;
  position: relative;
  overflow: hidden;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Área visível do carrossel */
.carrossel {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Faixa dos itens */
.carrossel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

/* Cada item ocupa 100% da largura visível */
.carrossel-item {
  flex: 0 0 100%;           /* ocupa 100% */
  max-width: 100%;          /* não ultrapassa */
  box-sizing: border-box;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Imagens e vídeos se ajustam ao espaço visível */
.carrossel-item img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain; /* preserva proporção da imagem sem cortar dai tem q usar o contain, tem o cover tb */
  border-radius: 10px;
  display: block;
}

.carrossel-item video {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover; /* ocupa toda a área, pode cortar um pouco, mas não distorce ...*/
  border-radius: 10px;
  display: block;
}


/* Botões de navegação */
.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30, 58, 138, 0.8);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  z-index: 10;
}

.carrossel-btn.prev {
  left: 10px;
}

.carrossel-btn.next {
  right: 10px;
}

/* Indicadores */
.carrossel-indicadores {
  text-align: center;
  margin-top: 10px;
}

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

.indicador.ativo {
  background-color: #1e3a8a;
}

/* Indicadores2 */
.carrossel-indicadores2 {
  text-align: center;
  margin-top: 10px;
}

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

.indicador2.ativo2 {
  background-color: #1e3a8a;
}

  /* Texto do cabeçalho centralizado */
  .header-text {
    text-align: center;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .logo {
    height: 100px;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 40px 15px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.95rem;
  }

  header button {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

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

  .card img {
    height: 300px;
  }

  input,
  textarea {
    padding: 10px;
  }

  .contact-info div {
    font-size: 1rem;
  }
}
#####

#####

/* Garante que imagens do carrossel se comportem corretamente */
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

#btnTopo {
  display: none; /* escondido inicialmente */
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  background-color: #007BFF;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

#btnTopo:hover {
  background-color: #0056b3;
}

/* Noticias */

#noticias {
  background-color: #f4f4f4;
  padding: 20px;
  margin: 20px auto;
  border-radius: 10px;
  width: 95%;
  max-width: 100%; /* deixa flexível até o limite da viewport */
  text-align: center;
  box-sizing: border-box;
}

/* Para telas maiores (ex: desktops grandes), expande um pouco mais */
@media (min-width: 1200px) {
  #noticias {
    max-width: 1400px;
  }
}

/* Para tablets */
@media (max-width: 768px) {
  .noticia {
    min-width: 220px;
    max-width: 280px;
  }
}

/* Para celulares */
@media (max-width: 480px) {
  .noticia {
    min-width: 180px;
    max-width: 240px;
  }
}


.noticias-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: #f9f9f9;
}

.noticias-carrossel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px;
  scroll-padding-left: 20px; /* ou mesmo valor do gap */
  justify-content: flex-start;
  max-width: 100%;
}

.noticia {
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  max-width: 400px;
  scroll-snap-align: center;
  transition: transform 0.3s ease-in-out;
  text-align: center;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.noticia:hover {
  transform: scale(1.05);
}

.noticia img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.noticia h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #0f4e87;
}

.noticia a {
  color: #0f4e87;
  text-decoration: none;
  font-weight: bold;
}

.noticia a:hover {
  text-decoration: underline;
}
