.hero {
  --hero-font-primary: 'Proxima Nova A', -apple-system, 'Roboto', Arial, sans-serif;
  --hero-font-body: 'Inter', -apple-system, 'Roboto', Arial, sans-serif;
  --hero-color-text-inverse: #ffffff;
  --hero-color-cta: #434ce4;
  --hero-color-cta-hover: #3f3fd0;
  --hero-color-cta-active: #3434b8;
  --hero-radius: 20px;
  --hero-image-mobile: url("https://http2.mlstatic.com/storage/pog-cm-admin/calm-assets/mlb-hero-image--1512x2820--ab124837.webp");
  --hero-image-desktop: url("https://http2.mlstatic.com/storage/pog-cm-admin/calm-assets/hero-desktop--2700x1519--614f5760.webp");
  --hero-noise: url("https://http2.mlstatic.com/storage/pog-cm-admin/calm-assets/NOISE--344x644--d42f8bed.png");
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: min(644px, calc(100svh - 16px));
  min-height: 560px;
  margin: 8px 0 6px;
  overflow: hidden;
  border-radius: var(--hero-radius);
  color: var(--hero-color-text-inverse);
  background: #f9c200;
  font-family: var(--hero-font-body);
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image-mobile);
  background-position: center top;
  background-size: cover;
}

.hero__noise {
  position: absolute;
  top: -98px;
  right: -35px;
  bottom: -5px;
  left: -49px;
  opacity: 0.3;
  background-image: var(--hero-noise);
  background-position: center;
  background-size: cover;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: -1px;
  height: 72%;
  opacity: 0.78;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 92%);
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0),
    0 80px 90px rgba(0, 0, 0, 0.18);
}

.hero__content {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 0 24px;
}

.hero__eyebrow {
  margin: 0;
  color: var(--hero-color-text-inverse);
  font-family: var(--hero-font-body);
  font-feature-settings: "case" 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0;
}

.hero__title {
  position: relative;
  max-width: 296px;
  min-height: 124px;
  max-height: 124px;
  margin: 0;
  overflow: hidden;
  color: var(--hero-color-text-inverse);
  font-family: var(--hero-font-primary);
  font-feature-settings: "salt" 1, "calt" 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.6px;
}

.hero__cta {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: var(--hero-color-cta);
  font-family: var(--hero-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.hero__cta:hover {
  background: var(--hero-color-cta-hover);
}

.hero__cta:active {
  background: var(--hero-color-cta-active);
  transform: translateY(1px);
}

.hero__cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.hero__cta:disabled {
  background: rgba(67, 76, 228, 0.5);
  cursor: not-allowed;
}

.hero__title-item {
  display: block;
  transition: none;
  opacity: 0;
  pointer-events: none;
}

.hero__title-item.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__title-item.is-hidden {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.hero__title-item.is-entering {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  animation: hero-title-in 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__title-item.is-exiting {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  animation: hero-title-out 0.45s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-title-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title-item.is-entering,
  .hero__title-item.is-exiting {
    animation: none;
  }

  .hero__title-item.is-entering {
    opacity: 1;
  }
}

@media (min-width: 800px) {
  .hero {
    height: auto;
    min-height: 752px;
    margin: 8px 0;
  }

  .hero__media {
    background-image: var(--hero-image-desktop);
    background-position: center;
  }

  .hero__noise {
    display: none;
  }

  .hero__overlay {
    top: 0;
    left: 0;
    height: auto;
    opacity: 0.4;
    background: linear-gradient(221.13deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(221.13deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(221.13deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(221.13deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(221.13deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%);
    box-shadow: none;
  }

  .hero__content {
    right: calc(25% + 36px);
    bottom: 0;
    align-items: flex-start;
    gap: 40px;
    padding: 0 0 40px 40px;
  }

  .hero__eyebrow {
    font-family: var(--hero-font-body);
    font-size: 20px;
    line-height: 24px;
  }

  .hero__title {
    width: 100%;
    max-width: none;
    min-height: 168px;
    max-height: 168px;
    font-size: 56px;
    letter-spacing: -2.8px;
  }

  .hero__cta {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .hero__media {
    background-position: 51.75% 0;
    background-size: 156.79% auto;
  }

  /* Mínimo de 680px de texto para o slide 2 caber em 2 linhas perto de 1024 */
  .hero__content {
    right: min(calc(33.333% + 3px), calc(100% - 720px));
  }

  .hero__title {
    min-height: 144px;
    max-height: 144px;
    font-size: 72px;
    letter-spacing: -3.6px;
  }
}

@media (min-width: 1366px) {
  .hero {
    min-height: 712px;
  }

  .hero__content {
    right: calc(33.333% + 3px);
  }

  .hero__media {
    background-position: center;
    background-size: cover;
  }

  .hero__overlay {
    background: linear-gradient(211.69deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(211.69deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(211.69deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(211.69deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(211.69deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%);
  }

  .hero__eyebrow {
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
  }

  .hero__title {
    min-height: 176px;
    max-height: 176px;
    font-size: 88px;
    letter-spacing: -4.4px;
  }
}

/* Desktop comum 1601–1920: acima de 1920 o container fica em 1904px e centraliza */
@media (min-width: 1601px) {
  .hero {
    max-width: 1904px;
    margin-left: auto;
    margin-right: auto;
    min-height: 904px;
  }

  /* Largura fixa do layout 1920 (1904 - 41.667% - 30.67px) para o título não quebrar em 3 linhas */
  .hero__content {
    right: auto;
    width: 1080px;
  }

  .hero__overlay {
    background: linear-gradient(209.06deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(209.06deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(209.06deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(209.06deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%), linear-gradient(209.06deg, rgba(0, 0, 0, 0) 47.956%, rgba(0, 0, 0, 0.466) 89.241%, #000000 100%);
  }

  .hero__eyebrow {
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
  }

  .hero__title {
    min-height: 200px;
    max-height: 200px;
    font-size: 100px;
    letter-spacing: -5px;
  }
}
