/* Imagem decorativa restrita ao corpo jurídico; textos em camada independente. */
.team { position: relative; isolation: isolate; background: #fff; padding: 40px 0 44px; }
.team > .container { position: relative; z-index: 1; }
.team::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(255,255,255,.62) 86%, #fff 100%),
    linear-gradient(90deg, rgba(243,247,252,.60), rgba(243,247,252,.78) 27%, rgba(243,247,252,.78) 73%, rgba(243,247,252,.60)),
    url("backgrounds/biblioteca-azul-ampla.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.team .section-head { max-width: 740px; margin-bottom: 24px; }
.team .section-head .eyebrow { margin-bottom: 8px; }
.team .section-head h2 { max-width: 680px; margin: 0 auto 12px; font-size: clamp(2rem, 3vw, 2.7rem); }
.team .team-grid { width: min(960px, 100%); margin-inline: auto; min-height: 0; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, .9fr); gap: 24px; }
.team .lawyer-card { min-height: 0; padding: 10px 10px 16px; }
.team .lawyer-media,
.team .lawyer-placeholder { height: auto; aspect-ratio: 4 / 5; margin-bottom: 14px; }
.team .lawyer-card .lawyer-media img { object-position: center 38%; }
.team .lawyer-card:nth-child(3) .lawyer-media img { object-position: center 30%; }
.team .lawyer-card h3 { min-height: 2.24em; margin-bottom: 12px; font-size: 1.45rem; }
.team .profile-link { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; }
.areas {
  background: linear-gradient(0deg, #eaf2fc 0%, #f8fbff 45%, #fff 85%);
  padding-top: 44px;
  padding-bottom: 56px;
}
.areas .area-grid { background: rgba(255,255,255,.62); border-color: #d1deef; }
.areas .area-card { border-color: #d1deef; }
.areas .area-card p { color: #44556c; }
.areas .area-card .icon { stroke: #496991; }
@media (max-width: 600px) {
  .team { padding-top: 32px; padding-bottom: 32px; }
  .team::before {
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0) 65%, #fff 100%),
      linear-gradient(90deg, rgba(243,247,252,.88), rgba(243,247,252,.93)),
      url("backgrounds/biblioteca-azul-ampla.webp");
    background-position: 12% center;
    background-size: auto 100%;
  }
  .team .section-head { margin-bottom: 20px; }
  .team .team-grid { width: calc(100% + 32px); margin-left: -16px; margin-right: 0; grid-template-columns: minmax(46px, .34fr) minmax(210px, 1fr) minmax(46px, .34fr); gap: 8px; }
  .team .lawyer-card { padding: 8px 8px 12px; }
  .team .lawyer-media,
  .team .lawyer-placeholder { height: auto; aspect-ratio: 4 / 5; margin-bottom: 12px; }
  .team .lawyer-card h3 { font-size: 1.35rem; }
  .areas { padding-top: 36px; padding-bottom: 44px; }
}

/* Continuidade da paleta nas superfícies claras da página inicial. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(234,242,252,.48) 0%, rgba(248,251,255,.18) 40%, transparent 65%);
}
.office .office-card {
  background: linear-gradient(155deg, #fff 15%, #f8fbff 55%, #eaf2fc 100%);
  border-color: #d1deef;
}
.publications {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 35%, #eaf2fc 100%);
}
.site-footer {
  background: linear-gradient(180deg, #eaf2fc 0%, #f8fbff 60%, #fff 100%);
  border-top-color: #d1deef;
}
@media (max-width: 600px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(234,242,252,.42) 0%, rgba(248,251,255,.12) 32%, transparent 52%);
  }
}

/* No celular, um único perfil por vez, com controles fora da fotografia. */
@media (max-width: 820px) {
  .team .team-grid { width: min(340px, 100%); margin-inline: auto; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .team .lawyer-card { display: none; }
  .team .lawyer-card.is-active { display: flex; grid-column: 1; grid-row: 1; transform: none; }
  .team .team-controls { grid-column: 1; grid-row: 2; gap: 16px; }
  .team .team-nav-btn { position: static; transform: none; box-shadow: none; }
  .team .team-nav-btn:hover, .team .team-nav-btn:focus-visible { transform: none; }
  .team .team-nav-btn:focus-visible { outline: 2px solid #527096; outline-offset: 2px; }
}
