/* ensoul-blocks css vars overrides */

:root {
  --color-primary-500: #727272;
  --color-secondary-500: #edeeed;
  --color-white: #fff;
  --color-black: #202020;
  --wp--preset--color--base: #ffffff;
  --spacing-columns: 20px;
  --spacing-columns-dk: 20px;
  --spacing-container-heading: 100%;
  --spacing-container-columns: 768px;
  --spacing-container-content: var(--wp--style--global--content-size);
  --spacing-content-padding: 0;
  --spacing-content-padding-mobile: 30px;
  --spacing-container-content-padded: calc(var(--spacing-container-content) + 2 * var(--spacing-content-padding-left));
  --text-heading-xs: 15px;
  --text-heading-sm: 27px;
  --text-heading-base: 46px;
  --text-heading-3xl: 92px;
  --text-heading-3xl--line-height: 100%;
  --text-paragraph-2xl: 41px;
  --text-paragraph-3xl: 50px;
  --text-paragraph-2xl--line-height: 120%;
  --text-paragraph-3xl--line-height: 100%;
  --spacing-container-paragraph: 70% !important;
  --scrollbar-width: 8px;
  --max-w-container-content: 1700px !important;
  --spacing-accordion-y: 20px;
  --spacing-accordion-y-dk: 22px;
  --screen-margin-small: 30px;
  --screen-margin-medium: 50px;
  --screen-margin-large: 30px;
}

/* Responsive Content Width */
@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --wp--style--global--content-size: calc(
      100vw - (var(--screen-margin-small) * 2) - var(--scrollbar-width, 8px)
    );
    --spacing-container-content: calc(
      100vw - (var(--screen-margin-small) * 2) - var(--scrollbar-width, 8px)
    );
  }
  .is-layout-constrained
    > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: calc(
      100vw - (var(--screen-margin-small) * 2) - var(--scrollbar-width, 8px)
    );
  }
}

@media (min-width: 1200px) and (max-width: 1599px) {
  :root {
    --wp--style--global--content-size: calc(
      100vw - (var(--screen-margin-medium) * 2) - var(--scrollbar-width, 8px)
    );
    --spacing-container-content: calc(
      100vw - (var(--screen-margin-medium) * 2) - var(--scrollbar-width, 8px)
    );
    --spacing-container-columns: calc(50vw - var(--screen-margin-medium));
  }
  .is-layout-constrained
    > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: calc(
      100vw - (var(--screen-margin-medium) * 2) - var(--scrollbar-width, 8px)
    );
  }
}

@media (min-width: 1600px) {
  :root {
    --wp--style--global--content-size: calc(
      100vw - (var(--screen-margin-large) * 2) - var(--scrollbar-width, 8px)
    );
    --spacing-container-content: calc(
      100vw - (var(--screen-margin-large) * 2) - var(--scrollbar-width, 8px)
    );
    --spacing-container-columns: calc(50vw - var(--screen-margin-large));
    --spacing-container-paragraph: 95%;
  }
  .is-layout-constrained
    > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: calc(
      100vw - (var(--screen-margin-large) * 2) - var(--scrollbar-width, 8px)
    );
  }
}

/* Scrollbar & selection */
::-webkit-scrollbar {
  width: var(--scrollbar-width);
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--mid-black);
}
::selection {
  background-color: var(--soft-black);
  color: var(--soft-gray);
}

/* Container utilities */
.max-w-container-columns {
  max-width: var(--spacing-container-columns) !important;
}
.max-w-container-content {
  max-width: var(--spacing-container-content) !important;
}
.max-w-container-content-padded {
  max-width: var(--spacing-container-content-padded) !important;
}

.dark {
  --color-primary-500: #1196b8;
  --color-secondary-50: #a01281;
  --color-white: #202020;
  --color-black: #fefefe;
  --wp--preset--color--base: #505050;
}

/* Typography */
h1,
.h1 {
  font-size: var(--text-heading-base);
  line-height: var(--text-heading-base--line-height);
}
h2,
.h2 {
  font-size: var(--text-heading-sm);
  line-height: var(--text-heading-sm--line-height);
}
h3,
.h3 {
  font-size: var(--text-heading-xs);
  line-height: var(--text-heading-xs--line-height);
}

:where(.wp-site-blocks *:focus) {
  outline: none !important;
}

.imb-font,
.px-accordion-x > h4 {
  font-family: "IBM Plex Mono";
  font-weight: 600;
  font-size: 15px !important;
  --text-heading-sm: 15px !important;
  --text-heading-sm--line-height: 120%;
}

@media (max-width: 768px) {
  .imb-font,
  .px-accordion-x > h4 {
    font-family: "IBM Plex Mono";
    font-weight: 600;
    font-size: 22px !important;
    --text-heading-sm: 18px !important;
    --text-heading-sm--line-height: 120%;
  }
  .px-accordion-x {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

/* Button styles */
.ens-btn.ens-btn-primary {
  --spacing-padding-button: 12px 0;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  --border-color-button-color: var(--color-primary-500);
  --border-width-button-width: 1px;
  border-left-style: none;
  border-right-style: none;
  border-top-style: solid;
  border-bottom-style: solid;
  --color-button: var(--color-primary-500);
  --color-button-hover: var(--color-primary-500);
  --color-button-background: none;
  --color-button-background-hover: inherit;
}
.ens-btn.ens-btn-primary svg {
  margin-right: 2px;
}

.ens-btn.ens-btn-secondary {
  --decoration-button: none;
  --decoration-button-hover: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  padding-left: 0;
  padding-right: 0;
  --color-button: var(--color-primary-500);
  --color-button-hover: var(--color-primary-500);
  --color-button-background: none;
  --color-button-background-hover: inherit;
}
.ens-btn.ens-btn-secondary svg {
  margin-right: 2px;
}

.ens-btn.ens-btn-tertiary {
  --spacing-padding-button: 0 0;
  --decoration-button: none;
  --decoration-button-hover: none;
  border: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  --color-button: white;
  --color-button-hover: white;
  --color-button-background: none;
  --color-button-background-hover: inherit;
}
.ens-btn.ens-btn-tertiary svg {
  margin-right: 2px;
}

.ens-btn.ens-btn-quaternary {
  --spacing-padding-button: 8px 16px;
  --decoration-button: none;
  --decoration-button-hover: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  --border-color-button-color: var(--color-primary-500);
  --border-width-button-width: 1px;
  --color-button: white;
  --color-button-hover: var(--color-primary-500);
  --color-button-background: var(--color-primary-500);
  --color-button-background-hover: white;
  --radius-button: 9999px;
}

.ens-btn.ens-btn-quinary {
  --spacing-padding-button: 8px 16px;
  --decoration-button: none;
  --decoration-button-hover: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  --border-color-button-color: var(--color-primary-500);
  --border-width-button-width: 1px;
  --color-button: var(--color-primary-500);
  --color-button-hover: white;
  --color-button-background: white;
  --color-button-background-hover: var(--color-primary-500);
  --radius-button: 9999px;
}

.ens-btn.ens-btn-sextuary {
  display: none;
}

@media (min-width: 768px) {
  h1,
  .h1 {
    font-size: var(--text-heading-xl);
    line-height: var(--text-heading-xl--line-height);
  }
  h2,
  .h2 {
    font-size: var(--text-heading-lg);
    line-height: var(--text-heading-lg--line-height);
  }
  h3,
  .h3 {
    font-size: var(--text-heading-sm);
    line-height: var(--text-heading-sm--line-height);
  }
}

/* Fix defaults */
:where(figure) {
  margin-bottom: 0;
}
:where(.wp-site-blocks) > main {
  margin-top: 0;
}

.header-wrapper .header-content {
  padding: 0 30px;
}
.header-block-wrapper .header-main-row {
  max-width: var(--spacing-container-content);
  margin: 0 auto;
  border-radius: 8px;
  padding: 16px 24px;
  margin-top: 24px;
}

/* Maps */
.image-location-maps,
.text-location-maps {
  display: none !important;
}
.leaflet-popup-content {
  width: 160px;
}

/* Slider base */
@media (max-width: 768px) {
  .content-slider {
    padding-bottom: 60px;
  }
  .content-slider-next,
  .content-slider-prev {
    top: auto;
    bottom: 0;
  }
}

.content-slider.autoscroll .swiper-slide figure {
  max-height: 60vh;
}
.swiper-slide:hover {
  cursor: grab;
}
.slide-index-display {
  display: none;
}

.aspect-ratio-group {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
}
.aspect-ratio-group iframe {
  height: auto !important;
}

/* ============================================
   Content Slider & Hotspot System
   ============================================ */

body {
  overflow-x: clip;
}

/* Desktop only - allow cards to overflow for card display */
@media (min-width: 769px) {
  .swiper-slide {
    overflow: visible !important;
  }
  .swiper-slide > div {
    overflow: visible !important;
  }
  .swiper-wrapper {
    overflow: visible !important;
  }
  .content-slider {
    overflow: visible !important;
  }
  .slider-section {
    overflow: visible !important;
  }
}

.swiper-slide {
  position: relative !important;
}

/* Slider left alignment (desktop only) */
@media (min-width: 768px) and (max-width: 1199px) {
  .content-slider .swiper-wrapper {
    margin-left: var(--screen-margin-small) !important;
  }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .content-slider .swiper-wrapper {
    margin-left: var(--screen-margin-medium) !important;
  }
}
@media (min-width: 1600px) {
  .content-slider .swiper-wrapper {
    margin-left: var(--screen-margin-large) !important;
  }
}

/* ==========================================================================
   HOTSPOT / DOT SYSTEM — inside @layer utilities so !important rules beat
   Tailwind v4's own @layer utilities !important (w-full!, block!, relative!).
   Same-layer competition: higher specificity wins.
   ========================================================================== */
@layer utilities {
  /* Neutralize fullwidth-section breakout CSS inside swiper slides */
  .swiper-slide section[class*="fullwidth-section"],
  .swiper-slide > div > section[class*="fullwidth-section"] {
    width: 100% !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* Dot sections overlay the slide so dots position relative to slide area */
  .swiper-slide section:has(> .ensoul-group[class*="absolute-"]) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    pointer-events: none !important;
    overflow: visible !important;
    z-index: 5 !important;
  }

  /* Hovered slide lifts above adjacent slides */
  .swiper-slide:has(.ensoul-group[class*="absolute-"]:hover),
  .swiper-slide:has(
    .ensoul-group[class*="absolute-"] > [class*="max-w-container-content"]:hover
  ) {
    z-index: 100 !important;
  }

  /* Dot container — beats w-full!, block!, relative from plugin */
  .swiper-slide section .ensoul-group[class*="absolute-"] {
    position: absolute !important;
    z-index: 10 !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    overflow: visible !important;
  }

  /* Hovered dot gets higher z-index */
  .swiper-slide section .ensoul-group[class*="absolute-"]:hover {
    z-index: 200 !important;
  }

  /* Lift the entire dot section when its dot is hovered (so card escapes stacking context) */
  .swiper-slide section:has(> .ensoul-group[class*="absolute-"]:hover) {
    z-index: 50 !important;
  }

  /* Dot positions */
  .swiper-slide section .ensoul-group.absolute-1 {
    top: 55% !important;
    left: 67% !important;
  }
  .swiper-slide section .ensoul-group.absolute-2 {
    top: 50% !important;
    right: 25% !important;
    left: auto !important;
  }
  .swiper-slide section .ensoul-group.absolute-3 {
    top: 40% !important;
    left: 40% !important;
  }
  .swiper-slide section .ensoul-group.absolute-4 {
    top: 50% !important;
    left: 65% !important;
  }
  .swiper-slide section .ensoul-group.absolute-5 {
    top: 65% !important;
    left: 50% !important;
  }
  .swiper-slide section .ensoul-group.absolute-6 {
    top: 35% !important;
    left: 20% !important;
  }

  /* Hide anchor inside dots */
  .swiper-slide section div.ensoul-group[class*="absolute-"] > a {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
  }

  /* Dot styling — outer ring */
  .swiper-slide section .ensoul-group[class*="absolute-"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    transition:
      transform 0.3s ease,
      background 0.3s ease;
  }

  /* Dot styling — inner dot */
  .swiper-slide section .ensoul-group[class*="absolute-"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  /* Dot hover */
  .swiper-slide section .ensoul-group[class*="absolute-"]:hover::before {
    background: white;
    transform: translate(-50%, -50%) scale(1.2);
  }
  .swiper-slide section .ensoul-group[class*="absolute-"]:hover::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  /* ==========================================================================
   Card Styling
   ========================================================================== */

  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9);
    background: #f0f0ed !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 0 !important;
    margin: 0 !important;
    width: 280px !important;
    max-width: 280px !important;
    height: auto !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    gap: 0 !important;
    container-type: normal !important;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.4s ease;
  }

  /* Card image */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-image {
    position: relative !important;
    width: 280px !important;
    height: 280px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-image
    figure {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: block !important;
  }

  /* Show desktop figure, hide mobile figure inside card */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-image
    figure.max-md\:hidden {
    display: block !important;
  }
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-image
    figure.md\:hidden {
    display: none !important;
  }

  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-image
    img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Card image gradient */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #f0f0ed 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  /* Card dark overlay for button */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.15) 0%,
      transparent 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  /* Card content */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-heading,
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-divider,
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-button {
    position: relative !important;
    z-index: 2 !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Override white color to dark (light background) */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-heading {
    margin-top: -40px !important;
    padding-bottom: 14px !important;
  }

  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-divider,
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .ensoul-divider {
    margin-bottom: 18px !important;
  }

  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-button {
    padding-bottom: 28px !important;
    padding-top: 4px !important;
  }

  /* Card hover state */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]:hover
    > [class*="max-w-container-content"],
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]:hover {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    z-index: 300 !important;
  }

  /* Card figure */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    figure {
    overflow: hidden !important;
  }

  /* Planner button */
  .swiper-slide .planner-btn {
    position: absolute;
    bottom: 32px;
    left: 32px;
    z-index: 20;
    margin: 0;
  }

  .swiper-slide .planner-btn a {
    display: inline-block;
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 10px 24px;
    text-decoration: none !important;
    text-transform: uppercase;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0.08em;
    border-radius: 9999px;
    transition: background 0.3s ease, color 0.3s ease;
  }

  .swiper-slide .planner-btn a:hover {
    background: #fff !important;
    color: #202020 !important;
  }

  /* Card button */
  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-button
    a {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    padding: 10px 24px !important;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    line-height: 100%;
    transition:
      background 0.3s ease,
      color 0.3s ease;
  }

  .swiper-slide
    section
    .ensoul-group[class*="absolute-"]
    > [class*="max-w-container-content"]
    .wp-block-ensoul-button
    a:hover {
    background: #fff !important;
    color: #202020 !important;
  }
} /* end @layer utilities */

/* ============================================
   Mobile Slider — must be inside @layer utilities
   so !important beats Tailwind's layered !important
   ============================================ */
@layer utilities {
  @media (max-width: 768px) {
    :root {
      --spacing-container-paragraph: 100% !important;
    }

    /* Hide dots and their sections completely on mobile */
    .swiper-slide section:has(> .ensoul-group[class*="absolute-"]) {
      display: none !important;
    }
    .swiper-slide section .ensoul-group[class*="absolute-"] {
      display: none !important;
    }

    /* Hide cards on mobile */
    .swiper-slide
      section
      .ensoul-group[class*="absolute-"]
      [class*="max-w-container-content"] {
      display: none !important;
    }

    /* Planner button mobile */
    .swiper-slide .planner-btn {
      bottom: 12px;
      left: 12px;
      z-index: 10;
      pointer-events: auto !important;
    }

    .swiper-slide .planner-btn a {
      padding: 8px 16px;
      pointer-events: auto !important;
    }

    /* Prodotti button */
    .prodotti-btn {
      position: absolute;
      top: 12px;
      right: 12px;
      z-index: 20;
      padding: 8px 16px;
      background: transparent;
      border: 2px solid #fff;
      color: #fff;
      font-family: "IBM Plex Mono", monospace;
      font-size: 9px;
      font-weight: 600;
      line-height: 100%;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      border-radius: 9999px;
      cursor: pointer;
      pointer-events: auto !important;
      transition:
        background 0.3s ease,
        color 0.3s ease;
    }

    .prodotti-btn:hover,
    .prodotti-btn:active {
      background: #fff;
      color: #202020;
    }
  }
} /* end mobile @layer utilities */

/* ============================================
   Products Modal
   ============================================ */
.products-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.products-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.products-modal-close {
  position: absolute;
  top: max(env(safe-area-inset-top, 12px), 12px);
  right: 12px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  font-family: Arial, sans-serif;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.products-modal-close:hover {
  background: #fff;
  color: #202020;
}

.products-modal-slider {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.products-modal-slider .swiper-wrapper {
  align-items: stretch;
}
.products-modal-slider .swiper-slide {
  height: auto;
  display: flex;
}

/* Modal card */
.products-modal-card {
  background: #f0f0ed;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.products-modal-card .card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.products-modal-card .card-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-modal-card .card-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, #f0f0ed 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.products-modal-card .card-content {
  padding: 0 24px 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f0f0ed;
  position: relative;
  margin-top: -40px;
}

.products-modal-card .card-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.products-modal-card h4 {
  color: white;
  position: relative;
  z-index: 1;
}

.products-modal-card hr {
  border: none;
  height: 1px;
  background: white;
  margin: 10px 0px;
  width: 60%;
  position: relative;
  z-index: 1;
}

.products-modal-card .card-btn {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9999px;
  position: relative;
  z-index: 1;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.products-modal-card .card-btn:hover {
  background: #fff;
  color: #202020;
}

.px-accordion-x h2 {
  font-size: 18px !important;
  --text-heading-base: 18px !important;
}

/* ============================================
   List-Image Hover Section
   ============================================ */

.ensoul-columns-section.list-hover .ensoul-columns-block {
  position: relative;
  align-items: center;
}

.ensoul-columns-section.list-hover .ensoul-column-wrapper {
  display: flex;
  align-items: center;
}

.ensoul-columns-section.list-hover .ensoul-column-wrapper .column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ensoul-columns-section.list-hover .ensoul-column-wrapper:last-child .column {
  position: relative;
  width: 100%;
  align-items: flex-end;
}

/* Images stacked */
.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  z-index: 1;
}

.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image:first-child {
  position: relative;
  top: 0;
  right: auto;
  visibility: visible;
  opacity: 0;
  transform: none;
}

.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image:first-child.is-active {
  transform: none;
}

/* Image figure - fill column and anchor right */
.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image
  figure:not(.md\:hidden) {
  position: relative;
  overflow: hidden;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: 0 !important;
}

.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image
  figure:not(.md\:hidden)
  img {
  width: 100% !important;
}

/* Image gradient overlay */
.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image
  figure::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Image hover scale */
.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image.is-active
  img {
  transition: transform 0.6s ease;
}

.ensoul-columns-section.list-hover
  .ensoul-column-wrapper:last-child
  .wp-block-ensoul-image.is-active:hover
  img {
  transform: scale(1.05);
}

/* Configura button */
.ensoul-columns-section.list-hover .configura-button {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  padding: 10px 24px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  line-height: 100%;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  pointer-events: none;
}

a {
  text-decoration: none;
}

.ensoul-columns-section.list-hover
  .wp-block-ensoul-image.is-active
  .configura-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ensoul-columns-section.list-hover .configura-button:hover {
  background: #fff;
  color: #202020;
}

/* ============================================
   List Items Hover
   ============================================ */

.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element {
  cursor: pointer;
}

.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element
  span,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element
  a,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element
  .split-word,
.planner-h {
  color: #202020 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element {
  transform: skewX(0deg);
  transform-origin: left center;
  transition:
    color 0.3s ease,
    transform 0.3s ease !important;
}

.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element:hover,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element:hover
  span,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element:hover
  a,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element:hover
  .split-word,
.planner-h:hover {
  color: #b0b0b0 !important;
}

.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element:hover {
  transform: skewX(-4deg);
}

.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element.is-active,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element.is-active
  span,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element.is-active
  a,
.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element.is-active
  .split-word {
  color: #b0b0b0 !important;
}

.ensoul-columns-section.list-hover
  .wp-block-ensoul-list
  .wp-block-ensoul-list-element.is-active {
  transform: skewX(-4deg);
}

/* ============================================
   Mobile List-Image
   ============================================ */
@media (max-width: 768px) {
  .ensoul-columns-section.list-hover .ensoul-columns-block {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 16px;
  }

  .ensoul-columns-section.list-hover .ensoul-column-wrapper:first-child {
    width: 100% !important;
  }

  .ensoul-columns-section.list-hover .ensoul-column-wrapper:last-child {
    position: sticky;
    top: 30vh;
    height: fit-content;
    width: 100% !important;
    z-index: 50;
    align-self: start;
  }

  .ensoul-columns-section.list-hover .ensoul-column-wrapper:last-child .column {
    position: relative;
  }

  .ensoul-columns-section.list-hover
    .ensoul-column-wrapper:last-child
    .wp-block-ensoul-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .ensoul-columns-section.list-hover
    .ensoul-column-wrapper:last-child
    .wp-block-ensoul-image:first-child {
    position: relative;
    visibility: hidden;
    opacity: 0;
  }

  .ensoul-columns-section.list-hover
    .ensoul-column-wrapper:last-child
    .wp-block-ensoul-image.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .ensoul-columns-section.list-hover .configura-button {
    padding: 6px 12px !important;
    font-size: 8px !important;
    bottom: 10px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 30 !important;
  }

  .ensoul-columns-section.list-hover
    .ensoul-column-wrapper:last-child
    .wp-block-ensoul-image
    figure {
    position: relative !important;
  }

  .ensoul-columns-section.list-hover
    .ensoul-column-wrapper:last-child
    .wp-block-ensoul-image
    figure::after {
    z-index: 1 !important;
  }

  .ensoul-columns-section.list-hover
    .wp-block-ensoul-image.is-active
    .configura-button {
    z-index: 30 !important;
  }
}
