.painel img {
  width: 100%;
  height: 100vh;
  display: block;
  object-fit: cover;
  opacity: 0.7;
}

.painel {
  position: relative;
  background-color: #04063b;
  box-sizing: border-box;
}

.painel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 50px;
  box-sizing: border-box;
  text-align: left;
  font-size: 1.8rem;
  line-height: 2rem;
  width: 100%;
  max-width: 100vw;
  margin-right: auto;
}

.texto-painel h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  line-height: 4.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3),
  0 4px 8px rgba(0, 0, 0, 0.2),
  0 6px 12px rgba(0, 0, 0, 0.1); 
}

.texto-painel {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: 0;
  right: 0;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 50px;
  box-sizing: border-box;
  text-align: left;
  font-size: 2rem;
  line-height: 2rem;
  max-width: 1000px;
}

.btn-contato {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color-gradient);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 50px;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.btn-contato:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 768px) {
  .texto-painel {
    padding: 50px;
  }
  .texto-painel p {
    font-size: 2rem !important;
  }
  .texto-painel h1 {
    font-size: 4rem !important;
    line-height: 60px;
  }
}

@media (max-width: 500px) {
  .texto-painel {
    padding: 50px;
  }
  .texto-painel p {
    font-size: 1.5rem !important;
  }
  .texto-painel h1 {
    font-size: 3rem !important;
    line-height: 60px;
  }
}

/* Seção 2 */
.section2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  padding-top: 80px;
  padding-bottom: 80px;
  gap: 50px;
  box-sizing: border-box;
}

.imagem-section2 img {
  width: 100%;
  max-width: 500px;

  height: auto;
  box-shadow: -11px 11px 10px 0px rgba(0, 0, 0, 0.473);
}

.texto-section2 {
  max-width: 1000px;
}

.texto-section2 h1 {
  font-size: 5rem;
  margin-bottom: 20px;
  margin-top: 20px;
  color: #04063b;
}

.texto-section2 p {
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: #333;
}

@media (max-width: 1450px) {
  .texto-section2 {
    width: 1000px;
  }

  .texto-section2 p {
    font-size: 32px;
    line-height: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .section2 {
    flex-direction: column;
  }

  .imagem-section2 img {
    max-width: 300px;
  }
  .texto-section2 {
    max-width: 100%;
  }

  .texto-section2 h1 {
    font-size: 3rem;
  }

}

@media (max-width: 500px) {
  .texto-section2 h1 {
    font-size: 2rem;
  }
}

/* Seção 3 */
.section3 {
  width: 100%;
  position: relative;
  background-color: #04063b;
  overflow: hidden;
  height: auto;
}

.section3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.caixa {
  position: relative;
  z-index: 1;
  left: 0%;
  top: 0%;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 60px;
  padding: 120px;
}

.section3 h1 {
  font-size: 5rem;
  color: white;
  text-align: center;
  margin: 20px 0;
}

.div-cards {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 30px;
  padding: 40px;
  width: 100%;
}

.card {
  background: var(--primary-color-gradient);
  border-radius: 10px;
  padding: 40px;
  color: white;
  width: 400px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1.8rem;
  max-width: 700px;
  width: 100%;
  height: 350px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card i {
  font-size: 10rem;
}

@media (max-width: 1600px) {
  .card {
    font-size: 1.4rem;
  }
}

@media (max-width: 1350px) {
  .caixa {
    padding: 60px;
    gap: 40px;
  }

  .section3 h1 {
    font-size: 4rem;
  }

  .div-cards {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
  }

  .card {
    width: 100%;
    height: auto;
  }

  .card i {
    font-size: 5rem;
  }
}

@media (max-width: 700px) {
  .caixa {
    padding: 20px;
    gap: 20px;
  }

  .section3 h1 {
    font-size: 3rem;
  }
}

/* Seção 4 */
.section4 {
  width: 100%;
  height: auto;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(90deg, #04063b, #8f2528);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.section4 .imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.19;
}

.conteudo {
  position: relative;
  z-index: 1;
  left: 0%;
  top: 0%;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px;
  padding: 120px;
}

.section4 h1 {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.depoimentos {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  justify-content: center;
  align-items: start;
  padding: 40px;
  width: 100%;
  max-width: 1000px;
  padding-top: 0;
}

.depoimento-pessoa {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: auto;
  padding: 10px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.253);
  padding: 10px;
}


.texto-depoimentos {
  font-size: 1.5rem;
  font-style: italic;
  text-align: justify;
}

.autor {
  text-align: center;
 
}

@media (max-width: 1400px) {
  .conteudo  {
    padding: 60px;
  }
}

@media (max-width: 768px) {

  .section4 h1 {
    font-size: 3rem;
  }

  .conteudo {
    padding: 40px;
  }
}


@media (max-width: 550px) {

  .texto-depoimentos {
  text-align: center;
}
  .conteudo {
    padding: 20px;
  }
}
