/**
 * Study in Italy CPT mirror (Elementor post 1106) — /v3/study-abroads/study-in-italy/
 * - Hero hosted background video: fill container, stack content above video
 * - Dark scrim + vertically centred copy (match live marketing hero)
 * - Shape divider at hero bottom (multi-wave)
 * - Main “STUDY IN ITALY” (widget 0fb7bc1): Squada One + bold on h1 and inner spans (see france-montserrat Italy exclusion)
 * - elementor-invisible: use ke-wp-mirror-elementor-entrance.js (standalone); ElementsKit motion text overrides below
 */

#ke-wp-mirror-root > .elementor.elementor-1106 {
  width: 100%;
  max-width: none;
}

/*
 * Horizontal scroll: clip at the viewport. Avoid overflow-x on #ke-wp-mirror-root — paired overflow
 * can clip paints we need (hero bottom wave overlapping the next band).
 */
html:has(body.ke-italy-mirror),
body.ke-italy-mirror {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html:has(body.ke-italy-mirror),
  body.ke-italy-mirror {
    overflow-x: clip;
  }
}

.elementor.elementor-1106 .elementor-element-84337e4.e-con {
  position: relative;
  min-height: min(100vh, 960px);
  /*
   * Do not clip the whole hero: the bottom wave SVG extends slightly below the box and must show
   * over the next section. The background video wrapper already uses overflow: hidden.
   */
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: clamp(2rem, 6vh, 4rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

.elementor.elementor-1106 .elementor-element-84337e4 > .elementor-background-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Graded overlay like the live hero (readable type over Duomo stills / video) */
.elementor.elementor-1106 .elementor-element-84337e4 > .elementor-background-video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.52) 40%,
    rgba(0, 0, 0, 0.58) 100%
  );
}

.elementor.elementor-1106 .elementor-element-84337e4 > .elementor-background-video-container video {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.elementor.elementor-1106 .elementor-element-84337e4 > *:not(.elementor-background-video-container):not(.elementor-shape) {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
}

.elementor.elementor-1106 .elementor-element-84337e4 > .elementor-shape.elementor-shape-bottom {
  position: absolute !important;
  top: auto !important;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  /* Above in-flow widgets (z-index: 3) so the multi-wave divider is not covered at the seam. */
  z-index: 4;
  pointer-events: none;
}

/**
 * post-1106.css positions this SVG with `transform: translateX(-50%) rotateY(180deg)` and
 * `width: calc(100% + 1.3px)` — do not override transform here (it hid the wave). Cap width to
 * avoid horizontal scroll; keep path fills for standalone.
 */
body.ke-italy-mirror #ke-wp-mirror-root .elementor.elementor-1106 .elementor-element.elementor-element-84337e4 > .elementor-shape-bottom svg,
body.ke-italy-mirror #ke-wp-mirror-root .elementor.elementor-1106 .elementor-element.elementor-element-84337e4 > .e-con-inner > .elementor-shape-bottom svg {
  width: 100% !important;
  max-width: 100% !important;
}

/**
 * Standalone mirror: SVG paths default to black; HappyAddons `.ha-shape-divider` can win over
 * a plain `.elementor-shape-fill` rule. Force white fills on the hero bottom multi-wave so
 * semi-transparent layers read as soft highlights, not charcoal bands on the section below.
 */
.elementor.elementor-1106 .elementor-shape svg .elementor-shape-fill,
#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 > .elementor-shape.elementor-shape-bottom svg path {
  fill: #ffffff !important;
  stroke: none !important;
}

#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 > .elementor-shape.elementor-shape-bottom svg path.ha-shape-divider[opacity='0.2'] {
  fill: #ffffff !important;
  opacity: 0.22 !important;
}

/* Hero copy: full width, centred text */
.elementor.elementor-1106 .elementor-element-84337e4 > .elementor-widget .elementor-widget-container {
  margin-inline: auto;
  text-align: center;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

/* “STUDY IN ITALY” — Squada One on title + spans (must beat body.ke-italy-mirror * after france-montserrat fix) */
#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-0fb7bc1 .elementor-heading-title,
#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-0fb7bc1 .elementor-heading-title * {
  font-family: 'Squada One', 'Montserrat', system-ui, sans-serif !important;
  font-weight: 700 !important;
}

#ke-wp-mirror-root .elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-0fb7bc1 .elementor-heading-title {
  font-size: clamp(2.75rem, 9vw, 5.75rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

/* Other hero headings: not Squada — keep readable caps sans */
.elementor.elementor-1106 .elementor-element-84337e4 .elementor-widget-heading:not(.elementor-element-0fb7bc1) .elementor-heading-title {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  color: #fff;
  text-align: center !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* Star divider: line edge-to-edge of hero */
.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 {
  max-width: none !important;
  width: 100% !important;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 .elementor-widget-container {
  max-width: none;
  width: 100%;
  padding-inline: 0;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 .elementor-divider {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-element-c1851a0 .elementor-divider-separator {
  width: 100%;
  max-width: none;
}

.elementor.elementor-1106 .elementor-element-84337e4 .elementor-widget-divider .elementor-divider {
  color: rgba(255, 255, 255, 0.95);
}

/* ElementsKit motion text — paragraph stays hidden until JS; show for mirror */
.elementor.elementor-1106 .elementskit_motion_text_wraper .ekit_motion_text_title,
.elementor.elementor-1106 .elementskit_motion_text_wraper .ekit_motion_text {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
}

.elementor.elementor-1106 .elementskit_motion_text_wraper .elementkit_background_reveal_bg {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

/*
 * Elementor `frontend.min.css` sets `.animated{animation:none!important}` when `prefers-reduced-motion: reduce`.
 * Study-abroad mirrors: same overrides live in `ke-wp-mirror-explore-heart-banner.css` (loaded for IT/FR/DE).
 * Font Awesome / UE empty-icon fixes: `ke-wp-mirror-elementor-fa-scope.css` (loaded for all Elementor mirrors).
 */
