/* ===========================
   SELF-HOSTED FONTS
=========================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/barlow-condensed-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('assets/fonts/montserrat-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('assets/fonts/orbitron-var.woff2') format('woff2');
}

/* ===========================
   ROOT & RESET
=========================== */
:root {
  --bg: #080808;
  --bg-2: #0f0f0f;
  --bg-3: #141414;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(20, 70, 255, 0.5);

  --purple: #1446FF;
  --purple-light: #4169FF;
  --purple-dark: #0033CC;
  --purple-glow: rgba(20, 70, 255, 0.3);
  --purple-subtle: rgba(20, 70, 255, 0.08);

  --text: #f0f0f0;
  --text-2: #a0a0a0;
  --text-3: #606060;

  --font-sans: 'Montserrat', sans-serif;
  --font-display: 'Orbitron', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ===========================
   UTILITIES
=========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(270deg, #a78bfa, #4169FF, #06b6d4, #1446FF, #7c3aed, #a78bfa);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 540px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #1446FF 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 0 28px rgba(20, 70, 255, 0.4), 0 0 60px rgba(124, 58, 237, 0.2);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #4169FF 0%, #8b5cf6 100%);
  box-shadow: 0 0 40px rgba(65, 105, 255, 0.5), 0 0 80px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--purple);
  color: var(--text);
  background: var(--purple-subtle);
}

.btn--full { width: 100%; justify-content: center; }

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px 0;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 120px;
  width: auto;
  display: block;
}
.nav-logo-mark { flex-shrink: 0; }
.nav-logo-sep {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.nav-logo-text .logo-ai {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(175deg, #ffffff 0%, #e0e6ff 30%, #b0bce8 65%, #8899cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-text .logo-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--purple-light);
  -webkit-text-fill-color: var(--purple-light);
}
.nav-logo-text .logo-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  -webkit-text-fill-color: var(--text-3);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.875rem !important;
  box-shadow: 0 0 20px var(--purple-glow);
  transition: var(--transition) !important;
}
.nav-cta:hover {
  background: var(--purple-light) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 160px 24px 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(20, 70, 255, 0.22) 0%, rgba(124, 58, 237, 0.1) 60%, transparent 100%);
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(20, 70, 255, 0.08) 60%, transparent 100%);
  bottom: -50px;
  right: -150px;
}

.hero-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  top: 20%;
  left: -100px;
}

.hero-grid {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-center-logo {
  margin-bottom: 32px;
  text-align: center;
}
.hero-center-logo-img {
  width: min(480px, 90vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-logo-text {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-logo-mark-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-mark { flex-shrink: 0; }

.hero-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
  gap: 2px;
}

.hero-brand-ai {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #c8d4ff 40%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-brand-exp {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.7rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-subtle);
  border: 1px solid rgba(20, 70, 255, 0.3);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--purple-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
}

.desktop-br { display: block; }

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

/* HERO VIDEO */
.hero-video-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 48px auto 80px;
}

.hero-video-player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px rgba(20, 70, 255, 0.2), 0 32px 80px rgba(0,0,0,0.6);
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  transition: var(--transition);
}
.hero-video-player:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 80px rgba(20,70,255,0.3), 0 0 40px rgba(124,58,237,0.15), 0 40px 80px rgba(0,0,0,0.6);
  border-color: rgba(65,105,255,0.4);
}

.hero-video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.35);
  transition: background var(--transition);
}

.hero-video-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-play-btn {
  width: 72px;
  height: 72px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 40px rgba(20, 70, 255, 0.6);
  transition: var(--transition);
}
.hero-play-btn:hover {
  background: var(--purple-light);
  transform: scale(1.1);
  box-shadow: 0 0 60px rgba(65, 105, 255, 0.7);
}

.hero-video-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--purple), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ===========================
   SERVIZI
=========================== */
.servizi {
  padding: 120px 0;
  background: var(--bg);
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Linea gradiente in cima */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1446FF, #7c3aed, #06b6d4);
  opacity: 0.65;
  transition: opacity var(--transition);
}

/* Orb interno */
.service-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.2);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after {
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
}

/* Numero decorativo */
.service-num {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.12);
  font-family: var(--font-display);
  z-index: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(20,70,255,0.15) 0%, rgba(124,58,237,0.15) 100%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  box-shadow: 0 0 0 0 rgba(124,58,237,0);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, rgba(20,70,255,0.25) 0%, rgba(124,58,237,0.25) 100%);
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 0 20px rgba(124,58,237,0.35), 0 0 40px rgba(20,70,255,0.15);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.service-list li {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 5px 12px;
  letter-spacing: 0.02em;
  transition: var(--transition);
}
.service-card:hover .service-list li {
  border-color: rgba(124,58,237,0.25);
  color: rgba(255,255,255,0.7);
}

/* ===========================
   PORTFOLIO
=========================== */
.portfolio {
  padding: 120px 0;
  background: var(--bg-2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio-grid .video-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 10px);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .portfolio-grid .video-card:last-child:nth-child(odd) {
    max-width: 100%;
  }
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(20,70,255,0.3), rgba(124,58,237,0.3), rgba(6,182,212,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}
.video-card:hover::before { opacity: 1; }
.video-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(20,70,255,0.2), 0 0 80px rgba(124,58,237,0.1);
}

.video-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.video-card:hover .video-wrapper video {
  transform: scale(1.04);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.7) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.video-card:hover .video-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.02) 40%,
    rgba(0,0,0,0.75) 100%
  );
}

.play-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(20,70,255,0.9) 0%, rgba(124,58,237,0.9) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(20,70,255,0.5), 0 0 60px rgba(124,58,237,0.3);
  backdrop-filter: blur(4px);
}
.play-btn:hover, .video-card:hover .play-btn {
  transform: scale(1.12);
  box-shadow: 0 0 50px rgba(20,70,255,0.7), 0 0 100px rgba(124,58,237,0.4);
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 18px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
}

.video-info-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(20,70,255,0.85) 0%, rgba(124,58,237,0.85) 100%);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.video-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* PORTFOLIO CTA */
.portfolio-cta {
  margin-top: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20,70,255,0.18) 0%, rgba(0,40,200,0.08) 100%);
  border: 1px solid rgba(20,70,255,0.45);
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
}
.portfolio-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(20,70,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

/* Video preview */
.portfolio-cta-video {
  cursor: pointer;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(20,70,255,0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-cta-video:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(20,70,255,0.4);
}

.portfolio-cta-video-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.portfolio-cta-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-cta-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.portfolio-cta-video:hover .portfolio-cta-video-overlay {
  background: rgba(0,0,0,0.15);
}

.play-btn--lg {
  width: 68px;
  height: 68px;
}

.portfolio-cta-video-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20,70,255,0.85);
  border: 1px solid rgba(20,70,255,0.6);
  padding: 5px 12px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

/* Text side */
.portfolio-cta-text .section-label { margin-bottom: 12px; }

.portfolio-cta-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.portfolio-cta-text p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .portfolio-cta { padding: 40px 36px; }
  .portfolio-cta-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .portfolio-cta { padding: 32px 24px; }
  .portfolio-cta-text .btn { width: 100%; justify-content: center; }
}

/* ===========================
   SERVIZI + PORTFOLIO (fusione)
=========================== */
.sp-section {
  padding: 120px 0;
  background: var(--bg);
}

.sp-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 360px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sp-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35), 0 0 40px var(--purple-glow);
}

.sp-card--flip {
  grid-template-columns: 1.1fr 1fr;
}

.sp-service {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.sp-service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(20,70,255,0.2) 0%, rgba(124,58,237,0.2) 100%);
  border: 1px solid rgba(100,130,255,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-light);
  margin-bottom: 16px;
}

.sp-service-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}

.sp-service-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.sp-service-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sp-service-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 28px;
}
.sp-service-list li {
  font-size: 0.82rem;
  color: var(--text-3);
  padding-left: 16px;
  position: relative;
}
.sp-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--purple);
  border-radius: 50%;
}

.sp-cta {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 10px 22px;
}

.sp-video {
  position: relative;
  margin: 0;
  border-radius: 0;
}
.sp-video .video-wrapper {
  height: 100%;
  border-radius: 0;
}
.sp-video video {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}
.sp-video .video-overlay {
  border-radius: 0;
}

/* Altri progetti */
.sp-altri {
  margin-top: 16px;
}
.sp-altri-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  text-align: center;
}
.sp-altri-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .sp-card,
  .sp-card--flip {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sp-card--flip .sp-video { order: -1; }
  .sp-service { padding: 32px 28px; }
  .sp-video .video-wrapper { height: 240px; }
  .sp-altri-grid { grid-template-columns: 1fr; }
}

/* ===========================
   CHI SONO
=========================== */
.chi-sono {
  padding: 120px 0;
  background: var(--bg);
}

.chi-sono-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.chi-sono-visual {
  position: relative;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 60px rgba(20, 70, 255, 0.2), 0 32px 80px rgba(0,0,0,0.5);
}

.chi-sono-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-slow);
}
.photo-frame:hover .chi-sono-photo {
  transform: scale(1.03);
}

.photo-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(8,8,8,0.7) 100%);
  pointer-events: none;
}

.stat-cards {
  position: absolute;
  bottom: -20px;
  right: -20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
}

.chi-sono-text .section-title { margin-top: 8px; }

.chi-sono-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.chi-sono-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 36px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 50px;
  transition: var(--transition);
}
.tag:hover {
  border-color: var(--purple);
  color: var(--purple-light);
  background: var(--purple-subtle);
}

/* ===========================
   PERCHÉ AI
=========================== */
.perche-ai {
  padding: 100px 0;
  background: var(--bg-2);
}

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

.perche-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.perche-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.perche-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.perche-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.perche-item p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ===========================
   BLOG TEASER (homepage)
=========================== */
.blog-teaser {
  padding: 80px 0 160px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.blog-teaser::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(65,105,255,0.4), rgba(124,58,237,0.4), transparent);
}
.blog-teaser-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, rgba(20,70,255,0.1) 0%, rgba(124,58,237,0.07) 60%, rgba(6,182,212,0.05) 100%);
  border: 1px solid rgba(65,105,255,0.25);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  overflow: hidden;
}
.blog-teaser-orb {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.blog-teaser-content {
  position: relative;
  z-index: 1;
}
.blog-teaser-content .section-title {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.blog-teaser-content p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 520px;
}
.blog-teaser-inner .btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .blog-teaser-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
    gap: 28px;
  }
  .blog-teaser-inner .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .blog-teaser-inner { padding: 28px 24px; }
}

/* ===========================
   CONTATTI
=========================== */
/* ===========================
   BLOG
=========================== */
.blog {
  padding: 120px 0;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.blog::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(65,105,255,0.4), rgba(124,58,237,0.4), transparent);
}

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

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(65,105,255,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(20,70,255,0.12);
}

.blog-card-image {
  position: relative;
  height: 90px;
  overflow: hidden;
}
.blog-card-image--1 {
  background: linear-gradient(135deg, #0d1b4d 0%, #1446FF 50%, #06b6d4 100%);
}
.blog-card-image--2 {
  background: linear-gradient(135deg, #1a0533 0%, #7c3aed 50%, #4169FF 100%);
}
.blog-card-image--3 {
  background: linear-gradient(135deg, #0a2040 0%, #1446FF 40%, #7c3aed 100%);
}
.blog-card-image--4 {
  background: linear-gradient(135deg, #0a1a2e 0%, #0891b2 45%, #06b6d4 100%);
}
.blog-card-image--5 {
  background: linear-gradient(135deg, #1a0a2e 0%, #6d28d9 40%, #a78bfa 100%);
}
.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-card-category {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 50px;
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.blog-date, .blog-read-time {
  font-size: 0.75rem;
  color: var(--text-3);
}
.blog-read-time::before {
  content: '·';
  margin-right: 16px;
}

.blog-card-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.blog-card-content p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
  transition: var(--transition);
}
.blog-card-link:hover {
  color: #fff;
  gap: 10px;
}

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

.contatti {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contatti::before {
  content: '';
  position: absolute;
  top: -600px;
  left: 50%;
  transform: translateX(-50%);
  width: 1400px;
  height: 1400px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, rgba(20,70,255,0.12) 35%, transparent 65%);
  pointer-events: none;
}

.contatti-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contatti-text .section-title { margin-top: 8px; }

.contatti-desc {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 32px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.email-link:hover {
  color: #fff;
  gap: 14px;
}
.email-link svg { flex-shrink: 0; }

/* FORM */
.contatti-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.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 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23606060' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg-3);
  color: var(--text);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--purple);
  cursor: pointer;
  margin-top: 2px;
}
.form-checkbox label {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.form-checkbox label a {
  color: var(--purple-light);
  text-decoration: underline;
  text-decoration-color: rgba(65,105,255,0.4);
}
.form-checkbox label a:hover { color: #fff; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(20, 70, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.form-success p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 120px;
  width: auto;
  display: block;
  margin-bottom: 4px;
}

.footer-logo p {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--purple-light); }

.footer-contact a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--purple-light); }
.footer-contact span {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ===========================
   RESPONSIVE
=========================== */
/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(20,70,255,0.3), 0 40px 100px rgba(0,0,0,0.8);
  border: 1px solid var(--border-hover);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.lightbox.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-inner video {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}

/* Lightbox verticale 9:16 (UGC) */
.lightbox.vertical .lightbox-inner {
  max-width: 380px;
  border-radius: 24px;
}
.lightbox.vertical .lightbox-inner video {
  aspect-ratio: 9/16;
}

/* Lightbox quadrato 1:1 (Spot Social) */
.lightbox.square .lightbox-inner {
  max-width: 560px;
  border-radius: 24px;
}
.lightbox.square .lightbox-inner video {
  aspect-ratio: 1/1;
}

@media (max-width: 480px) {
  .lightbox.vertical .lightbox-inner,
  .lightbox.square .lightbox-inner {
    max-width: 90vw;
  }
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-close:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perche-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chi-sono-inner {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  /* Logo più piccolo su mobile */
  .nav-logo-img { height: 70px; }

  /* Logo sopra l'overlay */
  .nav-logo { position: relative; z-index: 101; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 200;
    padding: 0 40px 60px;
  }
  .nav-links.open li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links.open li:last-child { border-bottom: none; margin-top: 20px; }
  .nav-links.open a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-2);
    display: block;
    padding: 20px 0;
    transition: color var(--transition);
  }
  .nav-links.open a:hover { color: #fff; }

  /* Pulsante Contattami nel menu aperto */
  .nav-links.open .nav-cta {
    display: block !important;
    text-align: center !important;
    background: linear-gradient(135deg, #1446FF 0%, #7c3aed 100%) !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    box-shadow: 0 0 32px rgba(20, 70, 255, 0.45), 0 0 64px rgba(124, 58, 237, 0.25) !important;
  }

  /* Pulsante hamburger / X */
  .nav-toggle { display: flex; z-index: 201; }
  .nav-toggle.open {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
  }
  .nav-toggle.open span { width: 20px; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding-top: 120px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .desktop-br { display: none; }

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

  .chi-sono-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .stat-cards {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-top: 24px;
  }

  .contatti-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
  .footer-links { gap: 16px; }
}

@media (max-width: 480px) {
  .servizi-grid { grid-template-columns: 1fr; }
  .perche-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contatti-form { padding: 24px 20px; }
}

/* ===========================
   COOKIE CONSENT BANNER
=========================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 48px);
  max-width: 760px;
  background: #111111;
  border: 1px solid rgba(20,70,255,0.35);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.cookie-banner-text p {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-text a {
  color: var(--purple-light);
  text-decoration: underline;
  text-decoration-color: rgba(65,105,255,0.4);
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.cookie-btn--decline {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-2);
}
.cookie-btn--decline:hover {
  border-color: var(--purple-light);
  color: var(--text);
}
.cookie-btn--accept {
  background: var(--purple);
  border: 1px solid var(--purple);
  color: #fff;
}
.cookie-btn--accept:hover {
  background: var(--purple-light);
  border-color: var(--purple-light);
}

@media (max-width: 600px) {
  .cookie-banner { bottom: 16px; padding: 16px 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
