/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #333;
}

/* SLIDER */
.hero-slider {
  margin-top: 0px;
  position: relative;
  height: 90vh; /* aumentada de 90vh para 100vh */
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* camada escura sobre a imagem */
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-content {
  position: absolute;
  bottom: 35%; /* sobe todo o bloco */
  left: 10%;
  color: white;
  max-width: 600px;
  z-index: 2; /* garantir que o conteúdo fique acima da camada escura */
}

.slide-content h1 {
  font-size: 3.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transform: translateY(-35px); /* sobe o h1 */
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateY(-35px); /* sobe o h1 */
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .slide-content h1 {
    font-size: 2rem;
    margin-top: 10px!important;
  }

   .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .slide-content ul {
    font-size: 0.9rem;
  }
  
.quem-somos {
  margin-top: 10px;
}
}

.carousel-section {
  padding: 40px 20px;
  text-align: center;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.carousel-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
  padding-left: 80px;
}

.carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome */
}
.service-card {
  flex: 0 0 33.333%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.badge {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #002d62;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 5px;
}

.service-card h3 {
  font-size: 1.2rem;
  color: #0d2235;
  margin: 10px 0;
}

.service-card p {
  color: #444;
  font-size: 0.95rem;
}

/* Botões laterais */
.carousel-btn {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  color: #002d62;
  border: none;
  font-size: 1.5rem;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

.carousel-btn.prev {
  left: -5px;
}

.carousel-btn.next {
  right: -20px;
}

@media (max-width: 1024px) {
  .hero-slider {
    margin-top: 0px;
    position: relative;
    height: 60vh; /* aumentada de 90vh para 100vh */
    overflow: hidden;
  }

  .slide-content {
    position: absolute;
    bottom: 20%; /* sobe todo o bloco */
  }
  .carousel-title {
    text-align: center;
    padding-left: 0px;
    
  }
  .service-card {
    flex: 0 0 48%;
  }
  .carousel-btn.prev {
    left: -5px;
  }
  
  .carousel-btn.next {
    right: -5px;
  }
  .container-porque {
    flex-direction: column-reverse;
    text-align: center;
  }

  .imagem-porque img {
    max-width: 100%;
  }

  .conteudo-porque h2 {
    font-size: 1.7rem;
  }
  .container-metrica {
    flex-direction: column;
    align-items: center;
  }

  .card-metrica {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  .service-card {
    flex: 0 0 100%;
  }
  .carousel-btn.prev {
    left: -5px;
  }
  
  .carousel-btn.next {
    right: -5px;
  }
}

.quem-somos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #002c6e; /* azul escuro */
  padding: 60px 20px;
  position: relative;
  margin-top: 150px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden; /* impede overflow lateral */
}

.quem-somos .conteudo, 
.quem-somos .imagem {
  flex: 1 1 100%;
  box-sizing: border-box;
  padding: 20px;
}
@media (min-width: 1024px) {
  .quem-somos .conteudo, 
  .quem-somos .imagem {
    flex: 1 1 50%;
  }
}

.reveal {
  opacity: 0;
  transition: all 1s ease;
  transform: translateY(40px);
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* movimento lateral */
.reveal.left {
  transform: translateX(-50px);
}

.reveal.right {
  transform: translateX(50px);
}

.reveal.left.active,
.reveal.right.active {
  transform: translateX(0);
}

.quem-somos .conteudo h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f6f9fa;
  margin-bottom: 40px;
  margin-top: 0;
}

.quem-somos .conteudo p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ffffff;
  max-width: 100%;
  text-align: justify;
}

.quem-somos .linha {
  width: 0%;
  height: 2px;
  background-color: #03adc4;
  margin-top: 20px;
}

.quem-somos .imagem {
  display: flex;
  justify-content: center;
  align-items: center;
}

.quem-somos .imagem img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: 0;
  display: block;
}

/* Animações */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.porque-section {
  padding: 60px 20px;
  background-color: #0b1a2a; /* azul sombrio */
  color: #ffffff;
}

.container-porque {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1s ease;
}

.container-porque.show {
  opacity: 1;
  transform: translateY(0);
}

.imagem-porque img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.conteudo-porque h2 {
  color: #f8f8f6;
  font-size: 2rem;
  margin-bottom: 20px;
}

.conteudo-porque p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

strong {
  font-weight: bold;
  color: #ffffff;
}

.formacao-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.titulo {
  font-size: 2.5rem;
  color: #002d62;
  margin-bottom: 40px;
  text-align: left;
}

.formacoes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.formacao-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: left;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.formacao-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
}

.tag {
  background: #002d62;
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
}

.formacao-card h3 {
  color: #002d62;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.formacao-card p {
  font-size: 0.95rem;
}

/* Transição ativada via JavaScript */
.formacao-card.ativo {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade extra para telas pequenas */
@media (max-width: 768px) {
  .titulo {
    font-size: 2rem;
  }

  .formacao-card {
    padding: 15px;
  }

  .formacao-card h3 {
    font-size: 1.1rem;
  }

  .formacao-card p {
    font-size: 0.9rem;
  }
}

.metricas-section {
  background-color: #ffffff;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.container-metrica {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.card-metrica {
  background-color: #002c6e;
  border: 2px solid #ffffff;
  border-radius: 10px;
  padding: 40px 30px;
  width: 250px;
  transition: transform 0.3s ease;
}

.card-metrica:hover {
  transform: translateY(-5px);
}

.card-metrica h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: bold;
}

.card-metrica p {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  color: #ccc;
}
