
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
      font-family: 'Montserrat', sans-serif;
      background-color: #fff;
      margin: 0;
      padding: 0;
    }
    .carousel-item img {
      width: 100%;
      height: 95vh;
      object-fit: fill;
    }
    .carousel-item::before {
      content: "";
      position: absolute;
      top: 0; left: 0; bottom: 0; right: 0;
      background: rgba(0, 0, 0, 0.2); /* Escurece a imagem */
      z-index: 1;
    }
  
    .carousel-caption {
      z-index: 2;
    }
  
    .carousel-caption h1 {
      font-size: 2.5rem;
      font-weight: bold;
      color: #fff;
      text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
      margin-top: 100px;
      padding-top: 80px;
    }
    .cards-banner {
      position: relative;
      top: -60px;
      z-index: 1050;
      display: flex;
      justify-content: center;
      padding: 0 15px;
    }
    .container-cards {
      background: #fff;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      border-radius: 20px;
      display: flex;
      justify-content: space-around;
      align-items: center;
      flex-wrap: wrap;
      padding: 25px 10px;
      max-width: 1200px;
      width: 100%;
      gap: 20px;
    }    
    .card-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 120px;
      transition: transform 0.3s ease;
      text-align: center;
    }
    .card-item:hover {
      transform: translateY(-5px);
    }
    .card-item .icon {
      font-size: 32px;
      color: #8B0000;
      margin-bottom: 10px;
    }
    .card-item p {
      font-size: 14px;
      font-weight: bold;
      color: #333;
      margin: 0;
    }

    /* Responsivo para tablets */
@media (max-width: 991px) {
  .carousel-item img {
    height: 80vh;
  }

  .carousel-caption h1 {
    font-size: 2rem;
    margin-top: 60px;
    padding-top: 60px;
  }
}

/* Responsivo para celulares */
@media (max-width: 768px) {
  .carousel-item img {
    height: 55vh;
    width: 100%;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
    margin-top: 40px;
    padding-top: 40px;
    text-align: center;
  }
}


    /* Responsivo */
    @media (max-width: 768px) {
      .container-cards {
        flex-direction: row;
        justify-content: center;
        padding: 20px 10px;
      }
      .card-item {
        width: 100px;
      }
      .card-item .icon {
        font-size: 28px;
      }
      .card-item p {
        font-size: 12px;
      }
    }

    .parceria-etugeste {
      padding: 60px 20px;
      background-color: #f5f5f5;
    }
    
    .conteudo-parceria {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      max-width: 1200px;
      margin: 0 auto;
      gap: 90px;
    }
    
    .imagem-parceria img {
      width: 300px;
      height: 160px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      margin-right: 0; 
    }
    
    .imagem-parceria {
      flex: 1 1 45%;
      display: flex;
      justify-content: flex-end; /* Alinha a imagem à direita para aproximar do texto */

    }
    
    .texto-parceria {
      flex: 1 1 45%;
      min-width: 300px;
    }
    
    .texto-parceria h2 {
      font-size: 2rem;
      color: #8b0000;
      margin-bottom: 20px;
    }
    
    .texto-parceria p {
      font-size: 1.1rem;
      color: #333;
      line-height: 1.6;
      text-align: justify;
    }
    
    /* Responsivo para telas menores */
    @media (max-width: 768px) {
      .conteudo-parceria {
        flex-direction: column;
        text-align: center;
      }
    
      .texto-parceria p {
        text-align: center;
      }
    }
    .cards-banner {
      text-align: center;
    }

    .container-cards {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    .card-item {
      background-color: #f9f9f9;
      border: 1px solid #ddd;
      padding: 20px;
      width: 250px;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      cursor: pointer;
      transition: transform 0.3s;
    }

    .card-item:hover {
      transform: scale(1.05);
    }

    .icon {
      font-size: 30px;
      color: #8B0000;
      margin-bottom: 10px;
    }

    .extra-content {
      margin-top: 20px;
      display: none;
      animation: fadeIn 0.5s ease-in-out;
    }

    .extra-boxes {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
    }

    .box {
      border: 1px solid #ccc;
      border-radius: 10px;
      padding: 20px;
      width: 360px; /* Aumentada */
      background-color: #fff;
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
      transition: all 0.3s ease;
      
      text-align: center;
    }
    
    .box:hover {
      transform: translateY(-5px);
    }
    
    .styled-list {
      list-style: none;
      padding-left: 0;
      margin-top: 10px;
      margin-bottom: 10px;
    }
    
    .styled-list li {
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      color: #333;
    }
    
    .styled-list li i {
      margin-right: 8px;
      color: #8B0000;
    }

    .box h3 {
      font-size: 20px;
      margin-bottom: 10px;
    }

    .box p {
      font-size: 16px;
      margin-bottom: 10px;
      color: #333;
      text-align: justify;
    }

    .box a.btn-link {
      background-color: #8B0000;
      color: #fff;
      padding: 12px 28px;
      font-size: 16px;
      border-radius: 30px;
      text-decoration: none;
      display: inline-block;
      transition: background 0.3s ease;
      margin: 0 auto;
    }
    
       @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
      .container-cards, .extra-boxes {
        flex-direction: column;
        align-items: center;
      }
    }
    
    .quem-somos {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      background: #2c1307; /* azul escuro */
      padding: 60px 80px;
      position: relative;
      margin-top: 150px;
    }
    
    .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 {
      flex: 1 1 50%;
      color: white;
      padding-left: 40px;
      z-index: 2;
    }
    
    .quem-somos .conteudo h2 {
      font-size: 3rem;
      font-weight: 800;
      color: #fdfcfc;
      margin-bottom: 60px;
      margin-top: -50px;
    }
    
    .quem-somos .conteudo p {
      font-size: 1.2rem;
      line-height: 1.6;
      color: #ffffff;
      max-width: 90%;
      text-align: justify;
    }
    
    .quem-somos .linha {
      width: 80%;
      height: 2px;
      background-color: #ffffff;
      margin-top: 20px;
    }
    
    .quem-somos .imagem {
      flex: 1 1 50%;
      display: flex;
      justify-content: center;
      position: relative;
      z-index: 2;
    }
    
    .quem-somos .imagem img {
      max-width: 100%;
      height: auto;
      object-fit: cover;
      position: relative;
      margin-top: -50px;
    }
    
    /* ----------- RESPONSIVIDADE ----------- */
    @media (max-width: 1024px) {
      .quem-somos {
        padding: 40px 40px;
      }
    
      .quem-somos .conteudo h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
      }
    }
    
    @media (max-width: 768px) {
      .quem-somos {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
      }
    
      .quem-somos .conteudo {
        padding: 0;
        flex: 1 1 100%;
      }
    
      .quem-somos .conteudo p {
        max-width: 100%;
        text-align: justify;
      }
    
      .quem-somos .imagem {
        margin-top: 40px;
        flex: 1 1 100%;
      }
    
      .quem-somos .imagem img {
        margin-top: 0;
      }
    
      .quem-somos .conteudo h2 {
        margin-top: 0;
        font-size: 2rem;
      }
    }
    

.areas-container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
}

.areas-container h2 {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #8B0000;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.area-card {
  background-color: #050505;
  border: 1px solid #8B0000;
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.area-card.show {
  opacity: 1;
  transform: translateY(0);
}

.area-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(255, 183, 77, 0.2);
}

.area-icon {
  font-size: 35px;
  color: #f8f8f8;
  margin-bottom: 15px;
  align-items: center;
}

.area-title {
  font-size: 1.2em;
  color: #f8f4f4;
  margin-bottom: 10px;
  font-weight: bold;
}

.area-description {
  font-size: 0.95em;
  color: #ddd;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .areas-container h2 {
    font-size: 1.8em;
  }
}

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

.highlight-red {
  color: #8B0000; /* vermelho sombrio (dark red) */
  font-weight: 700 
}

.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: #8B0000;
  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;
}
.galeria-wrapper {
  overflow: hidden;
  width: 100%;
  background: #fffefe;
  padding: 20px 0;
}
.faixa-imagens {
  display: flex;
  gap: 50px; /* Espaço entre imagens */
  height: 120px;
  width: max-content;
  width: calc(250px * 10);
  animation: deslizar 20s linear infinite;
}
.imagem-item {
  width: 300px;
  height: 160px;
  object-fit: cover;
  margin: 0 100px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.imagem-item:hover {
  transform: scale(1.1);
}
@keyframes deslizar {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-20%);
  }
}

@media (max-width: 1024px) {
  .service-card {
    flex: 0 0 33.333%;
  }
}

@media (max-width: 900px) {
  .service-card {
    flex: 0 0 50%;
  }
}

/* Tablets pequenos e celulares grandes (até 768px) - 2 cards por tela */
@media (max-width: 768px) {
  .service-card {
    flex: 0 0 50%;
  }
}

/* Smartphones (até 576px) - apenas 1 serviço por tela */
@media (max-width: 576px) {
  .service-card {
    flex: 0 0 100%;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }

  .carousel-title {
    font-size: 1.5rem;
    padding-left: 20px;
  }
}