/* =========================
   RESET FOR STICKY ISSUES
========================= */
#wrapper,
main,
.single-experience-content-wrapper,
.single-experience-content-wrapper .x-container,
.cta-col-destination {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: unset !important;
}

/* =========================
   LAYOUT
========================= */
section.single-experience-content-wrapper {
  padding-top: 80px;
  position: relative;
}

.single-experience-content-wrapper .x-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  overflow: visible;
}

/* LEFT CONTENT */
.experience-content {
  flex: 1 1 0;
  min-width: 0;
}

.experience-content p {
  font-size: 18px;
}

.experience-content h2 {
  margin-bottom: 32px !important;
}

/* RIGHT COLUMN */
.cta-col-destination {
  flex: 0 0 320px;
  position: relative;
  align-self: flex-start;
  min-width: 320px;
}

/* =========================
   CTA BOX - JS MOVED
========================= */
.cta-sticky-box {
  width: 100%;
  padding: 16px;
  border-radius: 24px;
  background-color: var(--softBlue);
  box-sizing: border-box;
  position: relative;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

.cta-col-destination h3 {
  font-size: 24px;
  line-height: normal;
}

/* =========================
   META / CONTENT BLOCKS
========================= */
.meta-info-content.bg-soft-blue {
  background: var(--softBlue);
  border-radius: 16px;
}

.experience-content .experience-meta-info {
  border-radius: 16px;
  padding: 16px;
  margin: 32px 0;
}

.meta-value {
  font-weight: 600;
}

.experience-meta-panel p {
  margin-bottom: 0;
}

hr.meta-divider {
  margin: 0;
  border-top: 1px solid #0000004a;
}

/* =========================
   WHATS INCLUDED
========================= */
.whats-included {
  padding: 16px;
  border: 1px solid var(--black);
  border-radius: 16px;
}

.whats-included ul {
  padding-left: 16px;
  margin: 0;
}

/* =========================
   CTA BUTTON
========================= */
.cta-final-block-book-trip {
  margin-top: 40px;
}

/* =========================
   HERO
========================= */
section.hero-section-standard.entourance_experience {
  height: 100vh;
  padding-bottom: 0;
}

.entourance-experience section.hero-section-standard h1.hero-title {
  font-size: 60px;
}

.quote.description-short {
  margin-top: 60px;
}

.quote.description-short > div {
  border: 1px solid var(--black);
  padding: 40px;
  border-radius: 24px;
}

/* =========================
   GALLERY
========================= */
section.experience-gallery {
  padding: 60px 0 40px;
  background: #b6d4e35c;
  margin: 80px 0;
}

div#carosello-gallery-trip {
  max-width: 1000px;
  margin: auto;
}

div#carosello-gallery-trip h3 {
  margin-bottom: 32px;
  font-size: 40px;
  text-align: center;
}

div#carosello-gallery-trip .splide__slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 24px;
}

div#carosello-gallery-trip .splide__arrows {
  display: none;
}

div#carosello-gallery-trip .splide__pagination {
  gap: 4px;
}

div#carosello-gallery-trip .navigation-slider {
  margin-top: 24px;
}

div#carosello-gallery-trip .custom-slider-arrows button {
  background: var(--softBlue);
  width: 62px;
  height: 38px;
  border-radius: 44px;
}

/* =========================
   RELATED CONERHOME
========================= */
#carosello-destinazioni {
  padding: 120px 0;
}

section#carosello-destinazioni .x-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

div#carosello-slider {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

div#carosello-slider .navigation-slider {
  padding: 0 80px;
}

div#carosello-slider .splide__pagination {
  width: 33%;
  justify-content: start;
  gap: 8px;
}

div#carosello-slider .custom-slider-arrows {
  width: 33%;
}

div#carosello-slider .custom-slider-arrows button {
  background: var(--softBlue);
  width: 62px;
  height: 38px;
  border-radius: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}

div#carosello-slider .cta-wrapper-btn {
  width: 33%;
  display: flex;
  justify-content: end;
}

section#related-experiences > .x-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

section#related-experiences {
  margin-bottom: 80px;
}

section#related-experiences .section-heading h3 {
  font-size: 40px;
}

/* =========================
   CARD DESTINAZIONI
========================= */
.card-destinazioni {
  padding: 24px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  width: calc((100% - (2 * 32px)) / 3);
}

.splide .card-destinazioni {
  width: 100%;
}

.card-destinazioni::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.5s ease;
  z-index: 0;
}

.card-destinazioni:hover::before {
  transform: scale(1.1);
}

.card-destinazioni a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 380px;
  color: var(--white);
}

.card-destinazioni .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(29, 29, 29, 0.85),
    rgba(29, 29, 29, 0)
  );
  z-index: 1;
}

.card-destinazioni .svg-container,
.card-destinazioni .meta-info-card-destinazioni {
  position: relative;
  z-index: 2;
}

.card-destinazioni .svg-container {
  display: flex;
  justify-content: end;
}

.card-destinazioni .svg-container svg {
  transform: rotate(-45deg);
  width: 42px;
  height: 42px;
}

.card-destinazioni h3 {
  font-size: 28px;
  font-weight: 500;
}

.meta-info-card-destinazioni {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================
   GRID EXPERIENCE
========================= */
.experience-grid {
  gap: 32px;
  margin: 80px 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 776px) {
  .single-experience-content-wrapper .x-container {
    flex-direction: column;
    gap: 32px;
  }

  .cta-col-destination {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .cta-sticky-box {
    transform: none !important;
  }

  div#carosello-slider .navigation-slider {
    flex-wrap: wrap;
    gap: 32px;
    padding: 0;
  }

  div#carosello-slider .cta-wrapper-btn {
    width: 100%;
    justify-content: center;
  }

  .card-destinazioni a {
    height: 320px;
  }
}

@media (max-width: 576px) {
  .card-destinazioni a {
    height: 280px;
  }
}
