/* ============================================================
   MARTA CLIVIO — Web Designer | Pescara
   Atelier dark luxury aesthetic
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=general-sans@400,500,600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --violet-100: #ede8ff;
  --violet-200: #d6ccff;
  --violet-300: #c4b1ff;
  --violet-400: #a98fff;
  --violet-500: #8b6bff;
  --noir: #080810;
  --noir-2: #0e0e1a;
  --noir-3: #161625;
  --noir-4: #1e1e30;
  --noir-5: #2a2a40;
  --blanc: #f8f7ff;
  --blanc-2: #e8e6f0;
  --gris: #9896a8;
  --gris-2: #6b697a;

  --font-display: 'Clash Display', sans-serif;
  --font-body: 'General Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;

  --max-width: 1200px;
  --section-padding: 120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--noir); /* base scura sotto il canvas */
}

body {
  background: transparent; /* trasparente → canvas z-index:-1 visibile */
  color: var(--blanc);
  font-family: var(--font-body);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.display-1 { font-size: clamp(3rem, 7vw, 7rem); font-weight: 700; letter-spacing: -0.04em; }
.display-2 { font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 600; letter-spacing: -0.03em; }
.display-3 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); font-weight: 600; }

.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body-md { font-size: 1rem; line-height: 1.65; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-padding) 0; }
.section--sm { padding: 80px 0; }
.section--lg { padding: 160px 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.text-center { text-align: center; }
.text-violet { color: var(--violet-300); }
.text-gris { color: var(--gris); }

/* ── Intro Overlay ────────────────────────────────────────── */
#intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

#intro.fade-out { opacity: 0; }

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

#intro-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity 0.5s ease;
}

#intro-logo.hidden { opacity: 0; }

.intro-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--blanc);
  opacity: 0;
  animation: intro-logo-in 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards;
}

.intro-name span { color: var(--violet-300); }

@keyframes intro-logo-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

#intro-panel-top {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 50%;
  background: var(--noir);
  z-index: 2;
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
  /* Glowing edge at seam */
  box-shadow: 0 2px 0 0 rgba(196, 177, 255, 0.0);
}

#intro-panel-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: var(--noir);
  z-index: 2;
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

#intro-seam {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  z-index: 3;
  background: transparent;
  transition: box-shadow 0.3s ease, opacity 1.6s ease;
}

#intro-seam.glow {
  box-shadow: 0 0 24px 4px rgba(196, 177, 255, 0.5),
              0 0 60px 12px rgba(196, 177, 255, 0.2);
  background: rgba(196, 177, 255, 0.6);
}

#intro-panel-top.open    { transform: translateY(-100%); }
#intro-panel-bottom.open { transform: translateY(100%); }

/* ── Canvas Background ────────────────────────────────────── */
#constellation-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 177, 255, 0.08);
  padding: 14px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blanc), var(--violet-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__logo span { color: var(--violet-300); -webkit-text-fill-color: var(--violet-300); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gris);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--violet-300);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active { color: var(--blanc); }

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta {
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--violet-300);
  color: var(--noir);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav__cta:hover {
  background: var(--violet-200);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(196, 177, 255, 0.3);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blanc);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 16, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--violet-300);
  color: var(--noir);
}

.btn--primary:hover {
  background: var(--violet-200);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 177, 255, 0.35);
}

.btn--outline {
  border: 1px solid rgba(196, 177, 255, 0.4);
  color: var(--blanc);
}

.btn--outline:hover {
  border-color: var(--violet-300);
  background: rgba(196, 177, 255, 0.08);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--violet-300);
  padding: 0;
  gap: 8px;
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--transition);
}

.btn--ghost:hover::after { transform: translateX(4px); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(196, 177, 255, 0.2);
  background: var(--noir-3);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  margin-bottom: 64px;
}

.section-header--center { text-align: center; }

.section-header .overline { margin-bottom: 16px; display: block; }

.section-header h2 { margin-bottom: 20px; }

.section-header p {
  color: var(--gris);
  max-width: 560px;
}

.section-header--center p { margin: 0 auto; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 177, 255, 0.2), transparent);
  margin: 0;
}

/* ── Tag ──────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(196, 177, 255, 0.1);
  color: var(--violet-300);
  border: 1px solid rgba(196, 177, 255, 0.2);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  z-index: 1;
}

/* Centered hero variant */
.hero--centered {
  text-align: center;
}

.hero__centered-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero__centered-inner .hero__subtitle {
  max-width: 560px;
  text-align: center;
}

.hero__centered-inner .hero__actions {
  justify-content: center;
}

/* Stats row (inline, under CTA) */
.hero__stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(196, 177, 255, 0.1);
  width: 100%;
  justify-content: center;
}

.hero__stat-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__stat-inline .hero__stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--violet-300);
  line-height: 1;
}

.hero__stat-inline .hero__stat-label {
  font-size: 0.8rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__stat-sep {
  font-size: 1.5rem;
  color: rgba(196, 177, 255, 0.2);
  line-height: 1;
}

/* Legacy (inner pages use none of these, safe to keep) */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__content { position: relative; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero__eyebrow-line {
  width: 40px; height: 1px;
  background: var(--violet-300);
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--violet-300), var(--violet-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: var(--gris);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}

.hero__actions .btn--outline {
  margin-left: 64px;
}

.hero__scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gris);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--violet-300), transparent);
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__orb {
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%,
    rgba(196, 177, 255, 0.15) 0%,
    rgba(139, 107, 255, 0.08) 40%,
    transparent 70%
  );
  border: 1px solid rgba(196, 177, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-orb 4s ease-in-out infinite;
}

.hero__orb::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(196, 177, 255, 0.3) 25%,
    transparent 50%,
    rgba(196, 177, 255, 0.15) 75%,
    transparent 100%
  );
  animation: rotate 8s linear infinite;
  mask: radial-gradient(circle, transparent 90%, black 100%);
  -webkit-mask: radial-gradient(circle, transparent 90%, black 100%);
}

.hero__orb-inner {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(196, 177, 255, 0.2),
    rgba(139, 107, 255, 0.1),
    transparent
  );
  border: 1px solid rgba(196, 177, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  letter-spacing: -0.05em;
  color: rgba(196, 177, 255, 0.4);
  font-weight: 700;
}

.hero__stats {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__stat {
  background: rgba(14, 14, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 177, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  min-width: 120px;
}

.hero__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet-300);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__stat--1 { top: 10%; right: -20px; }
.hero__stat--2 { bottom: 20%; right: -40px; }
.hero__stat--3 { top: 30%; left: -40px; }

/* ── Services Grid ────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet-400), var(--violet-300), var(--violet-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(196, 177, 255, 0.2);
  background: var(--noir-3);
  transform: translateY(-6px);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 177, 255, 0.1);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(196, 177, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(196, 177, 255, 0.2);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  color: var(--gris);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Portfolio Grid ───────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.project-card:hover {
  border-color: rgba(196, 177, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.project-card--lg { grid-column: span 7; }
.project-card--sm { grid-column: span 5; }
.project-card--md { grid-column: span 6; }

.project-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--noir-3);
  position: relative;
  overflow: hidden;
}

.project-card__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: rgba(196, 177, 255, 0.15);
  background: linear-gradient(135deg, var(--noir-3), var(--noir-4));
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-card__overlay { opacity: 1; }

.project-card__info {
  padding: 24px;
}

.project-card__category {
  font-size: 0.75rem;
  color: var(--violet-300);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.875rem;
  color: var(--gris);
  line-height: 1.6;
}

/* ── Process Steps ────────────────────────────────────────── */
.process {
  position: relative;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 177, 255, 0.3), transparent);
}

.process__step {
  padding: 0 24px;
  text-align: center;
  position: relative;
}

.process__step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--violet-300);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  background: var(--noir);
  transition: var(--transition);
}

.process__step:hover .process__step-num {
  background: var(--violet-300);
  color: var(--noir);
  box-shadow: 0 0 32px rgba(196, 177, 255, 0.4);
}

.process__step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.process__step p {
  font-size: 0.875rem;
  color: var(--gris);
  line-height: 1.6;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 8rem;
  color: rgba(196, 177, 255, 0.1);
  position: absolute;
  top: 16px; left: 32px;
  line-height: 1;
}

.testimonial__text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--blanc-2);
  margin-bottom: 32px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-300), var(--violet-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--noir);
  font-size: 1.125rem;
}

.testimonial__name {
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial__role {
  font-size: 0.875rem;
  color: var(--gris);
}

/* ── About Hero ───────────────────────────────────────────── */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-top: 160px;
}

.about-image {
  position: relative;
}

.about-image__frame {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  background: var(--noir-3);
  border: 1px solid rgba(196, 177, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.about-image__placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(196, 177, 255, 0.15);
  background: linear-gradient(160deg, var(--noir-3), var(--noir-4));
}

.about-image__badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--violet-300);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--noir);
}

.about-image__badge-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-image__badge-text {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
}

.about-content .overline { margin-bottom: 16px; display: block; }
.about-content h1 { margin-bottom: 24px; }
.about-content .lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--blanc-2);
  margin-bottom: 24px;
}

.about-content p {
  color: var(--gris);
  line-height: 1.75;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.value-card {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.value-card:hover {
  border-color: rgba(196, 177, 255, 0.2);
  background: var(--noir-3);
}

.value-card__icon { font-size: 1.5rem; margin-bottom: 12px; }
.value-card h3 {
  font-size: 0.9375rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 8px;
}
.value-card p { font-size: 0.875rem; color: var(--gris); line-height: 1.6; }

/* ── Skills ───────────────────────────────────────────────── */
.skills-section { padding: 80px 0; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-item {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.skill-item:hover {
  border-color: rgba(196, 177, 255, 0.2);
  transform: translateY(-2px);
}

.skill-item__icon { font-size: 2rem; margin-bottom: 12px; }
.skill-item__name {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(196, 177, 255, 0.08);
}

.contact-info__item:last-child { border-bottom: none; }

.contact-info__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(196, 177, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gris);
  margin-bottom: 4px;
}

.contact-info__value {
  font-weight: 500;
  color: var(--blanc);
  font-size: 0.9375rem;
}

.contact-info__value a { color: var(--violet-300); transition: color var(--transition-fast); }
.contact-info__value a:hover { color: var(--violet-200); }

/* Contact Form */
.contact-form {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blanc-2);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 20px;
  background: var(--noir-3);
  border: 1px solid rgba(196, 177, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--blanc);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--violet-300);
  background: var(--noir-4);
  box-shadow: 0 0 0 4px rgba(196, 177, 255, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--gris-2); }

.form-textarea { resize: vertical; min-height: 140px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239896a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  color: var(--gris-2);
}

.form-select option { background: var(--noir-3); color: var(--blanc); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success.show { display: block; }

/* ── Map Placeholder ──────────────────────────────────────── */
.map-placeholder {
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.08);
  border-radius: var(--radius-lg);
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gris);
  margin-top: 40px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.map-placeholder:hover {
  border-color: rgba(196, 177, 255, 0.2);
  color: var(--violet-300);
}

.map-placeholder__icon { font-size: 2.5rem; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(196, 177, 255, 0.08);
  margin-bottom: 40px;
}

.footer__brand .nav__logo {
  display: inline-block;
  font-size: 1.375rem;
  margin-bottom: 16px;
}

.footer__brand p {
  color: var(--gris);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blanc-2);
  margin-bottom: 20px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col ul li a {
  font-size: 0.875rem;
  color: var(--gris);
  transition: color var(--transition-fast);
}

.footer__col ul li a:hover { color: var(--violet-300); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--gris-2);
}

.footer__copy a { color: var(--violet-300); transition: color var(--transition-fast); }

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gris);
  transition: var(--transition);
}

.footer__social:hover {
  background: rgba(196, 177, 255, 0.1);
  border-color: var(--violet-300);
  color: var(--violet-300);
  transform: translateY(-2px);
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero .overline { margin-bottom: 20px; display: block; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero p {
  color: var(--gris);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.cta-card {
  background: linear-gradient(135deg, var(--noir-2), var(--noir-3));
  border: 1px solid rgba(196, 177, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center,
    rgba(196, 177, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-card .overline { margin-bottom: 20px; display: block; }
.cta-card h2 { margin-bottom: 20px; }
.cta-card p { color: var(--gris); margin-bottom: 40px; font-size: 1.0625rem; }

.cta-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes pulse-orb {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 177, 255, 0); }
  50% { box-shadow: 0 0 80px 20px rgba(196, 177, 255, 0.05); }
}

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

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.7s var(--transition) forwards;
}

.animate-fade-up--1 { animation-delay: 0.1s; }
.animate-fade-up--2 { animation-delay: 0.2s; }
.animate-fade-up--3 { animation-delay: 0.3s; }
.animate-fade-up--4 { animation-delay: 0.4s; }
.animate-fade-up--5 { animation-delay: 0.5s; }

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Cursor Glow ──────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 177, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease, top 0.1s ease;
}

/* ── Gradient Text ────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--blanc) 0%, var(--violet-300) 50%, var(--violet-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(196, 177, 255, 0.08);
  border: 1px solid rgba(196, 177, 255, 0.2);
  font-size: 0.8125rem;
  color: var(--violet-300);
}

.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-300);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Portfolio Filter ─────────────────────────────────────── */
.portfolio-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(196, 177, 255, 0.12);
  background: transparent;
  color: var(--gris);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(196, 177, 255, 0.12);
  border-color: var(--violet-300);
  color: var(--violet-300);
}

/* ── Services Detail (servizi.html) ───────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(196, 177, 255, 0.06);
}

.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail__visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: var(--noir-2);
  border: 1px solid rgba(196, 177, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(196, 177, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.service-detail__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(196, 177, 255, 0.08), transparent 60%);
}

.service-detail__content .overline { margin-bottom: 16px; display: block; }
.service-detail__content h2 { margin-bottom: 16px; }
.service-detail__content .lead {
  color: var(--blanc-2);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-detail__content p {
  color: var(--gris);
  line-height: 1.75;
  margin-bottom: 32px;
}

.service-detail__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.service-detail__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--blanc-2);
}

.service-detail__feature::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-300);
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }

  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__subtitle { max-width: 100%; }
  .hero__stats-row { gap: 20px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process__steps::before { display: none; }

  .about-hero { grid-template-columns: 1fr; }
  .about-image { display: none; }

  .contact-section { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }

  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .service-detail__visual { display: none; }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .project-card--lg,
  .project-card--sm,
  .project-card--md { grid-column: span 1; }
}

@media (max-width: 768px) {
  :root { --section-padding: 60px; }

  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 48px 0 32px; }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding-bottom: 32px;
    margin-bottom: 28px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { margin-bottom: 16px; }
  .footer__col h4 { margin-bottom: 12px; }
  .footer__col ul { gap: 8px; }
  /* Contatti: full width + inline list to balance grid */
  .footer__top > div:nth-child(4) { grid-column: 1 / -1; }
  .footer__top > div:nth-child(4) ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .project-card--lg,
  .project-card--sm,
  .project-card--md { grid-column: span 1; }

  .cta-card { padding: 48px 24px; }
  .contact-form { padding: 32px 24px; }

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

  .hero__actions { flex-direction: column; align-items: center; gap: 16px; }
  .hero__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero__actions .btn--outline { margin-left: 0; }
  .hero__stats-row { flex-wrap: wrap; gap: 16px; }
  .hero__stat-sep { display: none; }
  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ── Clients marquee ───────────────────────────────────────── */
.clients-marquee {
  padding: 48px 0;
  overflow: hidden;
  border-top: 1px solid rgba(196, 177, 255, 0.08);
  border-bottom: 1px solid rgba(196, 177, 255, 0.08);
  position: relative;
}

.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg, #080810), transparent);
}

.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg, #080810), transparent);
}

.clients-marquee__track {
  overflow: hidden;
}

.clients-marquee__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.clients-marquee__inner:hover {
  animation-play-state: paused;
}

.clients-marquee__item {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.3s;
  white-space: nowrap;
}

.clients-marquee__item:hover {
  color: rgba(255, 255, 255, 0.85);
}

.clients-marquee__sep {
  flex-shrink: 0;
  color: var(--violet-300, #c4b1ff);
  font-size: 0.7rem;
  opacity: 0.6;
}

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