/* ============================================================
   LedWall Salerno — Santoro Creative Hub
   Style ispirato ad Apple: typography bold, sezioni pinned,
   dark/light alternate, animazioni scroll-driven.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-dark: #000000;
  --fg: #1d1d1f;
  --fg-dim: #6e6e73;
  --fg-inv: #f5f5f7;
  --accent-1: #ff3b3b;
  --accent-2: #ff7a18;
  --accent-3: #5e5cff;
  --accent-4: #00e5ff;
  --line: rgba(0, 0, 0, 0.08);
  --line-inv: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 56px;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ Typography ============ */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: inherit;
}

h2 {
  font-size: clamp(40px, 6vw, 84px);
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { font-size: clamp(16px, 1.15vw, 19px); color: var(--fg-dim); }

.gradient {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--fg);
  color: var(--fg-inv);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }

.btn--ghost {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn--ghost:hover { background: currentColor; color: var(--bg); }

.btn--block { width: 100%; }

/* ============ Nav ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.nav.is-dark {
  background: rgba(0, 0, 0, 0.55);
  border-bottom-color: var(--line-inv);
  color: var(--fg-inv);
}

.nav__inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.nav__logo em { font-style: normal; font-weight: 500; color: var(--fg-dim); }
.nav.is-dark .nav__logo em { color: rgba(255,255,255,0.6); }

.nav__logo-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  box-shadow: 0 0 14px rgba(255, 59, 59, 0.6);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav__links a {
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }

.nav__cta {
  background: var(--fg);
  color: var(--fg-inv);
  padding: 8px 18px;
  border-radius: 999px;
  opacity: 1 !important;
  transition: transform 0.2s var(--ease);
}
.nav.is-dark .nav__cta { background: var(--fg-inv); color: var(--fg); }
.nav__cta:hover { transform: scale(1.04); }

.nav__burger { display: none; width: 32px; height: 32px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav__burger span { width: 22px; height: 2px; background: currentColor; transition: transform 0.3s, opacity 0.3s; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px 28px;
    gap: 24px;
    font-size: 24px;
    font-weight: 500;
    align-items: flex-start;
    overflow-y: auto;
  }
  .nav.is-dark .nav__links.is-open {
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
  }
  .nav__links.is-open a { opacity: 1; }
  .nav__links.is-open .nav__cta {
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 18px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .nav__inner { padding: 0 20px; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: #000;
  color: var(--fg-inv);
  isolation: isolate;
}

.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 20%, #1a1a2e 0%, #000 60%);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2) contrast(1.05);
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

.hero__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,59,59,0.35), rgba(94,92,255,0.15) 40%, transparent 70%);
  filter: blur(40px);
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  to   { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero__content { max-width: 1000px; position: relative; z-index: 2; }

.hero .eyebrow { color: rgba(255,255,255,0.7); }

.hero__title {
  font-size: clamp(52px, 9vw, 128px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero__title .line { display: block; }

.hero__sub {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: clamp(17px, 1.4vw, 22px);
  color: rgba(255, 255, 255, 0.75);
}
.hero__sub strong { color: #fff; font-weight: 600; }

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta .btn--primary { background: #fff; color: #000; }
.hero__cta .btn--ghost { color: #fff; }
.hero__cta .btn--ghost:hover { background: #fff; color: #000; }

.hero__product {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 700px);
  opacity: 0.22;
  pointer-events: none;
}

@media (max-width: 720px) {
  .hero {
    padding: calc(var(--nav-h) + 40px) 20px 60px;
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 80px);
  }
  .hero__title {
    font-size: clamp(40px, 13vw, 72px);
    line-height: 0.98;
  }
  .hero__sub {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero__cta { width: 100%; flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__product {
    width: 95vw;
    bottom: -80px;
    opacity: 0.28;
  }
  .hero__glow {
    width: 120vw;
    height: 120vw;
    top: 50%;
  }
  .hero__scroll { display: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.hero__scroll span {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ LEDWALL PRODUCT (disegnato in CSS) ============ */

.ledwall {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.ledwall__frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #111 0%, #1a1a1a 50%, #0a0a0a 100%);
  border-radius: 18px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 40px 80px -20px rgba(0,0,0,0.6),
    0 20px 40px -10px rgba(94, 92, 255, 0.2);
}

.ledwall__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.ledwall__pixels {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,59,59,0.8), transparent 55%),
    radial-gradient(circle at 75% 60%, rgba(94,92,255,0.8), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(0,229,255,0.55), transparent 55%),
    linear-gradient(135deg, #0a0a1a, #200030);
  filter: saturate(1.2);
}

.ledwall__pixels::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(0,0,0,0.5) 1px, transparent 1.5px);
  background-size: 6px 6px;
  mix-blend-mode: multiply;
  opacity: 0.65;
}

.ledwall__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-shadow: 0 0 30px rgba(255,255,255,0.4);
}
.ledwall__content span { font-size: clamp(22px, 4vw, 56px); }
.ledwall__content small { font-size: clamp(10px, 1.2vw, 14px); font-weight: 400; opacity: 0.7; letter-spacing: 0.4em; margin-top: 8px; }

.ledwall__shadow {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -20px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(94,92,255,0.35), transparent 70%);
  filter: blur(20px);
}

/* ============ STAGE (sticky scroll) ============ */

.stage {
  position: relative;
  background: #000;
  color: var(--fg-inv);
  /* altezza = 4 step × 100vh */
  height: 400vh;
}

.stage__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: var(--nav-h) 6vw 0;
  overflow: hidden;
}

.stage__product {
  position: relative;
  will-change: transform;
  transform-origin: center center;
  transition: transform 0.6s var(--ease);
}

.stage__texts {
  position: relative;
  height: 70vh;
}
.stage__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.stage__text.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.stage__text h2 { color: #fff; }
.stage__text p { color: rgba(255,255,255,0.7); max-width: 520px; font-size: clamp(16px, 1.3vw, 20px); }
.stage__text .eyebrow { color: rgba(255,255,255,0.55); }

.ledwall--xl .ledwall__frame {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 60px 120px -30px rgba(0,0,0,0.9),
    0 40px 80px -20px rgba(94,92,255,0.3);
}

.stage__photos {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.stage__photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s var(--ease), transform 1.5s var(--ease);
  filter: saturate(1.15) contrast(1.05);
}
.stage__photos img.is-active {
  opacity: 1;
  transform: scale(1);
}
.stage__photos::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.ledwall__overlay {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 6%;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.25em;
  font-size: clamp(16px, 2.4vw, 32px);
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.ledwall__overlay span {
  position: absolute;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.ledwall__overlay span.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 900px) {
  /* Su mobile lo stage resta sticky ma in verticale:
     prodotto pinned in alto, testi in basso che cambiano in sequenza. */
  .stage { height: 380vh; }
  .stage__pin {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: calc(var(--nav-h) + 16px) 20px 20px;
    gap: 20px;
    align-items: start;
  }
  .stage__product {
    width: 88%;
    margin: 0 auto;
  }
  .stage__texts {
    height: 38vh;
    min-height: 260px;
  }
  .stage__text h2 {
    font-size: clamp(26px, 7vw, 40px);
    margin-bottom: 12px;
  }
  .stage__text p {
    font-size: 15px;
    line-height: 1.45;
  }
  .ledwall__overlay {
    font-size: clamp(14px, 3vw, 20px);
    padding-bottom: 5%;
  }
}

/* ============ Feature sections ============ */

.feature {
  padding: 120px 24px;
}
.feature--dark { background: #000; color: var(--fg-inv); }
.feature--dark p { color: rgba(255,255,255,0.7); }
.feature--dark .eyebrow { color: rgba(255,255,255,0.55); }
.feature--light { background: var(--bg); color: var(--fg); }

.feature__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature__inner.reverse { direction: rtl; }
.feature__inner.reverse > * { direction: ltr; }

.feature__copy h2 { margin-bottom: 24px; }
.feature__copy p { margin-bottom: 28px; max-width: 520px; }

.feature__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
}
.feature__list li { display: flex; align-items: center; gap: 12px; color: inherit; opacity: 0.85; }
.feature__list li span {
  color: var(--accent-1);
  font-size: 10px;
}

.feature__visual {
  position: relative;
  perspective: 1200px;
}

.card {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.8s var(--ease);
}
.card:hover { transform: rotateY(0) rotateX(0); }

.card--indoor {
  background: linear-gradient(135deg, #1a1a2e, #0f0f1f);
  box-shadow: 0 40px 80px -20px rgba(94,92,255,0.4);
}
.card--outdoor {
  background: linear-gradient(135deg, #fff3e0, #ffd6a5);
  box-shadow: 0 40px 80px -20px rgba(255,122,24,0.4);
}

.card__screen {
  width: 100%; height: 100%;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  text-align: left;
  background: #000;
}

.card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
  z-index: 0;
}
.card:hover .card__photo { transform: scale(1.05); }

.card--indoor .card__screen::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,20,0.85) 100%),
    radial-gradient(ellipse at 80% 0%, rgba(94,92,255,0.35), transparent 60%);
  z-index: 1;
}
.card--outdoor .card__screen::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(30,15,0,0.85) 100%),
    radial-gradient(ellipse at 80% 0%, rgba(255,122,24,0.3), transparent 60%);
  z-index: 1;
}

.card__content {
  position: relative;
  z-index: 2;
  padding: 28px;
}
.card__kpi {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  letter-spacing: -0.04em;
  display: block;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.card__content small {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.9;
  display: block;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .feature { padding: 70px 20px; }
  .feature__inner { grid-template-columns: 1fr; gap: 36px; }
  .feature__inner.reverse { direction: ltr; }
  .feature__copy h2 { font-size: clamp(34px, 9vw, 56px); margin-bottom: 18px; }
  .feature__copy p { font-size: 16px; margin-bottom: 20px; }
  .feature__list { font-size: 15px; }
  .card {
    transform: rotateY(-3deg) rotateX(2deg);
    max-width: 460px;
    margin: 0 auto;
  }
}

/* ============ BENTO ============ */

.bento {
  padding: 120px 24px;
  background: #f5f5f7;
}
.bento__head { max-width: var(--container); margin: 0 auto 60px; text-align: center; }
.bento__head h2 { max-width: 900px; margin: 0 auto; }

.bento__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bento__card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bento__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}
.bento__card h3 {
  font-size: clamp(36px, 3vw, 56px);
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bento__card p { font-size: 15px; }

.bento__card--a { grid-column: span 2; background: linear-gradient(135deg, #000, #1a1a1a); color: #fff; }
.bento__card--a h3 { background: linear-gradient(90deg, #fff, #aaa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento__card--a p { color: rgba(255,255,255,0.7); }

.bento__card--b { grid-column: span 2; background: linear-gradient(135deg, #fff, #eee); }
.bento__card--c { grid-column: span 2; }
.bento__card--d { grid-column: span 2; background: linear-gradient(135deg, #ff3b3b, #ff7a18); color: #fff; }
.bento__card--d h3 { background: linear-gradient(90deg, #fff, #fff); -webkit-background-clip: text; background-clip: text; color: #fff; }
.bento__card--d p { color: rgba(255,255,255,0.85); }

@media (max-width: 820px) {
  .bento { padding: 80px 20px; }
  .bento__head { margin-bottom: 40px; }
  .bento__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bento__card,
  .bento__card--a,
  .bento__card--b,
  .bento__card--c,
  .bento__card--d {
    grid-column: 1 !important;
    min-height: 180px;
    padding: 28px 24px;
  }
  .bento__card h3 { font-size: clamp(32px, 8vw, 44px); }
}

/* ============ SPLIT (noleggio / vendita) ============ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.split__col {
  padding: 120px 60px;
  background: #fff;
  color: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split__col--dark { background: #000; color: var(--fg-inv); }
.split__col--dark p { color: rgba(255,255,255,0.7); }
.split__col--dark .eyebrow { color: rgba(255,255,255,0.55); }
.split__col--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.split__col--dark .btn--ghost:hover { background: #fff; color: #000; }
.split__col h2 { margin-bottom: 20px; font-size: clamp(36px, 4.5vw, 64px); }
.split__col p { margin-bottom: 28px; max-width: 480px; }
.split__col .btn { align-self: flex-start; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split__col { padding: 70px 24px; }
  .split__col h2 { font-size: clamp(32px, 8vw, 48px); }
}

/* ============ PROJECTS ============ */

/* ============ USE CASES ============ */

.usecases {
  padding: 140px 24px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.usecases::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,92,255,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.usecases__head {
  max-width: 900px;
  margin: 0 auto 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.usecases__sub {
  max-width: 680px;
  margin: 24px auto 0;
  font-size: clamp(16px, 1.2vw, 19px);
}

.usecases__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.usecase {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.usecase::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-1), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.usecase:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15);
  border-color: transparent;
}
.usecase:hover::before { transform: scaleX(1); }

.usecase__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(94,92,255,0.12), rgba(255,59,59,0.12));
  color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.usecase__icon svg { width: 32px; height: 32px; }
.usecase:hover .usecase__icon {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
  color: #fff;
}

.usecase h3 {
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}

.usecase p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
  flex: 1;
}
.usecase p strong { color: var(--fg); font-weight: 600; }

.usecase__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.usecase__tags li {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-dim);
  background: rgba(0,0,0,0.04);
  padding: 6px 12px;
  border-radius: 999px;
}

.usecases__certs {
  max-width: var(--container);
  margin: 60px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding: 24px 32px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  z-index: 1;
}
.usecases__certs span {
  padding: 4px 12px;
  background: linear-gradient(135deg, #f5f5f7, #fff);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  color: var(--fg);
}
.usecases__certs-label {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: var(--fg-dim) !important;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.usecases__certs-warranty {
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1)) !important;
  color: #fff !important;
  border: none !important;
}

@media (max-width: 900px) {
  .usecases { padding: 70px 20px; }
  .usecases__head { margin-bottom: 40px; }
  .usecases__head h2 { font-size: clamp(36px, 9vw, 56px); }
  .usecases__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .usecase { padding: 28px 22px 24px; gap: 12px; }
  .usecase__icon { width: 54px; height: 54px; border-radius: 14px; }
  .usecase__icon svg { width: 26px; height: 26px; }
}
@media (max-width: 560px) {
  .usecases__grid { grid-template-columns: 1fr; }
  .usecase { padding: 28px 24px; }
  .usecases__certs {
    border-radius: 20px;
    padding: 18px 14px;
    gap: 6px 8px;
    font-size: 11px;
    margin-top: 40px;
  }
  .usecases__certs span {
    padding: 4px 9px;
    font-size: 11px;
  }
  .usecases__certs-label {
    width: 100%;
    text-align: center;
    margin-bottom: 4px;
    font-size: 12px;
  }
  .usecases__certs-warranty { width: 100%; text-align: center; margin-top: 6px; }
}

/* ============ GALLERY STRIP (carosello orizzontale stile Apple) ============ */

.gallery {
  background: #000;
  color: var(--fg-inv);
  padding: 120px 0 100px;
  overflow: hidden;
}

.gallery__head {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 clamp(20px, 6vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.gallery__head h2 { max-width: 720px; }
.gallery__head .eyebrow { color: rgba(255,255,255,0.55); }

.gallery__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.gallery__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
              border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.gallery__btn:hover:not([disabled]) {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: scale(1.05);
}
.gallery__btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}
.gallery__btn svg { width: 20px; height: 20px; }

.gallery__track {
  display: flex;
  gap: 20px;
  padding: 10px clamp(20px, 6vw, 80px) 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 4px;
}

.gallery__item {
  flex: 0 0 auto;
  width: min(75vw, 420px);
  height: 520px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  background: #111;
  transition: transform 0.5s var(--ease);
  cursor: grab;
  margin: 0;
}
.gallery__item:active { cursor: grabbing; }
.gallery__item--wide {
  width: min(85vw, 620px);
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(1.05);
}
.gallery__item:hover img {
  transform: scale(1.05);
  filter: saturate(1.2);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
}

.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  z-index: 2;
  color: #fff;
}
.gallery__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.2);
}
.gallery__item h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.gallery__item p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
  margin: 0;
}

.gallery__progress {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px);
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.gallery__progress {
  height: 3px;
  margin-top: 20px;
}
.gallery__progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-1), var(--accent-2));
  border-radius: 999px;
  transition: width 0.3s var(--ease), transform 0.3s var(--ease);
  transform-origin: left;
}

@media (max-width: 720px) {
  .gallery { padding: 70px 0 50px; }
  .gallery__head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 16px;
  }
  .gallery__head h2 { font-size: clamp(34px, 9vw, 52px); }
  .gallery__nav { display: none; }
  .gallery__track {
    padding: 10px 20px 24px;
    gap: 14px;
  }
  .gallery__item {
    width: 82vw;
    height: 440px;
    scroll-snap-align: center;
  }
  .gallery__item--wide { width: 92vw; }
  .gallery__item figcaption { padding: 20px; }
  .gallery__progress { padding: 0 20px; }
}

/* ============ CTA / form ============ */

.cta {
  background: #000;
  color: var(--fg-inv);
  padding: 120px 24px;
}
.cta__inner { max-width: 960px; margin: 0 auto; text-align: center; }
.cta h2 { margin-bottom: 48px; }
.cta p, .cta .eyebrow { color: rgba(255,255,255,0.6); }

.cta__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: span 2; }
.field label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}
.field textarea { resize: vertical; }
.field--privacy label {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.7);
  letter-spacing: 0; text-transform: none;
}
.field--privacy input { margin-top: 4px; accent-color: #ff3b3b; }

.cta__form .btn--primary {
  background: #fff;
  color: #000;
  padding: 18px 28px;
}
.cta__form .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(255,255,255,0.25); }

.cta__direct {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
}
.cta__direct a { color: rgba(255,255,255,0.8); }
.cta__direct a:hover { color: #fff; }

@media (max-width: 620px) {
  .cta { padding: 80px 20px; }
  .cta h2 { margin-bottom: 32px; font-size: clamp(32px, 9vw, 48px); }
  .cta__form { grid-template-columns: 1fr; gap: 16px; }
  .field--full { grid-column: span 1; }
  .field input, .field select, .field textarea { padding: 12px 14px; font-size: 15px; }
  .cta__direct {
    margin-top: 28px;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
  }
  .cta__direct a {
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    width: 100%;
    text-align: center;
  }
}

/* ============ FOOTER ============ */

.footer {
  background: #0a0a0a;
  color: rgba(255,255,255,0.65);
  padding: 60px 24px 24px;
  font-size: 14px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-inv);
}
.footer__logo { font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer__logo em { font-style: normal; font-weight: 400; opacity: 0.6; }
.footer__col h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__col a, .footer__col p { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 820px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .footer { padding: 48px 20px 80px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer__bottom { font-size: 11px; line-height: 1.5; padding-top: 20px; }
}

/* ============ REVEAL ANIMATIONS ============ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal--delay-1 { transition-delay: 0.1s; }
.reveal.reveal--delay-2 { transition-delay: 0.2s; }
.reveal.reveal--delay-3 { transition-delay: 0.3s; }

/* Hero linee — appaiono in sequenza */
.hero__title .line { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero__title .line.is-visible { opacity: 1; transform: translateY(0); }
.hero__title .line:nth-child(1).is-visible { transition-delay: 0.1s; }
.hero__title .line:nth-child(2).is-visible { transition-delay: 0.25s; }
.hero__title .line:nth-child(3).is-visible { transition-delay: 0.4s; }

/* ============ WhatsApp floating button ============ */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    padding 0.3s var(--ease), gap 0.3s var(--ease);
  overflow: hidden;
  white-space: nowrap;
  animation: wa-pulse 2.4s ease-in-out infinite;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.02);
  padding: 14px 22px 14px 18px;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.25);
  animation-play-state: paused;
}

.wa-float__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.wa-float__label {
  max-width: 0;
  opacity: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: max-width 0.4s var(--ease), opacity 0.3s var(--ease);
}

.wa-float:hover .wa-float__label {
  max-width: 260px;
  opacity: 1;
}

@keyframes wa-pulse {
  0%, 100% {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45),
      0 4px 10px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(37, 211, 102, 0.55);
  }
  50% {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45),
      0 4px 10px rgba(0, 0, 0, 0.2),
      0 0 0 14px rgba(37, 211, 102, 0);
  }
}

@media (max-width: 600px) {
  .wa-float {
    right: 14px;
    bottom: 14px;
    padding: 14px;
  }
  .wa-float__icon { width: 28px; height: 28px; }
  /* Su mobile il hover non esiste, quindi la label non si apre mai.
     Mostriamo solo l'icona in un pallino chiaro e grosso. */
  .wa-float__label { display: none; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .wa-float { animation: none; }
}
