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

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

  /* Colori di "cucitura" tra le sezioni */
  --seam-black:   #000000;
  --seam-navy:    #0c1a38;
  --seam-slate:   #34414f;
  --seam-graynav: #212a3b;
  --seam-navy2:   #0f2249;
  --seam-navy3:   #0e2046;
  --blue-soft:    #315f9f;
  --grey-light:   #474d58;

  /* 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; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}
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: 10px;
  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;
  /* trasparente in cima: si scurisce solo allo scroll (sticky a contrasto) */
  background: transparent;
  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.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.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;
  /* una voce di menu non deve mai spezzarsi su due righe */
  white-space: nowrap;
}
.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;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  min-width: 48px; min-height: 48px; padding: 11px;
  /* 'none' impedisce al browser di interpretare il tocco sul pulsante come inizio
     di uno scorrimento: senza questo, su iOS il tocco viene annullato e il menu
     non si apre (problema tipico nella hero, dove la pagina è pronta a scorrere). */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  position: relative; z-index: 60;
}
/* CAUSA DEL MALFUNZIONAMENTO SU TELEFONO:
   'touch-action' NON è una proprietà ereditata. I due trattini che disegnano
   l'icona restavano quindi a 'auto': toccando ESATTAMENTE l'icona il browser
   poteva interpretare il gesto come scorrimento e annullare il tocco, mentre
   toccando di fianco (padding del bottone) funzionava.
   Rendendo i figli non interattivi, il bersaglio del tocco è SEMPRE il bottone
   e vale la sua 'touch-action': l'intera area 48x48 risponde in modo identico. */
.nav__toggle > * {
  pointer-events: none;
  touch-action: none;
}
.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;
  background: linear-gradient(180deg, var(--seam-black) 0%, var(--seam-navy) 100%);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
  cursor: pointer;
}
.hero__content { position: relative; z-index: 1; max-width: 1150px; }
/* Vignettatura morbida dietro al testo: stacca il titolo dal circuito */
.hero__content::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 155%; height: 190%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(4, 7, 18, 0.72) 0%, rgba(4, 7, 18, 0.5) 38%, rgba(4, 7, 18, 0) 70%);
  z-index: -1;
  pointer-events: none;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}
@media (min-width: 1200px) {
  .hero__line { white-space: nowrap; }
}
.hero__line { display: block; }
.hero__line--accent {
  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); 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(206, 214, 228, 0.9);
}

.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: 0.3; transform: scaleY(0.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(2, 1fr);
  gap: 1.4rem;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-block);
  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 {
  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__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.card__list li {
  position: relative;
  padding-left: 1.3rem;
  line-height: 1.4;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.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); }

/* ============================================================
   SCELTO DA — fascia loghi clienti/partner
   ============================================================ */
.trusted {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-top: none;
  border-bottom: none;
  background: linear-gradient(180deg, var(--seam-navy) 0%, var(--grey-light) 50%, var(--seam-graynav) 100%);
}
.trusted__inner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}
.trusted__label {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.trusted__logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.8rem, 4.5vw, 4rem);
  flex-wrap: wrap;
}
.trusted__logo { display: inline-flex; align-items: center; }
.trusted__logos img {
  height: clamp(56px, 8vw, 92px);
  width: auto;
  opacity: 0.65;
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.trusted__logo:nth-child(2) img { height: clamp(84px, 12vw, 137px); }   /* Vivere Bene */
.trusted__logo:nth-child(3) img { height: clamp(71px, 10.2vw, 117px); } /* Kaory */
.trusted__logos img:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ============================================================
   RECENSIONI — testimonianze clienti con stelle
   ============================================================ */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review {
  --mx: 50%; --my: 50%;
  position: relative;
  margin: 0;
  /* colonna: così il piede (logo + stelline) resta sempre in basso e le tre
     schede risultano identiche anche con testi di lunghezza diversa */
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-block);
  border-radius: 20px;
  padding: 2.4rem 2.2rem 2.2rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
}
.review::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(124, 92, 255, 0.14), rgba(51, 224, 255, 0.05) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.review:hover {
  transform: translateY(-6px);
  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.15);
}
.review:hover::before { opacity: 1; }
.review__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem; line-height: 0.6;
  margin-bottom: 1.2rem;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.review__text {
  margin: 0 0 1.8rem;
  font-size: 1.1rem; font-style: italic;
  color: var(--text);
  line-height: 1.65;
}
/* Piede della recensione: SOLO logo + stelline, uguale per tutte e tre.
   Il logo è vincolato a un riquadro fisso, così loghi con proporzioni diverse
   risultano visivamente equilibrati; le stelline sono allineate a destra. */
.review__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: auto; padding-top: 0.6rem;
}
/* I tre file hanno margini trasparenti molto diversi (53%-76%) e proporzioni
   diverse: a parità di altezza Secret Italy appariva grande il doppio.
   Le larghezze qui sotto sono calcolate perché l'AREA del logo effettivamente
   visibile sia identica per tutti e tre (~3000 px²). */
.review__logo {
  height: auto; width: auto;
  object-fit: contain; object-position: left center;
  opacity: 0.9; flex: 0 0 auto;
}
.review__logo[src*="secret-italy"] { width: 139px; }
.review__logo[src*="vivere-bene"]  { width: 76px; }
.review__logo[src*="kaory"]        { width: 125px; }
.review__stars {
  display: inline-block; white-space: nowrap; flex: 0 0 auto;
  font-size: 1.05rem; letter-spacing: 0.15em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   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-block);
  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-block);
  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: none; padding-block: 3.5rem; background: linear-gradient(180deg, var(--seam-navy3) 0%, var(--blue-soft) 100%); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
.footer__heading {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: #ffffff;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 16px rgba(8, 10, 30, 0.5);
}
.footer__text {
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.95); line-height: 1.6;
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 12px rgba(8, 10, 30, 0.45);
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li {
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.95); line-height: 1.5;
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 12px rgba(8, 10, 30, 0.45);
}
.footer__list li:last-child { margin-bottom: 0; }
.footer__link { color: #ffffff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: opacity 0.3s; }
.footer__link:hover { opacity: 0.8; }

/* ============================================================
   SFONDI TEMATICI PER SEZIONE
   Hero / Chi siamo / Hai un'idea  → nero + navy
   Servizi / Recensioni / Footer   → gradiente viola→ciano animato
   Scelto da                       → grigio scuro + grigio chiaro
   ============================================================ */
#chi-siamo { background: linear-gradient(180deg, var(--seam-graynav) 0%, var(--seam-navy) 55%, var(--seam-navy2) 100%); }
#contatti  { background: linear-gradient(180deg, var(--seam-navy2) 0%, #081228 55%, var(--seam-navy3) 100%); }

/* Sezioni "blu": gradiente animato viola→ciano (in tono profondo) al centro,
   che sfuma ai bordi verso il navy comune → nessuno stacco netto con le
   sezioni scure vicine. 1° layer = dissolvenza verticale ai bordi (statico);
   2° layer = flusso orizzontale animato. */
#servizi,
#recensioni,
.footer {
  background:
    linear-gradient(180deg, var(--seam-navy) 0%, transparent 24%, transparent 76%, var(--seam-navy) 100%),
    linear-gradient(120deg, #3d2f8c 0%, #1f5f9e 25%, #3d2f8c 50%, #1f5f9e 75%, #3d2f8c 100%);
  background-size: 100% 100%, 300% 300%;
  animation: flowGrad 22s ease-in-out infinite;
}
@keyframes flowGrad {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* Stesso movimento del gradiente su testi in gradiente e pulsanti CTA */
.eyebrow,
.grad,
.hero__line--accent,
.stat__num,
.stat__plus,
.review__mark,
.review__stars,
.btn--primary {
  background-image: linear-gradient(120deg,
    var(--violet) 0%, var(--cyan) 25%, var(--violet) 50%, var(--cyan) 75%, var(--violet) 100%);
  background-size: 300% 300%;
  animation: flowGrad 22s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   Passaggi tra sezioni in stile AURORA: bande morbide e sfocate, con
   bordo ondulato in movimento + base a piena larghezza che elimina la
   linea di stacco tra una sezione e l'altra.
   ---------------------------------------------------------------- */
.trusted, .footer { position: relative; }
#servizi > .container,
#recensioni > .container,
.trusted > .container,
.footer > .container { position: relative; z-index: 2; }

#servizi::before, #servizi::after,
#recensioni::before, #recensioni::after,
.trusted::before, .trusted::after,
.footer::before {
  content: ""; position: absolute; left: -15%; right: -15%; z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 165% 100%, 150% 100%, 165% 100%, 100% 100%;
  filter: blur(16px);
  will-change: background-position;
}
#servizi::before, #recensioni::before, .footer::before {
  top: 0; height: clamp(180px, 28vh, 340px);
  background-image:
    radial-gradient(64% 155% at 16% 0%, rgba(40, 34, 92, 0.85) 0%, transparent 72%),
    radial-gradient(56% 140% at 52% 0%, rgba(18, 54, 84, 0.80) 0%, transparent 70%),
    radial-gradient(66% 155% at 86% 0%, rgba(12, 26, 56, 0.90) 0%, transparent 72%),
    linear-gradient(to bottom, var(--seam-navy) 0%, transparent 100%);
  animation: auroraSeam 26s ease-in-out infinite alternate;
}
#servizi::after, #recensioni::after {
  bottom: 0; height: clamp(180px, 28vh, 340px);
  background-image:
    radial-gradient(64% 155% at 18% 100%, rgba(40, 34, 92, 0.85) 0%, transparent 72%),
    radial-gradient(56% 140% at 54% 100%, rgba(18, 54, 84, 0.80) 0%, transparent 70%),
    radial-gradient(66% 155% at 84% 100%, rgba(12, 26, 56, 0.90) 0%, transparent 72%),
    linear-gradient(to top, var(--seam-navy) 0%, transparent 100%);
  animation: auroraSeam 32s ease-in-out infinite alternate-reverse;
}
.trusted::before {
  top: 0; height: clamp(130px, 20vh, 210px);
  background-image:
    radial-gradient(64% 175% at 20% 0%, rgba(40, 34, 92, 0.80) 0%, transparent 74%),
    radial-gradient(56% 160% at 55% 0%, rgba(18, 54, 84, 0.75) 0%, transparent 72%),
    radial-gradient(66% 175% at 86% 0%, rgba(12, 26, 56, 0.88) 0%, transparent 74%),
    linear-gradient(to bottom, var(--seam-navy) 0%, transparent 100%);
  animation: auroraSeam 28s ease-in-out infinite alternate;
}
.trusted::after {
  bottom: 0; height: clamp(130px, 20vh, 210px);
  background-image:
    radial-gradient(64% 175% at 18% 100%, rgba(40, 34, 92, 0.80) 0%, transparent 74%),
    radial-gradient(56% 160% at 52% 100%, rgba(18, 54, 84, 0.75) 0%, transparent 72%),
    radial-gradient(66% 175% at 84% 100%, rgba(12, 26, 56, 0.88) 0%, transparent 74%),
    linear-gradient(to top, var(--seam-navy) 0%, transparent 100%);
  animation: auroraSeam 34s ease-in-out infinite alternate-reverse;
}
@keyframes auroraSeam {
  0%   { background-position:   0% 0%,  50% 0%, 100% 0%, 0% 0%; }
  50%  { background-position:  35% 0%,  85% 0%,  15% 0%, 0% 0%; }
  100% { background-position:  70% 0%,  10% 0%,  92% 0%, 0% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  #servizi::before, #servizi::after, #recensioni::before, #recensioni::after,
  .trusted::before, .trusted::after, .footer::before { animation: none; }
}

/* ============================================================
   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; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}

/* TABLET: recensioni affiancate come su desktop (prima passavano a colonna
   singola già a 1000px, facendo somigliare il tablet a uno smartphone) */
@media (min-width: 768px) and (max-width: 1024px) {
  .reviews { gap: 1rem; }
  .review { padding: 1.7rem 1.4rem 1.5rem; }
  .review__mark { font-size: 3rem; margin-bottom: 0.9rem; }
  .review__text { font-size: 0.95rem; margin-bottom: 1.4rem; }
  /* larghezze scalate in proporzione (×0,78): resta valida l'equiparazione
     dell'area visibile calcolata per i tre loghi */
  .review__logo[src*="secret-italy"] { width: 108px; }
  .review__logo[src*="vivere-bene"]  { width: 59px; }
  .review__logo[src*="kaory"]        { width: 98px; }
  .review__stars { font-size: 0.92rem; letter-spacing: 0.1em; }
}

/* SMARTPHONE: recensioni una sotto l'altra */
@media (max-width: 767px) {
  .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  /* su telefono: stelline SOTTO il logo, e loghi più grandi (sempre equiparati) */
  .review__footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .review__logo[src*="secret-italy"] { width: 160px; }
  .review__logo[src*="vivere-bene"]  { width: 88px; }
  .review__logo[src*="kaory"]        { width: 144px; }
  .about__stats { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Loghi "Scelto da": più grandi e più vicini fra loro.
     Le altezze sono calibrate una per una perché i loghi hanno proporzioni molto
     diverse (Secret Italy e CUP 2:1, Vivere Bene quasi quadrato, Kaory 1,25:1):
     così risultano visivamente equilibrati invece che alcuni piccoli e altri enormi. */
  .trusted__inner { flex-direction: column; gap: 1.1rem; }
  .trusted__logos { flex-direction: column; gap: 0.6rem; }
  .trusted__logo { max-width: 100%; }
  .trusted__logos img {
    height: auto; width: min(74vw, 300px);
    max-height: 132px; object-fit: contain; opacity: 0.95;
  }
  /* height:auto va ripetuto: annulla le altezze fisse impostate per il desktop */
  .trusted__logo:nth-child(2) img { height: auto; width: min(52vw, 210px); max-height: 190px; } /* Vivere Bene (quasi quadrato) */
  .trusted__logo:nth-child(3) img { height: auto; width: min(62vw, 250px); max-height: 165px; } /* Kaory */

  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* nav: sotto i 900px hamburger con overlay fullscreen */
/* ============================================================
   TABLET (768–1100px): barra di navigazione IDENTICA al desktop.
   Niente hamburger: tutte le voci restano visibili, con spaziature e
   corpo del testo leggermente compattati per entrare nella larghezza.
   ============================================================ */
@media (min-width: 768px) and (max-width: 1100px) {
  .nav__inner { padding-inline: 1.5rem; gap: 1.5rem; }
  .nav__logo { height: 30px; }
  .nav.is-scrolled .nav__logo { height: 27px; }
  .nav__menu { gap: 1.15rem; }
  .nav__link { font-size: 0.85rem; }
  .nav__cta { padding: 0.5rem 0.95rem; font-size: 0.82rem; }
  .nav__cta svg { width: 13px; height: 13px; }
}

/* SMARTPHONE: da qui in giù compare il menu a comparsa (hamburger) */
@media (max-width: 767px) {
  .nav__toggle { display: flex; }
  /* logo e X restano SOPRA l'overlay (visibili e cliccabili) */
  .nav__brand, .nav__toggle { position: relative; z-index: 60; }
  /* Il logo è molto largo (rapporto ~8:1): su telefono va rimpicciolito e limitato,
     altrimenti arriva a toccare l'hamburger e "ruba" il tocco. */
  .nav__logo { height: 34px; }
  .nav.is-scrolled .nav__logo { height: 30px; }
  .nav__brand { max-width: calc(100% - 76px); }
  .nav__brand img { max-width: 100%; height: auto; }
  .nav__toggle { z-index: 70; flex: 0 0 auto; }
  .nav__menu {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; z-index: -1;
    flex-direction: column; justify-content: center; gap: 2rem;
    padding: var(--nav-h) 1.5rem 2rem;
    background: rgba(5, 6, 10, 0.985);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .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; }
}

/* ---------- Cursore personalizzato ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body, body * { cursor: none !important; }
}

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

/* ============================================================
   PIANI DELLA PIATTAFORMA (stessa veste del sito)
   ============================================================ */
.pricing-toggle {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.35rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line-block);
  border-radius: 10px;
}
.pricing-toggle__btn {
  font-family: var(--font-display);
  font-size: 0.92rem; font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 0; border-radius: 7px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
  display: inline-flex; align-items: center;
}
.pricing-toggle__btn.is-active { color: #fff; background: var(--grad); }
.pricing-toggle__save {
  margin-left: 0.45rem; font-size: 0.72rem; font-weight: 700;
  color: var(--cyan); letter-spacing: 0.02em;
}
.pricing-toggle__btn.is-active .pricing-toggle__save { color: #fff; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-block);
  border-radius: 20px;
  padding: 2.2rem 1.9rem;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s, box-shadow 0.4s;
}
.plan-card:hover {
  transform: translateY(-6px);
  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);
}
.plan-card.is-featured {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 24px 70px rgba(124, 92, 255, 0.12);
}
.plan-card__flag {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
  background: var(--grad); padding: 0.35rem 0.9rem; border-radius: 999px;
  white-space: nowrap;
}
.plan-card__name {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 0.9rem;
}
.plan-card__price {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  line-height: 1; letter-spacing: -0.02em;
}
.plan-card__price span { font-size: 0.95rem; font-weight: 500; color: var(--text-dim); }
.plan-card__cycle { color: var(--text-dim); font-size: 0.82rem; margin: 0.5rem 0 1.4rem; }
.plan-card__list {
  list-style: none; padding: 0; margin: 0 0 1.8rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  flex: 1;
}
.plan-card__list li {
  position: relative; padding-left: 1.5rem; line-height: 1.4;
  font-size: 0.95rem; color: var(--text);
}
.plan-card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(51, 224, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(51, 224, 255, 0.4);
}
.plan-card__list li::after {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 6px; height: 3px; border-left: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan); transform: rotate(-45deg);
}
.plan-card__cta { width: 100%; justify-content: center; margin-top: auto; }

.plans__foot { text-align: center; color: var(--text-dim); margin-top: 2rem; line-height: 1.6; }
/* domanda su una riga, link sulla riga sotto (non si spezzano a metà su telefono) */
.plans__foot a {
  color: var(--cyan); font-weight: 600;
  display: block; margin-top: 0.4rem; white-space: nowrap;
}

/* ============================================================
   FAQ (accordion) — dentro la sezione della piattaforma
   ============================================================ */
.faq { max-width: 780px; margin: clamp(3.5rem, 8vw, 5.5rem) auto 0; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.faq__head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); max-width: none; }

.faq-item {
  border: 1px solid var(--line-block); border-radius: 14px;
  margin-bottom: 0.8rem; overflow: hidden; background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { border-color: rgba(124, 92, 255, 0.45); }
.faq-item[open] {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 16px 44px -20px rgba(124, 92, 255, 0.45);
}
.faq-item summary {
  padding: 1.1rem 1.4rem; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; color: var(--text);
}
/* nasconde la freccina predefinita (necessario su Safari) */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cyan);
  flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.4rem 1.2rem; color: var(--text-dim);
  font-size: 0.95rem; line-height: 1.65;
}
/* apertura morbida del contenuto */
.faq-item[open] p { animation: faqApre 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes faqApre { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] p { animation: none; }
  .faq-item summary::after { transition: none; }
}

.plan-skeleton {
  height: 320px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: plan-shimmer 1.4s infinite;
}
@keyframes plan-shimmer { to { background-position: -200% 0; } }

/* TABLET: i piani restano AFFIANCATI (3 colonne), con spaziature compattate
   per stare comodi nella larghezza tipica dei tablet. */
@media (min-width: 768px) and (max-width: 1024px) {
  .plans { gap: 1rem; }
  .plan-card { padding: 1.6rem 1.2rem; }
  .plan-card__name { font-size: 1.15rem; }
  .plan-card__price { font-size: 2rem; }
  .plan-card__list li { font-size: 0.88rem; padding-left: 1.35rem; }
  .plan-card__cta { padding: 0.7rem 0.9rem; font-size: 0.88rem; }
}

/* SMARTPHONE: una colonna sola */
@media (max-width: 767px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
}

/* ============================================================
   RESTYLE PREMIUM — sito pubblico (solo UI, nessuna logica)
   ============================================================ */

/* Nebula: il sito appare SUBITO. La nebula entra con una dissolvenza rapida (<1s)
   dall'istante zero: nessuno schermo nero, e l'inizio del "boom" resta attenuato
   dalla bassa opacità dei primi istanti. */
#hero-canvas {
  opacity: 0;
  animation: nebulaReveal 0.9s ease-out 0s both;
}
@keyframes nebulaReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* leggera vignettatura statica (solo profondità sui bordi, non scurisce il centro) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(130% 100% at 50% 40%, transparent 45%, rgba(5,6,10,0.5) 100%);
}
@media (prefers-reduced-motion: reduce) {
  #hero-canvas { animation: none; opacity: 1; }
}

/* Griglia tecnica delicata sotto ai contenuti (aggiunge texture, non disturba) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 110% 60% at 50% 0%, #000 5%, transparent 70%);
  mask-image: radial-gradient(ellipse 110% 60% at 50% 0%, #000 5%, transparent 70%);
}

/* Card premium: filo di luce in alto + ombra morbida, coerente con la piattaforma */
.card { box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 22px 60px -22px rgba(0,0,0,0.7); }
.card::after {
  content: ""; position: absolute; top: 0; left: 16%; right: 16%; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(124,92,255,0.55), rgba(51,224,255,0.4), transparent);
  opacity: 0.6; transition: opacity 0.4s;
}
.card:hover::after { opacity: 1; }

/* Micro-rifinitura tipografica: più aria e gerarchia */
.section__sub, .about__body, .about__lead { max-width: 62ch; }
.eyebrow { letter-spacing: 0.2em; }

/* ---------- Barra legale del footer (sempre visibile) ---------- */
.footer__legale {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem 1.5rem;
  margin-top: 2.4rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.9);
}
.footer__legale-link { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer__legale-link a {
  color: #ffffff; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
  transition: opacity 0.3s;
}
.footer__legale-link a:hover { opacity: 0.75; }
@media (max-width: 560px) {
  .footer__legale { flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
  .footer__legale-link { justify-content: center; gap: 0.6rem; }
  /* area di tocco comoda per il dito (i link legali devono essere facili da aprire) */
  .footer__legale-link a { padding: 0.6rem 0.75rem; }
}
