/* ====================================================== */
/*       CSS SEZIONI CUSTOM UNIFICATO pa37 pa38 pa39  
*/
/* ====================================================== */

/* ============================ */
/*     SEZIONE pa37 DETTAGLI    */
/* ============================ */
.pa37-container {
  background: var(--color-soft-bg);
  border-radius: 20px;
  padding: 2.5rem 1rem;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Layout principale */
.pa37-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: 2.5rem;
}
.pa37-col { min-width: 0; }

/* Colonna immagine (usa Swiper globale) */
.pa37-image .my-swiper-carousel {
  width: 100%;
  margin: 0 auto;
}

/* Colonna testo */
.pa37-intro { text-align: left; }
.pa37-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.3rem);
  font-weight: var(--fw-black);
  color: var(--color-primary);
  margin-bottom: .8rem;
}
.pa37-intro .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-dark);
}

/* Highlights */
.pa37-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.pa37-highlights .highlight-item {
  flex: 1 1 45%;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: .8rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pa37-highlights .highlight-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.pa37-highlights .icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .3rem;
}
.pa37-highlights p {
  margin: 0;
  font-size: .95rem;
  color: var(--color-dark);
  font-weight: 500;
}

/* Corpo descrizione */
.pa37-body { text-align: left; }
.pa37-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: .8rem;
  position: relative;
  padding-bottom: .4rem;
}
.pa37-body h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, #CDBD93, #7FB6AE, #137D8B);
  border-radius: 2px;
}
.pa37-body p {
  margin-top: .8rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-dark);
}
.pa37-body ul {
  margin: 1rem 0 1.5rem 1.2rem;
  list-style: disc;
}
.pa37-body li {
  margin-bottom: .5rem;
  font-size: 1.05rem;
  color: var(--color-dark);
}

/* Responsive pa37 */
@media (max-width:1024px){
  .pa37-grid { grid-template-columns: 1fr; text-align: center; }
  .pa37-intro { text-align: center; }
  .pa37-intro .title-divider { margin: 1rem auto; }
  .pa37-highlights { justify-content: center; }
  .pa37-highlights .highlight-item { flex: 1 1 40%; }
  .pa37-body h3::after { left: 50%; transform: translateX(-50%); }
}


/* ============================ */
/*     SEZIONE pa38 BOOKING     */
/* ============================ */
.custom-pa38 {
  padding: 4rem 2rem;
  background: var(--color-soft-bg);
  text-align: center;
}

.pa38-container {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

.pa38-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 1vw, 2.5rem);
  font-weight: var(--fw-black);
  color: var(--color-primary);
  margin-bottom: .8rem;
}

.pa38-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-dark);
  margin: 1.2rem auto 2rem;
  max-width: 600px;
}

/* Bottone (solo refinements qui) */
.custom-pa38 .btn-dark {
  font-size: 1.1rem;
  padding: 0.85em 2em;
  border-radius: 12px;
}


/* ============================ */
/*     SEZIONE pa39 MAPPA       */
/* ============================ */
.pa39-container {
  background: var(--color-soft-bg);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  margin: 0 auto;
}

.pa39-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.pa39-col { min-width: 0; }

/* Colonna testo */
.pa39-text { text-align: left; }
.pa39-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-dark);
  margin-top: 1rem;
  max-width: 520px;
}
.pa39-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.3rem);
  font-weight: var(--fw-black);
  color: var(--color-primary);
  margin-bottom: .8rem;
  letter-spacing: .5px;
}

/* Highlight items */
.pa39-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  margin-top: 1.5rem;
}
.pa39-highlights .highlight-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-dark);
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: .4rem .8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* Colonna mappa */
.pa39-map { 
  text-align: center; 
  position: relative;
}
.pa39-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}

/* Link icona */
.pa39-map-link {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.4rem auto 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: background-color .3s ease, transform .2s ease;
  text-decoration: none;
}
.pa39-map-link:hover {
  background: var(--color-hover);
  transform: translateY(-2px);
}
.pa39-map-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-white);
}

/* Responsive pa39 */
@media (max-width: 1024px) {
  .pa39-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pa39-text { 
    text-align: center; 
    margin-bottom: 1.3rem;
    max-width: 100%;
  }
  .pa39-highlights { justify-content: center; }
  .pa39-map-link {
    margin-top: 0.3rem !important;
    width: 50px;
    height: 50px;
  }
}