* {
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  background-color: var(--cinza-claro);
}

/* strong {
  color: #174a84;
} */


h1 {
  text-align: center;
  font-size: 2.5rem;
  font-family: var(--titulo-font);
  margin: 1rem 0;
  padding: 1rem;
}


h2 {
  text-align: center;
  font-size: 2rem;
  font-family: var(--titulo-font);
  margin: 1rem 0;
}


h3 {
  text-align: center;
  font-size: 1.75rem;
  font-family: var(--titulo-font);
  margin: 1rem 0;
}

h4 {
  text-align: center;
  font-size: 1.5rem;
  font-family: var(--titulo-font);
  margin: 1rem 0;
}

.card-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;

}

.card-container a {
  text-decoration: none;
  color: unset;
}

.card {
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 205px;
  /* height: 48vh; */
  padding: 1rem;
  margin: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
  background-color: #fff;
  transition: all 0.3s ease;

}

.card:hover h2 {
  color: var(--azul-escuro);
  transition: all 0.3s ease;

}

.card img {
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.card h2 {
  font-family: var(--titulo-font);
  font-size: 1.25rem;
  margin: 12.5px 0;
  transition: all 0.3s ease;

}

.card p {
  font-family: var(--paragrafo-font);
  font-size: 1rem;
  text-align: center;
}

/* Servicos */

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.boxPreocupa {
  width: 100%;
  display: flex;
  justify-content: space-around;
  margin: 0 2rem;
}

.service-card {
  width: 45%;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: .5s all ease-in-out;
}

.service-card:hover {
  background-color: white;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: .5s all ease-in-out;

}

.service-card:hover img {
  scale: 1.05;
  transition: .5s all ease-in-out;
}



.service-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.service-content h3 {
  font-size: 1.25rem;
  color: #000;
  margin: 0px 0px 1rem 0px;
  font-family: var(--titulo-font);
  transition: .3s all ease-in-out;
}


.service-content:hover h3 {
  font-size: 1.25rem;
  color: var(--azul-escuro);
  transform: translateY(-5px);
  transition: .3s all ease-in-out;
}

.service-content p {
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  margin-bottom: 15px;
  font-family: var(--paragrafo-font);

}

.service-content a {
  position: relative;
  padding: .5rem;
  font-family: var(--paragrafo-font);
  font-size: 1.25rem;
  border: 2px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #ccc;
  background-color: #fff;
  overflow: hidden;
  cursor: pointer;
  width: fit-content;
  margin: 0 auto;
  text-decoration: none;
}

.service-content a::before {
  content: "";
  /* Necessário para gerar o elemento */
  position: absolute;
  /* Posiciona o elemento em relação ao botão */
  top: 0;
  /* Alinha ao topo */
  left: -110%;
  /* Começa fora da tela */
  width: 100%;
  /* Largura total do botão */
  height: 100%;
  /* Altura total do botão */
  background-color: var(--azul-escuro);
  /* Cor de fundo pela diagonal */
  transform: skewX(-20deg);
  /* Inclinação para criar o efeito diagonal */
  transition: all 0.3s ease;
  /* Suaviza a transição */
  z-index: 0;
  /* Envia o ::before para trás */
}

.service-content a:hover::before {
  left: 110%;
  /* Move o elemento para a direita ao passar o mouse */
}

.service-content a:hover {
  color: var(--azul-escuro);
  /* Muda a cor do texto ao passar o mouse */
  border-color: transparent;
  /* Remove a borda ao passar o mouse */
  z-index: 1;
  /* Eleva o botão acima do ::before */
}

/* .service-content a .btn {

} */

.service-link {
  color: var(--azul-escuro);
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  font-family: var(--paragrafo-font);
  font-size: 1.25rem;
}

.service-link:hover {
  text-decoration: underline;
}



/* Parallax */

.content-parallax {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0;
  padding: 1.5rem 0 3 rem 0;
}


.content-parallax h2 {
  /* font-size: 2rem; */
  /* color: var(--azul-escuro); */
  margin: 1.5rem 0 2rem 0;
  font-family: var(--titulo-font);
}

.parallax-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  height: auto;
  /* Define a altura da div pai para testar a rolagem */
}

.box-img-vertical {
  display: flex;
  justify-content: end;
  width: 40%;
}

.img-vertical {
  width: 60%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #ccc;
}

.box-txt-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0.7rem;
  margin-left: 1.5rem;
  width: 75%;
  position: sticky;
  top: 3rem;
  /* O conteúdo ficará "grudado" no topo da página ao rolar */
  align-self: start;
  /* Alinha o conteúdo ao início da div */
  height: auto;
  /* Ajuste de altura para manter o comportamento flexível */
}


.box-txt-vertical h3 {
  color: #000;
  font-family: var(--titulo-font);
  margin-bottom: 1rem;
  /* font-size: 1.5rem; */
}

.box-txt-vertical p {
  color: #000;
  font-family: var(--paragrafo-font);
  font-size: 1rem;
  width: 85%;
  line-height: 1.5;
}


/* Testemunha */

.contentBoxTestemunha {
  margin: 4.5rem 0 2.5rem 0;
}


.testemunho-container {
  width: 75%;
  position: relative;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  padding: 20px;
}

.testemunho-slide {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.testemunho {
  min-width: 100%;
  /* Cada depoimento ocupa 100% da largura */
  box-sizing: border-box;
  text-align: center;
  display: none;
  /* Oculta todos os depoimentos inicialmente */
  font-family: var(--paragrafo-font);
}

.testemunho p {
  font-size: 1rem;
  line-height: 1.5;
}

.testemunho small {
  font-size: 0.75rem;
}

.testemunho h4 {
  font-size: 1.5rem;
}

.testemunho.ativo {
  display: block;
  /* Exibe apenas o depoimento ativo */
}

h4 {
  margin: 1rem 0;
  color: var(--azul-escuro);
  font-family: var(--titulo-font);
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
}

button.prev {
  left: 10px;
  /* Ajusta a posição da seta anterior */
}

button.next {
  right: 10px;
  /* Ajusta a posição da seta seguinte */
}

/* TABELA  */

.grid-table {
  width: 75%;
  max-width: 1000px;
  /* Define um tamanho máximo para a tabela */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #f9f9f9;
  margin: 2rem auto;
}

.grid-header {
  font-weight: bold;
  background-color: #e2e2e2;
  padding: 10px;
  text-align: center;
  font-family: var(--titulo-font);
}

.grid-item {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
  font-family: var(--paragrafo-font);
}



/* FORMULARIO */

form {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: auto;
}

label {
  display: block;
  margin: 10px 10px 5px;
  font-family: var(--paragrafo-font);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border 0.3s ease;
  /* Adiciona uma transição suave */
  font-family: var(--paragrafo-font);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border: 2px solid var(--azul-escuro);
  /* Altera a cor e a espessura da borda no foco */
  outline: none;
  /* Remove o outline padrão do navegador */
  transition: border 0.3s ease;
  /* Adiciona uma transição suave */

}

textarea {
  height: 100px;
  font-family: var(--paragrafo-font);

}

fieldset {
  border: none;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;

}

legend {
  font-weight: bold;
  font-family: var(--titulo-font);
  font-size: 1.2rem;
}

.btn-form {
  background-color: var(--azul-escuro);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: .5s;
  margin: 1rem 0;
  width: 30%;
  font-family: var(--paragrafo-font);
}

.btn-form:hover {
  background-color: var(--azul-claro);
  color: #000;
  transition: .5s;
}



/* SUAVIZAÇÂO DO TOPO */

/* Estilos do header antes de ser fixado */
header {
  position: relative;
  width: 100%;
  transition: all 0.3s ease;
  /* Transição para todas as propriedades */
}

/* Estilos quando o header é fixado */
header.fixo {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.9);
  /* Exemplo de cor de fundo quando fixado */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Sombrinha opcional */
  z-index: 1000;
  /* Para garantir que o header fique no topo */
}



/* Estilos responsivos */



@media (max-width: 900px) {

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  .parallax-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .box-img-vertical {
    justify-content: center;
    width: 40%;
  }

  .box-txt-vertical {
    justify-content: center;
    align-items: center;
    width: 90%;
    align-self: center;
    margin: 0 auto;
    text-align: center;
  }



}

@media (max-width: 768px) {

  .grid-table {
    grid-template-columns: repeat(2, 1fr);
    /* Muda para 2 colunas em telas pequenas */
  }

  .service-card {
    width: 75%;
    margin-bottom: 1rem;
  }

  .boxPreocupa {
    flex-direction: column;
    align-items: center;
  }

  .boxPreocupa:nth-child(2) {
    flex-direction: column-reverse;
    align-items: center;
  }

  h1 {
    font-size: 1.7rem !important;
    /* margin: 1rem; */
  }

  h2 {
    font-size: 1.5rem !important;
    /* margin: 1rem; */
  }

  h3 {
    font-size: 1.35rem !important;
    /* margin: 1rem; */
  }

  p {
    font-size: 1rem;
    /* margin: 1rem; */
  }

  .contentBoxTestemunha {
    margin: 2.5rem 0 2.5rem 0;
  }

}

@media (max-width: 670px) {

  .img-vertical {
    width: 80%;
  }



}



@media (max-width: 480px) {
  .grid-table {
    grid-template-columns: 1fr;
    /* Muda para 1 coluna em telas muito pequenas */
  }

  .box-img-vertical {
    justify-content: center;
    width: 75%;
  }

}







/* Firefox */

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-button {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--azul-principal);
  border: 0px none var(--azul-principal);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--azul-escuro);
}

::-webkit-scrollbar-thumb:active {
  background: var(--azul-escuro);
}

::-webkit-scrollbar-track {
  background: #fff;
  border: 0px none var(--azul-claro);
}

::-webkit-scrollbar-track:hover {
  background: #fff;
}

/* ::-webkit-scrollbar-track:active {
  background: #333333;
} */
::-webkit-scrollbar-corner {
  background: transparent;
}