/* ==========================================================================
   VAULTEC — One page temporanea
   Space Grotesk (titoli) + Geist (testo)
   ========================================================================== */

:root {
  /* Colori */
  --bg: #05050c;
  --bg-2: #0a0a16;
  --white: #ffffff;
  --text-2: rgba(255, 255, 255, .64);
  --text-3: rgba(255, 255, 255, .42);
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);

  --violet: #7c5cff;
  --violet-soft: #9b8cff;
  --blue: #4f8bff;
  --cyan: #36e2d0;
  --mars: #ff6a3d;

  --gradient-text: linear-gradient(100deg, #b6aaff 0%, #7c8dff 30%, #4fa3ff 55%, #36e2d0 80%, #b6aaff 100%);
  --gradient-btn: linear-gradient(135deg, #8a74ff 0%, #5a6bff 55%, #3b9dff 100%);

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

  /* Layout */
  --container: 1240px;
  --gutter: 40px;
  --nav-h: 84px;
  --radius: 24px;
  --radius-lg: 32px;
  --section-space: 140px;

  /* Animazioni */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur: .9s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
em { font-style: normal; }

::selection { background: rgba(124, 92, 255, .45); }

:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head .text-lead { margin-top: 20px; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-soft);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.h2 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.text-lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% center; }
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__mark { width: 30px; height: 30px; }

.logo__text {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
}

/* ---------- Bottoni ---------- */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-group--center { justify-content: center; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .3s, background-color .3s, border-color .3s, filter .3s;
  will-change: transform;
}

.btn--sm {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

.btn--primary {
  background: var(--gradient-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -1px 0 rgba(0, 0, 0, .2),
    0 10px 34px -10px rgba(110, 92, 255, .8);
}

.btn--primary:hover {
  filter: brightness(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    0 14px 44px -8px rgba(110, 92, 255, .95);
}

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
}

/* ---------- Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  color: var(--text-2);
  transition: border-color .3s, color .3s, background-color .3s;
}

.pill:hover {
  color: var(--white);
  border-color: rgba(155, 140, 255, .55);
  background: rgba(124, 92, 255, .1);
}

.pill__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gradient-btn);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  box-shadow: 0 0 18px rgba(124, 92, 255, .7);
}

.pill svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.pill:hover svg { transform: translateX(3px); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, height .4s var(--ease-out);
}

.navbar.is-scrolled {
  --nav-h: 70px;
  background: rgba(5, 5, 12, .62);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__menu {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.navbar__link {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color .3s, background-color .3s;
}

.navbar__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .07);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.navbar__toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  background: var(--white);
  transition: transform .35s var(--ease-out);
}

.navbar__toggle span:first-child { transform: translateY(-3.5px); }
.navbar__toggle span:last-child { transform: translateY(3.5px); }
.navbar__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  --planet-size: min(2400px, 190vw);
  --horizon: 74%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 20px) 0 18vh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(79, 60, 200, .28), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(30, 40, 110, .35), transparent 70%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* gradienti sfocati */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero__blob--a {
  top: -18%;
  left: -12%;
  width: 62vw;
  height: 62vw;
  max-width: 980px;
  max-height: 980px;
  background: radial-gradient(circle, rgba(124, 92, 255, .38) 0%, rgba(124, 92, 255, .1) 38%, transparent 66%);
}

.hero__blob--b {
  top: 2%;
  right: -16%;
  width: 56vw;
  height: 56vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(59, 130, 255, .3) 0%, rgba(59, 130, 255, .08) 40%, transparent 66%);
}

.hero__blob--c {
  top: 38%;
  left: 30%;
  width: 40vw;
  height: 40vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(54, 226, 208, .16) 0%, transparent 62%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 42%, #000 10%, transparent 75%);
}

.hero__cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 120, 255, .18), transparent 60%);
  opacity: 0;
  transition: opacity .6s;
  will-change: transform;
}

.hero.is-pointer .hero__cursor { opacity: 1; }

/* ---------- Pianeta ---------- */
.hero__planet-layer {
  position: absolute;
  inset: var(--horizon) 0 auto;
  will-change: transform;
}

.planet {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--planet-size);
  height: var(--planet-size);
  margin-left: calc(var(--planet-size) / -2);
  animation: planet-rise 2.4s var(--ease-out) both;
}

@keyframes planet-rise {
  from { transform: translateY(26vh); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.planet__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  background: #120713;
  box-shadow:
    0 0 60px 6px rgba(150, 130, 255, .45),
    0 0 180px 40px rgba(124, 92, 255, .28),
    0 0 360px 120px rgba(59, 130, 255, .14);
}

.planet__surface {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 1200px);
  height: 34%;
  background: url("../images/planet-texture.svg") repeat 0 0 / 1200px 600px;
  opacity: .9;
  animation: planet-spin 140s linear infinite;
  will-change: transform;
}

@keyframes planet-spin {
  to { transform: translateX(-1200px); }
}

/* ombreggiatura: il pianeta sfuma verso il basso e verso i lati */
.planet__body::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 34% 14% at 50% 0%, rgba(255, 120, 80, .22), transparent 70%),
    linear-gradient(to bottom, rgba(5, 5, 12, 0) 0%, rgba(5, 5, 12, .35) 3%, rgba(5, 5, 12, .82) 11%, var(--bg) 20%),
    radial-gradient(ellipse 50% 50% at 50% 0%, transparent 30%, rgba(5, 5, 12, .85) 75%);
}

/* luce sul bordo (alba) */
.planet__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .85),
    inset 0 10px 28px -4px rgba(170, 160, 255, .8),
    inset 0 40px 110px -20px rgba(79, 139, 255, .5);
}

.planet__flare {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: min(1100px, 90vw);
  height: 220px;
  translate: calc(-50% + var(--fx, 0px)) -50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, .85) 0%, rgba(190, 200, 255, .55) 8%, rgba(124, 92, 255, .28) 30%, transparent 70%);
  mix-blend-mode: screen;
  animation: flare-in 2.8s var(--ease-out) .5s both, flare-breathe 6s ease-in-out 3.3s infinite;
}

.planet__flare::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9) 50%, transparent);
  filter: blur(.5px);
}

@keyframes flare-in {
  from { opacity: 0; scale: .2 1; }
  to { opacity: 1; scale: 1 1; }
}

@keyframes flare-breathe {
  50% { opacity: .75; }
}

/* onde di segnale (5G) che partono dall'orizzonte */
.planet__pulses {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
}

.planet__pulses span {
  position: absolute;
  left: 0;
  top: 0;
  width: min(1500px, 120vw);
  height: min(560px, 46vw);
  border: 1px solid rgba(150, 140, 255, .55);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(124, 92, 255, .25), inset 0 0 30px rgba(124, 92, 255, .15);
  transform: translate(-50%, -50%) scale(.08);
  opacity: 0;
  animation: pulse 7.5s cubic-bezier(.2, .6, .3, 1) infinite;
}

.planet__pulses span:nth-child(2) { animation-delay: 2.5s; }
.planet__pulses span:nth-child(3) { animation-delay: 5s; }

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(.08); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ---------- Contenuto hero ---------- */
.hero__inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  max-width: 980px;
  margin-top: 30px;
  font-family: var(--font-heading);
  font-size: clamp(46px, 7.6vw, 108px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero__text {
  max-width: 620px;
  margin-top: 28px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--text-2);
  text-wrap: pretty;
}

.hero__inner .btn-group {
  justify-content: center;
  margin-top: 40px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 6;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  transition: border-color .3s;
}

.hero__scroll:hover { border-color: rgba(255, 255, 255, .7); }

.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--white);
  animation: scroll-dot 2s var(--ease-out) infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* titolo diviso in parole (JS) */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .04em .02em .12em;
  margin: -.04em -.02em -.12em;
}

.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms + .2s);
}

.js .is-loaded [data-split] .w > span,
.js [data-split].is-visible .w > span { transform: none; }

/* ==========================================================================
   Animazioni di comparsa
   ========================================================================== */
.js [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur) var(--ease-out) var(--delay, 0s),
    transform var(--dur) var(--ease-out) var(--delay, 0s);
}

.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Glow di sezione ---------- */
.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.glow--violet { background: radial-gradient(circle, rgba(124, 92, 255, .2), transparent 65%); }
.glow--blue { background: radial-gradient(circle, rgba(59, 130, 255, .16), transparent 65%); }

/* ==========================================================================
   CHI SIAMO
   ========================================================================== */
.about { isolation: isolate; }

.about__glow {
  top: 0;
  right: -20%;
  width: 900px;
  height: 900px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px 96px;
  align-items: start;
}

.about__body {
  display: grid;
  gap: 22px;
  padding-top: 42px;
  color: var(--text-2);
}

.about__body .text-lead { color: rgba(255, 255, 255, .86); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 96px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet-soft), var(--cyan));
  transition: width 1.2s var(--ease-out) calc(var(--delay, 0s) + .3s);
}

.step.is-visible::before { width: 64px; }

.step__num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--violet-soft);
}

.step__title {
  margin: 14px 0 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.step p {
  font-size: 15px;
  color: var(--text-2);
}

/* ==========================================================================
   SERVIZI
   ========================================================================== */
.services { isolation: isolate; }

.services__glow {
  top: 18%;
  left: -24%;
  width: 1000px;
  height: 1000px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  --mx: -1000px;
  --my: -1000px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  isolation: isolate;
}

/* spotlight che segue il mouse */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(124, 92, 255, .14), transparent 45%);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(170, 160, 255, .85), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.card p {
  color: var(--text-2);
  font-size: 15.5px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 15px;
  border: 1px solid rgba(155, 140, 255, .3);
  background: linear-gradient(145deg, rgba(124, 92, 255, .25), rgba(59, 130, 255, .06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 8px 30px -10px rgba(124, 92, 255, .7);
  color: #cfc8ff;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 26px;
}

.tags li {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font-size: 12.5px;
  color: var(--text-2);
}

/* card grande con telefoni */
.card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  padding-right: 0;
  padding-bottom: 0;
}

.card--wide .card__content {
  display: flex;
  flex-direction: column;
  padding-bottom: 36px;
}

.card--wide .card__title { font-size: 28px; }

.phones {
  position: relative;
  min-height: 340px;
}

.phones::before {
  content: "";
  position: absolute;
  inset: 10% 0 0 10%;
  background: radial-gradient(circle at 50% 60%, rgba(124, 92, 255, .4), transparent 60%);
}

.phone {
  position: absolute;
  bottom: -40px;
  width: 170px;
  aspect-ratio: 9 / 19;
  padding: 7px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(160deg, #1b1b2c, #08080f);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform 1s var(--ease-out);
}

.phone--back {
  left: 12%;
  transform: rotate(-10deg) translateY(30px);
}

.phone--front {
  left: 46%;
  bottom: -60px;
  transform: rotate(7deg);
}

.card--wide:hover .phone--back,
.card--wide.is-active .phone--back { transform: rotate(-13deg) translate(-10px, 10px); }
.card--wide:hover .phone--front,
.card--wide.is-active .phone--front { transform: rotate(4deg) translateY(-22px); }

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 30px 12px 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(54, 226, 208, .35), transparent 50%),
    linear-gradient(165deg, #2c2177 0%, #131b47 55%, #0b1f2e 100%);
  overflow: hidden;
}

.phone--back .phone__screen {
  background: linear-gradient(165deg, #3b1b47 0%, #1a1240 60%, #0d0d22 100%);
}

.phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 44px;
  height: 13px;
  margin-left: -22px;
  border-radius: 10px;
  background: #000;
}

.ui {
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.ui--title { height: 12px; width: 60%; }
.ui--hero { height: 96px; background: linear-gradient(135deg, rgba(155, 140, 255, .7), rgba(54, 226, 208, .45)); border-radius: 14px; }
.ui--card { height: 110px; background: linear-gradient(135deg, rgba(255, 106, 61, .55), rgba(124, 92, 255, .5)); border-radius: 14px; }
.ui--row { height: 26px; }
.ui--short { width: 70%; }
.ui--btn { height: 30px; margin-top: auto; border-radius: 999px; background: var(--gradient-btn); }

/* card AI con sfera animata */
.card--ai .orb {
  position: absolute;
  top: -90px;
  right: -90px;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c5cff, #36e2d0, #4f8bff, #ee5bd0, #7c5cff);
  filter: blur(50px);
  opacity: .4;
  animation: spin 14s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   5G
   ========================================================================== */
.fiveg { padding-top: 40px; }

.fiveg__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
  padding: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(124, 92, 255, .22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(54, 226, 208, .1), transparent 70%),
    var(--bg-2);
  overflow: hidden;
  isolation: isolate;
}

.fiveg__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 25% 50%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 50% 70% at 25% 50%, #000, transparent 80%);
}

.fiveg__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.fiveg__big {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(150px, 19vw, 290px);
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.07em;
  background: linear-gradient(120deg, #ffffff 0%, #c4baff 30%, #6f8dff 60%, #36e2d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 50px rgba(124, 92, 255, .45));
}

.fiveg__waves {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.fiveg__waves span {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(155, 140, 255, .5);
  border-radius: 50%;
  opacity: 0;
  animation: wave 6s cubic-bezier(.2, .6, .3, 1) infinite;
}

.fiveg__waves span:nth-child(2) { animation-delay: 1.5s; }
.fiveg__waves span:nth-child(3) { animation-delay: 3s; }
.fiveg__waves span:nth-child(4) { animation-delay: 4.5s; }

@keyframes wave {
  0% { transform: scale(.2); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.fiveg__content .text-lead { margin-top: 22px; }

.checks {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, .86);
}

.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11.3l2.7 2.7L15.2 8.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat,
    var(--gradient-btn);
  box-shadow: 0 0 16px rgba(124, 92, 255, .5);
}

/* novità + link al documento ufficiale */
.fiveg__news {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 36px;
  padding: 16px 18px;
  border: 1px solid rgba(54, 226, 208, .25);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(54, 226, 208, .08), rgba(124, 92, 255, .06));
  font-size: 15px;
  color: rgba(255, 255, 255, .86);
}

.fiveg__news-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(54, 226, 208, .14);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cyan);
  animation: live 1.8s ease-out infinite;
}

@keyframes live {
  to { transform: scale(3); opacity: 0; }
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .3s, background-color .3s;
}

.doc-link:hover {
  border-color: rgba(155, 140, 255, .55);
  background: rgba(124, 92, 255, .1);
}

.doc-link__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(155, 140, 255, .3);
  background: linear-gradient(145deg, rgba(124, 92, 255, .25), rgba(59, 130, 255, .06));
  color: #cfc8ff;
}

.doc-link__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doc-link__text {
  display: grid;
  flex: 1;
  gap: 1px;
  line-height: 1.35;
}

.doc-link__text strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.doc-link__text span {
  font-size: 13px;
  color: var(--text-3);
}

.doc-link__arrow {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-2);
  transition: transform .3s var(--ease-out), color .3s;
}

.doc-link:hover .doc-link__arrow {
  color: var(--white);
  transform: translate(2px, -2px);
}

/* ==========================================================================
   OPERATORI — carosello
   ========================================================================== */
.operators .section-head { margin-bottom: 56px; }

.marquee {
  overflow: hidden;
  padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee + .marquee { margin-top: 8px; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}

.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee__track li {
  display: grid;
  place-items: center;
  min-width: 230px;
  height: 96px;
  margin-right: 16px;
  padding: 0 40px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  transition: border-color .3s, background-color .3s;
}

.marquee__track li:hover {
  border-color: rgba(155, 140, 255, .45);
  background-color: rgba(124, 92, 255, .08);
}

.marquee__track img {
  width: auto;
  height: var(--h, 34px);
  max-width: none;
  /* loghi in versione monocromatica bianca */
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .3s;
}

.marquee__track li:hover img { opacity: 1; }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.cta { padding-top: 40px; }

.cta__panel {
  position: relative;
  padding: 110px 40px 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59, 130, 255, .12), transparent 70%),
    var(--bg-2);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta__panel .eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.cta__title {
  font-size: clamp(38px, 5.4vw, 72px);
}

.cta__panel .text-lead {
  max-width: 560px;
  margin: 24px auto 40px;
}

/* mini orizzonte, richiama il pianeta dell'hero */
.cta__glow {
  position: absolute;
  top: calc(100% - 70px);
  left: 50%;
  z-index: -1;
  width: 1600px;
  height: 1600px;
  margin-left: -800px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, .7),
    inset 0 20px 60px -10px rgba(140, 120, 255, .6),
    0 0 80px 10px rgba(124, 92, 255, .4),
    0 0 240px 60px rgba(59, 130, 255, .2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  padding-top: 40px;
  overflow: hidden;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--text-2);
}

.footer__nav a { transition: color .3s; }
.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 28px;
  font-size: 13px;
  color: var(--text-3);
}

.footer__legal,
.footer__meta {
  display: grid;
  gap: 4px;
}

.footer__meta { text-align: right; align-content: end; }

.footer__legal strong {
  font-weight: 600;
  color: var(--text-2);
}

@media (max-width: 680px) {
  .footer__meta { text-align: left; }
}

.footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 4px;
}

.footer__links a {
  color: var(--text-2);
  transition: color .3s;
}

.footer__links a:hover { color: var(--white); }

@media (max-width: 680px) {
  .footer__links { justify-content: flex-start; }
}

.footer__wordmark {
  margin-bottom: -.2em;
  font-family: var(--font-heading);
  font-size: 23vw;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(to bottom, rgba(155, 140, 255, .16), rgba(155, 140, 255, 0) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--ai { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .fiveg__panel { grid-template-columns: 1fr; padding: 56px; }
  .fiveg__visual { min-height: 260px; }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
    --nav-h: 70px;
    --section-space: 96px;
  }

  .navbar__toggle { display: block; }

  .navbar__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(10, 10, 22, .92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease-out), visibility .3s;
  }

  .navbar.is-open .navbar__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .navbar.is-open {
    background: rgba(5, 5, 12, .8);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .navbar__link {
    padding: 14px 16px;
    font-size: 16px;
  }

  .hero {
    --planet-size: 300vw;
    --horizon: 78%;
    padding-bottom: 24vh;
  }

  .about__grid { grid-template-columns: 1fr; }
  .about__body { padding-top: 0; }
  .steps { margin-top: 64px; }

  .section-head { margin-bottom: 44px; }
}

@media (max-width: 680px) {
  .navbar__actions .btn { display: none; }

  .hero__inner .btn-group { flex-direction: column; width: 100%; max-width: 340px; }

  .bento { grid-template-columns: 1fr; }
  .card--wide,
  .card--ai { grid-column: auto; }
  .card { padding: 28px; }

  .card--wide { grid-template-columns: 1fr; padding-right: 28px; }
  .card--wide .card__content { padding-bottom: 0; }
  .phones { min-height: 280px; margin-inline: -28px 0; }
  .phone { width: 140px; }

  .steps { grid-template-columns: 1fr; }

  .fiveg__panel { padding: 40px 24px; }
  .fiveg__visual { min-height: 200px; }
  .fiveg__news { flex-direction: column; gap: 10px; }

  .marquee__track li {
    min-width: 170px;
    height: 76px;
    margin-right: 12px;
    padding: 0 28px;
    border-radius: 16px;
  }

  .marquee__track img { height: calc(var(--h, 34px) * .78); }

  .cta__panel { padding: 72px 22px 120px; }
}

/* ---------- Riduzione movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .planet__pulses,
  .fiveg__waves { display: none; }

  .marquee__track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   Pagine legali (privacy / cookie)
   ========================================================================== */
.page-legal .navbar__inner .btn { margin-left: auto; }

.legal {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  isolation: isolate;
}

.legal__glow {
  top: -300px;
  left: 50%;
  width: 1100px;
  height: 900px;
  margin-left: -550px;
}

.legal__inner { max-width: calc(780px + var(--gutter) * 2); }

.legal__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.legal__updated {
  margin: 14px 0 40px;
  font-size: 14px;
  color: var(--text-3);
}

.legal h2 {
  margin: 56px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.legal h3 {
  margin: 28px 0 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

.legal p,
.legal li { color: var(--text-2); }

.legal p + p { margin-top: 14px; }

.legal strong { color: var(--white); font-weight: 500; }

.legal ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal li::marker { color: var(--violet-soft); }

.legal a:not(.btn) {
  color: #c4baff;
  text-decoration: underline;
  text-decoration-color: rgba(196, 186, 255, .35);
  text-underline-offset: 3px;
  transition: color .3s, text-decoration-color .3s;
}

.legal a:not(.btn):hover {
  color: var(--white);
  text-decoration-color: currentColor;
}
