/* ============================================================
   Scheda attività (inc/dettaglio.php): stessa struttura di prima,
   blocchi rinfrescati (copertina, menu, titolo, orari, social,
   foto, servizi, eventi, contatti). Tutto sotto #bg_home.vp-scheda,
   così il resto del sito non cambia. La disposizione (colonne,
   larghezze) resta quella di style.css / style_1024.css.
   ============================================================ */

#bg_home.vp-scheda{
  --sch-viola:#9d6494;
  --sch-viola-scuro:#7d4a75;
  --sch-viola-tenue:#f6edf4;
  --sch-blu:#172644;
  --sch-testo:#2b2f3a;
  --sch-grigio:#6b7080;
  --sch-riga:#ebe6ea;
  --sch-ombra:0 18px 45px rgba(14,24,48,.10);
  --sch-raggio:14px;
}

/* ---------- copertina e logo ---------- */
#bg_home.vp-scheda #dettaglio_img_principale img{border-radius:var(--sch-raggio);display:block}

/* ---------- colonna principale ---------- */
#bg_home.vp-scheda .box_dettaglio{border-radius:var(--sch-raggio);color:var(--sch-testo)}

/* menu delle sezioni */
#bg_home.vp-scheda .menu_dettaglio{
  border-bottom:1px solid var(--sch-riga);
  border-radius:var(--sch-raggio) var(--sch-raggio) 0 0;
  display:flex;
  gap:4px;
  height:auto;
  overflow-x:auto;
  scrollbar-width:none;
}
#bg_home.vp-scheda .menu_dettaglio::-webkit-scrollbar{display:none}
#bg_home.vp-scheda .menu_dettaglio a{
  float:none;
  flex:0 0 auto;
  border-bottom:3px solid transparent;
  line-height:52px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--sch-grigio);
  transition:color .2s,border-color .2s;
}
#bg_home.vp-scheda .menu_dettaglio a:hover{color:var(--sch-blu);border-bottom:3px solid var(--sch-riga)}
#bg_home.vp-scheda .menu_dettaglio a.active{color:var(--sch-viola-scuro);border-bottom:3px solid var(--sch-viola)}

/* titolo, indirizzo, prezzo, preferiti */
#bg_home.vp-scheda .box_dettaglio h1{
  color:var(--sch-blu);
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.1;
  margin-top:26px;
  margin-bottom:6px;
}
#bg_home.vp-scheda .box_dettaglio h2{
  color:var(--sch-grigio);
  font-size:16px;
  padding-left:22px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239d6494' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.5-7-10a7 7 0 0 1 14 0c0 5.5-7 10-7 10z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3C/svg%3E") no-repeat left center;
}
#bg_home.vp-scheda #header_dettaglio_sx{margin-top:14px}
#bg_home.vp-scheda #header_dettaglio_sx h3{display:flex;flex-wrap:wrap;gap:8px;margin:0}
#bg_home.vp-scheda .vp-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 14px;
  border-radius:99px;
  background:var(--sch-viola-tenue);
  color:var(--sch-viola-scuro);
  font-size:14px;
  line-height:1.2;
}
#bg_home.vp-scheda .vp-chip strong{color:var(--sch-blu)}

#bg_home.vp-scheda #header_dettaglio_dx{padding:10px 0}
#bg_home.vp-scheda .preferiti a{
  text-decoration:none;
  border:1px solid var(--sch-riga);
  border-radius:99px;
  padding:7px 40px 7px 16px;
  background-position:right 14px center;
  background-size:18px;
  font-size:14px;
  font-weight:700;
  color:var(--sch-testo);
  transition:border-color .2s,color .2s;
}
#bg_home.vp-scheda .preferiti a:hover{border-color:var(--sch-viola);color:var(--sch-viola-scuro)}
#bg_home.vp-scheda .preferiti a.active{border-color:var(--sch-viola);background-color:var(--sch-viola-tenue)}

#bg_home.vp-scheda .box_dettaglio p{color:#4a4f5c;line-height:1.65}
#bg_home.vp-scheda #anchor_info > p{margin:22px 0 26px;font-size:16.5px}

/* come arrivare + mappa */
#bg_home.vp-scheda .vp-come-arrivare{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:6px 16px;
  margin-bottom:12px;
}
#bg_home.vp-scheda .vp-come-arrivare strong{font-size:19px;color:var(--sch-blu)}
#bg_home.vp-scheda .vp-come-arrivare a{color:var(--sch-viola-scuro);font-weight:700;font-size:14px}
#bg_home.vp-scheda .vp-come-arrivare a:hover{color:var(--sch-blu)}
#bg_home.vp-scheda .vp-mappa{border-radius:12px;overflow:hidden;border:1px solid var(--sch-riga);line-height:0}

/* ---------- orari e social: due riquadri uno sotto l'altro ---------- */
#bg_home.vp-scheda .dettaglio_orari{
  margin-top:28px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}
#bg_home.vp-scheda .dettaglio_orari_sx,
#bg_home.vp-scheda .dettaglio_orari_dx{
  float:none;
  width:100%;
  margin:0;
  padding:20px 24px;
  border:1px solid var(--sch-riga);
  border-radius:12px;
  background:#fbfafb;
}
#bg_home.vp-scheda .dettaglio_orari_sx > strong,
#bg_home.vp-scheda .dettaglio_orari_dx > strong{font-size:17px;color:var(--sch-blu)}
#bg_home.vp-scheda #orari{margin:6px 0 10px;color:var(--sch-grigio);font-size:14px}
#bg_home.vp-scheda .table_orari{border-collapse:collapse;font-size:14.5px;font-variant-numeric:tabular-nums}
#bg_home.vp-scheda .table_orari td{padding:6px 8px;border-bottom:1px solid var(--sch-riga);color:var(--sch-testo)}
#bg_home.vp-scheda .table_orari tr:last-child td{border-bottom:0}
#bg_home.vp-scheda .table_orari td:last-child{text-align:right;white-space:nowrap}
#bg_home.vp-scheda .table_orari td span{width:auto;display:inline}  /* style.css dà 140px agli span di .dettaglio_orari_sx */
#bg_home.vp-scheda .table_orari td span + span{margin-left:10px}
#bg_home.vp-scheda .table_orari tr.oggi td{background:var(--sch-viola-tenue);color:var(--sch-viola-scuro);font-weight:700}
#bg_home.vp-scheda .table_orari tr.oggi td:first-child{border-radius:8px 0 0 8px}
#bg_home.vp-scheda .table_orari tr.oggi td:last-child{border-radius:0 8px 8px 0}
#bg_home.vp-scheda .table_orari tr.chiuso td:last-child{color:#a0a4b0}

#bg_home.vp-scheda #box_anteprima_social a i{
  font-size:20px;
  width:44px;
  line-height:44px;
  border:1px solid var(--sch-riga);
  border-radius:50%;
  background:#fff;
  color:var(--sch-blu);
  transition:background .2s,color .2s,border-color .2s;
}
#bg_home.vp-scheda #box_anteprima_social a:hover i{background:var(--sch-viola);border-color:var(--sch-viola);color:#fff}

/* ---------- titoli delle sezioni ---------- */
#bg_home.vp-scheda .dettaglio_title{
  border-top:0;
  padding-top:0;
  margin-top:44px;
  font-size:22px;
  font-weight:700;
  color:var(--sch-blu);
  display:flex;
  align-items:center;
  gap:12px;
}
#bg_home.vp-scheda .dettaglio_title:after{content:"";flex:1;height:1px;background:var(--sch-riga)}
#bg_home.vp-scheda .dettaglio_title span b{color:var(--sch-viola)}

/* ---------- foto ---------- */
#bg_home.vp-scheda a.dettaglio_foto_img{border-radius:10px;overflow:hidden}
#bg_home.vp-scheda a.dettaglio_foto_img img{transition:transform .4s}
#bg_home.vp-scheda a.dettaglio_foto_img:hover img{transform:scale(1.05)}

/* ---------- servizi ---------- */
/* un gruppo per riga, ogni gruppo un riquadro */
#bg_home.vp-scheda .vp-servizi{display:flex;flex-direction:column;gap:14px}
#bg_home.vp-scheda .box_servizi{
  display:block;
  width:auto;
  margin:0;
  padding:16px 18px;
  border:1px solid var(--sch-riga);
  border-radius:12px;
  background:#fbfafb;
  break-inside:avoid;
}
#bg_home.vp-scheda .box_servizi_testa{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:1px solid var(--sch-riga);
}
#bg_home.vp-scheda .box_servizi_titolo{font-size:15px;color:var(--sch-blu)}
#bg_home.vp-scheda .box_servizi_conta{color:var(--sch-grigio);font-size:13px;font-variant-numeric:tabular-nums}
#bg_home.vp-scheda .vp-spunte{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:9px 14px;
}
#bg_home.vp-scheda .vp-spunte li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  line-height:1.3;
  color:var(--sch-testo);
}
#bg_home.vp-scheda .vp-spunte li i{
  flex:0 0 28px;
  width:28px;
  height:28px;
  line-height:28px;
  border-radius:8px;
  background:var(--sch-viola-tenue);
  color:var(--sch-viola-scuro);
  font-size:13px;
  text-align:center;
}
#bg_home.vp-scheda .vp-spunte li i.fab{font-size:16px}
#bg_home.vp-scheda .box_servizi.chiuso .vp-spunte li.extra{display:none}
#bg_home.vp-scheda .box_servizi_tutti{
  margin-top:12px;
  padding:0;
  border:0;
  background:none;
  font:inherit;
  font-size:13.5px;
  font-weight:700;
  color:var(--sch-viola-scuro);
  cursor:pointer;
}
#bg_home.vp-scheda .box_servizi_tutti:after{content:" \25BE"}
#bg_home.vp-scheda .box_servizi:not(.chiuso) .box_servizi_tutti:after{content:" \25B4"}
#bg_home.vp-scheda .box_servizi_tutti:hover{color:var(--sch-blu)}
#bg_home.vp-scheda .box_servizi_tutti:focus-visible{outline:2px solid var(--sch-viola);outline-offset:3px;border-radius:4px}

/* ---------- contatti ---------- */
#bg_home.vp-scheda .box_prenota{
  background:#fff;
  border:1px solid var(--sch-riga);
  border-radius:var(--sch-raggio);
  box-shadow:var(--sch-ombra);
  color:var(--sch-grigio);
}
#bg_home.vp-scheda .box_prenota_title{font-size:24px;font-weight:700;color:var(--sch-blu);margin-bottom:6px}
#bg_home.vp-scheda .vp-contatto{
  margin:0;
  padding:14px 0 14px 52px;
  border-bottom:1px solid var(--sch-riga);
  position:relative;
  font-size:15px;
  overflow-wrap:anywhere;
}
#bg_home.vp-scheda .vp-contatto:before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:38px;
  height:38px;
  margin-top:-19px;
  border-radius:50%;
  background:var(--sch-viola-tenue) no-repeat center / 18px;
}
#bg_home.vp-scheda .vp-tel:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d4a75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E")}
#bg_home.vp-scheda .vp-mail:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d4a75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E")}
#bg_home.vp-scheda .vp-web:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d4a75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E")}
#bg_home.vp-scheda .vp-contatto strong{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--sch-grigio);font-weight:700}
#bg_home.vp-scheda .vp-contatto a{color:var(--sch-blu);font-weight:700}
#bg_home.vp-scheda .vp-contatto a:hover{color:var(--sch-viola-scuro)}
#bg_home.vp-scheda .box_prenota .vp-contatto + p{margin-top:20px}

#bg_home.vp-scheda .button_prenota{
  background:var(--sch-viola);
  border-radius:10px;
  padding:13px 10px;
  font-size:16px;
  font-weight:700;
  transition:background .2s;
}
#bg_home.vp-scheda .button_prenota:hover{background:var(--sch-viola-scuro)}

/* pulsante "Contatti" fisso su mobile */
#bg_home.vp-scheda a#open_prenota{
  background:var(--sch-viola);
  border-radius:99px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.06em;
  box-shadow:0 12px 30px rgba(14,24,48,.25);
}

/* ---------- eventi dell'attività ---------- */
#bg_home.vp-scheda .vp-ev-attivita{margin-top:0}
/* style.css rende grigi e sottili gli h3 e i p della colonna: qui servono quelli della card evento */
#bg_home.vp-scheda .vp-ev-attivita .evento h3{margin:0 0 8px;font-size:1.2rem;font-weight:800;line-height:1.18;color:var(--sch-blu)}
#bg_home.vp-scheda .vp-ev-attivita .evento-testo{color:#667085;font-size:.93rem;line-height:1.55;padding:0}

@media (max-width:1023px){
  #bg_home.vp-scheda .box_dettaglio{border-radius:0}
  #bg_home.vp-scheda .box_prenota{border-radius:0;box-shadow:none;border-left:0;border-right:0}
}

@media (prefers-reduced-motion:reduce){
  #bg_home.vp-scheda *{transition:none !important}
}
