/* Composição isolada do Hero, inspirada no layout aprovado no Photoshop. */
.hero-art {
  min-height: 0;
  background: var(--primary)
}

.hero-art::before {
  display: none
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary)
}

.hero-slider-stage {
  position: relative;
  width: 100%;
  height: clamp(400px, 32.3vw, 620px);
  overflow: hidden
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease;
  pointer-events: none
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1
}

.hero-slide>a,
.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%
}

.hero-slide .hero-ready-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top
}

@media(min-width:768px) {
  .hero-art .hero-slider {
    max-width: 1920px;
    margin-inline: auto
  }

  .hero-art .hero-slider-stage {
    height: auto;
    aspect-ratio: 1920/700
  }

  .hero-art .hero-slide .hero-ready-image {
    object-fit: contain;
    object-position: center
  }
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid #fff8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  background: #101f6388;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer
}

.hero-slider-arrow.prev {
  left: 18px
}

.hero-slider-arrow.next {
  right: 18px
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 17px;
  z-index: 4;
  display: flex;
  gap: 9px;
  transform: translateX(-50%)
}

.hero-slider-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #101f6366;
  cursor: pointer
}

.hero-slider-dots button.is-active {
  background: var(--accent);
  border-color: var(--accent)
}

@media(max-width:767px) {
  .hero-art .hero-slider-stage {
    height: auto;
    aspect-ratio: 1920/700
  }

  .hero-art .hero-slider.uses-desktop-mobile-fallback .hero-slider-stage {
    aspect-ratio: 1920/550
  }

  .hero-art .hero-slider.has-mobile-art .hero-slider-stage {
    aspect-ratio: 4/5
  }

  .hero-art .hero-slide .hero-ready-image {
    object-fit: cover;
    object-position: center top
  }

  .hero-art .hero-slider.has-mobile-art .hero-ready-image {
    object-position: center
  }
}

.hero:not(.hero-art) {
  min-height: 620px;
  height: auto;
}

.hero:not(.hero-art) .hero-grid {
  min-height: 620px;
  height: auto;
  grid-template-columns: minmax(450px, .92fr) minmax(540px, 1.08fr);
  align-items: end;
  gap: 18px;
}

.hero:not(.hero-art) .hero-copy {
  align-self: center;
  width: 100%;
  max-width: 550px;
  padding: 102px 0 54px;
  position: relative;
  z-index: 8;
}

.hero:not(.hero-art) .hero-copy .eyebrow {
  margin: 0 0 17px;
}

.hero-logo-row {
  width: fit-content;
  max-width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 11px;
  margin: 0 0 20px;
}

.hero-logo-item {
  flex: 0 1 175px;
  min-width: 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-logo-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 55px;
  background: rgba(255, 255, 255, .85);
}

.hero-logo-item img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
  filter:
    drop-shadow(1.5px 0 0 rgba(255, 255, 255, .94)) drop-shadow(-1.5px 0 0 rgba(255, 255, 255, .94)) drop-shadow(0 1.5px 0 rgba(255, 255, 255, .94)) drop-shadow(0 -1.5px 0 rgba(255, 255, 255, .94)) drop-shadow(0 5px 8px rgba(42, 0, 8, .2));
}

.hero:not(.hero-art) .hero-copy h1.hero-message {
  max-width: 550px;
  margin: 0 0 15px;
  font-family: var(--hero-title-font);
  font-size: clamp(32px, 4vw, var(--hero-title-size));
  line-height: 1.05;
  line-height: max(1.05, var(--hero-title-line-height));
  font-weight: var(--hero-title-weight);
  color: var(--hero-title-color);
  text-align: var(--hero-title-align);
  letter-spacing: -.035em;
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  padding: .09em .07em .22em;
  isolation: isolate;
  text-transform: none;
}

.hero:not(.hero-art) .hero-copy h1.hero-message span {
  display: inline;
  position: relative;
  text-transform: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero:not(.hero-art) .hero-copy h1.hero-message .text-highlight,
.hero:not(.hero-art) .hero-copy h1.hero-message span[style*="background"] {
  padding-inline: .055em;
  background-clip: padding-box;
}

.hero:not(.hero-art) .hero-copy h1.hero-message * {
  text-transform: none;
}

.hero:not(.hero-art) .hero-copy h1:not(.hero-message) {
  font-family: var(--hero-title-font);
  font-weight: var(--hero-title-weight);
  color: var(--hero-title-color);
  text-align: var(--hero-title-align);
  line-height: var(--hero-title-line-height);
  text-transform: none;
}

.hero-copy .text-highlight {
  color: var(--hero-highlight-color);
}

.hero:not(.hero-art) .hero-copy>p:last-of-type {
  max-width: 500px;
  margin: 0 0 19px;
  font-size: 15px;
  line-height: 1.5;
}

.hero:not(.hero-art) .hero-copy .btn {
  min-height: 46px;
  padding-inline: 24px 32px;
  gap: 12px;
  font-size: 14px;
  font-weight: 900;
}

/* Fallback quando as logos ainda não foram enviadas. */
.hero:not(.hero-art) .hero-office {
  margin: 0 0 2px;
  font-size: 13px;
}

.hero:not(.hero-art) .candidate-number {
  margin: 4px 0 5px;
  font-size: clamp(84px, 7vw, 112px);
  line-height: .78;
}

.hero:not(.hero-art) .hero-copy h1:not(.hero-message) {
  max-width: 510px;
  margin: 7px 0 8px;
  font-size: clamp(32px, 3.7vw, var(--hero-title-size));
  line-height: var(--hero-title-line-height);
}

.hero:not(.hero-art) .hero-copy h2 {
  margin: 0 0 11px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: .95;
  text-transform: none;
}

.hero-visual {
  align-self: end;
  width: 100%;
  height: 530px;
  min-width: 0;
  position: relative;
  z-index: 4;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 340px;
  right: -2%;
  bottom: -115px;
  border: 72px solid rgba(255, 255, 255, .042);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-person {
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.hero-person>img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 18px rgba(45, 0, 8, .22));
}

.hero-person-back {
  left: 0;
  width: 62%;
  height: 510px;
  z-index: 3;
  animation: heroBackArrive .9s cubic-bezier(.2, .8, .2, 1) .12s both;
}

.hero-person-front {
  right: 0;
  width: 62%;
  height: 510px;
  z-index: 2;
  animation: heroFrontArrive .95s cubic-bezier(.2, .8, .2, 1) .28s both;
}

.hero-photo-placeholder {
  width: 78%;
  height: 92%;
  border: 2px dashed rgba(255, 255, 255, .45);
  border-bottom: 0;
  border-radius: 45% 45% 0 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .72);
  font-weight: 900;
}

.hero-visual .hero-wordmark {
  top: 175px;
  right: -16px;
  z-index: 0;
  font-size: clamp(60px, 7vw, 104px);
}

@keyframes heroBackArrive {
  0% {
    opacity: 0;
    transform: translate3d(55px, 38px, 0) scale(.96);
  }

  65% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroFrontArrive {
  0% {
    opacity: 0;
    transform: translate3d(85px, 28px, 0) scale(.95);
  }

  68% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 1080px) and (min-width: 768px) {

  .hero:not(.hero-art),
  .hero:not(.hero-art) .hero-grid {
    min-height: 590px;
    height: auto;
  }

  .hero:not(.hero-art) .hero-grid {
    grid-template-columns: minmax(380px, .9fr) minmax(450px, 1.1fr);
    gap: 0;
  }

  .hero:not(.hero-art) .hero-copy {
    padding: 94px 0 48px;
  }

  .hero-logo-row {
    width: fit-content;
    max-width: 100%;
    gap: 10px;
    min-height: 76px;
    margin-bottom: 14px;
  }

  .hero-logo-item {
    min-height: 70px;
  }

  .hero-logo-item img {
    max-height: 65px;
  }

  .hero:not(.hero-art) .hero-copy h1.hero-message {
    font-size: min(43px, var(--hero-title-size));
  }

  .hero-visual {
    height: 492px;
  }

  .hero-person-back {
    width: 63%;
    height: 470px;
  }

  .hero-person-front {
    width: 63%;
    height: 470px;
  }
}

@media (max-width: 767px) {
  .hero-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 26px
  }

  .hero-slider-arrow.prev {
    left: 10px
  }

  .hero-slider-arrow.next {
    right: 10px
  }

  .hero-slider-dots {
    bottom: 12px
  }

  .hero-slider-dots button {
    width: 12px;
    height: 12px
  }

  .hero:not(.hero-art) {
    min-height: 0;
    height: auto;
  }

  .hero:not(.hero-art) .hero-grid {
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 72px;
  }

  .hero:not(.hero-art) .hero-copy {
    width: 100%;
    max-width: 590px;
    padding: 34px 0 36px;
    text-align: center;
  }

  .hero:not(.hero-art) .hero-copy .btn {
    margin-bottom: 8px;
  }

  .hero:not(.hero-art) .hero-copy .eyebrow {
    justify-content: center;
    margin-bottom: 15px;
  }

  .hero-logo-row {
    width: fit-content;
    max-width: 100%;
    min-height: 65px;
    gap: 10px;
    margin: 0 auto 18px;
  }

  .hero-logo-item {
    flex: 0 1 175px;
    max-width: 42vw;
    min-height: 60px;
    justify-content: center;
  }

  .hero-logo-item img {
    max-height: 56px;
  }

  .hero:not(.hero-art) .hero-copy h1.hero-message {
    max-width: 570px;
    margin-inline: auto;
    font-size: clamp(22px, 10.5vw, var(--hero-title-mobile-size));
  }

  .hero:not(.hero-art) .hero-copy h1:not(.hero-message) {
    font-size: var(--hero-title-mobile-size);
  }

  .hero:not(.hero-art) .hero-copy>p:last-of-type {
    margin: 0 auto 17px;
    font-size: 14px;
  }

  .hero-visual {
    width: min(100%, 590px);
    height: 370px;
    align-self: center;
    margin-top: -2px;
  }

  .hero-person-back {
    left: 0;
    width: 66%;
    height: 355px;
  }

  .hero-person-front {
    right: 0;
    width: 66%;
    height: 355px;
  }

  .hero-visual .hero-wordmark {
    top: 138px;
    right: 0;
    font-size: 66px;
  }
}

@media (max-width: 420px) {
  .hero:not(.hero-art) .hero-copy {
    padding-top: 23px;
  }

  .hero-logo-row {
    gap: 7px;
    min-height: 56px;
  }

  .hero-logo-item,
  .hero-logo-item img {
    max-height: 50px;
  }

  .hero-logo-separator {
    height: 38px;
  }

  .hero:not(.hero-art) .hero-copy h1.hero-message {
    font-size: var(--hero-title-mobile-size);
  }

  .hero-visual {
    height: 325px;
  }

  .hero-person-back {
    left: 0;
    width: 69%;
    height: 312px;
  }

  .hero-person-front {
    right: 0;
    width: 69%;
    height: 312px;
  }
}

/* O fallback do título recebe a mesma proteção contra sobreposição e recorte. */
.hero:not(.hero-art) .hero-copy h1:not(.hero-message) {
  line-height: 1.05;
  line-height: max(1.05, var(--hero-title-line-height));
  overflow: visible;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none
  }

  .hero-person-back,
  .hero-person-front {
    animation: none;
  }
}