html, body {
  width: 100%;
  overflow-x: hidden; /* impede rolagem horizontal */
}
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
}
.top-banner {
  position: relative;
  width: 100%;
  height: 350px;
  background: url('../imag/business-colleagues-consulting-legal-advisor.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 90px;
}

/* Camada de sobreposição */
.banner-overlay {
  position: absolute;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(44, 109, 117, 0.95), rgba(0, 28, 77, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

/* Texto do banner */
.banner-content {
  max-width: 900px;
}

.banner-title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.banner-subtitle {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
  .top-banner {
    margin-top: 70px;
      height: 250px;
  }
  .banner-title {
      font-size: 1.8rem;
  }
  .banner-subtitle {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .top-banner {
      height: 200px;
  }
  .banner-title {
      font-size: 1.5rem;
  }
  .banner-subtitle {
      font-size: 0.9rem;
  }
}

.servicos {
  padding: 50px 20px;
  position: relative;
}

.servicos-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.servicos-texto {
  flex: 1 1 400px;
}

.servicos-texto .subtitulo {
  color: #0599DB;
  font-weight: bold;
  margin-bottom: 10px;
}

.servicos-texto h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 20px;
}

.servicos-texto ul {
  list-style: none;
  padding: 0;
}

.servicos-texto ul li {
  margin-bottom: 15px;
  line-height: 1.6;
  position: relative;
  padding-left: 20px;
}

.servicos-texto ul li::before {
  content: "•";
  color: #000;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.servicos-imagem {
  flex: 1 1 350px;
  position: relative;
  height: 320px;
}

/* Fundo diagonal para a esquerda */
.servicos-imagem .fundo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0599DB;
  transform: skew(-20deg);
  z-index: 1;
}

/* Imagem inclinada para a direita */
.servicos-imagem .imagem {
  position: absolute;
  top: -15px; /* sobe a imagem */
  left: 15px; /* desloca para direita */
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform: skew(20deg);
  z-index: 2;
}

/* Corrige distorção da foto */
.servicos-imagem .imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: skew(-20deg);
}

.contato {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #0599DB;
  font-weight: bold;
  z-index: 3;
}

.contato i {
  font-size: 20px;
}

.contato p {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.contato span {
  font-size: 1rem;
  color: #0599DB;
}

.secao-servicos {
  padding: 40px 20px;
  text-align: center;
}

.texto-topo h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.texto-topo p {
  font-size: 15px;
  color: #555;
  margin-bottom: 40px;
}

.container-servicos {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  grid-template-columns: repeat(3, 1fr); /* 3 cards por linha no desktop */
  justify-content: center;
}

.card-servico {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  max-width: 330px;
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s ease;
  margin-bottom: 40px;
}

.card-servico img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.conteudo-servico {
  padding: 15px;
  text-align: center;
}

.conteudo-servico h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.conteudo-servico p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #444;
  text-align: justify;
}

.botao-servico {
  display: inline-block;
  padding: 8px 16px;
  background: #0599DB;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.3s ease;
  text-align: center;
}

.card-servico.aparecer {
  transform: translateY(0);
  opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
  .container-servicos {
    flex-direction: column;
    align-items: center;
  }
  .card-servico {
    max-width: 100%;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .servicos-container {
    flex-direction: column;
  }

  .servicos-imagem {
    height: 250px;
    width: 100%;
  }

  .servicos-texto h2 {
      font-size: 1.5rem;
  }
}
