/* Hero homepage gestita da Configurazione locale + storefront/context. */
.wa-managed-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  height: var(--wa-hero-height-desktop, 560px) !important;
  min-height: var(--wa-hero-height-desktop, 560px) !important;
  max-height: none !important;
  background-image: var(--wa-bg-image);
  background-position: var(--wa-hero-position, center) center;
  background-size: cover;
  overflow: hidden;
}
.wa-managed-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.wa-managed-hero__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--wa-hero-x, 50%) var(--wa-hero-y, 50%);
  transform: scale(var(--wa-hero-zoom, 1));
  transform-origin: center center;
  will-change: transform;
}
.wa-managed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1 !important;
  background: rgba(18, 12, 10, var(--wa-hero-overlay, .38));
  pointer-events: none;
}
.wa-managed-hero .wa-hero-img-spacer { position: absolute; inset: 0; visibility: hidden; }
.wa-managed-hero__content {
  position: relative;
  z-index: 3 !important;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 7rem) 0;
  color: var(--wa-hero-title-color, #fff);
}
.wa-managed-hero__title {
  max-width: 18ch;
  margin: 0;
  color: inherit;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0,0,0,.28);
}
.wa-managed-hero__subtitle {
  max-width: 54ch;
  margin: 1rem 0 0;
  color: var(--wa-hero-subtitle-color, rgba(255,255,255,.94));
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.55;
}
.wa-managed-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  line-height: 1;
  text-align: center;
}
.wa-managed-hero--center .wa-managed-hero__content { text-align: center; }
.wa-managed-hero--center .wa-managed-hero__title,
.wa-managed-hero--center .wa-managed-hero__subtitle { margin-left: auto; margin-right: auto; }
.wa-managed-hero--right .wa-managed-hero__content { text-align: right; }
.wa-managed-hero--right .wa-managed-hero__title,
.wa-managed-hero--right .wa-managed-hero__subtitle { margin-left: auto; }
@media (max-width: 767.98px) {
  .wa-managed-hero {
    height: var(--wa-hero-height-mobile, 520px) !important;
    min-height: var(--wa-hero-height-mobile, 520px) !important;
    align-items: end;
  }
  .wa-managed-hero__content { width: calc(100% - 2rem); padding: 2.2rem 0; }
  .wa-managed-hero__title { font-size: clamp(2rem, 10vw, 3.15rem); }
  .wa-managed-hero__subtitle { font-size: 1rem; line-height: 1.45; }
}
