/* FrameSec · immagini di sfondo opache, dietro al contenuto delle scene. */
.clip {
  --scene-image: none;
  --scene-opacity: .065;
  --scene-position: center;
}
.clip[data-tone='dark'] { --scene-opacity: .085; }
.clip .stage { isolation: isolate; }
.clip .stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--scene-image) var(--scene-position) / cover no-repeat;
  opacity: var(--scene-opacity);
  filter: saturate(.35);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 78%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.25), #000 78%);
}
/* Una fotografia dedicata per ogni scena, senza sfondo condiviso. */
#apertura { --scene-image: url('../assets/backgrounds/cyber-home.webp'); --scene-opacity: .06; }
#offensive { --scene-image: url('../assets/backgrounds/cyber-offensive.webp'); --scene-opacity: .12; }
#defensive { --scene-image: url('../assets/backgrounds/cyber-defensive.webp'); --scene-opacity: .07; }
#verdikt { --scene-image: url('../assets/backgrounds/cyber-verdikt.webp'); --scene-opacity: .12; }
#ia { --scene-image: url('../assets/backgrounds/cyber-ai.webp'); --scene-opacity: .065; }
#contatto { --scene-image: url('../assets/backgrounds/cyber-contact.webp'); --scene-opacity: .10; }
#p-contatti {
  background:
    linear-gradient(rgba(7,13,28,.91), rgba(7,13,28,.95)),
    url('../assets/backgrounds/cyber-contact.webp') 70% center / cover no-repeat,
    rgb(var(--bgc));
}
#phishing {
  --scene-image: url('../assets/backgrounds/phishing-mail.webp');
  --scene-opacity: .32;
  --scene-position: 66% center;
}
#academy {
  --scene-image: url('../assets/backgrounds/cyber-academy.webp');
  --scene-opacity: .19;
  --scene-position: 65% center;
}
#blog {
  --scene-image: url('../assets/backgrounds/cyber-blog.webp');
  --scene-opacity: .15;
  --scene-position: 65% center;
}
/* I quattro canali conservano colori, testi e animazioni esistenti. */
.vect li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --channel-opacity: .30;
}
.vect li::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: var(--channel-image) 80% center / cover no-repeat;
  opacity: var(--channel-opacity);
  filter: saturate(.45);
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18), #000 90%);
  mask-image: linear-gradient(90deg, rgba(0,0,0,.18), #000 90%);
  transition: opacity .2s;
}
.vect li:nth-child(1) { --channel-image: url('../assets/backgrounds/phishing-mail.webp'); }
.vect li:nth-child(2) { --channel-image: url('../assets/backgrounds/phishing-sms.webp'); }
.vect li:nth-child(3) { --channel-image: url('../assets/backgrounds/phishing-voice.webp'); }
.vect li:nth-child(4) { --channel-image: url('../assets/backgrounds/phishing-qr.webp'); }
.vect li.is-hot { --channel-opacity: .22; }
@media (max-width: 699px) {
  .clip .stage::before {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), #000 62%, rgba(0,0,0,.65));
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), #000 62%, rgba(0,0,0,.65));
  }
  #phishing { --scene-opacity: .24; --scene-position: 80% center; }
  #academy { --scene-opacity: .14; --scene-position: 72% center; }
  #blog { --scene-opacity: .11; --scene-position: 72% center; }
  .vect li { --channel-opacity: .24; }
}
