/* ============================================================
   PLZ INNOVATIVE — Design system
   Dark · Premium · Cinematografico
   ============================================================ */

:root {
  /* Palette */
  --bg: #05060a;
  --bg-alt: #090b12;
  --surface: #0d1019;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f4f8;
  --text-dim: #9aa3b2;
  --violet: #7c5cff;
  --cyan: #33e0ff;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));

  /* Tipografia */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Spazi */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-pad: clamp(4.5rem, 10vw, 9rem);

  /* Nav */
  --nav-h: 84px;
  --nav-h-small: 62px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--violet); color: #fff; }

/* ---------- Sfondo ambientale ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  pointer-events: none;
}
.ambient__orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.22;
}
.ambient__orb--violet {
  width: 55vw; height: 55vw; background: var(--violet);
  top: -20vw; right: -15vw;
}
.ambient__orb--cyan {
  width: 45vw; height: 45vw; background: var(--cyan);
  bottom: -25vw; left: -15vw; opacity: 0.12;
}
.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utilità ---------- */
.container {
  max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter);
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.dot { color: var(--cyan); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 0.8rem 1.6rem; border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(124, 92, 255, 0.55), 0 0 30px rgba(51, 224, 255, 0.25);
}
.btn--ghost {
  border: 1px solid var(--line); color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 30px rgba(124, 92, 255, 0.25);
}
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.is-scrolled {
  background: rgba(5, 6, 10, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.nav.is-scrolled .nav__inner { height: var(--nav-h-small); }
.nav__logo {
  height: 44px; width: auto;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav.is-scrolled .nav__logo { height: 34px; }

.nav__menu { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 500;
  color: var(--text-dim); position: relative;
  transition: color 0.3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.9rem; }

.nav__toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 2px; background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: pointer;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;   /* aumentato da 900px */
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}

.hero__line {
  display: block;
}

.hero__line:first-child {
  white-space: nowrap;   /* "Tecnologia intelligente" rimane sempre sulla stessa riga */
}

.hero__line--accent {
  white-space: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2.4rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__hint {
  margin-top: 2.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(154, 163, 178, 0.55);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@keyframes scrollPulse {
  0%,100% {
    opacity: .3;
    transform: scaleY(.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}
/* ============================================================
   SEZIONI
   ============================================================ */
.section { padding-block: var(--section-pad); position: relative; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.04) 30%, rgba(51, 224, 255, 0.03) 70%, transparent);
}
.section__head { max-width: 680px; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section__sub { color: var(--text-dim); font-size: 1.05rem; }

/* ============================================================
   CARDS SERVIZI (glow hover)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 1.9rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
}
.card::before {
  /* bagliore che segue il cursore */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.16), rgba(51, 224, 255, 0.06) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 92, 255, 0.18);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(124, 92, 255, 0.12);
  color: var(--cyan);
  margin-bottom: 1.4rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s;
}
.card:hover .card__icon {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(124, 92, 255, 0.22);
}
.card__title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.7rem;
}
.card__text { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.4rem; }
.card__link {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  color: var(--cyan); display: inline-flex; align-items: center; gap: 0.4rem;
}
.card__link i {
  font-style: normal;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__link i { transform: translateX(5px); }

/* ============================================================
   CHI SIAMO
   ============================================================ */
.about {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about__lead {
  font-size: 1.15rem; color: var(--text);
  margin-bottom: 1.2rem;
}
.about__body { color: var(--text-dim); margin-bottom: 2rem; }

.about__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.8rem 1.5rem;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.stat:hover {
  border-color: rgba(51, 224, 255, 0.4);
  box-shadow: 0 0 30px rgba(51, 224, 255, 0.12);
}
.stat__num, .stat__plus {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  display: block; margin-top: 0.4rem;
  font-size: 0.88rem; color: var(--text-dim);
}

.values {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: clamp(3rem, 7vw, 5.5rem);
}
.value {
  border-top: 1px solid var(--line); padding-top: 1.6rem;
}
.value__num {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--cyan); letter-spacing: 0.1em;
}
.value h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  margin: 0.6rem 0 0.5rem;
}
.value p { color: var(--text-dim); font-size: 0.93rem; }

/* ============================================================
   LAVORA CON NOI
   ============================================================ */
.jobs { display: grid; gap: 1rem; }
.job {
  --mx: 50%; --my: 50%;
  position: relative;
  display: grid; grid-template-columns: 240px 1fr auto;
  align-items: center; gap: 2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.8rem 2.2rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
}
.job::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(51, 224, 255, 0.1), transparent 65%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.job:hover {
  transform: translateX(8px);
  border-color: rgba(51, 224, 255, 0.4);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.45), 0 0 35px rgba(51, 224, 255, 0.12);
}
.job:hover::before { opacity: 1; }
.job__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.job__meta { font-size: 0.83rem; color: var(--cyan); margin-top: 0.25rem; }
.job__desc { color: var(--text-dim); font-size: 0.95rem; }
.job__arrow {
  font-size: 1.5rem; color: var(--text-dim);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s;
}
.job:hover .job__arrow { transform: translateX(6px); color: var(--cyan); }
.job--open { border-style: dashed; }

/* ============================================================
   CTA FINALE
   ============================================================ */
.section--cta { padding-block: clamp(5rem, 12vw, 10rem); }
.cta {
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.12), transparent 65%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.cta__sub { color: var(--text-dim); margin-bottom: 2.2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  text-align: center;
}
.footer__logo { height: 36px; width: auto; opacity: 0.9; }
.footer__nav { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer__nav a {
  font-size: 0.9rem; color: var(--text-dim); transition: color 0.3s;
}
.footer__nav a:hover { color: var(--cyan); }
.footer__copy { font-size: 0.8rem; color: rgba(154, 163, 178, 0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 2rem; }
  .job { grid-template-columns: 1fr; gap: 0.8rem; }
  .job__arrow { position: absolute; top: 1.8rem; right: 2rem; }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .nav__toggle { display: flex; }
  /* nota: il backdrop-filter su .nav rende la nav il containing block
     degli elementi fixed al suo interno, quindi servono dimensioni
     esplicite in unità viewport (inset: 0 non coprirebbe lo schermo) */
  .nav__menu {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
  }
  .nav__menu.is-open { opacity: 1; pointer-events: auto; z-index: 40; }
  .nav__link { font-size: 1.4rem; }
  .nav__cta { font-size: 1.1rem; padding: 0.9rem 1.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
