* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,html {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
}

.slider {
  position: relative; /* adicionado */
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.8;
  z-index: 0;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, rgba(107, 2, 2, 0.85), rgba(119, 1, 1, 0.85));
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  z-index: 1;
}

.text-banner {
  max-width: 50%;
  padding: 40px 30px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.text-banner h1 {
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.text-banner .btn-saiba {
  background-color: #d8970c;
  border: none;
  border-radius: 50px;
  padding: 15px 35px;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.text-banner .btn-saiba:hover {
  background-color: #a93600;
}
.container-sobre {
  display: flex;
  flex-direction: row; /* Para desktop, o texto e a imagem ficam lado a lado */
  justify-content: space-between;
  align-items: center;
  margin: 20px; /* Adiciona margem externa */
  margin-bottom: 150px;
  margin-top: 130px;
  opacity: 0; /* Começa invisível para a transição */
  transform: translateY(50px); /* Move para baixo inicialmente */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Efeito de transição */
}
.image-content {
  flex: 1;
}
.text-content {
  flex: 1; /* Permite que o texto ocupe o espaço disponível */
  margin-left: 60px; /* Espaço entre texto e imagem */
}
.text-content p {
  font-size: 22px;
  margin-bottom: 60px;
  text-align: justify; /* Justifica o texto */
}
.button {
  text-decoration: none;
  color: white;
  background-color: #7a0404; /* Cor do botão */
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.image-content {
  flex: 1;
  display: flex; /* Adiciona flexbox para centralizar */
  justify-content: center; /* Centraliza a imagem */
  animation: slideInRight 1.5s forwards; /* Animação de entrada */
}
.image-content img {
  max-width: 100%; /* Garante que a imagem não ultrapasse o contêiner */
  height: 370px; /* Mantém a proporção da imagem */
  border-radius: 15px; /* Bordas arredondadas para a imagem */
}
@keyframes fadeIn {
  to {
      opacity: 1; /* Fica visível */
  }
}
@keyframes slideInLeft {
  to {
      transform: translateX(0); /* Retorna à posição original */
  }
}
@keyframes slideInRight {
  to {
      transform: translateX(0); /* Retorna à posição original */
  }
}


.servicos {
  max-width: 1200px;
  margin: auto;
}

.titulo {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  font-weight: 600;
  color: #7a0404;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #f7f4f4; /* Borda branca */
  overflow: hidden;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.info {
  padding: 1.2rem;
}

.info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #111;
  line-height: 1.4;
}

.info p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: bold;
  color: #7a0404;
  font-size: 0.85rem;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* Animações estilo PowerPoint */
@keyframes slideInLeft {
  from {
    transform: translateX(-80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-left {
  animation: slideInLeft 1s ease forwards;
}

.slide-right {
  animation: slideInRight 1s ease forwards;
}

/* Delay sequencial */
.cards .card:nth-child(1) { animation-delay: 0.2s; }
.cards .card:nth-child(2) { animation-delay: 0.4s; }
.cards .card:nth-child(3) { animation-delay: 0.6s; }
.cards .card:nth-child(4) { animation-delay: 0.8s; }

.secao-areas {
  background-color: #2a0000; /* fundo vermelho sombrio como na imagem */
  padding: 40px 20px;
  border-radius: 10px;
  margin-top: 130px;
}

.titulo-areas {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 100px;
  color: #ffffff;
}

.container-deslizante {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.faixa-cards {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
}

.card-area {
  background-color: #f5eeee;
  padding: 20px;
  border-radius: 10px;
  min-width: 280px;
  max-width: 300px;
  flex: 0 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.card-area:hover {
  transform: scale(1.05);
}
.img-area {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
}

.card-area h4 {
  color: #0e0d0d;
  margin-bottom: 10px;
}

.card-area p {
  color: #131212;
}
.esquerda {
  position: absolute;
  left: 0;
}

.direita {
  position: absolute;
  right: 0;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
  gap: 20px;
  margin-top: 100px;
}

.contact-info, .contact-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 20px;
  flex: 1 1 350px;
  max-width: 500px;
  margin-bottom: 100px;
}

h2 {
  margin-bottom: 15px;
  color: #333;
}

.contact-info p {
  margin: 10px 0;
  font-size: 15px;
  color: #333;
}

.contact-info i {
  margin-right: 8px;
  color: #444;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  width: 100%;
  padding: 12px;
  background-color: #8B0000; /* Vermelho sombrio */
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #a50000;
}
.row-fields {
  display: flex;
  gap: 15px;
}

.row-fields .field {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Responsivo */
@media (max-width: 768px) {
  .banner {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 50vh;
  position: relative;
  top: 0;
  left: 0;
  }

  .slide {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .slide img {
    object-position: center center; /* centraliza melhor a imagem */
  }

  .slide::before {
    content: none; /* Remove a diagonal vermelha */
  }

  .text-banner {
    padding: 15px;
    left: 5%;
    right: 5%;
  }

  .text-banner h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 30px;
  }

  .text-banner .btn-saiba {
    padding: 12px 24px;
    font-size: 1rem;
  }
     .container-sobre {
    flex-direction: column; /* Muda a direção do flex para coluna em dispositivos móveis */
    align-items: center; /* Centraliza o conteúdo */
    margin-bottom: 70px;
    margin-top: 60px;
}

.text-content {
    margin: 20px 0; /* Margem superior e inferior para o texto */
    order: 1; /* Coloca o texto após a imagem */
    text-align: center; /* Justifica o texto */
    animation: fadeIn 1.5s forwards 1.3s; /* Animação de fadeIn com delay */
}

.text-content p {
 font-size: 19px;
 line-height:2;
}
.text-content button {
  display: inline-block;
 }
.image-content {
    margin-top: 5px; /* Espaço entre a imagem e o texto */
    animation: fadeIn 1.5s forwards; /* Animação de fadeIn */
    order: 2; /* Coloca a imagem antes do texto */
    width: 100%; /* Ajusta a largura para ocupar 100% do contêiner */
    display: flex; /* Adiciona flexbox para centralizar */
    justify-content: center; /* Centraliza a imagem */
    align-items: center; /* Centraliza verticalmente */
}

.image-content img {
    display: none;
}
.text-content h2 {
  font-size: 24px;
  margin-bottom: 20px; /* Margem inferior */
  margin-top: -10px; /* Ajuste para subir o título */
}
.titulo {
  text-align: center;
}

.info h3 {
  font-size: 1rem;
}

.info p {
  font-size: 0.85rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr; /* Dois cards por linha */
  gap: 36px;
  padding: 0 16px; /* Espaço nas laterais */
  justify-items: center;
  text-align: center;
}

.card img {
  object-fit: fill;
  width: 100%;
  height: 260px;
  margin: 0 auto;
}
.faixa-cards {
  gap: 10px;
}

.card-area {
  min-width: 240px;
}
.img-area {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
}
.contact-section {
  flex-direction: column;
  align-items: stretch;
}
.row-fields {
  flex-direction: column;
}
}
