
/* Apresentação */
.presentation {
  padding: 80px;
  text-align: right; /* Alinha o texto à direita */
  background-image: url('/assets/src/images/woodchaps.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.text-container {
  background-color: rgba(128, 128, 128, 0.7); /* Cor cinza com transparência */
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  text-align: right;
}

.presentation h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.presentation p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.presentation button {
  padding: 15px 30px;
  font-size: 1.1em;
  background-color: #f2a900;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.presentation button:hover {
  background-color: #c87e00;
}


/* Títulos */
.title h2 {
  display: flex;
  justify-content: center;
}

/* Serviços */
.services {
  padding: 50px;
  background-color: #f9f9f9;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 10px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.card h3 {
  font-size: 1.5em;
  margin: 15px 0;
}

.card p {
  font-size: 1em;
}

.card button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #f2a900;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card button:hover {
  background-color: #c87e00;
}

/* Trabalhos Recentes */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  position: relative;
}

.work-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.work-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.work-item:hover img {
  transform: scale(1.1);
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-overlay h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.work-overlay p {
  font-size: 1em;
  text-align: center;
}

/* Mapa */
.mapBox iframe {
  width: 100%;
  height: 500px;
  border: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  /* Seção Apresentação */
  .presentation {
    padding: 50px;
  }

  .text-container {
    max-width: 500px; /* Ajustando a largura da caixa de texto */
  }

  /* Cartões de Serviço */
  .service-cards {
    grid-template-columns: 1fr 1fr;
  }

  .card button {
    width: 100%;
  }

  /* Galeria de Trabalhos */
  .work-item img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  /* Seção Apresentação */
  .presentation {
    padding: 30px;
  }

  .text-container {
    max-width: 100%; /* Caixa de texto ocupa toda a largura */
    padding: 20px;
  }

  .presentation h1 {
    font-size: 2.2em; /* Ajuste de tamanho do título */
  }

  .presentation p {
    font-size: 1.1em; /* Ajuste de tamanho do texto */
  }

  /* Cartões de Serviço */
  .service-cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 15px; /* Ajuste no padding */
  }

  /* Trabalhos Recentes */
  .works-gallery {
    grid-template-columns: 1fr;
  }

  .work-item img {
    height: 150px; /* Ajuste na altura da imagem */
  }

  /* Mapa */
  .mapBox iframe {
    height: 300px; /* Reduzir altura do mapa para telas pequenas */
  }
}
