.site-header .nav > a {
  transition: color .3s ease, text-shadow .3s ease !important;
}

.site-header .nav > a::after {
  transition: right .35s cubic-bezier(.22, 1, .36, 1) !important;
}

#equipe {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(232, 240, 243, .94)),
    url("../images/procedimentos-fundo-linhas-v1.webp") center / cover no-repeat;
}

#equipe::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  right: -220px;
  top: -170px;
  border: 1px solid rgba(20, 60, 82, .1);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px rgba(20, 60, 82, .025),
    0 0 0 124px rgba(20, 60, 82, .018);
  pointer-events: none;
}

.team-heading {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 46px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(20, 60, 82, .2);
}

.team-heading .eyebrow {
  margin: 0 0 5px;
  color: #58717d;
  opacity: 1;
}

.team-heading h2 {
  max-width: 790px;
  margin: 0;
  color: #102f40;
  font-size: clamp(44px, 5vw, 72px);
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr);
  gap: 22px;
  align-items: end;
}

.team-card,
.team-card--featured {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 790px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 8px 60px 8px 60px;
  background: #aeb8b8;
  box-shadow: 0 26px 64px rgba(7, 19, 26, .15);
}

.team-card--featured {
  min-height: 850px;
  border-color: rgba(142, 216, 255, .72);
  box-shadow: 0 34px 82px rgba(7, 19, 26, .25);
}

.team-card:not(.team-card--featured) {
  min-height: 700px;
}

.team-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(7, 19, 26, .12) 48%, rgba(7, 19, 26, .94) 100%);
  pointer-events: none;
}

.team-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 28px;
  width: 52px;
  height: 52px;
  border-top: 1px solid rgba(255, 255, 255, .74);
  border-right: 1px solid rgba(255, 255, 255, .74);
  border-radius: 0 28px 0 0;
  pointer-events: none;
}

.team-photo {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #adb7b7;
}

.team-photo::after {
  display: none;
}

.team-photo img,
.team-card--featured .team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(.92) contrast(1.02);
  transform: none !important;
  transition: filter .55s ease;
}

.team-card:hover .team-photo img {
  filter: saturate(1) contrast(1.025);
}

.team-card-content,
.team-card--featured .team-card-content {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 170px 42px 42px;
}

.team-card h3,
.team-card--featured h3 {
  max-width: 560px;
  margin: 0 0 20px;
  color: #fff;
  font: 600 clamp(34px, 3.2vw, 50px)/1.04 var(--display);
  letter-spacing: -.035em;
}

.team-card--featured h3 {
  max-width: 680px;
  font-size: clamp(44px, 4.3vw, 64px);
}

.team-card--featured .team-card-content {
  padding-right: 54px;
  padding-left: 54px;
}

.team-card h3 span {
  display: block;
  margin-top: 10px;
  color: #c4e5f3;
  font: 600 11px/1.5 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-card p,
.team-card--featured p {
  max-width: 660px;
  margin: 0;
  color: #eef4f6;
  font-size: 15px;
  line-height: 1.7;
}

.team-card strong {
  color: inherit;
  font-weight: 600;
}

.team-more,
.team-card--featured .team-more {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 0;
  color: #c4e5f3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1.45;
  text-decoration: none;
  text-transform: uppercase;
}

.team-more::after {
  content: "→";
  font-size: 16px;
  transition: transform .35s ease;
}

.team-more:hover::after,
.team-more:focus-visible::after {
  transform: translateX(5px);
}

.team-more:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

@media (max-width: 980px) {
  .team-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  }

  .team-card--featured {
    min-height: 760px;
  }

  .team-card:not(.team-card--featured) {
    min-height: 650px;
  }

  .team-card-content,
  .team-card--featured .team-card-content {
    padding: 140px 30px 34px;
  }
}

@media (max-width: 800px) {
  .team-heading {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .team-heading h2 {
    font-size: 42px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-card,
  .team-card--featured {
    min-height: 760px;
    border-radius: 6px 38px 6px 38px;
  }

  .team-card:not(.team-card--featured) {
    min-height: 700px;
  }

  .team-card-content,
  .team-card--featured .team-card-content {
    padding: 170px 26px 32px;
  }

  .team-card h3,
  .team-card--featured h3 {
    font-size: 35px;
  }

  .team-card--featured .team-card-content {
    padding-right: 26px;
    padding-left: 26px;
  }
}

@media (max-width: 420px) {
  .team-card,
  .team-card--featured {
    min-height: 690px;
  }

  .team-card p,
  .team-card--featured p {
    font-size: 14px;
    line-height: 1.62;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-more::after,
  .team-photo img {
    transition: none;
  }
}
