/*!
 * LiberaMondo 6.9.0
 * Editable Elementor events cards and minimal footer-wave motion.
 * Colors, fonts and existing content are inherited from DESIGN.md.
 */

/* Eventi page: native Elementor widgets, including photo, title and icon metadata. */
body.lmb-page .lmb-events-intro {
  width: min(1160px, calc(100% - 40px)) !important;
  padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 52px) !important;
  margin: 20px auto 30px !important;
  border-radius: 24px;
  background: linear-gradient(115deg, #eef8ff, #f8fcff 55%, #deeffb) !important;
}
body.lmb-page .lmb-events-intro .elementor-widget-heading {
  max-width: 800px;
}
body.lmb-page .lmb-events-section {
  width: min(1160px, calc(100% - 40px)) !important;
  padding: clamp(28px, 4vw, 52px) 0 clamp(60px, 7vw, 96px) !important;
  margin: 0 auto !important;
}
body.lmb-page .lmb-events-grid {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.5vw, 30px) !important;
  align-items: stretch !important;
  margin-top: 30px !important;
}
body.lmb-page .lmb-events-grid > .lmb-event-card {
  width: 100% !important;
  min-width: 0 !important;
  height: 100%;
}
body.lmb-page .lmb-event-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  background: white !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid #dbeaf6 !important;
  box-shadow: 0 12px 34px rgba(31, 110, 155, .09);
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  body.lmb-page .lmb-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(31, 110, 155, .14);
  }
}
body.lmb-page .lmb-event-image,
body.lmb-page .lmb-event-image .elementor-widget-container,
body.lmb-page .lmb-event-image img {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}
body.lmb-page .lmb-event-image img {
  height: clamp(185px, 20vw, 260px) !important;
  object-fit: cover;
  border-radius: 0;
  background: #e8f5fd;
}
body.lmb-page .lmb-event-card-content {
  padding: clamp(18px, 2.4vw, 28px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 13px !important;
}
body.lmb-page .lmb-event-card-content h3.elementor-heading-title {
  font-size: clamp(21px, 2vw, 27px) !important;
  line-height: 1.16 !important;
  font-weight: 800 !important;
}
body.lmb-page .lmb-event-meta {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  background: #f1f8fe;
  padding: 10px 13px !important;
  border-radius: 10px;
}
body.lmb-page .lmb-event-meta > .elementor-element {
  width: auto !important;
  flex: 0 1 auto !important;
}
body.lmb-page .lmb-event-meta-icon,
body.lmb-page .lmb-event-meta-icon .elementor-icon {
  color: #147fc3 !important;
  line-height: 1 !important;
}
body.lmb-page .lmb-event-meta-icon i,
body.lmb-page .lmb-event-meta-icon svg {
  font-size: 19px !important;
  width: 19px !important;
  height: 19px !important;
}
body.lmb-page .lmb-event-meta-text {
  min-width: 0;
  color: #36566f;
  font-weight: 700;
  font-size: 15px;
}
body.lmb-page .lmb-event-meta-text p,
body.lmb-page .lmb-event-description p {
  margin: 0 !important;
}
body.lmb-page .lmb-event-description {
  color: #36566f;
  line-height: 1.6;
  font-size: 16px;
}
@media (max-width: 760px) {
  body.lmb-page .lmb-events-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  body.lmb-page .lmb-event-image img {
    height: clamp(185px, 45vw, 260px) !important;
  }
  body.lmb-page .lmb-events-intro,
  body.lmb-page .lmb-events-section {
    width: calc(100% - 30px) !important;
  }
}

/* Bridge footer: tiny gentle drift, keeping the original three waves and colors. */
body.lmb-page .lmb-footer .lmb-wave.one {
  animation: lmb-events-wave-a 24s ease-in-out infinite alternate !important;
}
body.lmb-page .lmb-footer .lmb-wave.two {
  animation: lmb-events-wave-b 28s ease-in-out infinite alternate !important;
}
body.lmb-page .lmb-footer .lmb-wave.three {
  animation: lmb-events-wave-c 32s ease-in-out infinite alternate !important;
}
@keyframes lmb-events-wave-a {
  from { transform: translate3d(-.8%, 0, 0); }
  to { transform: translate3d(.8%, -1px, 0); }
}
@keyframes lmb-events-wave-b {
  from { transform: translate3d(.7%, -.5px, 0); }
  to { transform: translate3d(-.7%, .5px, 0); }
}
@keyframes lmb-events-wave-c {
  from { transform: translate3d(-.45%, 0, 0); }
  to { transform: translate3d(.45%, -.5px, 0); }
}

/* OceanWP official pages: subtle decorative transition atop the existing footer. */
body.lmb-official-page #footer,
body.lmb-official-page footer.site-footer {
  position: relative;
}
body.lmb-official-page #footer::before,
body.lmb-official-page footer.site-footer::before {
  content: "";
  position: absolute;
  left: -2%;
  top: -23px;
  width: 104%;
  height: 24px;
  pointer-events: none;
  background: url('../img/official-footer-wave-69.svg') center bottom / 100% 100% no-repeat;
  animation: lmb-official-wave-soft 26s ease-in-out infinite alternate;
}
@keyframes lmb-official-wave-soft {
  from { transform: translate3d(-.55%, 0, 0); }
  to { transform: translate3d(.55%, -.7px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.lmb-page .lmb-footer .lmb-wave,
  body.lmb-official-page #footer::before,
  body.lmb-official-page footer.site-footer::before {
    animation: none !important;
    transform: none !important;
  }
}
