/* Slides */
.team-hero {
  position: relative;
  width: 100%;
  height: clamp(460px, 82vw, 780px);
  overflow: hidden;
  background: #1f4228;
}

.team-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.2s ease,
    visibility 1.2s ease;
}

.team-hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.team-hero-slide img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1);
  transition: transform 7s ease;
}

.team-hero-slide.active img {
  transform: scale(1.04);
}

.team-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 10px;

  transform: translateX(-50%);
}

.team-hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;

  transition:
    width 0.3s ease,
    background 0.3s ease,
    border-radius 0.3s ease;
}

.team-hero-dot.active {
  width: 30px;

  background: #ffffff;
  border-radius: 999px;
}

.team-hero-dot:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

.page-hero {
  padding: 20px 20px 10px;
  background: var(--bg-light);
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 18px; 
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--green);
}

.page-hero h1::after {
  content: "";

  display: block;

  width: 72px;
  height: 4px;

  margin: 18px auto 0;

  border-radius: 999px;
  background: #2f5e3a;
}

.page-hero p {  
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
}

.team-section {
  padding-top: 28px;
  padding-bottom: 80px;
}

.team-profiles {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.team-profile {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: center;

  padding: 38px 40px;

  background: #ffffff;
  border: 1px solid rgba(47, 94, 58, 0.08);
  border-radius: 20px;

  box-shadow: 0 12px 35px rgba(30, 37, 32, 0.08);

  scroll-margin-top: 110px;
}

.team-profile:nth-child(even) .team-profile-image {
  order: initial;
}

.team-profile-image {
  width: 100%;
  align-self: center;
}

.team-profile-image img {
  display: block;

  width: 100%;
  height: 430px;

  object-fit: cover;
  object-position: center top;

  border-radius: 16px;
}

.team-profile-content {
  min-width: 0;
}

.team-profile-label {
  display: inline-block;

  margin-bottom: 14px;

  color: #2f5e3a;

  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-profile-content h2 {
  margin: 0 0 20px;

  color: #2f5e3a;

  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.team-profile-content p {
  max-width: 780px;
  margin: 0;

  color: #1e2520;

  font-size: 0.98rem;
  line-height: 1.75;

  /* Evita os espaços exagerados entre palavras */
  text-align: left;
  text-align: justify;
}

.team-profile-content h3 {
  margin: 28px 0 14px;

  color: #1e2520;

  font-size: 1.1rem;
}


.team-profile-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.team-profile-content li {
  margin: 0;
  padding: 8px 14px;

  color: #2f5e3a;
  background: #edf4ee;

  border: 1px solid rgba(47, 94, 58, 0.12);
  border-radius: 999px;

  font-size: 0.88rem;
  font-weight: 600;
}


@media (max-width: 900px) {
  .team-profile {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
    padding: 30px;
  }

  .team-profile-image img {
    height: 370px;
  }

  .team-profile-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .team-hero {
    height: clamp(280px, 62vw, 420px);
  }

  .team-hero-slide img {
    object-position: center;
  }

  .team-hero-dots {
    bottom: 16px;
  }

  .page-hero {
    padding: 54px 20px 42px;
  }

  .team-section {
    padding-top: 20px;
  }
}

@media (max-width: 700px) {
  .page-hero {
    padding: 80px 20px 60px;
  }

  .team-profile {
    grid-template-columns: 1fr;
    gap: 26px;

    padding: 24px 20px;
  }

  .team-profile-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .team-profile-image img {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .team-profile-content {
    text-align: left;
  }

  .team-profile-content h2 {
    font-size: 1.8rem;
  }

  .team-profile-content p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 600px) {
  .team-hero {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .team-hero-slide img {
    object-fit: contain;
    background: #1f4228;
  }
}

@media (max-width: 480px) {
  .team-profile {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .team-profile-content h2 {
    font-size: 1.55rem;
  }

  .team-profile-content ul {
    gap: 8px;
  }

  .team-profile-content li {
    padding: 7px 11px;
    font-size: 0.82rem;
  }
}




