.team {
  padding: 40px 0;
  background-color: #ffffff;
}

.team-featured {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.team-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.team-featured-text p {
  font-size: 20px;
  text-align: justify;
  color: var(--cor-4);
}

.team-wrapper {
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px;
  scroll-behavior: smooth;
}

.team-member {
  flex: 0 0 220px;
  text-align: center;
  scroll-snap-align: center;
}

.team-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid var(--cor-p1);
  object-fit: cover;
}

.team-member-text {
  font-size: 16px;
  color: var(--cor-4);
}

.scroll-indicator {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--cor-p1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.3s;
  animation: arrow-move 1.2s infinite ease-in-out;
}

.scroll-indicator:hover {
  transform: translateY(-50%) scale(1.1);
  opacity: 0.9;
}

@keyframes arrow-move {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-50%) translateX(8px);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .team-featured {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .team-featured-text p {
    font-size: 18px;
    text-align: justify;
  }

  .team-featured-image img {
    max-width: 80%;
    margin: 0 auto;
  }
}
