/* =========================================================
   ITINERARIO — Single itinerary page styles
========================================================= */

/* Base helpers */
.slp-section { padding: 88px 0; }
.slp-h2 { font-size: clamp(22px, 2.2vw, 34px); letter-spacing: .02em; text-transform: uppercase; }
.slp-h3 { font-size: clamp(18px, 1.7vw, 26px); letter-spacing: .02em; text-transform: uppercase; }
.slp-wysiwyg {
  max-width: 90%;
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
}
.slp-wysiwyg p { margin: 0 0 16px; }
.slp-link { display:inline-flex; gap:10px; align-items:center; text-transform: uppercase; letter-spacing: .08em; }
.slp-btn { display:inline-flex; align-items:center; justify-content:center; padding: 14px 20px; text-transform: uppercase; letter-spacing: .08em; }


/* =========================================================
   HERO ITINERARIO
   Absolute layout: immagine dx + side sx, titolo centrato
   sovrapposto, info + CTA in basso centrati.
   Mockup ref: 1512×987 px
========================================================= */

.slp-hero--itin{
  position: relative;
  background: var(--color-sottolapalma-palma-900, #0e201c);
  color: #fff;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h, 88px));
  /* 820 / 1512 ≈ 54.2vw */
  height: clamp(680px, 54.2vw, 820px);
}


/* ---- Immagine principale (destra, bleed) ---- */

.slp-hero--itin .slp-hero__media{
  position: absolute;
  top: 0;
  right: 0;
  width: 57%;                     /* 862 / 1512 */
  height: 73%;
  overflow: hidden;
  z-index: 1;
}

.slp-hero--itin .slp-hero__media-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slp-hero--itin .slp-hero__media-ov{
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}


/* ---- Immagine laterale (sinistra) ---- */

.slp-hero--itin .slp-hero__side{
  position: absolute;
  left: 4.3%;                     /* 65 / 1512  */
  top: 37.8%;                     /* 373 / 987  */
  width: 25.4%;                   /* 385 / 1512 */
  z-index: 2;
  overflow: hidden;
}

.slp-hero--itin .slp-hero__side img{
  width: 100%;
  height: auto;
  display: block;
}

.slp-hero--itin .slp-hero__side-ov{
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}


/* ---- Contenuto sovrapposto (centrato) ---- */

.slp-hero--itin .slp-hero__content{
  position: absolute;
  z-index: 3;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(1142px, 90%);
}

/* Breadcrumb */
.slp-hero--itin .slp-hero__breadcrumb{
  margin: 0 0 6px;
  font-family: "Inter", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.4;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.slp-hero--itin .slp-hero__breadcrumb a{
  color: inherit;
  text-decoration: none;
}

.slp-hero--itin .slp-hero__breadcrumb a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.slp-hero--itin .slp-hero__bc-sep{
  margin: 0 8px;
  opacity: 0.6;
}

/* Titolo */
.slp-hero--itin .slp-hero__title{
  margin: 0;
  font-family: var(--font-h1, "Dream Avenue");
  font-weight: var(--font-weight-h1, 400);
  font-size: clamp(44px, 6.6vw, 100px);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

/* Kicker (destinazione + icona location) */
.slp-hero--itin .slp-hero__kicker{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  font-family: "Inter", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.4;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.slp-hero--itin .slp-hero__kicker-icon{
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}


/* ---- Bottom: meta + CTA (centrato) ---- */

.slp-hero--itin .slp-hero__bottom{
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  text-align: center;
}

.slp-hero--itin .slp-hero__meta{
  margin: 0;
  font-family: "Inter", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.4;
  letter-spacing: 0.025em;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.slp-hero--itin .slp-hero__cta{
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(16px, 2.4vw, 36px);
  font-family: var(--font-body), sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1.2vw, 18px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.slp-hero--itin .slp-hero__cta-label{
  color: var(--sottolapalma-base-white, #FFF);
  text-align: right;
  font-family: var(--font-body), sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 160%;
  text-transform: uppercase;
}

.slp-hero--itin .slp-hero__cta:hover{
  opacity: 0.7;
}

.slp-hero--itin .slp-hero__cta-arrow{
  display: inline-flex;
  align-items: center;
}

.slp-hero--itin .slp-hero__cta-arrow svg{
  width: clamp(32px, 3vw, 45px);
  height: auto;
}


/* ---- Responsive ---- */

/* === 1440 e sotto: contenimento proporzionale === */
@media (max-width: 1440px){
  .slp-hero--itin .slp-hero__content{
    width: min(1000px, 88%);
  }
}

/* === 1200 e sotto: compattare hero === */
@media (max-width: 1200px){
  .slp-hero--itin{
    height: clamp(560px, 58vw, 720px);
  }

  .slp-hero--itin .slp-hero__media{
    width: 60%;
    height: 68%;
  }

  .slp-hero--itin .slp-hero__side{
    width: 28%;
  }

  .slp-hero--itin .slp-hero__content{
    top: 23%;
    width: min(900px, 88%);
  }

  .slp-hero--itin .slp-hero__bottom{
    bottom: 5%;
  }

  .slp-hero--itin .slp-hero__title{
    font-size: clamp(44px, 5.5vw, 80px);
  }

  .slp-hero--itin .slp-hero__cta-label{
    font-size: 16px;
  }
}

/* === 960 e sotto: stack verticale, no side image === */
@media (max-width: 960px){
  .slp-hero--itin{
    height: auto;
    padding-bottom: 40px;
  }

  .slp-hero--itin .slp-hero__media{
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .slp-hero--itin .slp-hero__side{
    display: none;
  }

  .slp-hero--itin .slp-hero__content{
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    padding: 32px 20px 0;
  }

  .slp-hero--itin .slp-hero__bottom{
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    padding: 28px 20px 0;
  }

  .slp-hero--itin .slp-hero__meta{
    white-space: normal;
    font-size: 16px;
  }

  .slp-hero--itin .slp-hero__title{
    font-size: clamp(36px, 8vw, 56px);
  }

  .slp-hero--itin .slp-hero__cta-label{
    font-size: 15px;
  }

  .slp-hero--itin .slp-hero__breadcrumb{
    font-size: 13px;
  }

  .slp-hero--itin .slp-hero__kicker{
    font-size: 13px;
  }
}

/* === 768 e sotto: tablet portrait === */
@media (max-width: 768px){
  .slp-section{ padding: 56px 0; }

  .slp-hero--itin .slp-hero__media{
    aspect-ratio: 4 / 3;
  }

  .slp-hero--itin .slp-hero__title{
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.1;
  }

  .slp-hero--itin .slp-hero__bottom{
    padding: 24px 20px 0;
  }

  .slp-hero--itin .slp-hero__cta{
    gap: 16px;
  }

  .slp-hero--itin .slp-hero__cta-label{
    font-size: 14px;
  }

  .slp-programma{ padding: 72px 0 64px; }

  .slp-programma__title .slp-h2{
    font-size: clamp(36px, 7vw, 52px);
  }

  .slp-programma__cta .slp-link::after{
    width: 240px;
  }

  .slp-details--dark{ padding: 72px 0 56px; }

  .slp-details__heading{
    font-size: clamp(40px, 7vw, 64px);
    margin-bottom: 40px;
  }

  .slp-gallery__grid{ gap: 12px; }

  .slp-related__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === 576 e sotto: mobile === */
@media (max-width: 576px){
  .slp-section{ padding: 36px 0; }

  .slp-hero--itin{
    height: clamp(480px, 85vw, 600px);
    padding-bottom: 28px;
  }

  .slp-hero--itin .slp-hero__content{
    padding: 24px 16px 0;
  }

  .slp-hero--itin .slp-hero__bottom{
    padding: 20px 16px 0;
  }

  .slp-hero--itin .slp-hero__title{
    font-size: clamp(28px, 9vw, 40px);
  }

  .slp-hero--itin .slp-hero__meta{
    font-size: 14px;
    line-height: 1.5;
  }

  .slp-hero--itin .slp-hero__cta{
    gap: 12px;
    margin-top: 16px;
  }

  .slp-hero--itin .slp-hero__cta-label{
    font-size: 13px;
  }

  .slp-hero--itin .slp-hero__cta-arrow svg{
    width: 28px;
  }

  .slp-programma{ padding: 48px 0 40px; }

  .slp-programma__title .slp-h2{
    font-size: clamp(28px, 8vw, 40px);
  }

  .slp-programma__content .slp-wysiwyg{
    font-size: 16px;
  }

  .slp-programma__cta{ margin-top: 32px; }

  .slp-programma__cta .slp-link{
    font-size: 12px;
    gap: 12px;
  }

  .slp-programma__cta .slp-link::after{
    width: 200px;
  }

  .slp-gallery__grid{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .slp-gallery__item,
  .slp-gallery__item.is-big,
  .slp-gallery__item.is-tall{
    grid-column: 1;
    grid-row: auto;
  }

  .slp-details--dark{ padding: 48px 0 40px; }

  .slp-details__heading{
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: 28px;
  }

  .slp-accordion--dark .slp-acc-btn{ padding: 20px 0; }
  .slp-accordion--dark .slp-acc-title{ font-size: 13px; letter-spacing: .16em; }

  .slp-form__header .slp-h2{
    font-size: clamp(28px, 7vw, 40px);
  }

  .slp-related__grid{
    grid-template-columns: 1fr;
  }

  .slp-related__title{
    font-size: clamp(28px, 7vw, 40px);
  }
}

/* === 390 e sotto: small mobile === */
@media (max-width: 390px){
  .slp-hero--itin{
    height: clamp(400px, 90vw, 520px);
  }

  .slp-section{ padding: 28px 0; }

  .slp-hero--itin .slp-hero__title{
    font-size: 24px;
  }

  .slp-hero--itin .slp-hero__breadcrumb{
    font-size: 11px;
  }

  .slp-hero--itin .slp-hero__kicker{
    font-size: 11px;
    gap: 6px;
  }

  .slp-hero--itin .slp-hero__kicker-icon{
    width: 18px;
    height: 18px;
  }

  .slp-hero--itin .slp-hero__meta{
    font-size: 13px;
  }

  .slp-hero--itin .slp-hero__cta-label{
    font-size: 12px;
  }

  .slp-programma__title .slp-h2{
    font-size: 26px;
  }

  .slp-details__heading{
    font-size: 28px;
  }
}


/* =========================================================
   INTRO
========================================================= */
.slp-intro__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.slp-intro__inner .slp-wysiwyg{
  align-items: center;
  max-width: 88ch;
}


/* =========================================================
   PROGRAMMA — centrato, mock-aligned
========================================================= */
.slp-programma{
  padding: 130px 0 120px;
  background: #fff;
}

.slp-programma__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  justify-items: center;
  text-align: center;
}

.slp-programma__title .slp-h2{
  font-family: var(--font-h2);
  font-weight: var(--font-weight-h2);
  font-size: clamp(52px, 4.2vw, 92px);
  line-height: 1.0;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}

.slp-programma__content{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slp-programma__content .slp-wysiwyg{
  max-width: 88ch;
  font-size: 18px;
  line-height: 1.5;
  opacity: 1;
}

.slp-programma__content .slp-wysiwyg p{
  margin: 0;
}

.slp-programma__content .slp-wysiwyg h3{
  font-family: "Inter", var(--font-body), sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.3;
  letter-spacing: .02em;
  margin: 32px 0 6px;
}

.slp-programma__content .slp-wysiwyg h3:first-child{
  margin-top: 0;
}

.slp-programma__cta{
  margin-top: 56px;
}

.slp-programma__cta .slp-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  padding-bottom: 12px;
}

.slp-programma__cta .slp-link::after{
  content:"";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 320px;
  height: 1px;
  background: rgba(0,0,0,.22);
}

.slp-programma__cta .slp-link:hover::after{
  background: rgba(0,0,0,.55);
}

.slp-programma__cta .slp-link span[aria-hidden="true"]{
  font-size: 22px;
  transform: translateY(-1px);
}


/* =========================================================
   GALLERY mosaic
========================================================= */
.slp-gallery__grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}

.slp-gallery__item{
  grid-column: span 4;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.slp-gallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slp-gallery__item.is-big{ grid-column: span 8; grid-row: span 2; }
.slp-gallery__item.is-tall{ grid-column: span 4; grid-row: span 2; }

@media (max-width: 960px){
  .slp-gallery__grid{ gap: 14px; }
  .slp-gallery__item{ grid-column: span 6; }
  .slp-gallery__item.is-big{ grid-column: span 12; grid-row: auto; }
  .slp-gallery__item.is-tall{ grid-column: span 6; grid-row: auto; }
}


/* =========================================================
   DETAILS accordion (default light)
========================================================= */
.slp-details__grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 960px){
  .slp-details__grid{ grid-template-columns: 1fr; }
}

.slp-accordion{ border-top: 1px solid rgba(0,0,0,.15); }
.slp-acc-item{ border-bottom: 1px solid rgba(0,0,0,.15); }

.slp-acc-btn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.slp-acc-title{ font-size: 18px; }
.slp-acc-icon{ font-size: 22px; line-height: 1; transform: translateY(-1px); }
.slp-acc-item.is-open .slp-acc-icon{ transform: translateY(-1px) rotate(45deg); }
.slp-acc-panel{ padding: 0 0 20px; }


/* =========================================================
   DETAILS — dark variant (mockup style)
========================================================= */
.slp-details--dark{
  background: #0b231d;
  color: #fff;
  padding: 110px 0 90px;
}

.slp-details__heading{
  text-align: center;
  margin: 0 0 70px;
  font-family: var(--font-h2);
  font-weight: var(--font-weight-h2);
  font-size: clamp(56px, 4.4vw, 96px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.slp-accordion--dark{
  border-top: 1px solid rgba(255,255,255,.22);
}

.slp-accordion--dark .slp-acc-item{
  border-bottom: 1px solid rgba(255,255,255,.22);
}

.slp-accordion--dark .slp-acc-btn{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.slp-accordion--dark .slp-acc-title{
  font-size: 15px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .95;
}

.slp-accordion--dark .slp-acc-icon{
  width: 18px;
  height: 18px;
  position: relative;
  opacity: .9;
  transition: transform .25s ease;
}

.slp-accordion--dark .slp-acc-icon::before,
.slp-accordion--dark .slp-acc-icon::after{
  content:"";
  position: absolute;
  top: 8px;
  width: 10px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
}

.slp-accordion--dark .slp-acc-icon::before{
  left: 0;
  transform: rotate(45deg);
}

.slp-accordion--dark .slp-acc-icon::after{
  right: 0;
  transform: rotate(-45deg);
}

.slp-accordion--dark .slp-acc-item.is-open .slp-acc-icon{
  transform: rotate(180deg);
}

.slp-accordion--dark .slp-acc-panel{
  padding: 0 0 28px;
}

.slp-accordion--dark .slp-acc-panel .slp-wysiwyg{
  max-width: 90ch;
  font-size: 16px;
  line-height: 1.5;
  opacity: 1;
  text-align: left;
}


/* =========================================================
   FORM (itinerary context) — centered
========================================================= */
.slp-form__header{
  text-align: center;
  margin-bottom: 48px;
}

.slp-form__header .slp-h2{
  font-family: var(--font-h2);
  font-weight: var(--font-weight-h2);
  font-size: clamp(36px, 3.2vw, 64px);
  line-height: 1.0;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}

.slp-form__content{
  max-width: 800px;
  margin: 0 auto;
}


/* =========================================================
   BANNER — now reuses section--cta-hero (see cta_hero.css)
========================================================= */


/* =========================================================
   RELATED
========================================================= */
.slp-related{
  overflow: hidden;
}

.slp-related__title{
  font-family: var(--font-h2);
  font-weight: var(--font-weight-h2);
  font-size: clamp(36px, 3.2vw, 64px);
  line-height: 1.0;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0;
}

.slp-related__grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
  margin-top: 40px;
}

@media (max-width: 960px){
  .slp-related__grid{ grid-template-columns: 1fr; }
}

.slp-card{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.slp-card__media{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.slp-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.slp-card:hover .slp-card__media img{
  transform: scale(1.04);
}

.slp-card__body{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0 0;
}

.slp-card__kicker{
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-testo-grigio);
}

.slp-card__title{
  margin: 0;
  font-family: var(--font-h3);
  font-weight: var(--font-weight-h3);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  text-transform: uppercase;
}
