/* ================================================
   Before/After Carousel for Elementor — CSS v1.0.0
   ================================================ */

:root {
  --bae-accent:  #e63946;
  --bae-trans:   0.32s cubic-bezier(.4,0,.2,1);
}

/* ── Sezione ──────────────────────────────────── */
.bae-section {
  /*background: #1a1a2e;*/
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

.bae-section__title {
  color: #f1faee;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 40px;
  text-align: center;
}

/* ── Card ─────────────────────────────────────── */
.bae-card {
  border-radius: 12px;
  overflow: hidden;
  /*background: #16213e;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);*/
  margin-bottom: 4px;
}

.bae-card__label {
  padding: 14px 16px 4px;
  color: #f1faee;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.bae-card__desc {
  padding: 2px 16px 12px;
  color: rgba(241,250,238,.55);
  font-size: .82rem;
  line-height: 1.6;
}

/* ── Before/After ─────────────────────────────── */
.bae-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.bae-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.bae-img--before {
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

/* Divisore */
.bae-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,.85);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}

/* Handle */
.bae-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bae-accent);
  border: 3px solid #fff;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 3px 18px rgba(0,0,0,.5);
  transition: transform var(--bae-trans);
}

.bae-container.is-dragging .bae-handle {
  transform: translate(-50%, -50%) scale(1.15);
}

.bae-handle svg {
  width: 42%; height: 42%;
}

/* Badge */
.bae-badge {
  position: absolute;
  top: 20px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.bae-badge--before {
  left: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
}

.bae-badge--after {
  right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
}

/* ── Owl Carousel ──────────────────────────────── */
.bae-section .owl-stage-outer { padding-bottom: 0 }

.bae-section .owl-nav button.owl-prev,
.bae-section .owl-nav button.owl-next {
  position: absolute !important;
  top: 44% !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--bae-accent) !important;
  border: none !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transform: translateY(-50%) !important;
  transition: filter var(--bae-trans), transform var(--bae-trans);
}

.bae-section .owl-nav button:hover {
  filter: brightness(.85);
  transform: translateY(-50%) scale(1.08) !important;
}

.bae-section .owl-nav button.owl-prev { left: -18px !important; }
.bae-section .owl-nav button.owl-next { right: -18px !important; }

.bae-section .owl-dots {
  margin-top: 22px !important;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.bae-section .owl-dots .owl-dot span {
  background:#D9D9D9 !important;
	width: 12px !important;
	height: 12px !important;
  	border-radius: 50% !important;
  margin: 0 !important;
  display: block;
	border: 1px solid #D9D9D9 !important;
  transition: background var(--bae-trans), width var(--bae-trans) !important;
}

.bae-section .owl-dots .owl-dot.active span {
  background: var(--bae-accent) !important;
	width: 12px !important;
	height: 12px !important;
	border-radius: 50% !important;
	border: 1px solid var(--bae-accent) !important
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 767px) {
  .bae-section { padding: 40px 20px; }
  .bae-section .owl-nav button.owl-prev { left: 2px !important; }
  .bae-section .owl-nav button.owl-next { right: 2px !important; }
.bae-container {
    aspect-ratio: 1 !important;
	}
.bae-img {
    height: 100% !important;

}
}

@media (max-width: 480px) {
  .bae-section { padding: 30px 12px; }
  .bae-badge { font-size: .65rem; padding: 3px 7px; }
}
