/* ITALPARK — Sistema immersivo GENERICO riusabile (child theme, modulo italparkassets).
   Sfondo FISSO immersivo per schede prodotto "in vetrina". Scoped a body.itlp-imm (classe aggiunta da
   immersivo.js). Lo sfondo (immagine) e' impostato PER-PRODOTTO da immersivo.js via ITLP_IMM.bg.
   Struttura identica alle esperienze dedicate (sacro/leoni/balaustra): testata blur->verde allo scroll,
   logo bianco, box bianchi (incl. "Spesso acquistato con"), footer escluso. SOLO DESKTOP (>=1200). */

@media (min-width:1200px){
  #itlp-imm-bg{ position:fixed; inset:0; z-index:0; background:#141414 center center/cover no-repeat; }
  #itlp-imm-bg .itlp-imm-veil{ position:absolute; inset:0; pointer-events:none; background:
     linear-gradient(180deg, rgba(14,14,14,.5) 0%, rgba(14,14,14,.14) 16%, rgba(14,14,14,.12) 60%, rgba(14,14,14,.32) 100%); }

  body.itlp-imm #wrapper, body.itlp-imm #content-wrapper, body.itlp-imm #main,
  body.itlp-imm .columns-container, body.itlp-imm .center-column, body.itlp-imm .product-container,
  body.itlp-imm .breadcrumb__wrapper, body.itlp-imm #content, body.itlp-imm #notifications{ position:relative; z-index:1; }
  body.itlp-imm #wrapper, body.itlp-imm #content-wrapper, body.itlp-imm #main,
  body.itlp-imm .columns-container, body.itlp-imm .center-column, body.itlp-imm .breadcrumb__wrapper{ background:transparent !important; }

  /* testata immersiva: FISSA, trasparente + blur + bianco; VERDE solida allo scroll (.itlp-imm-scrolled) */
  body.itlp-imm header.header{ position:fixed !important; top:0 !important; left:0 !important; right:auto !important; width:100vw !important; z-index:60 !important;
     background:linear-gradient(180deg, rgba(18,28,16,.78) 0%, rgba(18,28,16,.42) 55%, rgba(18,28,16,0) 100%) !important; box-shadow:none !important; border:0 !important; transition:background .3s ease, box-shadow .3s ease; }
  body.itlp-imm header.header .header-top{ background:transparent !important; border-bottom:1px solid rgba(255,255,255,.16) !important; }
  body.itlp-imm header.header::before{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
     -webkit-backdrop-filter:blur(9px) saturate(1.04); backdrop-filter:blur(9px) saturate(1.04);
     -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 55%,rgba(0,0,0,.35) 80%,transparent 100%);
     mask-image:linear-gradient(180deg,#000 0%,#000 55%,rgba(0,0,0,.35) 80%,transparent 100%); }
  body.itlp-imm header.header > *{ position:relative; z-index:1; }
  body.itlp-imm header.header, body.itlp-imm header.header a, body.itlp-imm header.header .ps-mainmenu__tree-link,
  body.itlp-imm header.header .header-top__left, body.itlp-imm header.header .header-top__right,
  body.itlp-imm header.header .ps-shoppingcart a, body.itlp-imm header.header .header-block,
  body.itlp-imm header.header .ps-searchbar__magnifier, body.itlp-imm header.header .itlp-lang, body.itlp-imm header.header .itlp-cta{ color:#fff !important; }
  body.itlp-imm header.header .itlp-lang{ border-color:rgba(255,255,255,.4) !important; }
  body.itlp-imm header.header .header-bottom__logo img.logo{ filter:brightness(0) invert(1) !important; -webkit-filter:brightness(0) invert(1) !important; }
  body.itlp-imm header.header.itlp-imm-scrolled{ background:rgba(17,24,14,.70) !important; -webkit-backdrop-filter:blur(15px) saturate(1.3) !important; backdrop-filter:blur(15px) saturate(1.3) !important; border-bottom:1px solid rgba(201,171,110,.3) !important; box-shadow:0 10px 30px -10px rgba(0,0,0,.5) !important; }
  body.itlp-imm header.header.itlp-imm-scrolled::before{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
  body.itlp-imm header.header.itlp-imm-scrolled .header-top{ border-bottom-color:rgba(255,255,255,.18) !important; }

  body.itlp-imm #wrapper{ padding-top:150px !important; }
  body.itlp-imm .breadcrumb__wrapper{ padding-top:.4rem !important; }
  body.itlp-imm .breadcrumb, body.itlp-imm .breadcrumb *{ color:rgba(255,255,255,.92) !important; }

  /* contenuto su box BIANCHI pieni (inclusa la sezione "Spesso acquistato con" = .product__accessories) */
  body.itlp-imm .center-column > .product-container,
  body.itlp-imm .center-column > .product-comments-wrapper,
  body.itlp-imm .center-column > .product__accessories,
  body.itlp-imm .center-column > .ps-categoryproducts,
  body.itlp-imm .center-column > .ps-viewedproduct{ background:#ffffff !important; border-radius:10px; box-shadow:0 24px 66px -26px rgba(0,0,0,.7); padding:1.6rem !important; }
  body.itlp-imm .center-column > .product-container{ margin-top:2rem !important; }
  body.itlp-imm .center-column > .product-comments-wrapper,
  body.itlp-imm .center-column > .product__accessories,
  body.itlp-imm .center-column > .ps-categoryproducts,
  body.itlp-imm .center-column > .ps-viewedproduct{ margin-top:1.3rem !important; }

  /* footer + newsletter ESCLUSI */
  body.itlp-imm footer{ position:relative !important; z-index:1 !important; background:#f3efe6 !important; }
  body.itlp-imm .ps-emailsubscription, body.itlp-imm .footer__main, body.itlp-imm footer > *{ position:relative !important; z-index:1 !important; }
}

/* ===== MOBILE/TABLET (<1200): esperienza SPENTA -> pagina NORMALE ===== */
@media (max-width:1199px){
  body.itlp-imm #itlp-imm-bg{ display:none !important; }
}
