/* Hero compartilhada pelos três serviços: mesma escala e ritmo visual da home. */
:is(.service-opening, .service-switch, .service-management) .opening-hero {
  --service-hero-wine-rgb: 123, 24, 34;
  --service-hero-wine: rgb(var(--service-hero-wine-rgb));
  position: relative;
  height: clamp(40rem, calc(100svh - 5.75rem), 48rem);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: #fffaf6;
  background: var(--service-hero-wine);
}

:is(.service-opening, .service-switch, .service-management) .opening-hero::before,
:is(.service-opening, .service-switch, .service-management) .opening-hero::after {
  display: none;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(28rem, 53%);
  gap: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.4rem, 5.5vw, 5.7rem) clamp(1.75rem, 3.4vw, 3.8rem) clamp(2.4rem, 4vw, 3.7rem) max(2rem, calc((100vw - 75rem) / 2));
  color: #fffaf6;
  background: linear-gradient(110deg, rgba(66, 7, 15, 0.2), rgba(66, 7, 15, 0.08) 42%, transparent 70%);
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__copy::after {
  display: none;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__chapter {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: auto;
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
  color: rgba(255, 250, 246, 0.92);
  background: transparent;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__chapter::after {
  position: static;
  display: block;
  width: clamp(2.4rem, 4vw, 4rem);
  height: 1px;
  border: 0;
  background: rgba(255, 250, 246, 0.58);
  content: "";
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__chapter p {
  margin: 0;
  color: inherit;
  font-size: clamp(0.72rem, 0.86vw, 0.86rem);
  font-weight: 750;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero h1 {
  max-width: 12.5ch;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 5.25vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.94;
  text-wrap: balance;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero h1 em {
  color: inherit;
  font-style: normal;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__description {
  max-width: 34rem;
  margin: 1.55rem 0 0;
  color: rgba(255, 250, 246, 0.86);
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.58;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__action {
  display: inline-flex;
  width: min(100%, 20rem);
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.85rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid #fffaf6;
  border-radius: 0.55rem;
  color: #7b1822;
  background: #fffaf6;
  box-shadow: none;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__action:hover,
:is(.service-opening, .service-switch, .service-management) .opening-hero__action:focus-visible {
  color: #6a111a;
  background: #f2e7e2;
  transform: translateY(-2px);
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--service-hero-wine);
  box-shadow: none;
}

:is(.service-opening, .service-switch, .service-management) .opening-hero__visual::before,
:is(.service-opening, .service-switch, .service-management) .opening-hero__visual::after {
  display: none;
}

:is(.service-opening, .service-switch, .service-management) :is(.opening-hero__visual-line, .opening-hero__visual-index, .opening-hero__visual-caption, .opening-hero__note) {
  display: none;
}

:is(.service-opening, .service-switch, .service-management) :is(.opening-hero__document, .switch-hero__handover, .management-hero__illustration) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  transform: none;
}

:is(.service-opening, .service-switch, .service-management) :is(.opening-hero__document, .switch-hero__handover, .management-hero__illustration) img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.015);
}

@media (max-width: 63.99rem) {
  :is(.service-opening, .service-switch, .service-management) .opening-hero {
    height: auto;
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero__shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero__copy {
    min-height: 0;
    padding: clamp(2.55rem, 8vw, 3.7rem) clamp(1.7rem, 7vw, 2.35rem) clamp(1.8rem, 5vw, 2.6rem);
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 12.8vw, 4.65rem);
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero__description {
    max-width: 32rem;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 4.25vw, 1.2rem);
    line-height: 1.55;
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero__action {
    width: 100%;
    max-width: 40rem;
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero__visual {
    height: clamp(16.5rem, 74vw, 22rem);
    min-height: 0;
    border-radius: 2rem 2rem 0 0;
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero__visual::before {
    position: absolute;
    z-index: 2;
    inset: 0 0 auto;
    display: block;
    height: clamp(3.4rem, 14vw, 4.8rem);
    background: linear-gradient(180deg, rgba(var(--service-hero-wine-rgb), 0.9), rgba(var(--service-hero-wine-rgb), 0.46) 42%, transparent 100%);
    content: "";
    pointer-events: none;
  }

  :is(.service-opening, .service-switch, .service-management) :is(.opening-hero__document, .switch-hero__handover, .management-hero__illustration) img {
    object-position: center;
  }
}

@media (max-width: 22rem) {
  :is(.service-opening, .service-switch, .service-management) .opening-hero__copy {
    padding-inline: clamp(1.2rem, 7vw, 1.55rem);
  }

  :is(.service-opening, .service-switch, .service-management) .opening-hero h1 {
    font-size: clamp(2.72rem, 12.7vw, 3.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.service-opening, .service-switch, .service-management) .opening-hero *,
  :is(.service-opening, .service-switch, .service-management) .opening-hero *::before,
  :is(.service-opening, .service-switch, .service-management) .opening-hero *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
