html[data-page="index"] main > .rvm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--ri-header-height, 84px);
  aspect-ratio: 3 / 1;
  background: #062348;
  touch-action: pan-y pinch-zoom;
  zoom: 1 !important;
}

.rvm-hero__slide {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--art) center / contain no-repeat;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.012);
  transition: opacity 680ms ease-in-out, transform 900ms cubic-bezier(.2,.72,.2,1), visibility 0s 900ms;
}

.rvm-hero__slide[aria-hidden="false"] {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.rvm-hero__slide--r1 { --art: url("performance/hero-01-desktop-escura.webp"); }
.rvm-hero__slide--pratica { --art: url("performance/hero-02-desktop-escura.webp"); }
html[data-page="index"][data-theme="light"] main > .rvm-hero { background: #edf6fa; }
[data-theme="light"] .rvm-hero__slide--r1 { --art: url("performance/hero-01-desktop-clara.webp"); }
[data-theme="light"] .rvm-hero__slide--pratica { --art: url("performance/hero-02-desktop-clara.webp"); }

.rvm-hero__controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(8px, 1vw, 18px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 0 5px;
  border: 1px solid #ffffff55;
  border-radius: 30px;
  background: #081f37e8;
  box-shadow: 0 2px 10px #07213c38;
}

.rvm-hero .rvm-hero__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  place-items: center;
  box-sizing: border-box;
  width: clamp(44px, 3.5vw, 56px);
  height: clamp(44px, 3.5vw, 56px);
  padding: 0;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #081f37df;
  box-shadow: 0 2px 8px #06234836;
  cursor: pointer;
}
.rvm-hero__prev { left: clamp(5px, 1vw, 20px); }
.rvm-hero__next { right: clamp(5px, 1vw, 20px); }
.rvm-hero__arrow:not([hidden]) { display: grid; }
.rvm-hero__controls[hidden], .rvm-hero__pause[hidden], .rvm-hero__arrow[hidden] { display: none; }
.rvm-hero__arrow::after {
  content: "";
  width: 11px;
  height: 11px;
  box-sizing: border-box;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
}
.rvm-hero__prev::after { transform: translateX(2px) rotate(135deg); }
.rvm-hero__next::after { transform: translateX(-2px) rotate(-45deg); }
@media (hover: hover) {
  .rvm-hero .rvm-hero__arrow:hover { background: #0a4055; border-color: #64f3ec; }
}
.rvm-hero__controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.rvm-hero__dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 5px;
  background: #fff9;
  transition: width 350ms ease, background-color 350ms;
}
.rvm-hero__dot[aria-current]::after { width: 25px; background: #64f3ec; }
.rvm-hero__pause::after { content: ""; width: 9px; height: 11px; border-inline: 3px solid white; box-sizing: border-box; }
.rvm-hero__pause[aria-pressed="true"]::after { width: 0; height: 0; border: solid transparent; border-width: 6px 0 6px 9px; border-left-color: white; }
.rvm-hero :focus-visible { outline: 3px solid #00e8e4; outline-offset: -3px; }
.rvm-hero__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 767px) {
  html[data-page="index"] main > .rvm-hero { aspect-ratio: 1072 / 1467; }
  .rvm-hero .rvm-hero__arrow { top: 63%; }
  .rvm-hero__slide--r1 { --art: url("performance/hero-01-mobile-escura.webp"); }
  .rvm-hero__slide--pratica { --art: url("performance/hero-02-mobile-escura.webp"); }
  [data-theme="light"] .rvm-hero__slide--r1 { --art: url("performance/hero-01-mobile-clara.webp"); }
  [data-theme="light"] .rvm-hero__slide--pratica { --art: url("performance/hero-02-mobile-clara.webp"); }

  /* A segunda arte é mais curta. O espaço abaixo dela acomoda os controles. */
  .rvm-hero__slide--pratica { background-position: center top; }
  .rvm-hero:has(.rvm-hero__slide--pratica[aria-hidden="false"]) .rvm-hero__controls { bottom: max(4px, calc(4.35% - 20px)); }
  .rvm-hero__controls button { width: 40px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .rvm-hero__slide, .rvm-hero__dot::after { transform: none; transition: none; }
}

@media (scripting: none) {
  html[data-page="index"] main > .rvm-hero { aspect-ratio: auto; }
  .rvm-hero__slide { position: relative; aspect-ratio: 3 / 1; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
}
@media (scripting: none) and (max-width: 920px) {
  html[data-page="index"] main > .rvm-hero { margin-top: 0; }
}
@media (scripting: none) and (max-width: 767px) {
  .rvm-hero__slide--r1 { aspect-ratio: 1072 / 1467; }
  .rvm-hero__slide--pratica { aspect-ratio: 1122 / 1402; }
}
