@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --white: #ffffff;
  --purple: #4A1384;
  --purple-light: #d535f0;
  --black: #1a0d30;
  --gray: #f5f3ff;
  --text-muted: #6b6b8a;
  --gradient: linear-gradient(135deg, var(--purple), var(--purple-light));
  --gradient-h: linear-gradient(90deg, var(--purple), var(--purple-light));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'League Spartan', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CURSOR ─────────────────────────────────────── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--purple); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor-follower {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--purple); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0.6;
}
.cursor.hover { width: 20px; height: 20px; background: var(--purple-light); }
.cursor-follower.hover { width: 60px; height: 60px; border-color: var(--purple-light); opacity: 0.3; }

/* ─── NAV ────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 5%; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(94,3,252,0.08); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(94,3,252,0.10); }
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; height: 40px;
}
.nav-logo img {
  height: 70px; width: auto;
  display: block; object-fit: contain;
}
/* versione testo fallback */
.nav-logo span.logo-text {
  font-weight: 800; font-size: 1.4rem;
  color: var(--black); letter-spacing: -0.02em;
}
.nav-logo span.logo-text em { font-style: normal; color: var(--purple); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; color: var(--black);
  text-decoration: none; letter-spacing: 0.01em; position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gradient-h);
  border-radius: 2px; transition: width 0.3s;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--purple); }
.nav-cta {
  background: var(--gradient); color: var(--white) !important;
  padding: 0.5rem 1.4rem; border-radius: 100px; font-weight: 700 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: 0.3s; }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 5% 80px; position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; }
.hero-orb-1 { width: 600px; height: 600px; background: var(--purple); top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--purple-light); bottom: -50px; left: 10%; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(94,3,252,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(94,3,252,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(94,3,252,0.08); border: 1px solid rgba(94,3,252,0.2);
  color: var(--purple); padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.7s 0.1s forwards;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--purple); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 900;
  line-height: 0.95; letter-spacing: -0.03em; color: var(--black);
  margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 0.7s 0.25s forwards;
}
.hero h1 .gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; max-width: 500px; margin-bottom: 2.5rem; font-weight: 400; opacity: 0; animation: fadeUp 0.7s 0.4s forwards; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.7s 0.55s forwards; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 100px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(94,3,252,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(94,3,252,0.4); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--black);
  padding: 0.85rem 2rem; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 1.5px solid rgba(94,3,252,0.25);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); background: rgba(94,3,252,0.04); }

.hero-stats { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(94,3,252,0.1); opacity: 0; animation: fadeUp 0.7s 0.7s forwards; }
.stat-num { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.04em; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-top: 0.1rem; }
@keyframes fadeUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }

/* ─── POSTCARD GALLERY ───────────────────────────── */
.postcards-section {
  padding: 50px 0;
  background: var(--white);
  overflow: hidden;
  position: relative;
}
.postcards-section::before,
.postcards-section::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none;
}
.postcards-section::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.postcards-section::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }

.postcards-track {
  display: flex; gap: 2.5rem; align-items: center;
  width: max-content;
  animation: postcardScroll 45s linear infinite;
  padding: 30px 0;
}
.postcards-track:hover { animation-play-state: paused; }
@keyframes postcardScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.postcard {
  width: 240px; height: 170px;
  border-radius: 10px; overflow: hidden;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.13), 0 1px 4px rgba(0,0,0,0.08);
  border: 4px solid white;
  flex-shrink: 0; position: relative;
  transition: box-shadow 0.4s, transform 0.4s !important;
}
.postcard:hover {
  box-shadow: 8px 16px 40px rgba(94,3,252,0.25), 0 2px 8px rgba(0,0,0,0.1) !important;
  transform: rotate(0deg) scale(1.07) translateY(-8px) !important;
  z-index: 10;
}
.postcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postcard-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
}
.postcard-placeholder .p-icon { font-size: 2rem; opacity: 0.5; }
.postcard-placeholder span { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; }

/* Rotazioni individuali stile cartolina */
.postcard:nth-child(7n+1) { transform: rotate(-3.2deg); }
.postcard:nth-child(7n+2) { transform: rotate(2.1deg); }
.postcard:nth-child(7n+3) { transform: rotate(-1.4deg); }
.postcard:nth-child(7n+4) { transform: rotate(3.8deg); }
.postcard:nth-child(7n+5) { transform: rotate(-2.6deg); }
.postcard:nth-child(7n+6) { transform: rotate(1.3deg); }
.postcard:nth-child(7n+7) { transform: rotate(-4deg); }

/* ─── SECTIONS GENERAL ───────────────────────────── */
section { padding: 100px 5%; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 20px; height: 2px; background: var(--gradient-h); border-radius: 2px; }
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 0.95; color: var(--black); margin-bottom: 1.2rem;
}
.section-title .gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 520px; line-height: 1.65; font-weight: 400; }

/* ─── SERVICES ───────────────────────────────────── */
.services { background: var(--gray); }
.services-header { margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border-radius: 20px; padding: 2.5rem;
  border: 1px solid rgba(94,3,252,0.08);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden; cursor: pointer;
}
.service-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient); opacity: 0; transition: opacity 0.3s; z-index: 0; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(94,3,252,0.15); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover * { color: white !important; -webkit-text-fill-color: white !important; }
.service-card:hover .s-icon { background: rgba(255,255,255,0.2); }
.s-content { position: relative; z-index: 1; }
.s-num { font-size: 0.75rem; font-weight: 800; color: var(--purple); letter-spacing: 0.1em; margin-bottom: 1.5rem; transition: 0.3s; }
.s-icon { width: 52px; height: 52px; background: rgba(94,3,252,0.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: 0.3s; }
.s-icon svg { width: 24px; height: 24px; stroke: var(--purple); fill: none; stroke-width: 1.8; }
.service-card:hover .s-icon svg { stroke: white; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.7rem; transition: 0.3s; }
.service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; transition: 0.3s; }

/* ─── ABOUT ──────────────────────────────────────── */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-visual { position: relative; z-index: 1; }
.about-main-block { background: var(--gradient); border-radius: 24px; aspect-ratio: 4/5; display: flex; align-items: flex-end; padding: 2rem; overflow: hidden; position: relative; }
.about-main-block::before { content: ''; }
.about-block-watermark {
  position: absolute;
  width: 280px; height: auto;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  opacity: 0.08;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.about-name-card { background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); border-radius: 16px; padding: 1.2rem 1.5rem; width: 100%; }
.about-name-card h4 { font-weight: 800; font-size: 1rem; color: white; }
.about-name-card p { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 0.2rem; }
.about-float-card { position: absolute; top: -20px; right: -30px; background: white; border-radius: 16px; padding: 1.2rem 1.5rem; box-shadow: 0 20px 50px rgba(94,3,252,0.15); border: 1px solid rgba(94,3,252,0.08); z-index: 10; }
.about-float-card h4 { font-weight: 800; font-size: 0.9rem; color: var(--black); }
.about-float-card p { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.tag { display: inline-block; background: rgba(94,3,252,0.08); color: var(--purple); font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.5rem; }
.about-float-card-2 { position: absolute; bottom: -20px; right: -30px; background: white; border-radius: 16px; padding: 1.2rem 1.5rem; box-shadow: 0 20px 50px rgba(94,3,252,0.15); border: 1px solid rgba(94,3,252,0.08); z-index: 10; }
.about-intro { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; font-weight: 400; }
.team-members { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.team-member { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.5rem; background: var(--gray); border-radius: 16px; border: 1px solid rgba(94,3,252,0.06); transition: border-color 0.3s, transform 0.3s; }
.team-member:hover { border-color: rgba(94,3,252,0.2); transform: translateX(6px); }
.member-avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; color: white; flex-shrink: 0; }
.member-info h4 { font-weight: 800; font-size: 0.95rem; }
.member-info p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.member-tag { margin-left: auto; background: rgba(94,3,252,0.08); color: var(--purple); font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }

/* ─── PROCESS ────────────────────────────────────── */
.process { background: var(--black); color: white; }
.process .section-label { color: rgba(144,3,252,0.9); }
.process .section-title { color: white; }
.process .section-sub { color: rgba(255,255,255,0.5); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 4rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: calc(12.5% + 24px); right: calc(12.5% + 24px); height: 1px; background: linear-gradient(90deg, transparent, rgba(94,3,252,0.5), transparent); }
.process-step { text-align: center; }
.step-num { width: 72px; height: 72px; border-radius: 50%; background: rgba(94,3,252,0.15); border: 1px solid rgba(94,3,252,0.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-weight: 900; font-size: 1.2rem; color: var(--purple-light); position: relative; z-index: 1; transition: background 0.3s, border-color 0.3s; }
.process-step:hover .step-num { background: var(--gradient); border-color: transparent; color: white; }
.step-title { font-weight: 800; font-size: 1rem; color: white; margin-bottom: 0.7rem; }
.step-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ─── CLIENTS ────────────────────────────────────── */
.clients { background: var(--gray); }
.clients-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
.clients-marquee-wrapper { overflow: hidden; position: relative; }
.clients-marquee-wrapper::before, .clients-marquee-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; }
.clients-marquee-wrapper::before { left: 0; background: linear-gradient(90deg, var(--gray), transparent); }
.clients-marquee-wrapper::after { right: 0; background: linear-gradient(-90deg, var(--gray), transparent); }
.clients-marquee { display: flex; gap: 2rem; animation: marquee 30s linear infinite; width: max-content; }
.clients-marquee:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.client-logo-box { background: white; border-radius: 16px; padding: 1rem 2rem; border: 1px solid rgba(94,3,252,0.08); display: flex; align-items: center; justify-content: center; min-width: 160px; height: 90px; transition: border-color 0.3s, box-shadow 0.3s; }
.client-logo-box img { max-height: 50px; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: filter 0.3s, opacity 0.3s; }
.client-logo-box:hover img { filter: grayscale(0); opacity: 1; }
.client-logo-box span { font-weight: 700; font-size: 0.9rem; color: var(--text-muted); }
.client-logo-box:hover { border-color: rgba(94,3,252,0.25); box-shadow: 0 8px 30px rgba(94,3,252,0.1); }

/* ─── PORTFOLIO ──────────────────────────────────── */
.portfolio-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 3rem 0 2.5rem; }
.filter-btn { padding: 0.55rem 1.3rem; border-radius: 100px; border: 1.5px solid rgba(94,3,252,0.2); background: transparent; color: var(--text-muted); font-family: 'League Spartan', sans-serif; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--gradient); border-color: transparent; color: white; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-item { border-radius: 20px; overflow: hidden; border: 1px solid rgba(94,3,252,0.08); background: white; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.portfolio-item:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(94,3,252,0.12); }
.portfolio-item.span-2 { grid-column: span 2; }
.portfolio-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.portfolio-item.span-2 .portfolio-thumb { aspect-ratio: 21/9; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.portfolio-item:hover .portfolio-thumb img { transform: scale(1.05); }
.portfolio-thumb-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.portfolio-thumb-bg .mock-text { font-weight: 900; font-size: 3rem; color: rgba(255,255,255,0.15); letter-spacing: -0.04em; }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(94,3,252,0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; flex-direction: column; gap: 0.5rem; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay span { font-weight: 700; color: white; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.portfolio-overlay-icon { font-size: 2rem; }
.portfolio-info { padding: 1.5rem; }
.portfolio-tag { display: inline-block; background: rgba(94,3,252,0.08); color: var(--purple); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.portfolio-info h3 { font-weight: 800; font-size: 1rem; margin-bottom: 0.3rem; }
.portfolio-info p { font-size: 0.82rem; color: var(--text-muted); }

/* ─── CONTACT ────────────────────────────────────── */
.contact { background: var(--black); color: white; }
.contact .section-label { color: rgba(144,3,252,0.9); }
.contact .section-title { color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6rem; margin-top: 4rem; align-items: start; }
.contact-info p { color: rgba(255,255,255,0.5); font-size: 1rem; line-height: 1.7; margin-bottom: 2.5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon { width: 42px; height: 42px; min-width: 42px; background: rgba(94,3,252,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.contact-item-icon svg { width: 18px; height: 18px; stroke: var(--purple-light); fill: none; stroke-width: 1.8; }
.contact-item-text { display: flex; flex-direction: column; gap: 0.15rem; } .contact-item-text h5 { font-weight: 800; font-size: 0.85rem; color: white; line-height: 1.3; }
.contact-item-text p { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-top: 0; line-height: 1.6; } .contact-item-text p + p { margin-top: 0.15rem; }
.social-links { display: flex; gap: 1rem; }
.social-link { display: flex; align-items: center; gap: 0.5rem; background: rgba(94,3,252,0.15); border: 1px solid rgba(94,3,252,0.25); color: rgba(255,255,255,0.7); text-decoration: none; padding: 0.6rem 1.2rem; border-radius: 100px; font-size: 0.82rem; font-weight: 600; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.social-link:hover { background: var(--gradient); border-color: transparent; color: white; }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0.85rem 1.1rem; color: white; font-family: 'League Spartan', sans-serif; font-size: 0.9rem; transition: border-color 0.2s, background 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: rgba(94,3,252,0.5); background: rgba(94,3,252,0.08); }
.form-group select option { background: #1a1a2e; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.btn-submit { width: 100%; background: var(--gradient); color: white; border: none; padding: 1rem 2rem; border-radius: 100px; font-family: 'League Spartan', sans-serif; font-size: 0.95rem; font-weight: 800; cursor: pointer; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; box-shadow: 0 8px 30px rgba(94,3,252,0.35); display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.btn-submit:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 12px 40px rgba(94,3,252,0.5); }
.btn-submit svg { width: 18px; height: 18px; stroke: white; fill: none; stroke-width: 2; }

/* ─── FOOTER ─────────────────────────────────────── */
footer { background: var(--black); border-top: 1px solid rgba(255,255,255,0.06); padding: 3rem 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.footer-logo img {
  height: 50px; width: auto;
  display: block; object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--purple-light); }

/* ─── PAGE HEADER ────────────────────────────────── */
.page-header { padding: 160px 5% 80px; background: var(--black); color: white; position: relative; overflow: hidden; }
.page-header::before { content: ''; position: absolute; width: 500px; height: 500px; background: var(--purple); filter: blur(120px); opacity: 0.12; top: -100px; right: -100px; border-radius: 50%; }
.page-header .section-label { color: rgba(144,3,252,0.9); }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; color: white; max-width: 700px; position: relative; }
.page-header p { font-size: 1.05rem; color: rgba(255,255,255,0.5); max-width: 560px; margin-top: 1.2rem; line-height: 1.65; position: relative; }

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-main-block { aspect-ratio: 2/1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item.span-2 { grid-column: span 2; }
}
@media (max-width: 768px) {
  /* Forza la pagina a non uscire dallo schermo */
  html, body { overflow-x: hidden; max-width: 100vw; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 2rem 5%; border-bottom: 1px solid rgba(94,3,252,0.08); gap: 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
  section { padding: 70px 5%; }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.span-2 { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .clients-header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .process-steps { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .postcard { width: 190px; height: 140px; }

  /* ── About: targhette flottanti dentro lo schermo ── */
  .about-visual { padding: 0 5%; }
  .about-main-block { aspect-ratio: 4/3; width: 100%; }
  .about-float-card {
    top: -14px;
    right: 0;
    left: auto;
    max-width: calc(100% - 2rem);
    font-size: 0.82rem;
    padding: 0.9rem 1.1rem;
  }
  .about-float-card-2 {
    bottom: -14px;
    right: 0;
    left: auto;
    max-width: calc(100% - 2rem);
    font-size: 0.82rem;
    padding: 0.9rem 1.1rem;
  }

  /* ── Chi siamo: cards team full width ── */
  .team-full-card { width: 100%; margin: 0; }
  .teams-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }

  /* ── Page header testo centrato ── */
  .page-header { padding: 120px 5% 60px; text-align: center; }
  .page-header h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .page-header p { margin: 1rem auto 0; }
}
