.hero-section {
  position: relative;
  padding-bottom: 40px;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
  cursor: grab;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.features-grid {
  display: flex;
  gap: 40px;
  margin-top: -100px;
  position: relative;
  z-index: 10;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
.feature-card {
  background: linear-gradient(to left, #001324, var(--cor-p1));
  color: #ffffff;
  padding: 48px 32px;
  border-radius: 20px;
  text-align: center;
  flex: auto;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.feature-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-icon img {
  width: 32px;
  height: 32px;
}
.feature-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 20;
  transition: background 0.3s;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 10px;
}

.hero-next {
  right: 10px;
}

@media (max-width: 768px) {
  .hero-image {
    height: 300px;
  }

  .feature-card {
    padding: 24px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-image {
    height: 200px;
  }

  .feature-title {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    margin-top: 20px !important;
    padding-bottom: 10px !important;
    overflow-x: visible !important;
  }

  .feature-card {
    width: auto !important;
    flex: none !important;
    height: auto;
    padding: 24px 16px !important;
    box-sizing: border-box;
  }
}
