/* ============================================================
   NALU — Surf the Wave
   ============================================================ */

:root {
  /* Brand */
  --ink:        #0a0320;
  --ink-2:      #120633;
  --ink-3:      #1b0a4a;
  --foam:       #f7f4ff;
  --foam-2:     #e9e3ff;

  --violet-50:  #f4f1ff;
  --violet-200: #c9b8ff;
  --violet-400: #8b5cf6;
  --violet-500: #7c3aed;
  --violet-600: #6d28d9;

  --ocean-300:  #60a5fa;
  --ocean-400:  #3b82f6;
  --ocean-500:  #2563eb;
  --ocean-600:  #1d4ed8;
  --ocean-900:  #0c1d6b;

  --aqua-300:   #67e8f9;
  --aqua-400:   #22d3ee;

  --coral:      #ff8a65;     /* contrast accent (sunset) */
  --sun:        #ffd166;

  --grad-1: linear-gradient(135deg, #7c3aed 0%, #2563eb 60%, #22d3ee 100%);
  --grad-2: linear-gradient(120deg, #a855f7 0%, #3b82f6 100%);
  --grad-text: linear-gradient(95deg, #c9b8ff 0%, #8b5cf6 30%, #3b82f6 70%, #67e8f9 100%);

  /* Type */
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', cursive;

  /* Spacing rhythm */
  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 44px;
}

/* ============================================================
   Reset & base
============================================================ */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--foam);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.55;
  font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--violet-400); color: white; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a1465; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-500); }

/* ============================================================
   Typography
============================================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.8vw, 56px); letter-spacing: -0.028em; line-height: 1.05; }
h3 { font-size: clamp(19px, 1.9vw, 28px); }
p  { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.4vw, 22px); color: rgba(247,244,255,.78); line-height: 1.55; max-width: 56ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,244,255,.7);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--violet-400);
  display: inline-block;
}

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--aqua-300);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradientShift 9s linear infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================================
   Layout
============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}

/* ============================================================
   Buttons
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--foam);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--foam);
  color: var(--ink);
  box-shadow: 0 14px 40px -10px rgba(124,58,237,.55), 0 4px 14px rgba(0,0,0,.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px -12px rgba(124,58,237,.7), 0 6px 18px rgba(0,0,0,.25);
}
.btn-ghost {
  border-color: rgba(247,244,255,.2);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(247,244,255,.45);
  transform: translateY(-2px);
}
.btn-arrow {
  width: 22px; height: 22px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.btn:hover .btn-arrow { transform: translateX(4px) rotate(-2deg); }

/* ============================================================
   Nav
============================================================ */
.nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  background: rgba(10,3,32,.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(247,244,255,.08);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,.6);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.nav-links {
  display: flex; gap: 4px;
  font-size: 14px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(247,244,255,.78);
  transition: color .25s, background .25s;
  font-weight: 500;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,.06); }
.nav-links a.is-current { color: white; background: rgba(255,255,255,.08); }
.nav-cta { padding: 12px 20px; font-size: 14px; }

.nav-link-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-link-wrap a {
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-chev {
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  opacity: .65;
}
.nav-link-wrap.is-active a {
  color: white;
  background: rgba(255,255,255,.06);
}
.nav-link-wrap.is-active .nav-chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* ==========================================================
   Mega menu
========================================================== */
.mega-wrap {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100vw - 24px));
  pointer-events: none;
  padding-top: 14px;
  z-index: 100;
}
.mega.is-open ~ *, .mega-wrap:has(.mega.is-open) { pointer-events: auto; }
.mega {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px) scale(.985);
  transition: opacity .35s cubic-bezier(.4,0,.2,1), transform .35s cubic-bezier(.4,0,.2,1);
  border-radius: 28px;
  background: rgba(14, 8, 40, 0.78);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(247,244,255,.1);
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(168,85,247,.08) inset;
  overflow: hidden;
  position: relative;
}
.mega.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mega-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}
.mega-side {
  padding: 36px 32px 36px 36px;
  background: linear-gradient(160deg, rgba(124,58,237,.18), rgba(34,211,238,.06));
  border-right: 1px solid rgba(247,244,255,.07);
  position: relative;
  overflow: hidden;
}
.mega-side .eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,244,255,.6);
  font-weight: 600;
}
.mega-side-title {
  margin: 14px 0 12px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
}
.mega-side-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247,244,255,.66);
  margin: 0 0 24px;
}
.mega-side-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  transition: transform .25s, box-shadow .25s;
}
.mega-side-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(168,85,247,.6);
}
.mega-side-cta svg { transition: transform .3s; }
.mega-side-cta:hover svg { transform: translateX(3px); }
.mega-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.mega-orb-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(168,85,247,.5), transparent 70%);
  bottom: -80px; left: -60px;
}
.mega-orb-2 {
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(34,211,238,.4), transparent 70%);
  top: -40px; right: -40px;
}

.mega-grid {
  list-style: none;
  margin: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.mega.is-open .mega-grid > li {
  animation: mega-in .42s cubic-bezier(.34,1.3,.64,1) both;
  animation-delay: calc(var(--i) * 28ms + 80ms);
}
@keyframes mega-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  transition: background .25s;
  position: relative;
}
.mega-item:hover {
  background: rgba(255,255,255,.05);
}
.mega-item-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: white;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}
.mega-item-body {
  display: flex; flex-direction: column;
  min-width: 0;
}
.mega-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.mega-item-desc {
  font-size: 12px;
  color: rgba(247,244,255,.56);
  margin-top: 2px;
}
.mega-item-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s, transform .25s;
  color: rgba(247,244,255,.7);
}
.mega-item:hover .mega-item-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ==========================================================
   Hamburger
========================================================== */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  cursor: pointer;
  margin-left: 4px;
  transition: background .25s;
}
.nav-burger:hover { background: rgba(255,255,255,.1); }
.nav-burger span {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.6,.05,.2,1.2), opacity .25s, top .35s;
}
.nav-burger span:nth-child(1) { top: 14px; transform: translateX(-50%); }
.nav-burger span:nth-child(2) { top: 19px; transform: translateX(-50%); }
.nav-burger span:nth-child(3) { top: 24px; transform: translateX(-50%); }
.nav-burger.is-open { background: rgba(255,255,255,.14); }
.nav-burger.is-open span:nth-child(1) { top: 19px; transform: translateX(-50%) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { top: 19px; transform: translateX(-50%) rotate(-45deg); }

/* ==========================================================
   Mobile fullscreen menu
========================================================== */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.mmenu.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease;
}
.mmenu-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0a0320 0%, #1a0a4a 50%, #0a1530 100%);
  overflow: hidden;
}
.mmenu-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: opacity .8s ease, transform 1.2s cubic-bezier(.4,0,.2,1);
}
.mmenu.is-open .mmenu-orb { opacity: .85; }
.mmenu-orb-1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(168,85,247,.7), transparent 70%);
  top: -120px; left: -120px;
  transform: scale(.6);
}
.mmenu.is-open .mmenu-orb-1 { transform: scale(1); }
.mmenu-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(34,211,238,.6), transparent 70%);
  bottom: -80px; right: -80px;
  transform: scale(.6);
  transition-delay: .1s;
}
.mmenu.is-open .mmenu-orb-2 { transform: scale(1); }
.mmenu-orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(59,130,246,.5), transparent 70%);
  top: 40%; left: 60%;
  transform: scale(.6);
  transition-delay: .15s;
}
.mmenu.is-open .mmenu-orb-3 { transform: scale(1); }
.mmenu-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 240px;
  opacity: 0;
  transition: opacity .8s ease .2s;
}
.mmenu.is-open .mmenu-wave { opacity: 1; animation: mmwave 12s ease-in-out infinite alternate; }
@keyframes mmwave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40px); }
}

.mmenu-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 90px 28px 36px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.mmenu-list, .mmenu-services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mmenu-list { gap: 4px; }
.mmenu-list li {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity .5s, transform .5s;
}
.mmenu.is-open .mmenu-list li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--i) * 70ms + 200ms);
}
.mmenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px 16px 0;
  font-size: clamp(34px, 8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: padding .3s cubic-bezier(.4,0,.2,1);
}
.mmenu-link:hover, .mmenu-link:focus-visible {
  padding-left: 14px;
  outline: none;
}
.mmenu-link svg {
  opacity: .35;
  transition: opacity .3s, transform .3s;
}
.mmenu-link:hover svg {
  opacity: 1;
  transform: translateX(4px);
}
.mmenu-list li.is-current .mmenu-link {
  background: linear-gradient(90deg, rgba(168,85,247,.18), transparent);
  padding-left: 14px;
}

.mmenu-services {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: mmsvc-in .4s cubic-bezier(.4,0,.2,1) both;
}
@keyframes mmsvc-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.mmenu-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  transition: background .25s;
}
.mmenu-back:hover { background: rgba(255,255,255,.12); }
.mmenu-services-list {
  gap: 6px;
  overflow-y: auto;
  flex: 1;
  margin-right: -12px;
  padding-right: 12px;
}
.mmenu-services-list li {
  opacity: 0;
  transform: translateY(8px);
  animation: mmsvc-li .4s cubic-bezier(.34,1.3,.64,1) both;
  animation-delay: calc(var(--i) * 30ms + 100ms);
}
@keyframes mmsvc-li {
  to { opacity: 1; transform: translateY(0); }
}
.mmenu-services-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .25s, transform .25s;
}
.mmenu-services-list a:hover {
  background: rgba(255,255,255,.08);
  transform: translateX(2px);
}
.mmenu-svc-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: #fff;
}
.mmenu-svc-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.mmenu-svc-desc {
  display: block;
  font-size: 13px;
  color: rgba(247,244,255,.6);
  margin-top: 2px;
}

.mmenu-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s, transform .5s;
  transition-delay: .55s;
}
.mmenu.is-open .mmenu-foot {
  opacity: 1;
  transform: translateY(0);
}
.mmenu-cta {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px 24px;
}
.mmenu-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(247,244,255,.55);
}
.mmenu-meta a { color: inherit; }
.mmenu-meta a:hover { color: white; }

/* ==========================================================
   Responsive cutover
========================================================== */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .mega-wrap { display: none; }
}

/* Mobile nav: margini laterali + CTA centrata */
.nav-cta-mob { display: none; }
@media (max-width: 980px) {
  .nav { left: 14px; right: 14px; }
  .nav-inner { position: relative; }
  .nav-cta-mob {
    display: inline-flex !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    padding: 8px 14px;
    white-space: nowrap;
  }
  .nav-cta-mob:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* ============================================================
   Hero
============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,.4), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(34,211,238,.25), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(59,130,246,.32), transparent 60%),
    var(--ink);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  animation: orbFloat 18s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
.orb-1 { width: 540px; height: 540px; background: var(--violet-500); top: -120px; left: -100px; }
.orb-2 { width: 420px; height: 420px; background: var(--ocean-400); top: 30%; right: -120px; animation-delay: -6s; }
.orb-3 { width: 360px; height: 360px; background: var(--aqua-400); bottom: -120px; left: 30%; animation-delay: -12s; opacity: .35;}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.05); }
  66%      { transform: translate(-30px,30px) scale(.98); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
.hero-title {
  font-weight: 800;
  line-height: .92;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: heroWordIn .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-title .word:nth-child(1) { animation-delay: .05s; }
.hero-title .word:nth-child(2) { animation-delay: .15s; }
.hero-title .word:nth-child(3) { animation-delay: .25s; }
.hero-title .word:nth-child(4) { animation-delay: .35s; }
.hero-title .word:nth-child(5) { animation-delay: .45s; }

@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subline {
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(247,244,255,.7);
  /* scala con "Surf the Wave." (0.46em × ~12 char-width × vw ratio del titolo) */
  max-width: clamp(220px, 38.5vw, 530px);
  margin-top: 28px;
  line-height: 1.6;
}
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp .8s .9s cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 80px;
  opacity: 0;
  animation: fadeUp .8s 1.1s cubic-bezier(.2,.8,.2,1) forwards;
  padding-top: 32px;
  border-top: 1px solid rgba(247,244,255,.1);
}
.hero-meta-item .num {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta-item .lab {
  font-size: 13px;
  color: rgba(247,244,255,.6);
  margin-top: 4px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: fadeUp .7s .1s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--aqua-400);
  box-shadow: 0 0 0 4px rgba(34,211,238,.2), 0 0 12px var(--aqua-400);
  animation: pulse 2s ease-in-out infinite;
}
.hero-pill .pill-tag {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(124,58,237,.25);
  color: var(--violet-200);
  font-weight: 500;
  font-size: 12px;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(34,211,238,.2), 0 0 12px var(--aqua-400); }
  50%     { box-shadow: 0 0 0 8px rgba(34,211,238,0), 0 0 20px var(--aqua-400); }
}

/* Hero wave at bottom */
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(247,244,255,.5);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0;
  animation: fadeUp .8s 1.4s cubic-bezier(.2,.8,.2,1) forwards;
}
.scroll-cue .line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--violet-400), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   Marquee (logos / mantras)
============================================================ */
.marquee {
  padding: 28px 0;
  background: linear-gradient(to bottom, rgba(124,58,237,.06), transparent);
  border-top: 1px solid rgba(247,244,255,.08);
  border-bottom: 1px solid rgba(247,244,255,.08);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 36s linear infinite;
  width: max-content;
  align-items: center;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(247,244,255,.5);
  white-space: nowrap;
}
.marquee-item.alt { color: var(--violet-200); }
.marquee-star {
  width: 22px; height: 22px;
  color: var(--aqua-400);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Reveal on scroll
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal-stagger.in > *      { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .65s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .75s; }

/* ============================================================
   Section header
============================================================ */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lead { justify-self: end; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
}

/* ============================================================
   Services
============================================================ */
.services {
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(34,211,238,.1), transparent 60%),
    var(--ink);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 32px 38px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), border-color .4s, background .4s;
  isolation: isolate;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--card-grad, var(--grad-2));
  opacity: 0;
  transition: opacity .5s;
  z-index: -1;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover .service-num,
.service-card:hover .service-meta { color: rgba(255,255,255,.85); }
.service-card:hover .service-title { color: white; }
.service-card:hover .service-desc { color: rgba(255,255,255,.85); }
.service-card:hover .service-icon { color: white; transform: rotate(-6deg) scale(1.05); }

.service-card.span-6 { grid-column: span 6; }
.service-card.span-4 { grid-column: span 4; }
.service-card.span-3 { grid-column: span 3; }
.service-card.span-12 { grid-column: span 12; min-height: 200px; }

.service-card.feature {
  min-height: 360px;
}

@media (max-width: 1000px) {
  .service-card.span-6 { grid-column: span 12; }
  .service-card.span-4 { grid-column: span 6; }
  .service-card.span-3 { grid-column: span 6; }
}
@media (max-width: 600px) {
  .service-card.span-4,
  .service-card.span-3 { grid-column: span 12; }
}

.service-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(247,244,255,.4);
  font-variant-numeric: tabular-nums;
  transition: color .4s;
}
.service-icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
  color: var(--violet-200);
  transition: color .4s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.service-title {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  transition: color .4s;
}
.service-desc {
  font-size: 14.5px;
  color: rgba(247,244,255,.65);
  line-height: 1.55;
  transition: color .4s;
}
.service-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  font-size: 12px;
  color: rgba(247,244,255,.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .4s;
}
.service-meta svg { width: 18px; height: 18px; }

/* feature card visual */
.service-feature-vis {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 280px; height: 280px;
  opacity: .15;
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   Approach / Method
============================================================ */
.approach {
  background:
    radial-gradient(ellipse 50% 50% at 0% 50%, rgba(34,211,238,.12), transparent 60%),
    var(--ink-2);
  border-top: 1px solid rgba(247,244,255,.06);
}
.method-list {
  display: grid;
  gap: 0;
  margin-top: 40px;
}
.method-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 60px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(247,244,255,.08);
  align-items: center;
  transition: background .4s, padding .4s;
  cursor: default;
  position: relative;
}
.method-row:first-child { border-top: 1px solid rgba(247,244,255,.08); }
.method-row::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--grad-2);
  opacity: 0;
  transition: opacity .4s, width .5s cubic-bezier(.2,.8,.2,1);
  z-index: -1;
}
.method-row:hover {
  padding-left: 24px; padding-right: 24px;
}
.method-row:hover::before { opacity: .12; width: 100%; }
.method-row:hover .method-arrow { transform: translateX(8px); color: var(--aqua-300); }

.method-num {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(247,244,255,.4);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.method-title {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.method-desc {
  font-size: 15px;
  color: rgba(247,244,255,.6);
  line-height: 1.55;
  max-width: 52ch;
}
.method-arrow {
  width: 36px; height: 36px;
  color: rgba(247,244,255,.4);
  transition: transform .4s, color .4s;
  justify-self: end;
}
@media (max-width: 900px) {
  .method-row {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 20px;
  }
  .method-num { grid-row: 1; grid-column: 1; }
  .method-title { grid-row: 1; grid-column: 2; }
  .method-desc { grid-row: 2; grid-column: 1 / -1; }
  .method-arrow { display: none; }
}

/* ============================================================
   Values
============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.value-card {
  position: relative;
  padding: 36px 30px 36px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(124,58,237,.18), rgba(59,130,246,.08));
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.value-card:hover { transform: translateY(-6px); }
.value-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,.6), rgba(34,211,238,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.value-card:hover::after { opacity: 1; }
.value-icon {
  width: 44px; height: 44px;
  color: var(--aqua-300);
  margin-bottom: 22px;
}
.value-title {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.value-desc {
  font-size: 15px;
  color: rgba(247,244,255,.7);
  line-height: 1.55;
}

@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Work / Selected projects
============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  border: 1px solid rgba(255,255,255,.08);
  isolation: isolate;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.work-card:nth-child(3n) { aspect-ratio: 4/3.2; }
.work-card:hover { transform: translateY(-6px); }
.work-bg {
  position: absolute; inset: 0;
  z-index: -1;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
}
.work-card:hover .work-bg { transform: scale(1.05); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,3,32,.85) 100%);
  z-index: 0;
}
.work-content {
  position: absolute;
  left: 32px; right: 32px; bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.work-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.work-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.85);
}
.work-name {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.work-desc {
  font-size: 14px;
  color: rgba(247,244,255,.7);
  margin-top: 4px;
}
.work-cta {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--foam);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background .4s, color .4s;
}
.work-card:hover .work-cta {
  transform: rotate(-45deg) scale(1.05);
  background: var(--aqua-300);
}
.work-cta svg { width: 22px; height: 22px; }

@media (max-width: 800px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* Big CTA slot inside work area */
.work-card.kpi {
  background: var(--grad-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  aspect-ratio: 4/3.2;
}
.work-card.kpi .num {
  font-size: clamp(64px, 9vw, 140px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .9;
}
.work-card.kpi .lab {
  font-size: 15px;
  margin-top: 12px;
  max-width: 28ch;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
}

/* ============================================================
   Testimonials
============================================================ */
.testi {
  position: relative;
  background: var(--ink-2);
  border-top: 1px solid rgba(247,244,255,.06);
  border-bottom: 1px solid rgba(247,244,255,.06);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.testi-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .5s, border-color .4s;
}
.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,.4);
}
.testi-quote {
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 24px;
  color: rgba(247,244,255,.92);
}
.testi-quote::before {
  content: "“";
  font-family: var(--font-sans);
  font-size: 60px;
  line-height: .8;
  color: var(--violet-400);
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}
.testi-author {
  display: flex; align-items: center; gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(247,244,255,.08);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-2);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 15px; }
.testi-role { font-size: 13px; color: rgba(247,244,255,.55); }

@media (max-width: 1000px) { .testi-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Big CTA / contact
============================================================ */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(100px, 14vw, 180px) 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(124,58,237,.4), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(34,211,238,.2), transparent 60%);
}
.cta h2 {
  font-size: clamp(36px, 5.6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .92;
  margin: 0 auto;
  max-width: 14ch;
}
.cta-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(247,244,255,.75);
  margin: 28px auto 40px;
  max-width: 50ch;
}
.cta-actions { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-mini {
  margin-top: 56px;
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center;
  font-size: 14px; color: rgba(247,244,255,.55);
}
.cta-mini span { display: inline-flex; align-items: center; gap: 8px; }
.cta-mini svg { width: 16px; height: 16px; color: var(--aqua-300); }

/* ============================================================
   Footer
============================================================ */
.footer {
  padding: 80px 0 40px;
  background: #06021a;
  border-top: 1px solid rgba(247,244,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand-line {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: .9;
}
.footer-tag {
  font-size: 14px;
  color: rgba(247,244,255,.55);
  margin-top: 18px;
  max-width: 38ch;
  line-height: 1.6;
}
.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247,244,255,.4);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: rgba(247,244,255,.75);
  transition: color .25s;
}
.footer-col a:hover { color: var(--aqua-300); }

.footer-bottom {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid rgba(247,244,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: rgba(247,244,255,.45);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Wave SVG patterns
============================================================ */
.wave-divider {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Reduced motion
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   Cursor follower
============================================================ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.18), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  mix-blend-mode: screen;
  filter: blur(40px);
}
@media (max-width: 800px), (pointer: coarse) {
  .cursor-glow { display: none; }
}


/* ============================================================
   Chi siamo extras
============================================================ */
/* Chi siamo — extra styles */

.about-hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 100px;
  overflow: hidden;
  isolation: isolate;
}
.about-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(34,211,238,.18), transparent 60%),
    var(--ink);
}
.about-hero h1 {
  font-size: clamp(36px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .94;
  max-width: 18ch;
}
.about-hero .lead { margin-top: 30px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 21px); }

/* Manifesto */
.manifesto {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(34,211,238,.1), transparent 60%),
    var(--ink-2);
  border-top: 1px solid rgba(247,244,255,.06);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto h2 {
  font-size: clamp(28px, 3.8vw, 56px);
  letter-spacing: -0.028em;
}
.manifesto-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.manifesto-list li {
  position: relative;
  padding: 22px 24px 22px 64px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 16px;
  line-height: 1.55;
  transition: background .35s, border-color .35s, transform .4s;
}
.manifesto-list li:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(124,58,237,.4);
  transform: translateX(4px);
}
.manifesto-list .num {
  position: absolute; left: 22px; top: 22px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--violet-200);
  font-variant-numeric: tabular-nums;
}
.manifesto-list strong { color: var(--foam); font-weight: 600; }

@media (max-width: 900px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Team — accordion a schede che si aprono/chiudono (hover su desktop, tap su mobile) */
.team-accordion {
  display: flex;
  gap: 15px;
  margin-top: 60px;
  height: 560px;
}
.team-acc-card {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: var(--ink-2);
  isolation: isolate;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: flex-basis .65s cubic-bezier(.4,0,.2,1), flex-grow .65s cubic-bezier(.4,0,.2,1), box-shadow .4s, border-color .4s;
}
.team-acc-card.is-active {
  /* quadrata: la larghezza coincide con l'altezza fissa dell'accordion (560px) */
  flex: 0 0 560px;
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 24px 60px -20px rgba(10,3,32,.7);
}
.team-acc-card:not(.is-active):hover { border-color: rgba(255,255,255,.2); }
.team-acc-portrait { position: absolute; inset: 0; }
.team-acc-portrait svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.team-acc-card.is-active .team-acc-portrait svg { transform: scale(1.04); }
.team-acc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,3,32,.95) 8%, rgba(10,3,32,.25) 48%, rgba(10,3,32,.15) 100%);
  transition: background .5s;
}
.team-acc-card:not(.is-active) .team-acc-overlay {
  background: linear-gradient(0deg, rgba(10,3,32,.95) 0%, rgba(10,3,32,.65) 30%, rgba(10,3,32,.18) 65%, rgba(10,3,32,0) 100%);
}
.team-acc-name-wrap {
  position: absolute;
  left: 0; right: 0;
  bottom: 28px;
  display: flex;
  justify-content: center;
  opacity: 1;
  transition: opacity .3s;
  pointer-events: none;
}
.team-acc-card.is-active .team-acc-name-wrap { opacity: 0; }
.team-acc-name-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.team-acc-content {
  position: absolute;
  left: 26px; right: 26px; bottom: 26px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s .05s, transform .4s .05s;
  pointer-events: none;
}
.team-acc-card.is-active .team-acc-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: .2s;
}
.team-acc-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.team-acc-role {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aqua-300); margin-top: 4px;
}
.team-acc-bio { font-size: 13px; color: rgba(247,244,255,.65); line-height: 1.55; margin-top: 10px; max-width: 40ch; }

/* Mobile: righe compatte (avatar 1:1 + nome) che si aprono in scheda con foto quadrata in alto */
@media (max-width: 860px) {
  .team-accordion { flex-direction: column; height: auto; gap: 15px; }

  .team-acc-card {
    flex: none !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 76px;
    transition: height .45s cubic-bezier(.4,0,.2,1), box-shadow .4s, border-color .4s;
  }
  .team-acc-card.is-active {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .team-acc-portrait {
    position: relative; inset: auto;
    width: 76px; height: 76px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin-left: 0;
    transition: width .45s cubic-bezier(.4,0,.2,1);
  }
  .team-acc-card.is-active .team-acc-portrait {
    width: 100%; height: auto;
    aspect-ratio: 1 / 1;
  }

  .team-acc-overlay { display: none; }

  .team-acc-name-wrap {
    position: static;
    inset: auto;
    display: block;
    flex: 1;
    min-width: 0;
    padding: 0 44px 0 16px;
    opacity: 1 !important;
  }
  .team-acc-card.is-active .team-acc-name-wrap { display: none; }
  .team-acc-name-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    display: block;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .team-acc-content {
    position: static;
    left: auto; right: auto; bottom: auto;
    flex: none;
    width: 0;
    opacity: 0;
    max-height: 0;
    transform: none;
    overflow: hidden;
    padding: 0 20px;
    transition: opacity .35s, max-height .45s, padding .45s;
  }
  .team-acc-card.is-active .team-acc-content {
    width: auto;
    opacity: 1;
    max-height: 320px;
    padding: 18px 20px 22px;
    transition-delay: .1s;
  }

  /* Chevron indicator */
  .team-acc-card::after {
    content: '';
    position: absolute;
    top: 50%; right: 22px;
    width: 8px; height: 8px;
    border-right: 2px solid rgba(247,244,255,.4);
    border-bottom: 2px solid rgba(247,244,255,.4);
    transform: translateY(-50%) rotate(45deg);
    transition: transform .35s, top .35s;
  }
  .team-acc-card.is-active::after {
    top: 18px;
    transform: rotate(-135deg);
  }
}

/* Stats / counters */
.stats {
  background: var(--ink);
  border-top: 1px solid rgba(247,244,255,.06);
  border-bottom: 1px solid rgba(247,244,255,.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-cell {
  padding: 50px 28px;
  border-right: 1px solid rgba(247,244,255,.08);
  text-align: left;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-lab {
  font-size: 14px;
  color: rgba(247,244,255,.6);
  margin-top: 14px;
  max-width: 22ch;
  line-height: 1.4;
}
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid rgba(247,244,255,.08); }
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(247,244,255,.08); }
  .stat-cell:last-child { border-bottom: none; }
}

/* Story timeline */
.story {
  background: var(--ink-2);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.story-grid h2 { font-size: clamp(28px, 3.6vw, 52px); letter-spacing: -0.028em; line-height: 1.05; }
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--violet-400), var(--ocean-400), var(--aqua-400));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--violet-400);
  box-shadow: 0 0 0 4px rgba(124,58,237,.15);
}
.timeline-year {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--violet-200);
  text-transform: uppercase;
}
.timeline-title { font-size: 20px; font-weight: 600; margin-top: 6px; letter-spacing: -0.01em; }
.timeline-desc { font-size: 15px; color: rgba(247,244,255,.65); margin-top: 6px; line-height: 1.55; max-width: 56ch; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Studio gallery */
.studio {
  background: var(--ink);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 50px;
}
.gallery-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.08);
}
.gallery-tile.wide { grid-column: span 2; aspect-ratio: 2; }
.gallery-tile.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-tile svg { width: 100%; height: 100%; display: block; }

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-tile.tall { grid-row: span 1; aspect-ratio: 1; }
}

/* FAQ */
.faq {
  background: var(--ink-2);
}
.faq-list {
  margin-top: 50px;
  border-top: 1px solid rgba(247,244,255,.08);
}
.faq-item {
  border-bottom: 1px solid rgba(247,244,255,.08);
}
.faq-q {
  width: 100%;
  padding: 28px 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  color: var(--foam);
  font-family: inherit;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color .25s;
}
.faq-q:hover { color: var(--aqua-300); }
.faq-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(247,244,255,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s;
}
.faq-icon svg { width: 16px; height: 16px; }
.faq-item.open .faq-icon {
  background: var(--violet-500);
  border-color: var(--violet-500);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.2,.8,.2,1);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner {
  padding: 0 0 28px 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(247,244,255,.7);
  max-width: 70ch;
}


/* ============================================================
   Static-site additions: prototypes & helpers
============================================================ */

/* Mobile menu open: lock body scroll */
body.menu-open { overflow: hidden; }

/* Generic page hero (servizi / contatti) */
.page-hero {
  position: relative;
  padding-top: 180px;
  padding-bottom: 80px;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
}
.page-hero h1 {
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .96;
  max-width: 18ch;
}
.page-hero .lead { margin-top: 28px; max-width: 60ch; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-form {
  display: grid;
  gap: 18px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
}
.form-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-banner svg { flex-shrink: 0; }
.form-banner-err {
  background: rgba(255,138,101,.1);
  border: 1px solid rgba(255,138,101,.35);
  color: var(--coral);
}
.contact-form label {
  display: grid; gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(247,244,255,.6);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10,3,32,.5);
  border: 1px solid rgba(247,244,255,.12);
  color: var(--foam);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color .25s, background .25s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--violet-400);
  background: rgba(10,3,32,.85);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form .submit { justify-self: start; margin-top: 8px; }
.contact-form .legal {
  font-size: 12px;
  color: rgba(247,244,255,.45);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* Contact info column */
.contact-info {
  display: grid;
  gap: 26px;
}
.contact-info .item h3 {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.contact-info .item a, .contact-info .item p {
  color: rgba(247,244,255,.75);
  font-size: 15px;
}
.contact-info .item a:hover { color: var(--aqua-300); }
.contact-info .item h3 svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--violet-400); }
.contact-info .map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(160deg, rgba(124,58,237,.18), rgba(34,211,238,.08));
  position: relative;
}
.contact-info .map svg { width: 100%; height: 100%; display: block; }

/* Servizi page list */
.services-page-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 50px;
}
@media (max-width: 800px) { .services-page-list { grid-template-columns: 1fr; } }


/* ============================================================
   New: SEO H1 in hero (small, premium, eyebrow-style)
============================================================ */
.hero-h1-seo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,244,255,.65);
  margin: 0 0 22px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  text-wrap: balance;
}
.hero-h1-seo::before {
  content: '';
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247,244,255,.5));
  display: inline-block;
}

/* Hero visual title (now H2): keep cinematic scale */
.hero-title {
  font-size: clamp(40px, 7vw, 96px) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .94;
  margin: 0;
  text-wrap: balance;
}
.hero-title .word.hand {
  font-size: 0.46em;
  display: inline-block;
  margin-top: 0.18em;
  letter-spacing: -0.01em;
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(36px, 11vw, 60px) !important; }
  .hero-h1-seo { font-size: 11px; letter-spacing: 0.15em; }
  .hero-h1-seo::before { width: 18px; }
}

/* Standard per TUTTE le pagine (presenti e future): su mobile, ogni sezione
   hero-like inizia esattamente a 110px dall'alto — margine coerente sotto
   la nav fissa su ogni pagina del sito, nessuna eccezione.
   (.hero/.grazie-hero: il centraggio verticale via 100vh+align-items:center
   non è affidabile su mobile, dove l'altezza reale della viewport varia con
   la barra degli indirizzi del browser; passiamo a un allineamento in alto
   con padding fisso, identico a .page-hero/.about-hero.) */
@media (max-width: 640px) {
  .hero, .grazie-hero, .page-hero, .about-hero {
    align-items: flex-start;
    padding-top: 110px;
  }
}

/* Section heads — slightly tighter spacing */
.section-head { margin-bottom: 48px; }
@media (max-width: 800px) {
  .section-head { margin-bottom: 36px; gap: 14px; }
}

/* ============================================================
   Mobile menu — close X (top right inside panel)
============================================================ */
.mmenu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247,244,255,.06);
  border: 1px solid rgba(247,244,255,.12);
  color: rgba(247,244,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.mmenu-close:hover { background: rgba(247,244,255,.12); border-color: rgba(247,244,255,.25); transform: rotate(90deg); }
.mmenu-close:focus-visible { outline: 2px solid var(--violet-400); outline-offset: 3px; }

/* Hide subview entirely until activated; hide root only when subview active */
.mmenu .mmenu-services { display: none; }
.mmenu.show-services .mmenu-services { display: flex; flex-direction: column; }
.mmenu.show-services .mmenu-root { display: none; }

/* Active service link state on Servizi button when expanded */
.mmenu-link[aria-expanded="true"] { color: var(--aqua-300); }

/* Eyebrow when wrapped in gradient-text */
.eyebrow .gradient-text { font-weight: 700; }

/* ============================================================
   Thank-you page (/grazie)
============================================================ */
.grazie-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 80px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.grazie-inner {
  max-width: 640px;
  margin: 0 auto;
}
.grazie-check {
  width: 92px; height: 92px;
  margin: 0 auto 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(10,3,32,.9), rgba(10,3,32,.9)) padding-box,
    linear-gradient(135deg, #7c3aed, #3b82f6, #22d3ee) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 0 0 rgba(34,211,238,.4);
  opacity: 0;
  transform: scale(.4);
  animation: grazieCheckIn .7s cubic-bezier(.34,1.4,.64,1) .1s forwards,
             grazieCheckPulse 2.6s ease-in-out 1s infinite;
}
.grazie-check svg { width: 42px; height: 42px; color: var(--foam); }
@keyframes grazieCheckIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes grazieCheckPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,.35); }
  50%      { box-shadow: 0 0 0 16px rgba(34,211,238,0); }
}
.grazie-eyebrow {
  opacity: 0;
  animation: fadeUp .7s .3s cubic-bezier(.2,.8,.2,1) forwards;
  justify-content: center;
}
.grazie-title {
  margin-top: 18px;
  opacity: 0;
  animation: fadeUp .8s .4s cubic-bezier(.2,.8,.2,1) forwards;
}
.grazie-sub {
  margin: 22px auto 0;
  max-width: 46ch;
  opacity: 0;
  animation: fadeUp .8s .55s cubic-bezier(.2,.8,.2,1) forwards;
}
.grazie-ref {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 28px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: rgba(247,244,255,.7);
  letter-spacing: .04em;
  opacity: 0;
  animation: fadeUp .8s .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.grazie-ref b { color: var(--aqua-300); font-weight: 700; }
.grazie-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp .8s .85s cubic-bezier(.2,.8,.2,1) forwards;
}
.grazie-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(247,244,255,.1);
  opacity: 0;
  animation: fadeUp .8s 1s cubic-bezier(.2,.8,.2,1) forwards;
}
.grazie-socials-row {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.grazie-social-link {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(247,244,255,.75);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, color .3s, background .3s;
}
.grazie-social-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.grazie-social-link:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,.5);
  color: var(--foam);
  background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(34,211,238,.2));
}
.grazie-socials-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,244,255,.4);
  text-align: center;
  margin: 0;
}

/* reCAPTCHA v3 invisibile: badge nascosto (obbligo Google: mostrare la
   dicitura testuale al suo posto — vedi .recaptcha-disclaimer nel form) */
.grecaptcha-badge {
  visibility: hidden !important;
}
