/* =========================================================
   ARENA UI — BACKGROUND EFFECTS MODULE
   Estratto da arena-ui.css (particles, noise, glow)
   Mobile-first, nessuna modifica ai valori originali
========================================================= */

/* --------------------------
   SOFT BACKGROUND GRADIENT
   (usato come layer principale)
--------------------------- */
.bg-zl {
  background:
    radial-gradient(1200px 700px at 10% -10%,
      rgba(34, 211, 238, .14),
      transparent 60%
    ),
    var(--zl-bg);
}

/* --------------------------
   PARTICLES — MOBILE FIRST
   Mobile: disattivi per performance
--------------------------- */
#particles {
  display:none !important;
  width:0 !important;
  height:0 !important;
  position: static !important;
  opacity:0 !important;
}

/* --------------------------
   PARTICLES — DESKTOP ONLY
   Desktop: attivi fullscreen
--------------------------- */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  #particles {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    z-index: 0 !important;   /* invece di 0 */
    opacity: .85 !important; /* opzionale, se vuoi più visibile */
    pointer-events: none !important;
  }
}
/* --------------------------
   FILM NOISE (grain FX)
--------------------------- */
.film-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .06; /* mobile basso */
  mix-blend-mode: soft-light;

  /* SVG fractal noise inline */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.22'/></svg>");
}

/* --------------------------
   DESKTOP FX BOOST
--------------------------- */
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .film-noise { opacity: .12; }
  .mouse-spotlight { display: block; }
}

/* --------------------------
   MOUSE SPOTLIGHT
   (inizialmente off by default)
--------------------------- */
.mouse-spotlight {
  display: none;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine){
  .mouse-spotlight{
    display:block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* sopra particles, sotto UI */
    opacity: .95;

    background:
      radial-gradient(
        520px circle at var(--mx, 50%) var(--my, 35%),
        rgba(34, 211, 238, 0.18),
        rgba(124, 58, 237, 0.10) 35%,
        transparent 62%
      );

    mix-blend-mode: screen;
  }
}
/* =========================================
   ARENA UI — SECTION PATTERN (HOW / INFO)
========================================= */

.ar-section-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  z-index: 0;
}

.ar-section-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/bg-cyberpattern.webp");
  background-size: cover;
  background-position: center;
  filter: contrast(1.35) brightness(1.05);
}

/* =========================================================
   SEO PARALLAX BACKGROUND (section-scoped)
   MOBILE FIRST — ARENA UI SAFE
========================================================= */

/* ---------------------------------------------------------
   BASE (MOBILE)
--------------------------------------------------------- */

.seo-parallax-section {
  position: relative;
  overflow: hidden;

  min-height: 70vh;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* CONTENITORE PARALLAX (il JS lavora QUI) */
.seo-parallax-bg {
  position: absolute;
  inset: 0;

  height: 100%;
  top: 0;

  /* variabile mossa dal JS */
  --parallax-y: 0px;

  z-index: 1;
}

/* IMMAGINE (immune ai reset Arena UI) */
.seo-parallax-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("/static/media/home/adventure_arena_vr_background_sicily_catania_misterbianco_image_mithology.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;

  z-index: 0;
}

/* OVERLAY LEGGIBILITÀ (SEMPRE SOPRA L’IMMAGINE) */
.seo-parallax-bg::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.70),
    rgba(2, 6, 23, 0.90)
  );

  z-index: 1;
}

/* CONTENUTO TESTO SOPRA TUTTO */
.seo-parallax-section .aa-container {
  position: relative;
  z-index: 2;
}


/* ---------------------------------------------------------
   DESKTOP ENHANCEMENT
--------------------------------------------------------- */

@media (min-width: 768px) {

  .seo-parallax-section {
    min-height: auto;
    padding-top: 12rem;
    padding-bottom: 12rem;
  }

  .seo-parallax-bg {
    height: 240%;
    top: -80%;
  }

  .seo-parallax-bg::before {
    background-position: center top;
  }

}

/* =========================================================
   ARENA UI — BOOKING HERO BACKGROUND
   Mobile-first, no hover, no FX aggressivi
========================================================= */

.ar-booking-hero-bg {
  position: relative;
  overflow: hidden;

  /* immagine principale */
  background-image:
    linear-gradient(
      to bottom,
      rgba(2,6,23,.65),
      rgba(2,6,23,.92)
    ),
    url("/static/bg-adventure-arena-vr-scritta-brand.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================================
   ARENA UI — BG CYBERPUNK (SECTION / CARD)
   Single-class, no extra HTML
========================================================= */

.bg-cyberpunk{
  background-image:
    linear-gradient(
      to bottom,
      rgba(2,6,23,.75),
      rgba(2,6,23,.95)
    ),
    url("/static/bg-cyberpattern.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  backdrop-filter: none;
}


