/* ============================================================
   IMPACTA EVENTI — Style Sheet
   Aesthetic: Next-Gen Show / Ultraviolet Dark
   Fonts: Bebas Neue (display) + DM Sans (body)
============================================================ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --bg:           #05030F;
  --bg-2:         #0A0612;
  --bg-3:         #120A1E;
  --accent:       #7C3AED;
  --accent-rgb:   124, 58, 237;
  --accent-warm:  #D946EF;
  --accent-warm-rgb: 217, 70, 239;
  --accent-dim:   rgba(124, 58, 237, 0.10);
  --accent-mid:   rgba(124, 58, 237, 0.35);
  --gradient:     linear-gradient(135deg, #7C3AED 0%, #D946EF 100%);
  --gradient-hover: linear-gradient(135deg, #6d28d9 0%, #c026d3 100%);
  --text:         #F0EDE8;
  --text-muted:   #4A4A5A;
  --text-soft:    #9090A8;
  --border:       rgba(124, 58, 237, 0.14);
  --border-soft:  rgba(255,255,255,0.05);
  --border-hover: rgba(124, 58, 237, 0.5);
  --glow:         0 0 40px rgba(124, 58, 237, 0.25), 0 0 80px rgba(217, 70, 239, 0.10);

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --nav-h: 68px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --section-pad: clamp(80px, 11vw, 150px);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
select { font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Custom Cursor ──────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .28s var(--ease-expo), height .28s var(--ease-expo),
              background .28s ease, border-color .28s ease;
  will-change: transform;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform .07s linear;
}
body.cursor-hover .cursor {
  width: 52px; height: 52px;
  background: rgba(var(--accent-rgb), 0.07);
  border-color: var(--accent);
}
body.cursor-hidden .cursor,
body.cursor-hidden .cursor-dot { opacity: 0; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } body { cursor: auto; } }

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity .9s var(--ease-expo), transform .9s var(--ease-expo);
}
.reveal           { transform: translateY(48px); }
.reveal-left      { transform: translateX(-56px); }
.reveal-right     { transform: translateX(56px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}
[data-delay="0"] { transition-delay: 0s; }
[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.22s; }
[data-delay="3"] { transition-delay: 0.32s; }

/* ── Typography Utilities ───────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  line-height: 1.0;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text);
}
.accent-text { color: var(--accent); }
.section-desc {
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
  font-weight: 300; line-height: 1.8;
  color: var(--text-soft); margin-top: 1.2rem;
  max-width: 640px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gradient); color: #fff;
  font-family: var(--font-body); font-size: .75rem;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 32px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-hover);
  opacity: 0; transition: opacity .3s ease;
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(var(--accent-rgb), 0.4), 0 0 60px rgba(var(--accent-warm-rgb), 0.15);
  transform: translateY(-1px);
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary svg { transition: transform .25s var(--ease-expo); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-primary:disabled, .btn-primary[disabled] {
  background: var(--bg-3); color: var(--text-muted);
  cursor: not-allowed; box-shadow: none; transform: none;
  border: 1px solid var(--border-soft);
}
.btn-primary:disabled::after { display: none; }
.btn-primary.ready {
  background: var(--gradient);
  animation: pulse-btn 2s ease infinite;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft); padding: 15px 24px;
  border: 1px solid var(--border-soft);
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text); padding: 13px 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  position: relative; overflow: hidden;
  transition: color .3s ease, border-color .3s ease;
  margin-top: 2rem;
}
.btn-outline::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); transform: translateX(-101%);
  transition: transform .4s var(--ease-expo); z-index: -1;
}
.btn-outline:hover { color: #fff; border-color: var(--accent); }
.btn-outline:hover::before { transform: translateX(0); }

/* ── Navigation ─────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  transition: background .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(5,3,15,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(124, 58, 237, 0.15);
}
.nav-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 40px;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .8; }
.logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--accent);
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .04em;
  color: #fff; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .18em;
  color: var(--text);
}
.logo-sub {
  font-size: .6rem; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent);
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-soft); position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s var(--ease-expo);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: var(--gradient);
  padding: 10px 22px; flex-shrink: 0;
  position: relative; overflow: hidden;
  transition: box-shadow .25s ease;
}
.nav-cta::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-hover); opacity: 0; transition: opacity .3s ease;
}
.nav-cta span { position: relative; z-index: 1; }
.nav-cta:hover::after { opacity: 1; }
.nav-cta:hover { box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px; background: var(--text);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile Menu ─────────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(5,3,15,.97);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  backdrop-filter: blur(20px);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.mobile-link {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: .06em; color: var(--text);
  transition: color .2s;
}
.mobile-link:hover { color: var(--accent); }
.mobile-link--cta { color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────── */
#hero {
  position: relative; height: 100dvh; min-height: 620px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  z-index: 10;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 0;
}
.hero-noise {
  position: absolute; inset: 0; z-index: 1; opacity: .04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(124, 58, 237, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 65% 60%, rgba(217, 70, 239, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 55%, transparent 0%, rgba(5,3,15,.80) 65%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px;
  max-width: 1000px;
}
.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: .65rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 1.8rem;
  opacity: 0; animation: fadeIn 1s var(--ease-expo) .2s forwards;
}
.eyebrow-dot {
  display: block; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50;
  animation: pulseDot 2s ease infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 12rem);
  line-height: .9; letter-spacing: .03em; text-transform: uppercase;
  margin-bottom: 2.2rem;
}
.hero-line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-line > span {
  display: block; transform: translateY(108%);
  animation: slideUp 1.2s var(--ease-expo) forwards;
}
.hero-line:nth-child(1) > span { animation-delay: .35s; color: var(--text); }
.hero-line--accent > span    { animation-delay: .55s; color: var(--accent); }

.hero-sub {
  font-size: clamp(.9rem, 1.4vw, 1.1rem); font-weight: 300;
  line-height: 1.85; color: var(--text-soft); margin-bottom: 2.8rem;
  opacity: 0; animation: fadeIn 1s var(--ease-expo) 1s forwards;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeIn 1s var(--ease-expo) 1.2s forwards;
}

/* Hero stats bar */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 20px 40px;
  background: rgba(5,3,15,.65); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  opacity: 0; animation: fadeIn .8s ease 1.8s forwards;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; padding: 0 3rem; }
.stat-val {
  font-family: var(--font-display); font-size: 2rem; letter-spacing: .06em;
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-size: .62rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px;
}
.hero-stat-sep { width: 1px; height: 36px; background: var(--border-soft); flex-shrink: 0; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 2; opacity: 0; animation: fadeIn .8s ease 2s forwards;
}
.scroll-line-wrap { width: 1px; height: 50px; background: rgba(var(--accent-rgb),.15); overflow: hidden; }
.scroll-line {
  width: 1px; height: 100%; background: var(--accent);
  animation: scrollDrop 2s ease-in-out 2.2s infinite;
}

/* ── Section Layout ─────────────────────────────────────── */
.section-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 40px;
  position: relative; z-index: 1;
}
.section-header { margin-bottom: 4rem; }

#cosa-facciamo {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
}
#formazione {
  padding: var(--section-pad) 0;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
  margin: -60px 0;
  position: relative; z-index: 1;
}
#convention {
  padding: var(--section-pad) 0;
  background: var(--bg-2);
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-top: -60px;
}
#perche-noi {
  padding: var(--section-pad) 0;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 calc(100% - 60px));
  margin: -60px 0; z-index: 1; position: relative;
}
#preventivo {
  padding: var(--section-pad) 0;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 60px, 100% 100%, 0 100%);
  margin-top: -60px; position: relative; z-index: 1;
}
.section-dark { background: var(--bg); }

/* ── Pillars Grid (Cosa Facciamo) ───────────────────────── */
.pillars-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.pillar-card {
  background: var(--bg-2); padding: 2.8rem 2.4rem;
  display: flex; flex-direction: column; gap: .8rem;
  position: relative; overflow: hidden;
  transition: background .35s ease;
}
.pillar-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .5s var(--ease-expo);
}
.pillar-card:hover { background: var(--bg-3); }
.pillar-card:hover::after { width: 100%; }

.pillar-num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em;
  color: rgba(var(--accent-rgb), .22);
}
.pillar-icon { color: var(--accent); opacity: .85; margin-bottom: .4rem;
  transition: transform .4s var(--ease-expo), opacity .3s;
}
.pillar-card:hover .pillar-icon { opacity: 1; transform: scale(1.08); }
.pillar-title {
  font-family: var(--font-display); font-size: 1.45rem;
  letter-spacing: .06em; color: var(--text); text-transform: uppercase;
}
.pillar-desc {
  font-size: .9rem; font-weight: 300; line-height: 1.75; color: var(--text-soft);
}

/* ── Split Layout (Formazione / Convention) ─────────────── */
.section-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.section-split--reverse { }
.section-split--reverse .split-text { order: 2; }
.section-split--reverse .split-features { order: 1; }

.split-text { display: flex; flex-direction: column; }
.split-desc {
  font-size: clamp(.95rem, 1.2vw, 1rem); font-weight: 300;
  line-height: 1.85; color: var(--text-soft); margin-top: 1.4rem;
}
.split-sub {
  font-size: .9rem; font-weight: 300; line-height: 1.8;
  color: var(--text-muted); margin-top: 1rem;
}
.split-sub strong { color: var(--accent); font-weight: 500; }

.split-features { display: flex; flex-direction: column; gap: 1.2rem; }
.feature-card {
  display: flex; align-items: flex-start; gap: 1.2rem;
  padding: 1.6rem 1.8rem;
  background: var(--bg-3); border: 1px solid var(--border-soft);
  border-left: 2px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.feature-card:hover {
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb), .04);
}
.feature-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; opacity: .85; }
.feature-card:hover .feature-icon { opacity: 1; }
.feature-title {
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: .06em; color: var(--text); text-transform: uppercase;
  margin-bottom: .4rem;
}
.feature-desc { font-size: .88rem; font-weight: 300; line-height: 1.7; color: var(--text-soft); }

/* ── Differentiators (Perché Noi) ───────────────────────── */
.differentiators {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.diff-block {
  background: var(--bg); padding: 2.8rem 2.4rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
  transition: background .3s ease;
}
.diff-block:hover { background: rgba(var(--accent-rgb), .03); }
.diff-accent {
  position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--accent);
  transition: height .5s var(--ease-expo);
}
.diff-block:hover .diff-accent { height: 100%; }

.diff-title {
  font-family: var(--font-display); font-size: 1.5rem;
  letter-spacing: .06em; color: var(--text); text-transform: uppercase;
}
.diff-lead {
  font-size: .92rem; font-weight: 300; line-height: 1.8; color: var(--text-soft);
  flex: 1;
}
.diff-divider { width: 40px; height: 1px; background: rgba(var(--accent-rgb), .3); margin: .4rem 0; }
.diff-vs {
  font-size: .82rem; font-weight: 300; line-height: 1.7; color: var(--text-muted);
}
.diff-vs strong { color: var(--accent); font-weight: 600; }


/* ── Contact Form ────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; align-items: start;
}
.contact-left .section-title { margin: .5rem 0 2rem; }
.contact-intro {
  font-size: .95rem; font-weight: 300; line-height: 1.8;
  color: var(--text-soft); margin-bottom: 2.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.6rem; }
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-item-label {
  font-size: .6rem; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent);
}
.contact-item-val {
  font-size: .95rem; font-weight: 300; color: var(--text-soft);
  transition: color .2s;
}
a.contact-item-val:hover,
a.contact-item:hover .contact-item-val { color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .62rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-family: var(--font-body); font-size: .9rem; font-weight: 300;
  padding: 13px 15px; outline: none;
  transition: border-color .3s, background .3s;
  -webkit-appearance: none; resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .03);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-2); }

.form-check { display: flex; align-items: flex-start; gap: 11px; }
.form-check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; min-width: 15px;
  border: 1px solid var(--border-soft); background: transparent;
  cursor: pointer; margin-top: 2px;
  transition: border-color .2s, background .2s;
}
.form-check input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 10px 8px; background-repeat: no-repeat; background-position: center;
}
.form-check label {
  font-size: .82rem; color: var(--text-muted); line-height: 1.5; cursor: pointer;
}
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.btn-submit {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 1px solid rgba(var(--accent-rgb), .4);
  color: var(--text);
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 34px; cursor: pointer;
  position: relative; overflow: hidden; align-self: flex-start;
  transition: color .3s, border-color .3s;
}
.btn-submit::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); transform: translateX(-101%);
  transition: transform .4s var(--ease-expo); z-index: 0;
}
.btn-submit:hover { color: #fff; border-color: var(--accent); }
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit .btn-text,
.btn-submit .btn-arrow { position: relative; z-index: 1; }
.btn-submit .btn-loader {
  display: none; width: 13px; height: 13px;
  border: 1.5px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
  position: relative; z-index: 1;
}
.btn-submit.loading .btn-loader { display: block; }
.btn-submit.loading .btn-arrow { display: none; }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

.form-feedback { font-size: .82rem; min-height: 1.2em; }
.form-feedback.success { color: #5dbb7f; }
.form-feedback.error   { color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────── */
#footer {
  position: relative; padding: 56px 0 36px;
  background: var(--bg-2);
  border-top: 1px solid var(--border-soft);
  overflow: hidden;
}
.footer-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 40px;
  position: relative; z-index: 1;
}
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo .logo-mark { width: 32px; height: 32px; font-size: .95rem; }
.footer-logo .logo-main {
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .16em; color: var(--text);
}
.footer-tagline {
  display: block; font-size: .58rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 3px;
}
.footer-nav ul { display: flex; justify-content: center; gap: 2.2rem; flex-wrap: wrap; }
.footer-nav a {
  font-size: .65rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-muted); transition: color .2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-email {
  font-size: .82rem; color: var(--text-soft);
  transition: color .2s;
}
.footer-email:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { font-size: .62rem; color: var(--text-muted); transition: color .2s; }
.footer-legal a:hover { color: var(--text-soft); }
.footer-copy { font-size: .6rem; color: rgba(90,90,104,.5); }
.footer-bg-text {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 18rem);
  letter-spacing: .08em; color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), .04);
  white-space: nowrap; user-select: none; pointer-events: none; z-index: 0; line-height: 1;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes slideUp  { to { transform: translateY(0); } }
@keyframes fadeIn   { to { opacity: 1; } }
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: .6; }
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .4); }
  50%       { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .section-split { gap: 50px; }
  .contact-layout { gap: 60px; }
  .differentiators { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* No horizontal shift on mobile — GSAP handles entrance, CSS shift causes cut-off */
  .reveal-left  { transform: none; }
  .reveal-right { transform: none; }

  .section-split { grid-template-columns: 1fr; gap: 40px; }
  .section-split--reverse .split-text,
  .section-split--reverse .split-features { order: unset; }

  .pillars-grid { grid-template-columns: 1fr; }
  .differentiators { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 50px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo  { justify-content: center; }
  .footer-right { align-items: center; }

  #cosa-facciamo, #convention, #preventivo {
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
    margin-top: -40px;
  }
  #formazione, #perche-noi {
    clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 calc(100% - 40px));
    margin: -40px 0;
  }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0 20px; }
  .section-inner { padding: 0 20px; }
  .hero-stats { display: none; }
  .scroll-indicator { bottom: 30px; }
  .form-row { grid-template-columns: 1fr; }
  #footer { padding: 48px 0 28px; }
  .footer-inner { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ── GSAP Cinematic Parallax ────────────────────────────── */

/* Curtain-reveal wrapper — clips line inner as it slides up */
.tl-wrap {
  display: block;
  overflow: hidden;
  /* add a hair of extra height so descenders aren't clipped */
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.tl-inner {
  display: block;
}

/* ── Marquee strip scroll-driven ────────────────────── */
.marquee-strip {
  overflow: hidden;
  padding: 20px 0;
  background: var(--bg);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-strip--reverse { background: var(--bg-2); }
.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 64px);
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124, 58, 237, 0.30);
  padding-right: 0;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .marquee-strip { display: none; }
}

/* Performance hints on elements GSAP will animate heavily */
.hero-content,
.hero-line > span,
.hero-stats,
.pillar-card,
.feature-card,
.diff-block,
.section-bg-num,
#contact-form {
  will-change: transform;
}
