/* ================================================================
   NEXWEB — Light Premium CSS
   v=20260610
   ================================================================ */

/* === TOKENS === */
:root {
  --bg:           #ffffff;
  --bg-2:         #f5f6ff;
  --bg-3:         #eef0ff;
  --bg-dark:      #0b0d2e;
  --bg-card:      #ffffff;
  --blue:         #0066FF;
  --cyan:         #00D4FF;
  --purple:       #8833EE;
  --magenta:      #EE0088;
  --text:         #0b0d2e;
  --text-muted:   #5a6285;
  --text-dim:     #9098b8;
  --border:       rgba(0, 0, 0, 0.07);
  --border-card:  rgba(0, 0, 50, 0.07);
  --border-hover: rgba(136, 51, 238, 0.35);
  --shadow:       0 4px 20px rgba(10, 10, 60, 0.07);
  --shadow-md:    0 8px 32px rgba(10, 10, 60, 0.1);
  --shadow-lg:    0 16px 56px rgba(10, 10, 60, 0.13);
  --gradient:     linear-gradient(135deg, #0066FF 0%, #8833EE 50%, #EE0088 100%);
  --gradient-r:   linear-gradient(315deg, #0066FF 0%, #8833EE 50%, #EE0088 100%);
  --radius-sm:    10px;
  --radius:       18px;
  --radius-lg:    28px;
  --nav-h:        160px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.45, 0, 0.55, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Blocco scroll orizzontale — iOS Safari + tutti i browser ── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Scroll progress bar ─────────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 10000;
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ── Glow float — enhanced ───────────────────────────────────── */
.glow-2 { animation-delay: -4.5s; animation-duration: 12s; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;   /* indispensabile per overflow-x su iOS Safari */
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* === SCROLL BAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--purple); opacity: 0.4; border-radius: 3px; }

/* === LAYOUT === */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 100px 0; overflow: hidden; position: relative; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-muted); line-height: 1.75; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  box-shadow: 0 4px 24px rgba(136, 51, 238, 0.35);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(136, 51, 238, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--purple); }

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(136, 51, 238, 0.3);
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 28px rgba(136, 51, 238, 0.5);
}

.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.85rem; }

/* Gradient border ghost button (for white/light sections) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.88rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--purple);
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 2px transparent;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 52px;
  background: var(--gradient);
  z-index: -1;
}
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* === SECTION HEADERS === */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header .section-sub { font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(136,51,238,0.1), rgba(238,0,136,0.06));
  border: 1px solid rgba(136, 51, 238, 0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background-clip: padding-box;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

/* ================================================================
   SPLASH
================================================================ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: splash-hide 0.5s var(--ease-out) 1.6s forwards;
}
@keyframes splash-hide { to { opacity: 0; pointer-events: none; } }

.splash-content { display: flex; flex-direction: column; align-items: center; gap: 2rem; }

.splash-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: splash-pop 0.7s var(--ease-out) 0.1s both;
}
.splash-logo-img { height: 120px; width: auto; }

@keyframes splash-pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

.splash-bar { width: 160px; height: 2px; background: rgba(0,0,0,0.08); border-radius: 2px; overflow: hidden; }
.splash-fill { height: 100%; background: var(--gradient); border-radius: 2px; animation: fill-bar 1.2s var(--ease-out) 0.3s both; }
@keyframes fill-bar { from { width: 0; } to { width: 100%; } }

/* ================================================================
   NAV
================================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 20px rgba(0,0,50,0.07);
  transition: box-shadow 0.3s;
}

#nav.scrolled {
  box-shadow: 0 4px 28px rgba(0,0,50,0.11);
}

.nav-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.nav-logo-img { height: 148px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gradient);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
#mobile-menu {
  position: fixed;
  inset: 0; z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
#mobile-menu a { font-size: 1.6rem; font-weight: 700; color: var(--text-muted); transition: color 0.2s; }
#mobile-menu a:hover { color: var(--text); }
.btn-mobile-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--gradient) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 50px;
  font-size: 1rem !important;
  box-shadow: 0 4px 24px rgba(136,51,238,0.35);
}

/* ================================================================
   HERO
================================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background:
    linear-gradient(140deg, rgba(8,6,45,0.72) 0%, rgba(18,8,58,0.62) 55%, rgba(35,8,40,0.58) 100%),
    url('assets/img/lugano.webp') center 30% / cover no-repeat;
}

#hero-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: glow-float 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(136,51,238,0.18) 0%, transparent 70%);
  top: -15%; right: -5%;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(238,0,136,0.14) 0%, transparent 70%);
  bottom: 5%; left: 5%;
}
@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(15px, -20px) scale(1.05); }
}

.hero-inner {
  position: relative; z-index: 1;
  padding: 5rem 2rem;
  max-width: 1200px; margin: 0 auto; width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50%       { box-shadow: 0 0 0 7px rgba(34,197,94,0.08); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}
.hero-title .reveal { display: block; }

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-motto { display: flex; align-items: center; gap: 0.55rem; }
.motto-icon {
  font-size: 0.75rem;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}
.motto-text {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  letter-spacing: -0.01em;
}
.stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.25); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em; text-transform: uppercase;
  animation: scroll-hint 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}
@keyframes scroll-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.4; }
}

/* ================================================================
   HERO ONDE — SVG sinusoidali animate (linee definite, scroll fluido)
================================================================ */
.hero-deco {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}

/* Glow onda hero */
.hw-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 340px;
  background: linear-gradient(180deg, rgba(136,51,238,0.07) 0%, transparent 100%);
  pointer-events: none;
}

/* Onde in ALTO dell'hero — sfumano verso il bianco scendendo */
.hw-track {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 340px;
  /* Fade verticale (visibile in alto, trasparente in basso) +
     Fade orizzontale (parte da 20% a sinistra, esce a destra) */
  -webkit-mask-image:
    linear-gradient(to bottom, black 0%, black 38%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 22%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, black 0%, black 38%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 22%, black 90%, transparent 100%);
  mask-composite: intersect;
}

/* SVG largo 200% → translateX -50% per loop seamless */
.hw-svg {
  display: block;
  width: 200%; height: 340px;
  animation: hw-scroll 16s linear infinite;
  will-change: transform;
}

@keyframes hw-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   TRUSTED BY
================================================================ */
#trusted {
  padding: 48px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.logos-track { overflow: hidden; }
.logos-inner {
  display: flex; align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-item {
  padding: 0 3rem;
  display: flex; align-items: center;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  transition: opacity 0.25s;
}
.logo-item:hover { opacity: 1 !important; }

.client-logo {
  height: 48px; width: auto; display: block;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.3s ease;
}
.logo-item:hover .client-logo {
  filter: grayscale(0) opacity(1);
}
.client-logo[alt="Vending Solutions Ticino"] {
  height: 90px;
}

/* ================================================================
   SERVICES
================================================================ */
/* ── Servizi: stesso sfondo aurora di #perche ───────────────────────── */
#servizi {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

#servizi::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.025;
  pointer-events: none;
}

#servizi .container { position: relative; z-index: 3; }

#servizi .container { position: relative; z-index: 3; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.services-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Immagine di copertina nella card */
.service-card-img {
  width: calc(100% + 3.5rem);
  margin: -2rem -1.75rem 1.5rem;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover .service-card-img img {
  transform: scale(1.06);
}


.service-card {
  padding: 2rem 1.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,50,160,0.05);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
/* Barra gradiente in cima alla card */
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(136,51,238,0.2);
  box-shadow: 0 12px 36px rgba(136,51,238,0.12);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon-wrap {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(136,51,238,0.1));
  border: 1px solid rgba(136,51,238,0.15);
  margin-bottom: 1.25rem;
  color: var(--purple);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.service-card:hover .service-icon-wrap {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: scale(1.05);
}

.service-card h3 { margin-bottom: 0.65rem; }
.service-card p  { font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.25rem; }

.service-metric {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: linear-gradient(135deg, rgba(136,51,238,0.08), rgba(238,0,136,0.06));
  border: 1px solid rgba(136,51,238,0.18);
  border-radius: 50px;
  font-size: 0.76rem; font-weight: 700;
  color: var(--purple);
}

/* ================================================================
   WHY NEXWEB
================================================================ */


/* ════════════════════════════════════════════════════════════════
   #perche — Aurora con colori logo NexWeb, base chiara
   ════════════════════════════════════════════════════════════════ */
#perche {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

/* ── Aurora container ──────────────────────────────────────────── */
.perche-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Bande — multiply su bianco = colore puro, morbido */
.pa {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: multiply;
  will-change: transform;
}

/* Banda 1 — blu logo #0066FF */
.pa-1 {
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.55) 0%, rgba(0,102,255,0.20) 45%, transparent 72%);
  top: -180px; left: -180px;
  animation: pa1 17s ease-in-out infinite alternate;
}
/* Banda 3 — magenta logo #EE0088 */
.pa-3 {
  width: 850px; height: 520px;
  background: radial-gradient(ellipse, rgba(238,0,136,0.48) 0%, rgba(238,0,136,0.18) 45%, transparent 72%);
  bottom: -130px; left: 10%;
  animation: pa3 19s ease-in-out infinite alternate;
}
/* Banda 4 — viola logo #8833EE */
.pa-4 {
  width: 900px; height: 580px;
  background: radial-gradient(ellipse, rgba(136,51,238,0.50) 0%, rgba(136,51,238,0.18) 45%, transparent 72%);
  top: 15%; left: 30%;
  animation: pa4 14s ease-in-out infinite alternate;
}
/* Banda 5 — ciano logo #00D4FF */
.pa-5 {
  width: 700px; height: 480px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.45) 0%, rgba(0,212,255,0.16) 45%, transparent 72%);
  bottom: -80px; right: -100px;
  animation: pa5 25s ease-in-out infinite alternate;
}

@keyframes pa1 {
  0%   { transform: translate(0px, 0px)    rotate(0deg)   scale(1);    }
  50%  { transform: translate(80px, 60px)  rotate(12deg)  scale(1.12); }
  100% { transform: translate(-40px, 90px) rotate(-8deg)  scale(0.92); }
}
@keyframes pa3 {
  0%   { transform: translate(0px, 0px)    rotate(0deg)   scale(1);    }
  40%  { transform: translate(90px, -60px) rotate(18deg)  scale(1.08); }
  100% { transform: translate(-60px, 40px) rotate(-12deg) scale(0.90); }
}
@keyframes pa4 {
  0%   { transform: translate(0px, 0px)    rotate(0deg)   scale(1);    }
  50%  { transform: translate(-50px, 70px) rotate(-20deg) scale(1.15); }
  100% { transform: translate(60px, -40px) rotate(8deg)   scale(0.88); }
}
@keyframes pa5 {
  0%   { transform: translate(0px, 0px)     rotate(0deg)   scale(1);    }
  60%  { transform: translate(-80px, -55px) rotate(22deg)  scale(1.18); }
  100% { transform: translate(45px, 65px)   rotate(-14deg) scale(0.93); }
}

/* ── Grid overlay sottile ───────────────────────────────────────── */
.perche-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(136,51,238,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136,51,238,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 30%, transparent 100%);
}

/* ── Contenuto sopra tutto ──────────────────────────────────────── */
#perche .container { position: relative; z-index: 3; }

/* ── Testo su sfondo chiaro ─────────────────────────────────────── */
#perche .section-tag { color: var(--purple); border-color: rgba(136,51,238,0.25); background: rgba(136,51,238,0.07); -webkit-text-fill-color: var(--purple); }
#perche h2          { color: var(--text); }
#perche .why-left p { color: var(--text-muted); }

/* ── Card su sfondo chiaro ──────────────────────────────────────── */
#perche .why-item {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(136,51,238,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,102,255,0.08);
}
#perche .why-item:hover {
  border-color: rgba(136,51,238,0.35);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 32px rgba(136,51,238,0.15);
  transform: translateX(5px);
}
#perche .why-content h4 { color: var(--text); }
#perche .why-content p  { color: var(--text-muted); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.why-left h2 { margin-bottom: 1.25rem; }
.why-left p  { margin-bottom: 2rem; font-size: 1.05rem; }

.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  margin-bottom: 1rem;
}
.why-item:last-child { margin-bottom: 0; }
.why-item:hover {
  border-color: rgba(136,51,238,0.2);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.why-num {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  border: 1.5px solid rgba(136,51,238,0.2);
  border-radius: 10px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.why-content h4 { margin-bottom: 0.4rem; }
.why-content p  { font-size: 0.9rem; }

/* ================================================================
   TERRITORIO
================================================================ */
#territorio { padding: 0; overflow: hidden; }

.territorio-img-wrap {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.territorio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.territorio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,13,46,0.75) 0%,
    rgba(0,60,200,0.40) 55%,
    rgba(11,13,46,0.60) 100%
  );
}

.territorio-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #fff;
}

.territorio-tag {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.08) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.85) !important;
}

.territorio-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.8rem 0 1rem;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.territorio-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  line-height: 1.75;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .territorio-img-wrap { height: 400px; }
}

/* ================================================================
   TEAM
================================================================ */
#team { background: var(--bg-2); padding: var(--section-pad) 0; overflow: hidden; }

/* ── Team: layout righe alternate foto | testo ──────────────────── */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.team-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: center;
}

.team-row--reverse {
  grid-template-columns: 1fr 420px;
}
.team-row--reverse .team-photo-col { order: 2; }
.team-row--reverse .team-text-col  { order: 1; }

/* Foto */
.team-photo-wrap {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8d5ff 0%, #d4b0f5 50%, #f5c0e8 100%);
  box-shadow: 0 24px 64px rgba(0,102,255,0.12), 0 4px 16px rgba(0,0,0,0.08);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.team-photo-wrap:hover .team-photo { transform: scale(1.04); }
.team-photo[alt*="Javier"] { object-position: center 40%; }

.team-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(11,13,46,0.35) 100%);
  pointer-events: none;
}

/* Testo */
.team-num-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--purple);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.team-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.team-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

.team-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1.5rem;
  max-width: 460px;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.team-skills span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,102,255,0.07), rgba(136,51,238,0.09));
  border: 1px solid rgba(136,51,238,0.18);
  color: var(--purple);
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}
.team-linkedin:hover { opacity: 0.85; transform: translateY(-2px); }

@media (max-width: 900px) {
  .team-row,
  .team-row--reverse { grid-template-columns: 1fr; gap: 2rem; }
  .team-row--reverse .team-photo-col { order: 0; }
  .team-row--reverse .team-text-col  { order: 1; }
  .team-photo-wrap { height: 340px; }
}

/* ================================================================
   PROCESS
================================================================ */
#processo { background: var(--bg); overflow: hidden; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.process-step { position: relative; }

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(136,51,238,0.4);
  flex-shrink: 0;
  position: relative; z-index: 1;
}

.step-connector {
  flex: 1; height: 2px;
  background: linear-gradient(to right, rgba(136,51,238,0.3), rgba(238,0,136,0.1));
  margin-left: 0.75rem;
}
.step-connector.last { background: transparent; }

.process-step h4 { margin-bottom: 0.65rem; font-size: 1rem; }
.process-step p  { font-size: 0.88rem; line-height: 1.7; }

/* ================================================================
   RESULTS — Dark contrast section
================================================================ */
/* ================================================================
   RISULTATI
================================================================ */
#risultati { background: var(--bg-dark); overflow: hidden; }
#risultati .section-tag { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.07); -webkit-text-fill-color: rgba(255,255,255,0.75); }
#risultati h2 { color: #ffffff; }
#risultati .section-sub { color: rgba(255,255,255,0.65); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.result-card {
  padding: 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.result-card:hover {
  transform: translateY(-4px);
  border-color: rgba(136,51,238,0.35);
  box-shadow: 0 12px 32px rgba(136,51,238,0.15);
}
.result-card::after { display: none; }

.result-highlight {
  background: linear-gradient(135deg, rgba(0,102,255,0.08), rgba(136,51,238,0.1), rgba(238,0,136,0.06));
  border-color: rgba(136,51,238,0.25);
}
.result-highlight::after {
  content: '★ Best';
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.7rem; font-weight: 700;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  display: block;
}

.result-category {
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.result-big {
  display: flex; align-items: baseline; gap: 0.1rem;
  margin-bottom: 0.5rem;
}
.result-big .count-up {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.result-sign {
  font-size: 1.8rem; font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-metric { font-size: 0.92rem; font-weight: 600; color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }

.result-details {
  display: flex; flex-direction: column; gap: 0.3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}
.result-details span { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ── Reel Spotlights ────────────────────────────────────────────── */
.reels-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.reels-row--viral {
  margin-top: 1.5rem;
}

.reel-spotlight {
  margin-top: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(136,51,238,0.2);
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.reel-spotlight::before {
  content: '★ Viral';
  position: absolute; top: 0.55rem; right: 0.7rem;
  font-size: 0.6rem; font-weight: 700;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.12rem 0.4rem;
  border-radius: 20px;
}

.reel-embed-col { width: 100%; }
.reel-embed-col .instagram-media {
  border-radius: 8px !important;
  min-width: unset !important;
  width: 100% !important;
  margin: 0 !important;
}

.reel-views-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.5rem;
}
.reel-views-num {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reel-views-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  line-height: 1.3;
}

.reel-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.result-details span { font-size: 0.7rem; }

.reel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}
.reel-cta:hover { opacity: 0.85; transform: translateY(-2px); }

/* Numeri mega (1M, 1.4M) */
.reel-spotlight--mega {
  border-color: rgba(238,0,136,0.25);
  background: linear-gradient(135deg, rgba(0,102,255,0.04), rgba(136,51,238,0.06), rgba(238,0,136,0.04));
}
.reel-spotlight--mega::before { content: '🔥 Virale'; }
.reel-views-num--mega { font-size: 2rem; }

@media (max-width: 960px) {
  .reels-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .reel-spotlight { grid-template-columns: 110px 1fr; gap: 0.75rem; }
}

/* ── Web Showcase ───────────────────────────────────────────────── */
.web-showcase-header {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
}
.web-showcase-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0;
}

.web-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.web-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.web-card:hover {
  border-color: rgba(0,102,255,0.3);
  transform: translateY(-4px);
}

/* Browser chrome */
.web-card-preview { width: 100%; }
.web-card-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.web-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-block;
}
.web-card-dot:nth-child(1) { background: rgba(255,95,87,0.6); }
.web-card-dot:nth-child(2) { background: rgba(255,189,46,0.6); }
.web-card-dot:nth-child(3) { background: rgba(40,201,64,0.6); }
.web-card-url {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  margin-left: 0.4rem;
  font-family: monospace;
}

/* Screenshot */
.web-card-img-wrap {
  width: 100%;
  /* Proporzione reale degli screenshot (1440×820 ≈ 56.9%) */
  aspect-ratio: 1440 / 820;
  overflow: hidden;
  position: relative;
}
.web-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
.web-card:hover .web-card-img { transform: scale(1.03); }

/* Placeholder per siti offline */
.web-card-img-wrap--placeholder {
  background: linear-gradient(135deg, rgba(0,102,255,0.15), rgba(136,51,238,0.2), rgba(238,0,136,0.12));
}
.web-card-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.75rem;
}
.web-card-placeholder-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; color: #fff;
  display: grid; place-items: center;
}
.web-card-placeholder-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

/* Info */
.web-card-info { padding: 1.1rem 1.25rem 1.25rem; }
.web-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.4rem;
}
.web-card-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}
.web-card-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(0,212,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.web-card-link:hover { color: #fff; }

@media (max-width: 640px) {
  .web-showcase-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   TESTIMONIALS
================================================================ */
#testimonianze { background: var(--bg-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.stars { font-size: 0.95rem; color: #f59e0b; letter-spacing: 0.05em; margin-bottom: 1.25rem; }

.testimonial-card blockquote p {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text-muted); font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author { display: flex; align-items: center; gap: 0.9rem; }

.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

.author-info strong { display: block; font-size: 0.9rem; }
.author-info span   { font-size: 0.78rem; color: var(--text-dim); }

/* ================================================================
   FAQ
================================================================ */
#faq { background: var(--bg); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.faq-left { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-left h2 { margin-bottom: 1rem; }
.faq-left p  { margin-bottom: 2rem; font-size: 1.05rem; }

.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.35rem 0;
  font-size: 0.97rem; font-weight: 600;
  color: var(--text); text-align: left; gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--purple); }

.faq-icon {
  font-size: 1.4rem; font-weight: 300;
  color: var(--purple);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-answer p { padding-bottom: 1.25rem; font-size: 0.92rem; line-height: 1.8; }

/* ================================================================
   CONTACT / CTA — Gradient background
================================================================ */
#contatto {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}
#contatto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-header { text-align: center; margin-bottom: 3rem; }
.cta-header h2 { color: #ffffff; margin-bottom: 1rem; }
.cta-header p  { color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.cta-header .section-tag { color: rgba(255,255,255,0.8) !important; border-color: rgba(255,255,255,0.25) !important; background: rgba(255,255,255,0.1) !important; -webkit-text-fill-color: rgba(255,255,255,0.8) !important; }

/* Form on gradient bg */
.contact-form { width: 100%; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group { display: flex; flex-direction: column; }
.form-full  { margin-bottom: 1rem; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.13);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option { background: #1a0a3d; color: #fff; }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit-row {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem;
}

.btn-form {
  padding: 1rem 2rem; font-size: 1rem;
}
.btn-form:hover {
  box-shadow: 0 8px 32px rgba(0,80,180,0.22);
}

.form-privacy { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

.form-success {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  color: #166534; font-size: 0.92rem; font-weight: 500;
}

/* ================================================================
   HERO — LANGUAGE SWITCHER
================================================================ */
.hero-lang {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.2rem;
}
.hlang {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 4px 14px;
  border-right: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.02em;
  transition: color 0.18s;
}
.hlang:last-child { border-right: none; }
.hlang:first-child { padding-left: 0; }
.hlang:hover { color: #ffffff; }
.hlang-cur {
  color: #ffffff;
  font-weight: 800;
}

/* ================================================================
   FOOTER
================================================================ */
#footer {
  background: #f0f2ff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 5rem 0 2rem;
}

#footer h5 { color: var(--text-muted); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}

.footer-logo-link { display: inline-block; }
.footer-logo-img { height: 160px; width: auto; display: block; }

.footer-brand p {
  font-size: 0.88rem; line-height: 1.7;
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}

.footer-social { display: flex; gap: 0.75rem; }

.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9px; color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.social-link:hover {
  background: rgba(136,51,238,0.12);
  border-color: rgba(136,51,238,0.3);
  color: var(--purple);
}

.footer-col h5 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul li,
.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--blue); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.78rem; color: var(--text-muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--blue); }

/* ================================================================
   REVEALS
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }
.no-gsap .reveal   { opacity: 1 !important; transform: none !important; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .services-grid      { grid-template-columns: repeat(2, 1fr); }
  .results-grid       { grid-template-columns: repeat(2, 1fr); }
  .process-steps      { grid-template-columns: repeat(2, 1fr); }
  .step-connector     { display: none; }
  .why-grid           { grid-template-columns: 1fr; gap: 3rem; }
  .faq-grid           { grid-template-columns: 1fr; gap: 3rem; }
  .faq-left           { position: static; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .footer-brand       { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  section { padding: 70px 0; }
  .container { padding: 0 1.25rem; }

  .nav-links { display: none; }
  .btn-nav   { display: none; }
  .nav-burger { display: flex; }

  #hero { min-height: 100svh; }
  .hero-inner { padding: 2rem 1.25rem 5rem; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-ctas  { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.5rem; }
  .stat-num   { font-size: 1.9rem; }

  .services-grid      { grid-template-columns: 1fr; }
  .results-grid       { grid-template-columns: 1fr; }
  .process-steps      { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .logos-inner { animation-duration: 60s; }
  .glow-1, .glow-2 { animation: none; }
}
