/* A animação que move o fundo */
@keyframes moverFundo {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#diferenciais {
  position: relative;
  padding: 6rem 2rem; /* Usando padding responsivo se necessário */
  background-color: #7e22ce; /* Cor de fundo fallback */
  overflow: hidden;
  isolation: isolate; /* Garante que os z-index funcionem corretamente */
}

/* ::before é a camada do gradiente animado (no fundo) */
#diferenciais::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2; /* Fica bem no fundo */

  background: linear-gradient(100deg, #e06b16, #7e22ce, #e06b16);
  background-size: 400% 400%;
  animation: moverFundo 15s linear infinite;
}

/* ::after é a camada de sobreposição escura (no meio) */
#diferenciais::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; /* Fica entre o gradiente e o conteúdo */
  background: rgba(0, 0, 0, 0.3);
}

/* Garante que o conteúdo fique na frente de tudo */
#diferenciais > * {
  position: relative;
  z-index: 1; /* Não precisa de valor maior, pois o isolation já resolve */
}

.diferenciais-geral {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  width: 100%;
  max-width: 1200px; /* Adiciona uma largura máxima para o conteúdo em telas grandes */
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title1 {
  text-align: center;
  font-size: 3.5rem;
  color: white;
}

.features-grid {
  display: flex;
  gap: 2.5rem;
  width: 100%;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: white;
  flex: 1; /* Garante que os cards ocupem o espaço de forma igual */
}

.feature-card:hover {
  transform: translateY(-5px);
  border: 2px solid rgb(249, 116, 22);
  box-shadow: 0 8px 24px rgba(249, 116, 22, 0.24);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background-color: rgba(249, 115, 22, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.cta-button-centered {
  display: block;
  width: fit-content;
  margin: 2rem auto 0; /* Ajustado o margin-top */
  background-color: #f97316; /* Cor primária laranja - ajuste se usar variável CSS */
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button-centered:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}
