.hero-img-widget {
  background-color: #FEF8E8;
  /* Same background color as the navbar */
  color: #161616;
  /* Dark typography for light theme contrast */
  padding: 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  --hero-poster-opacity: 1;
}

.hero-img-widget.--visible .hero-img-widget__content {
  animation: heroContentFadeInUp 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-img-widget.--visible .hero-img-widget__poster {
  animation: heroPosterFadeIn 800ms ease-out forwards;
}

@keyframes heroContentFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPosterFadeIn {
  to {
    opacity: var(--hero-poster-opacity, 1);
  }
}

.hero-img-widget__poster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.hero-img-widget__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Subtle SVG grain/noise texture to mask H.264 compression banding and pixelation on high-res displays */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

.hero-img-widget__area {
  max-width: 1152px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-img-widget__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}

.hero-img-widget__title {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.hero-img-widget__subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #4A4A4A;
  /* Dark gray for soft contrast and excellent readability */
  line-height: 1.5;
  margin: 0;
}

.hero-img-widget__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.hero-img-widget__cta--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px;
  background-color: #F44A22;
  color: #FEF8E8;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(244, 74, 34, 0.2);
  box-sizing: border-box;
}

.hero-img-widget__cta--primary:hover {
  opacity: 1.0;
  xXXbox-shadow: 0 4px 8px rgba(244, 74, 34, 0.3);
}

.hero-img-widget__cta--primary:active {
  transform: translateY(0);
}

.hero-img-widget__cta--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  background-color: transparent;
  color: #F44A22;
  border: 2px solid #F44A22;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.hero-img-widget__cta--outline:hover {
  XXXbackground-color: rgba(244, 74, 34, 0.05);
  XXXbox-shadow: 0 4px 8px rgba(244, 74, 34, 0.1);
}

.hero-img-widget__cta--outline:active {
  transform: translateY(0);
}

.hero-img-widget__cta--secondary {
  color: #161616;
  /* Dark color to contrast with the light background */
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: color 150ms ease;
}

.hero-img-widget__cta--secondary:hover {
  color: #F44A22;
}

@media (max-width: 1152px) {

  .hero-img-widget {
    padding: 0 24px;
  }

  .hero-img-widget__title {
    font-size: 40px;
  }
}

@media (max-width: 832px) {
  .hero-img-widget {
    padding: 40px 24px 24px 24px;
    height: auto;
    min-height: auto;
    background: #FEF8E8;
    align-items: flex-start;
    --hero-poster-opacity: 0.10;
  }

  .hero-img-widget__title {
    font-size: 32px;
  }

  .hero-img-widget__subheadline {
    font-weight: 500;
  }

  .hero-img-widget__poster {
    display: flex;
    object-position: 95% center;
    /* Centraliza a parte direita da ilustração no mobile */
  }

  .hero-img-widget__content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 24px;
  }

  .hero-img-widget__area {
    grid-template-columns: 1fr;
    text-align: left;
    justify-content: start;
    align-items: start;
  }

  .hero-img-widget__actions {
    align-items: left;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-img-widget__title {
    font-size: 32px;
  }

  .hero-img-widget__subheadline {
    font-size: 16px;
  }

  .hero-img-widget__content {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img-widget__content {
    opacity: 1;
    transform: translateY(0);
  }

  .hero-img-widget__poster {
    opacity: var(--hero-poster-opacity, 1);
  }

  .hero-img-widget.--visible .hero-img-widget__content,
  .hero-img-widget.--visible .hero-img-widget__poster {
    animation: none;
  }

  .hero-img-widget__cta--primary,
  .hero-img-widget__cta--outline,
  .hero-img-widget__cta--secondary {
    transition: none;
  }
}