/*!
 * Liberamondo Eventi 6.9.3 — public-header compatibility.
 * Source of truth: DESIGN.md, Laura's .lmb-hero and existing sky photo.
 *
 * Some cached public pages still include the 6.9.1 .lmb-events-intro Elementor
 * container. 6.9.2 removed its photo rules when it introduced the native Laura
 * hero. These scoped rules support both structures and do not modify widgets.
 */

/* Make the real Laura-style Elementor hero use the same photographic sky
   even if an old per-page Elementor CSS file is loaded after the plugin. */
body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-hero.lmb-hero:not(.lmb-native-sky-710) {
  background-color: #d9f1ff !important;
  background-image:
    linear-gradient(90deg,
      rgba(249,252,255,.97) 0%,
      rgba(247,251,255,.86) 24%,
      rgba(246,251,255,.50) 43%,
      rgba(247,252,255,.12) 66%,
      rgba(255,255,255,0) 86%),
    url('../img/user-hero-sky-550.jpg') !important;
  background-size: cover, cover !important;
  background-position: center top, center top !important;
  background-repeat: no-repeat, no-repeat !important;
  border-radius: 0 !important;
}

/* Safe frontend fallback for an old .lmb-events-intro still served by a
   stale public HTML cache. The replacement Elementor hero remains preferred. */
body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro {
  box-sizing: border-box !important;
  isolation: isolate;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 570px !important;
  margin: 0 !important;
  padding: 110px max(24px, calc((100vw - 1220px) / 2)) 126px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: #d9f1ff !important;
  background-image:
    linear-gradient(90deg,
      rgba(249,252,255,.97) 0%,
      rgba(247,251,255,.86) 24%,
      rgba(246,251,255,.50) 43%,
      rgba(247,252,255,.12) 66%,
      rgba(255,255,255,0) 86%),
    url('../img/user-hero-sky-550.jpg') !important;
  background-size: cover, cover !important;
  background-position: center top, center top !important;
  background-repeat: no-repeat, no-repeat !important;
}
body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro::before {
  display: none !important; /* shared .lmb-global-top-wave supplies the top curve */
}
body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro::after {
  content: "";
  position: absolute !important;
  display: block !important;
  inset: auto 0 -1px !important;
  width: auto !important;
  height: 88px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url('../img/hero-bottom-cut-570.svg') center bottom / 100% 100% no-repeat !important;
  pointer-events: none;
  z-index: 1 !important;
}
body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro > .elementor-element {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  color: #12395d;
}

@media (max-width: 940px) {
  body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro {
    min-height: 460px !important;
    padding: 86px 24px 100px !important;
    background-position: center top, 56% top !important;
  }
  body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro::after {
    height: 64px !important;
  }
}
@media (max-width: 560px) {
  body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro {
    min-height: 420px !important;
    padding: 82px 20px 94px !important;
  }
  body.lmb-page .lmb-site[data-lmb-page="eventi"] #lmb-main .lmb-events-intro::after {
    height: 50px !important;
    background-size: 160% 100% !important;
  }
}
