/* Italpark — HERO SLIDER homepage (video + 4 slide). Child theme. NIENTE PILLOLE. */
.itlp-hero{position:relative;width:100%;height:clamp(420px,60vh,660px);overflow:hidden;background:#13160f;}
.itlp-hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity 1s ease;z-index:1;}
.itlp-hero-slide.is-active{opacity:1;visibility:visible;z-index:2;}
.itlp-hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background-size:cover;background-position:center;}
video.itlp-hero-media{object-position:center;}
/* fallback immagine del video: nascosto su desktop, mostrato su mobile */
.itlp-hero-vfallback{display:none;z-index:0;}
.itlp-hero-veil{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(14,17,12,.66) 0%,rgba(14,17,12,.30) 46%,rgba(14,17,12,.04) 76%);}

.itlp-hero-caption{position:absolute;z-index:3;left:6%;top:50%;transform:translateY(-50%);max-width:46%;color:#fff;}
.itlp-hero-h{font-family:'Cormorant',Georgia,serif;font-size:clamp(2.1rem,4.2vw,3.7rem);font-weight:600;line-height:1.04;margin:0 0 .65rem;letter-spacing:.01em;text-shadow:0 2px 22px rgba(0,0,0,.45);}
.itlp-hero-d{font-family:'Poppins',sans-serif;font-size:clamp(.95rem,1.05vw,1.12rem);line-height:1.6;margin:0 0 1.35rem;max-width:36ch;font-weight:300;text-shadow:0 1px 12px rgba(0,0,0,.55);}
.itlp-hero-btn{display:inline-block;font-family:'Poppins',sans-serif;font-size:.82rem;font-weight:500;text-transform:uppercase;letter-spacing:.09em;color:#fff;text-decoration:none;padding:.65em 0;border-bottom:2px solid oklch(63% 0.09 78);transition:color .22s,border-color .22s,letter-spacing .22s;}
.itlp-hero-btn:hover{color:oklch(74% 0.1 78);border-color:#fff;letter-spacing:.12em;}

/* entrata caption */
.itlp-hero-slide.is-active .itlp-hero-h{animation:itlpHeroUp .85s .12s both;}
.itlp-hero-slide.is-active .itlp-hero-d{animation:itlpHeroUp .85s .28s both;}
.itlp-hero-slide.is-active .itlp-hero-btn{animation:itlpHeroUp .85s .44s both;}
@keyframes itlpHeroUp{from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);}}

/* dots */
.itlp-hero-dots{position:absolute;z-index:5;bottom:1.4rem;left:0;right:0;display:flex;justify-content:center;gap:.55rem;}
.itlp-hero-dot{width:36px;height:3px;border:0;background:rgba(255,255,255,.38);cursor:pointer;padding:0;transition:background .25s,transform .25s;}
.itlp-hero-dot.is-active{background:#fff;}
.itlp-hero-dot:hover{background:rgba(255,255,255,.7);}

/* frecce */
.itlp-hero-nav{position:absolute;z-index:5;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.12);border:0;color:#fff;font-size:1.7rem;line-height:1;width:46px;height:46px;cursor:pointer;transition:background .2s;backdrop-filter:blur(2px);}
.itlp-hero-nav:hover{background:rgba(255,255,255,.3);}
.itlp-hero-prev{left:1.1rem;}
.itlp-hero-next{right:1.1rem;}

@media(max-width:767px){
  .itlp-hero{height:clamp(340px,70vh,520px);}
  .itlp-hero-caption{max-width:88%;left:7%;}
  .itlp-hero-veil{background:linear-gradient(0deg,rgba(14,17,12,.72) 0%,rgba(14,17,12,.18) 70%);}
  .itlp-hero-nav{display:none;}
  /* su mobile: niente video (autoplay inaffidabile), si mostra l'immagine di fallback */
  video.itlp-hero-media{display:none;}
  .itlp-hero-vfallback{display:block;}
}

/* Italpark - soppressione slider demo PrestaShop lato CSS (anti-FOUC mobile). 2026-10-10 */
#ps_imageslider{display:none!important;}
