/* Polibop — landing "cinematografica". Palette: nero profondo + arancione neon. */
:root {
  --bg: #07060a;
  --bg-2: #0d0b12;
  --text: #f7f2ec;
  --muted: #a49c94;
  --faint: rgba(247, 242, 236, .08);
  --line: rgba(255, 255, 255, .09);
  --orange: #ff6b2c;
  --orange-2: #ff9a3d;
  --amber: #ffc93c;
  --glow: 0 0 24px rgba(255, 107, 44, .55), 0 0 64px rgba(255, 107, 44, .25);
  --glass: rgba(18, 15, 22, .55);
  --glass-2: rgba(28, 23, 33, .7);
  --radius: 26px;
  --display: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--orange); color: #140804; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* ---------- sfondo 3D ---------- */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(7, 6, 10, .65) 100%),
    radial-gradient(60% 50% at 50% 110%, rgba(255, 107, 44, .10), transparent 70%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } }

main, .topbar, footer { position: relative; z-index: 3; }

/* ---------- cursore magnetico ---------- */
.cursor-dot, .cursor-ring { display: none; }
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { display: block; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; box-shadow: var(--glow); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(255, 140, 70, .75);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, border-radius .35s;
  mix-blend-mode: screen;
}
.cursor-ring.is-hover { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(255, 107, 44, .14); border-color: var(--orange); }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
#trail { position: fixed; inset: 0; z-index: 99; pointer-events: none; }

/* ---------- barra in alto ---------- */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 50; /* sopra main (z-index 3), altrimenti main prende i clic su Accedi e sui link */
  width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  background: rgba(14, 12, 18, .55);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0; translate: 0 -20px;
  animation: drop 1s var(--ease) 1.6s forwards;
}
@keyframes drop { to { opacity: 1; translate: 0 0; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 18px rgba(255, 107, 44, .45); }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; transition: color .25s, background .25s; }
.nav a:hover { color: var(--text); background: var(--faint); }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- pulsanti ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 700 1rem var(--font); text-decoration: none; color: var(--text);
  transition: transform .4s var(--ease), box-shadow .4s, background .3s;
  will-change: transform;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #150803; box-shadow: 0 10px 40px rgba(255, 107, 44, .45), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { box-shadow: 0 14px 60px rgba(255, 107, 44, .7), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
/* Accedi (versione web) + Scarica, affiancati in alto a destra */
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 380px) { .topbar-actions .btn-small { padding: 0 13px; } }
.btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px;
  width: min(1180px, calc(100% - 32px)); margin: 0 auto;
  padding: 120px 0 80px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 107, 44, .1); border: 1px solid rgba(255, 107, 44, .35);
  color: var(--orange-2); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  opacity: 0; translate: 0 14px; animation: rise .9s var(--ease) .2s forwards;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: var(--glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
.hero-logo {
  width: 92px; height: 92px; border-radius: 26px; margin: 22px 0 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 70px rgba(255, 107, 44, .5);
  opacity: 0; transform: scale(.4) rotate(-25deg); filter: blur(14px);
  animation: logo-in 1.3s var(--ease) .35s forwards;
}
@media (max-width: 900px) { .hero-logo { margin-left: auto; margin-right: auto; } }
@keyframes logo-in { to { opacity: 1; transform: none; filter: none; } }
.title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .9;
  font-size: clamp(4.2rem, 15vw, 10.5rem); margin: 0;
  perspective: 900px;
}
.title .ch {
  display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(-80deg) scale(.9); filter: blur(18px);
  background: linear-gradient(180deg, #fff 10%, #ffd9bf 55%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ch-in 1.2s var(--ease) forwards;
  transform-origin: 50% 100%;
}
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }
.title .shine { position: relative; }
.tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--muted); max-width: 30ch; margin: 22px 0 34px;
  opacity: 0; translate: 0 18px; filter: blur(8px); animation: fade-up 1s var(--ease) 1.2s forwards;
}
.tagline strong { color: var(--text); font-weight: 700; }
@media (max-width: 900px) { .tagline { margin-left: auto; margin-right: auto; } }
@keyframes fade-up { to { opacity: 1; translate: 0 0; filter: none; } }
.cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; translate: 0 18px; animation: fade-up 1s var(--ease) 1.45s forwards; }
@media (max-width: 900px) { .cta { justify-content: center; } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; animation: rise 1s var(--ease) 2.2s forwards;
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--orange), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* telefono 3D con i video in tendenza */
.phone-wrap { perspective: 1400px; display: flex; justify-content: center; opacity: 0; animation: phone-in 1.6s var(--ease) .9s forwards; }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px) rotateX(30deg); filter: blur(20px); } to { opacity: 1; transform: none; filter: none; } }
.phone {
  position: relative; width: min(300px, 70vw); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a2430, #0b090e 60%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 120px rgba(0,0,0,.7), 0 0 90px rgba(255, 107, 44, .28);
  transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(6deg);
  transition: transform .2s linear;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.phone-notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 32%; height: 22px; border-radius: 99px; background: #000; z-index: 3; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 5s linear; }
.slide.on { opacity: 1; transform: scale(1); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 25%, transparent 55%, rgba(0,0,0,.75)); }
.slide-fallback { width: 100%; height: 100%; background: radial-gradient(circle at 30% 20%, #ff6b2c, #3a1406 55%, #0b0508); }
.phone-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.phone-tabs { position: absolute; top: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 14px; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.65); }
.phone-tabs b { color: #fff; border-bottom: 2px solid var(--orange); padding-bottom: 3px; }
.phone-side { position: absolute; right: 10px; bottom: 90px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.phone-side span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; backdrop-filter: blur(6px); }
.phone-side svg { width: 17px; height: 17px; }
.phone-side .hot { background: rgba(255, 107, 44, .9); box-shadow: var(--glow); animation: beat 1.2s infinite; }
@keyframes beat { 30% { transform: scale(1.18); } 60% { transform: scale(1); } }
.phone-meta { position: absolute; left: 14px; right: 56px; bottom: 26px; font-size: .78rem; color: #fff; }
.phone-meta b { display: block; font-size: .86rem; }
.phone-bar { position: absolute; left: 14px; right: 14px; bottom: 12px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.phone-bar i { display: block; height: 100%; width: 0; background: var(--orange); }
.phone-bar i.run { animation: bar 4.2s linear forwards; }
@keyframes bar { to { width: 100%; } }

/* ---------- sezioni ---------- */
.section { position: relative; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 130px 0; }
.kicker { color: var(--orange-2); font-weight: 800; font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; }
.h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 14px 0 18px; }
.h2 em { font-style: normal; background: linear-gradient(90deg, var(--orange), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; margin: 0; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* testo che si compone parola per parola mentre scorri */
.split .w { display: inline-block; opacity: .12; transform: translateY(.25em); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.split.in .w { opacity: 1; transform: none; filter: none; }

/* ---------- card di vetro con tilt ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; perspective: 1600px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.glass {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(40, 32, 46, .55), rgba(12, 10, 16, .6));
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.07);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.glass::before {
  /* luce che segue il cursore */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 140, 70, .22), transparent 45%);
}
.glass::after {
  /* bordo al neon che si accende vicino al cursore */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 140, 70, .95), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.glass.hot { box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 107, 44, .18), inset 0 1px 0 rgba(255,255,255,.1); transition: transform .12s linear, box-shadow .5s; }
.glass.hot::before, .glass.hot::after { opacity: 1; }

.feature { padding: 34px 30px 32px; min-height: 280px; }
.feature .ico {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(145deg, rgba(255,107,44,.25), rgba(255,107,44,.05)); border: 1px solid rgba(255,107,44,.35);
  transform: translateZ(40px); box-shadow: 0 0 30px rgba(255, 107, 44, .2);
}
.feature .ico svg { width: 28px; height: 28px; stroke: var(--orange-2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature .ico svg .fill { fill: var(--orange-2); stroke: none; }
.feature h3 { font-family: var(--display); font-size: 1.55rem; letter-spacing: -.02em; margin: 0 0 10px; transform: translateZ(30px); }
.feature p { color: var(--muted); margin: 0; transform: translateZ(18px); }
.feature .num { position: absolute; right: 22px; top: 18px; font-family: var(--display); font-weight: 800; font-size: 4.4rem; line-height: 1; color: rgba(255,255,255,.035); }

/* comparsa "cinematografica": dal fondo, ruotata e sfocata (bokeh) */
.emerge { opacity: 0; transform: translate3d(0, 120px, -380px) rotateX(38deg) rotateY(var(--tw, 0deg)) scale(.85); filter: blur(16px); }
.emerge.in { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); filter: none; transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- contatori ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; perspective: 1400px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 34px 26px; text-align: left; container-type: inline-size; }
.stat-value { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(1.7rem, 17cqi, 4rem); white-space: nowrap; background: linear-gradient(180deg, #fff, #ffbf94); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateZ(40px); font-variant-numeric: tabular-nums; }
.stat-label { display: block; color: var(--muted); margin-top: 12px; font-weight: 600; transform: translateZ(20px); }
.stat .ring { position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(255,107,44,.25); box-shadow: 0 0 40px rgba(255,107,44,.15) inset; }
.live-now[hidden] { display: none; }
.live-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--muted); font-weight: 600; }
.live-now .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 14px #ff3b30; animation: pulse 1.2s infinite; }

/* ---------- tendenze: nastri infiniti ---------- */
.marquee { position: relative; overflow: hidden; padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 10px; }
.track { display: flex; gap: 16px; width: max-content; animation: slide var(--dur, 40s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.creator {
  display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 12px; border-radius: 999px; text-decoration: none;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); white-space: nowrap;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.creator:hover { border-color: rgba(255, 107, 44, .6); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(255, 107, 44, .25); }
.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--orange), #5b2108); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: #fff; box-shadow: 0 0 0 2px rgba(255,107,44,.6); flex: none; overflow: hidden; }
.creator b { display: block; font-size: 1rem; }
.creator small { color: var(--muted); }
.badge { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: var(--orange); color: #150803; font-size: .6rem; font-weight: 900; vertical-align: 1px; }
.tag {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.2px rgba(255, 140, 70, .55); padding: 0 10px; transition: color .3s, -webkit-text-stroke-color .3s;
}
.tag:hover { color: var(--orange); -webkit-text-stroke-color: var(--orange); text-shadow: var(--glow); }
.tag small { font-family: var(--font); font-size: .9rem; -webkit-text-stroke: 0; color: var(--muted); margin-left: 8px; font-weight: 600; letter-spacing: 0; }

/* bolle fluttuanti dei video in tendenza */
.floaters { position: relative; height: 420px; margin-top: 50px; }
@media (max-width: 700px) { .floaters { height: 360px; } }
.floater {
  position: absolute; width: 120px; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; text-decoration: none;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 40px rgba(255,107,44,.15);
  animation: bob var(--t, 8s) ease-in-out var(--dl, 0s) infinite alternate;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.floater img { width: 100%; height: 100%; object-fit: cover; }
.floater span { position: absolute; left: 8px; bottom: 8px; right: 8px; font-size: .7rem; font-weight: 700; color: #fff; text-shadow: 0 1px 6px #000; }
.floater:hover { z-index: 5; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 60px rgba(255,107,44,.45); }
@keyframes bob { from { transform: translate3d(0, -14px, 0) rotate(var(--r1, -4deg)); } to { transform: translate3d(0, 16px, 0) rotate(var(--r2, 5deg)); } }

/* ---------- download ---------- */
.download { padding: 70px 40px; text-align: center; margin-top: 30px; }
.download .h2 { margin-top: 0; }
.download .cta { opacity: 1; translate: none; animation: none; justify-content: center; margin-top: 34px; }
.download-meta { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.download .orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%; background: radial-gradient(circle, rgba(255,107,44,.28), transparent 60%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }

/* ---------- piè di pagina ---------- */
footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 50px 0 60px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; color: var(--muted); font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--text); }
.legal-note { width: 100%; font-size: .8rem; opacity: .7; margin: 0; }

/* barra di avanzamento della pagina */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 101; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--amber)); box-shadow: var(--glow); }

/* meno animazioni se il telefono lo chiede */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .emerge, .split .w { opacity: 1; transform: none; filter: none; }
  .track { animation: none; }
}
