/* ==========================================================
   LOUD VISION DIGITAL — HOME "SHOWCASE" FUTURISTICA
   Solo impatto visivo: scroll animato, profondita' 3D, reel-ready.
   ========================================================== */

:root{
  --lv-bg: #030405;
  --lv-bg-2: #030405;
  --lv-panel: #0f1c2e;
  --lv-line: rgba(255,255,255,.08);
  --lv-line-strong: rgba(255,255,255,.16);
  --lv-text: #f7f8fa;
  --lv-soft: rgba(247,248,250,.62);
  --lv-muted: rgba(247,248,250,.4);
  --lv-cyan: #49c6ff;
  --lv-violet: #8a7bff;
}

html, body{
  margin: 0;
  padding: 0;
  background: var(--lv-bg);
}

.fx-page{
  background: var(--lv-bg);
  color: var(--lv-text);
  overflow-x: clip;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.fx-page * { box-sizing: border-box; }

.fx-page :where(a) { color: inherit; }

/* ---------- ambient background: grid + glow that runs the whole page ---------- */
.fx-ambient{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(73,198,255,.07), transparent 60%),
    radial-gradient(50% 40% at 85% 15%, rgba(138,123,255,.06), transparent 60%),
    radial-gradient(48% 38% at 78% 68%, rgba(233,238,245,.045), transparent 65%),
    radial-gradient(55% 45% at 12% 92%, rgba(90,150,255,.055), transparent 65%),
    var(--lv-bg);
}

.fx-grid{
  position: absolute;
  inset: -10% -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg) scale(1.6);
  transform-origin: top center;
  opacity: .35;
  mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 20%, black 60%, transparent 95%);
}

.fx-noise{
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- shared section scaffolding ---------- */
.fx-section{
  position: relative;
  z-index: 1;
  padding: 140px 6%;
}

.fx-container{
  max-width: 1180px;
  margin: 0 auto;
}

.fx-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--lv-line-strong);
  background: rgba(255,255,255,.04);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lv-soft);
}

.fx-kicker::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lv-cyan);
  box-shadow: 0 0 10px 2px rgba(73,198,255,.7);
}

/* ==============================================================
   HERO
   ============================================================== */

.fx-hero{
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 6% 100px;
  overflow: hidden;
  background: #000;
}

.fx-hero-logo{
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: auto;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 0 26px rgba(255,176,32,.28));
  transform-origin: center center;
  will-change: transform;
}

.fx-particle-canvas{
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.fx-hero-copy{
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8%;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.fx-hero-intro{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8%;
  opacity: 1;
  pointer-events: none;
  will-change: opacity;
  gap: 30px;
}

.fx-hero-intro .fx-hero-copy-eyebrow{
  margin-bottom: 0;
}

.fx-hero-intro h1{
  font-size: clamp(2.6rem, 7.8vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -.012em;
  line-height: 1.14;
  margin: 0;
  color: var(--lv-text);
  max-width: 1000px;
  text-shadow: 0 6px 40px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.4);
}

.fx-hero-intro p{
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--lv-soft);
  max-width: 560px;
  margin: 0;
}

.fx-hero-copy-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lv-cyan);
}

.fx-hero-copy-eyebrow span{
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lv-cyan));
}

.fx-hero-copy h2{
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.03;
  margin: 0 0 20px;
  color: var(--lv-text);
  max-width: 820px;
}

.fx-hero-copy p{
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--lv-soft);
  max-width: 520px;
  margin: 0;
}

.fx-hero-copy-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.fx-hero-copy--cta .fx-btn{
  pointer-events: auto;
}

.fx-iris-canvas{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.fx-hero-bgvideo{
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fx-hero-dim{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.6) 35%, rgba(0,0,0,.62) 65%, rgba(0,0,0,.85) 100%);
}

.fx-hero-stage{
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.fx-hero-stage a{
  pointer-events: auto;
}

.fx-hero-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lv-soft);
  opacity: 0;
  transform: translateY(14px);
}

.fx-hero-eyebrow span{
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lv-cyan));
}

.fx-hero-title{
  margin: 0;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: .96;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--lv-text);
}

.fx-hero-title .fx-line{
  display: block;
  overflow: hidden;
}

.fx-hero-title .fx-line span{
  display: inline-block;
  transform: translateY(115%);
  will-change: transform;
}

.fx-hero-title .fx-line:nth-child(2) span{
  background: linear-gradient(90deg, var(--lv-cyan), var(--lv-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-hero-sub{
  max-width: 560px;
  margin: 34px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--lv-soft);
  opacity: 0;
  transform: translateY(14px);
}

.fx-hero-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
  opacity: 0;
  transform: translateY(14px);
}

.fx-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -.01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.fx-btn--solid{
  background: var(--lv-text);
  color: #0a0f16;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}

.fx-btn--solid:hover{
  transform: translateY(-2px);
  background: #eef2f8;
}

.fx-btn--ghost{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--lv-line-strong);
  color: var(--lv-text);
}

.fx-btn--ghost:hover{
  background: rgba(255,255,255,.09);
  transform: translateY(-2px);
}

.fx-btn--whatsapp{
  background: #25D366;
  color: #08331d;
  box-shadow: 0 16px 34px rgba(37,211,102,.35);
}

.fx-btn--whatsapp:hover{
  transform: translateY(-2px);
  background: #2fe075;
}

.fx-scrollcue{
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lv-muted);
  z-index: 3;
}

.fx-scrollcue-line{
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--lv-soft), transparent);
  animation: fxScrollLine 1.8s ease-in-out infinite;
}

@keyframes fxScrollLine{
  0%{ transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%{ transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ==============================================================
   CAPABILITIES — 3D tilting cards on scroll
   ============================================================== */

.fx-cap{
  position: relative;
}

.fx-cap-head{
  max-width: 640px;
  margin-bottom: 56px;
}

.fx-cap-head h2{
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.fx-cap-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  perspective: 1600px;
}

.fx-cap-card{
  position: relative;
  padding: 30px 24px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--lv-line);
  transform-style: preserve-3d;
  transform: rotateX(24deg) translateY(60px) scale(.92);
  opacity: 0;
  will-change: transform, opacity;
}

.fx-cap-card__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--lv-line-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--lv-soft);
}

.fx-cap-card h3{
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.fx-cap-card p{
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--lv-soft);
}

/* ==============================================================
   GALLERY — stacked 3D showcase, pinned while scrolling
   ============================================================== */

.fx-gallery{
  position: relative;
}

.fx-gallery-head{
  max-width: 640px;
  margin: 0 auto 10px;
  text-align: center;
}

.fx-gallery-head h2{
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.fx-gallery-stage{
  position: relative;
  height: 480px;
  margin-top: 70px;
  perspective: 1800px;
  overflow: hidden;
}

.fx-gallery-card{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 78vw);
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--lv-line-strong);
  box-shadow: 0 40px 80px rgba(0,0,0,.55);
  background-size: cover;
  background-position: top center;
  will-change: transform, opacity;
  display: block;
  cursor: pointer;
  transition: box-shadow .3s ease, filter .3s ease;
}

.fx-gallery-card:hover{
  box-shadow: 0 48px 100px rgba(0,0,0,.65);
  filter: brightness(1.08);
}

.fx-gallery-card:hover .fx-gallery-card__label{
  background: rgba(73,198,255,.85);
  color: #05090f;
}

.fx-gallery-card__label{
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5,9,15,.72);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--lv-text);
}

/* ==============================================================
   MANIFESTO / STATEMENT — big kinetic line reveal
   ============================================================== */

.fx-manifesto{
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fx-manifesto-bgvideo{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fx-manifesto-dim{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,4,5,.78) 0%, rgba(3,4,5,.5) 45%, rgba(3,4,5,.82) 100%);
}

.fx-manifesto .fx-container{
  position: relative;
  z-index: 2;
}

.fx-manifesto p{
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--lv-muted);
}

.fx-manifesto p span{
  color: var(--lv-text);
  transition: color .3s ease;
}

/* ==============================================================
   CLOSING CTA
   ============================================================== */

.fx-cta{
  text-align: center;
}

.fx-cta h2{
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.fx-cta-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

/* ==============================================================
   RESPONSIVE
   ============================================================== */

@media (max-width: 900px){
  .fx-section{ padding: 96px 6%; }
  .fx-cap-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fx-gallery-stage{ height: 340px; margin-top: 44px; }
  .fx-hero{ padding: 120px 6% 80px; }
}

@media (max-width: 700px){
  .fx-gallery-card{ width: 88vw; }
  .fx-gallery-stage{ height: 300px; margin-top: 36px; }
  .fx-gallery-head{ padding: 0 4%; }
}

@media (max-width: 560px){
  .fx-cap-grid{ grid-template-columns: 1fr; }
  .fx-hero-actions{ flex-direction: column; width: 100%; }
  .fx-btn{ width: 100%; justify-content: center; }
  .fx-gallery-card{ width: 92vw; }
  .fx-gallery-card__label{ font-size: 11px; padding: 5px 10px; }
  .fx-manifesto p{ font-size: clamp(1.25rem, 5.5vw, 1.7rem); }
  .fx-cta h2{ font-size: clamp(2rem, 9vw, 3rem); }
}

/* ---------- whatsapp floating bubble (stile condiviso col resto del sito) ---------- */
.whatsapp-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-float:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
}

.whatsapp-float svg{
  width: 30px;
  height: 30px;
}

@media (max-width: 768px){
  .whatsapp-float{
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}

/* ---------- footer (riusa footer.html/footer.css del sito) ---------- */
.footer-brand p,
.footer-links a,
.footer-contact p,
.footer-bottom p{
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* qui il footer condiviso avrebbe uno sfondo nero piatto (var(--lv-bg)):
   su questa pagina gli diamo la stessa profondita' cromatica del resto
   della sezione Progetti, cosi' il nero non resta troppo "scoperto". */
.fx-page .site-footer{
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(233,238,245,.05), transparent 60%),
    radial-gradient(55% 55% at 88% 100%, rgba(73,140,255,.07), transparent 65%),
    radial-gradient(45% 45% at 6% 100%, rgba(138,123,255,.05), transparent 65%),
    var(--lv-bg) !important;
}

@media (prefers-reduced-motion: reduce){
  .fx-hero-stage,
  .fx-cap-card,
  .fx-gallery-card,
  .fx-hero-title .fx-line span{
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
}
