:root {
  --bg: #080809;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a8;
  --accent: #FF5A00;
  --accent-dim: #7A2C00;
  --silver: #b2bcca;
  --card: #0f0e12;
  --border: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
  touch-action: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 0, 0.08), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(178, 188, 202, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%),
    var(--bg);
  color: var(--text-primary);
  font-family: "Barlow Condensed", sans-serif;
  cursor: none;
}

body.nav-scrolled .site-header {
  background: rgba(8, 8, 9, 0.55);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.cursor-hover .cursor-ring {
  transform: scale(1.35);
}

body.cursor-hover .cursor-dot {
  transform: scale(1.6);
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  body {
    cursor: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea,
button {
  border-radius: 0;
}

.container {
  width: min(100% - 2rem, 1380px);
  margin: 0 auto;
}

.page-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 52%),
    var(--accent);
  transform-origin: top;
  animation: revealAway 1s var(--ease) forwards;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: screen;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 90, 0, 0.72);
  border-radius: 50%;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 75;
  width: 100%;
  height: 2px;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--accent);
  box-shadow: 0 0 20px rgba(255, 90, 0, 0.55);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 80px;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.logo-mark,
.footer-logo {
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: 2rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.logo-meta,
.footer-meta {
  padding-bottom: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.footer-contact a {
  font-size: 0.92rem;
  color: var(--silver);
  transition: color 0.25s ease;
}

.footer-contact a:hover {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link,
.footer-nav a,
.link-arrow span:first-child {
  position: relative;
}

.nav-link::after,
.footer-nav a::after,
.link-arrow span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.24rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.footer-nav a:hover::after,
.link-arrow:hover span:first-child::after {
  transform: scaleX(1);
}

.nav-link,
.nav-cta,
.footer-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-link,
.footer-nav a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-link.active,
.nav-link:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(255, 90, 0, 0.42);
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.1);
  color: var(--accent);
  transition: 0.35s var(--ease);
}

.nav-cta:hover {
  background: var(--accent);
  color: #000;
}

.section {
  padding: clamp(5.5rem, 8vw, 9rem) 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  overflow: hidden;
}

#aurora-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero-grid,
.scroll-indicator {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 5.5rem);
  padding-bottom: 6rem;
  max-width: 56rem;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.eyebrow,
.section-label,
.contact-overline,
.cta-overline,
.pricing-name,
.project-tag,
.stat-label,
.timeline-step h3,
.testimonial-card strong,
.contact-row small {
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.55em;
}

.hero-wordmark {
  margin: 0;
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: clamp(120px, 18vw, 200px);
  letter-spacing: 0.04em;
  line-height: 0.82;
}

.hero-subtitle,
.section-head h2,
.quote-panel blockquote,
.testimonial-card p,
.contact-mail,
.cta-inner h2 {
  font-family: "Playfair Display", serif;
  font-style: italic;
}

.hero-subtitle {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.button-outline,
.button-solid,
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.button-outline::before,
.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.button-outline:hover::before,
.cta-button:hover::before {
  transform: scaleX(1);
}

.button-outline span,
.button-solid span,
.cta-button span {
  position: relative;
  z-index: 1;
}

.button-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.button-outline::before {
  background: var(--accent);
}

.button-outline:hover {
  color: #000;
}

.button-solid {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.button-solid:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(255, 90, 0, 0.2);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.96rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.link-arrow .arrow,
.cta-button .arrow {
  transition: transform 0.3s ease;
}

.link-arrow:hover,
.link-arrow:hover .arrow {
  color: var(--accent);
}

.link-arrow:hover .arrow,
.cta-button:hover .arrow {
  transform: translateX(6px);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32rem;
}

.hero-art {
  position: relative;
  width: min(72vw, 34rem);
  aspect-ratio: 1;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
}

.hero-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(10rem, 24vw, 18rem);
  color: rgba(255, 255, 255, 0.035);
}

.orbital-circle,
.orbital-square {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.orbital-circle {
  width: 88%;
  height: 88%;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 0, 0.2);
  animation: spin 60s linear infinite;
}

.orbital-square {
  width: 58%;
  height: 58%;
  border: 1px solid rgba(178, 188, 202, 0.18);
  transform: translate(-50%, -50%) rotate(45deg);
  animation: counterSpin 40s linear infinite;
}

.pulse-dot {
  position: absolute;
  left: 58%;
  top: 36%;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(255, 90, 0, 0.55);
  animation: pulse 3.4s ease-in-out infinite;
}

.hero-dot-grid {
  position: absolute;
  inset: 31% auto auto 31%;
  display: grid;
  width: 38%;
  height: 38%;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.hero-dot-grid span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.18;
  animation: dotPulse 2.8s ease-in-out infinite;
  animation-delay: var(--dot-delay);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--accent);
  animation: bounceLine 1.8s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.68rem;
  letter-spacing: 0.44em;
  writing-mode: vertical-rl;
  color: var(--accent);
}

.stats-band {
  padding-top: 0;
}

.stats-grid,
.quote-panel,
.contact-form,
.service-card,
.timeline-step,
.testimonial-card,
.pricing-card,
.project-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: 2rem;
  background: var(--card);
}

.stat-card {
  padding: 2.5rem;
}

.stat-card:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stat-card:hover .stat-number {
  color: var(--accent);
}

.stat-number {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 7vw, 4.6rem);
  line-height: 1;
  transition: color 0.5s ease;
}

/* ∞ usa font di sistema per glifo coerente su tutti i dispositivi */
.stat-number--symbol {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(3.6rem, 7vw, 4.6rem);
}

.stat-label,
.section-label,
.project-tag,
.contact-row small,
.pricing-name,
.footer-copy,
.footer-nav a {
  letter-spacing: 0.28em;
}

.stat-label {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--silver);
}

.stat-line,
.service-line,
.section-divider,
.quote-line {
  display: block;
  height: 1px;
  transform-origin: left;
}

.stat-line {
  width: 40px;
  margin-top: 1.4rem;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
}

.in-view .stat-line {
  transform: scaleX(1);
}

.section-head {
  max-width: 56rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.section-index {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.section-divider {
  width: 3rem;
  background: var(--accent);
}

.section-label small {
  font-size: 0.72rem;
  color: rgba(160, 160, 168, 0.72);
}

.section-head h2,
.cta-inner h2 {
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.section-intro {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.services-grid,
.testimonial-grid,
.pricing-grid,
.quote-grid {
  display: grid;
  gap: 1.3rem;
  margin-top: 3.4rem;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  padding: 1.8rem;
  border-radius: 1.7rem;
  background: var(--card);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 90, 0, 0.3);
}

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

.service-index,
.timeline-number {
  font-family: "Bebas Neue", sans-serif;
  line-height: 1;
}

.service-index {
  color: rgba(255, 90, 0, 0.22);
  font-size: 3rem;
}

.service-card h3,
.timeline-step h3 {
  margin: 2rem 0 0;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.service-card p,
.timeline-step p,
.quote-feature p,
.pricing-card li,
.contact-row p {
  margin: 0.9rem 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.service-line {
  width: 100%;
  margin-top: 2.5rem;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, 1fr);
  gap: 1.3rem;
  margin-top: 3.4rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 2rem;
  background: #0d0d10;
  min-height: 320px;
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease), filter 0.6s var(--ease);
}

.project-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

.project-preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 333.3333%;
  height: 333.3333%;
  transform: scale(0.3);
  transform-origin: top left;
  border: 0;
  background: #ffffff;
  pointer-events: none;
}

.project-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(8, 8, 9, 0) 40%, rgba(8, 8, 9, 0.92) 100%);
  transition: background 0.5s ease;
  pointer-events: none;
}

.project-shade--solid {
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 90, 0, 0.22), transparent 55%),
    linear-gradient(135deg, #111114, #1d1a17 65%, #2a211a);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  filter: brightness(1.04);
}

.project-card:hover .project-shade {
  background:
    linear-gradient(180deg, rgba(8, 8, 9, 0.05) 30%, rgba(8, 8, 9, 0.82) 100%);
}

.project-card:hover::after {
  border-color: rgba(255, 90, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.18), 0 22px 70px rgba(255, 90, 0, 0.18);
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 420px;
}

.project-small {
  min-height: 260px;
}

.project-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 1.8rem;
  transform: translateY(6px);
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-overlay {
  transform: translateY(0);
}

.project-overlay--center {
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

.project-open {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.project-card:hover .project-open {
  opacity: 1;
  transform: translateY(0);
}

.project-cta {
  background: linear-gradient(135deg, #111114, #1d1a17 65%, #2a211a);
}

.project-cta .project-open {
  opacity: 1;
  transform: translateY(0);
}

.section-sub {
  margin-top: 0.8rem;
  color: var(--silver);
  font-size: 0.95rem;
  max-width: 520px;
}

.hero-lede {
  margin-top: 0.6rem;
  color: var(--silver);
  font-size: 1rem;
  max-width: 480px;
  line-height: 1.55;
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--silver);
  letter-spacing: 0.08em;
}

a.contact-row {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

a.contact-row:hover {
  transform: translateX(4px);
  color: var(--accent);
}

.project-tag {
  font-size: 0.68rem;
  color: var(--accent);
}

.project-overlay h3 {
  margin: 0.75rem 0 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.project-overlay p {
  margin: 0.4rem 0 0;
  color: var(--silver);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.timeline-track {
  height: 1px;
  margin-top: 3.6rem;
  background:
    linear-gradient(90deg, var(--accent), var(--accent)) left / 0% 100% no-repeat,
    rgba(255, 255, 255, 0.08);
}

.timeline-track.in-view {
  animation: growLine 1s var(--ease) forwards;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
  align-items: stretch;
}

.timeline-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.timeline-step {
  padding: 1.8rem;
  border-radius: 1.6rem;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.timeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 0, 0.3);
}

.timeline-step:hover .timeline-number {
  color: var(--accent);
}

.timeline-number {
  display: block;
  color: rgba(255, 90, 0, 0.16);
  font-size: 4rem;
  transition: color 0.3s ease;
}

.section-quote {
  padding-top: 2rem;
}

.quote-panel {
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: 2.2rem;
  text-align: center;
  background: rgba(15, 14, 18, 0.86);
}

.quote-panel blockquote {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  line-height: 1.02;
}

.quote-line {
  width: 80px;
  margin: 2.2rem auto 0;
  background: var(--accent);
}

.snake-wrap {
  margin-top: 2.2rem;
}

.snake-stage {
  display: grid;
  place-items: center;
}

.snake-canvas,
.snake-fallback {
  width: 500px;
  height: 250px;
  max-width: 100%;
}

.snake-canvas {
  display: block;
}

.snake-fallback {
  display: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 120px;
  line-height: 1;
  color: var(--accent);
}

.snake-label {
  margin: 0.8rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.quote-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}

.quote-feature {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  text-align: left;
}

.quote-feature h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testimonial-grid,
.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  padding: 1.9rem;
  border-radius: 1.8rem;
  background: var(--card);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 0, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.1), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.quote-mark {
  font-family: "Playfair Display", serif;
  font-size: 5rem;
  line-height: 0.7;
  color: rgba(255, 90, 0, 0.3);
}

.testimonial-card p {
  margin: 1rem 0 2rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.testimonial-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--silver);
}

.testimonial-card span:last-child {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--accent-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 2rem;
  background: var(--card);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.featured {
  transform: translateY(-8px);
  border-color: rgba(255, 90, 0, 0.55);
  background: linear-gradient(180deg, rgba(255, 90, 0, 0.16), rgba(15, 14, 18, 0.95));
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.15), 0 18px 60px rgba(255, 90, 0, 0.12);
}

.pricing-badge {
  position: absolute;
  top: 1.3rem;
  right: 1.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 0, 0.44);
  background: rgba(255, 90, 0, 0.12);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.pricing-name {
  margin: 0;
  font-size: 0.82rem;
  color: var(--silver);
}

.pricing-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--silver);
  line-height: 1.55;
}

.pricing-value {
  display: block;
  margin-top: 1rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4.2rem, 6vw, 5.2rem);
  line-height: 1;
}

.pricing-card ul {
  list-style: none;
  padding: 1.8rem 0 1.6rem;
  margin: 1.8rem 0 0;
  border-top: 1px solid var(--border);
}

.pricing-card li {
  position: relative;
  padding-left: 1.2rem;
}

.pricing-card li + li {
  margin-top: 0.9rem;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-card .button-outline,
.pricing-card .button-solid {
  margin-top: auto;
}

/* ── Addon pricing section ── */
.pricing-addon-divider {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-top: 3.5rem;
}

.pricing-addon-divider::before,
.pricing-addon-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pricing-addon-divider span {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}

.pricing-grid--addon {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-top: 1.6rem;
  margin-inline: auto;
}

/* Fasce prezzo biglietto da visita */
.pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(255, 90, 0, 0.05);
  border: 1px solid rgba(255, 90, 0, 0.14);
  border-radius: 0.9rem;
}

.pricing-tiers span {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--silver);
  letter-spacing: 0.02em;
}

.pricing-tiers span b {
  color: #fff;
  font-weight: 600;
}

/* Nota prezzo variabile (brand kit) */
.pricing-addon-note {
  margin: 0.8rem 0 0;
  font-size: 0.75rem;
  color: rgba(160, 160, 168, 0.6);
  letter-spacing: 0.03em;
  line-height: 1.55;
  font-style: italic;
}

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

.pricing-note {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.pricing-note span {
  color: var(--accent);
}

.pricing-calculator {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 2.5rem 3rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.pricing-calculator-title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
}

.pricing-calculator-meta {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pricing-calculator-meta span {
  color: var(--accent);
}

.price-slider {
  width: 100%;
  margin-top: 1.5rem;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF5A00 0%, #FF5A00 0%, #1a181e 0%, #1a181e 100%);
  cursor: pointer;
}

.price-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -6px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.12);
  transform: scale(1);
  transition: transform 0.15s ease;
}

.price-slider.dragging::-webkit-slider-thumb {
  transform: scale(1.2);
}

.price-slider::-moz-range-track {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #1a181e;
}

.price-slider::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.price-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.12);
  transform: scale(1);
  transition: transform 0.15s ease;
}

.price-slider.dragging::-moz-range-thumb {
  transform: scale(1.2);
}

.pricing-total {
  margin-top: 1.6rem;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 64px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.04em;
}

.pricing-total span {
  color: #fff;
}

.pricing-calculator-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 11px;
  color: rgba(160, 160, 168, 0.7);
  letter-spacing: 0.04em;
}

.pricing-calculator-cta {
  display: inline-flex;
  margin: 2rem auto 0;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
  background: var(--accent);
  color: #000;
}

.cta-watermark {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(8rem, 26vw, 24rem);
  letter-spacing: 0.08em;
  color: rgba(8, 8, 9, 0.16);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  text-align: center;
}

.cta-overline {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  color: rgba(0, 0, 0, 0.7);
}

.cta-inner p:last-of-type {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: rgba(0, 0, 0, 0.74);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.cta-button {
  margin-top: 2.2rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #000;
  color: #fff;
}

.cta-button::before {
  background: var(--accent);
}

.cta-button:hover {
  color: #000;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  margin-top: 3.4rem;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  color: var(--accent);
}

.contact-list {
  margin-top: 2.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-row + .contact-row {
  margin-top: 1rem;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 0, 0.25);
  background: rgba(255, 90, 0, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-row small {
  display: block;
  font-size: 0.72rem;
  color: var(--silver);
}

.contact-row p {
  margin-top: 0.25rem;
  color: #fff;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  padding: 2rem;
  border-radius: 2rem;
  background: var(--card);
}

.field {
  position: relative;
  padding-top: 1.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0 0 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #fff;
  outline: none;
}

.field select option {
  background: var(--card);
}

.field span {
  position: absolute;
  left: 0;
  top: 1.95rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: 0.3s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}

.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span,
.field select:focus + span,
.field select:valid + span {
  top: 0;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-footer {
  padding: 3rem 0 2.5rem;
}

.footer-border {
  height: 1px;
  margin-bottom: 2rem;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.85) 0%, rgba(255, 90, 0, 0.14) 32%, transparent 72%);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-copy {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.delay-1 {
  transition-delay: 0.08s;
}

.reveal.delay-2 {
  transition-delay: 0.16s;
}

.reveal.delay-3 {
  transition-delay: 0.24s;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes revealAway {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }
  70% {
    opacity: 1;
    transform: scaleY(0.08);
  }
  100% {
    opacity: 0;
    transform: scaleY(0);
    visibility: hidden;
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes counterSpin {
  to {
    transform: translate(-50%, -50%) rotate(-315deg);
  }
}

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

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.16;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes bounceLine {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes growLine {
  to {
    background-size: 100% 100%, auto;
  }
}

/* ── TABLET (≤ 1024px) ── */
@media (max-width: 1024px) {
  .main-nav { display: none; }

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

  .timeline-track { display: none; }

  .contact-grid,
  .services-grid,
  .testimonial-grid,
  .pricing-grid,
  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* stats: 3 card → rimangono in riga su tablet */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-large { grid-column: span 2; grid-row: span 1; }

  .stat-card:nth-child(-n+2) { border-bottom: 0; }
}

/* ── MOBILE (≤ 640px) ── */
@media (max-width: 640px) {
  .container { width: min(100% - 2rem, 1380px); }

  .nav-shell { min-height: 68px; }
  .logo-meta { display: none; }
  .nav-cta { font-size: 0.78rem; padding: 0.55rem 1rem; }

  /* Hero */
  .hero { padding-top: 5rem; }
  .hero-grid { padding-bottom: 4rem; }
  .hero-wordmark { font-size: clamp(90px, 22vw, 130px); }
  .hero-subtitle { font-size: clamp(1.1rem, 4vw, 1.4rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-actions .button-solid,
  .hero-actions .link-arrow { width: 100%; justify-content: center; }

  /* Grids → single column */
  .services-grid,
  .testimonial-grid,
  .pricing-grid,
  .contact-grid,
  .quote-grid,
  .footer-grid,
  .stats-grid,
  .timeline-grid,
  .timeline-grid-4 {
    grid-template-columns: 1fr;
  }

  /* Projects → 1 col, no large span */
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-large { grid-column: span 1; grid-row: span 1; }
  .project-large,
  .project-small { min-height: 260px; }

  /* iframe scale per schermi piccoli */
  .project-preview iframe {
    width: 500%;
    height: 500%;
    transform: scale(0.2);
  }

  /* Stats: 1 colonna su mobile, separatori orizzontali */
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat-card { border-right: 0; border-bottom: 1px solid var(--border); padding: 1.8rem 1.4rem; }
  .stats-grid .stat-card:last-child { border-bottom: 0; }

  /* Section */
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.2rem; }
  .section-label { flex-wrap: wrap; row-gap: 0.4rem; }

  /* Pricing */
  .pricing-calculator { padding: 2rem 1.2rem; }
  .pricing-total { font-size: 48px; }
  .pricing-card .button-solid,
  .pricing-card .button-outline { width: 100%; text-align: center; }

  /* Quote */
  .quote-panel { padding: 2.2rem 1.4rem; }
  .quote-panel blockquote { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  /* Contact */
  .contact-form { gap: 1.1rem; }

  /* Footer */
  .footer-grid { text-align: center; gap: 1.4rem; }
  .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }

  /* CTA band */
  .cta-inner h2 { font-size: clamp(2rem, 8vw, 3.5rem); }
}

/* ── CHI SIAMO · EDITORIAL ── */
.about-editorial {
  margin-top: 3.4rem;
  max-width: 900px;
}

.about-opener {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 3rem;
}

.about-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 0 0 2.8rem;
}

.about-prose p {
  margin: 0;
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.82;
}

.about-single-prose {
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.82;
  margin: 0 0 2.8rem;
  max-width: 640px;
}

.about-manifesto {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  max-width: 720px;
  margin: 0 0 2.8rem;
}

.about-manifesto p {
  margin: 0;
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-manifesto p strong {
  color: #fff;
  font-weight: 600;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}

.about-pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pillar-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}

.about-pillar strong {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.about-pillar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .about-pillars {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.about-closing {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 90, 0, 0.2);
}

@media (max-width: 768px) {
  .about-prose {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

/* ── CHI SIAMO ── */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3.4rem;
  align-items: start;
}

.about-lead {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.6rem;
}

.about-text-p {
  color: var(--silver);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-pillar {
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: var(--card);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.about-pillar:hover {
  border-color: rgba(255, 90, 0, 0.35);
  transform: translateX(6px);
}

.pillar-num {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: rgba(255, 90, 0, 0.22);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.about-pillar h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-pillar p {
  margin: 0;
  color: var(--silver);
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.about-since {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  white-space: nowrap;
}

.about-sign-text {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
  .about-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .about-signature {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .about-pillar:hover {
    transform: none;
  }
}

/* ── CHANNEL CARDS (contatti senza form) ── */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3.4rem;
  max-width: 680px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--card);
  text-decoration: none;
  color: inherit;
  min-height: 80px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.channel-card:hover {
  border-color: rgba(255, 90, 0, 0.4);
  transform: translateX(6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.channel-card:active {
  transform: translateX(3px);
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 0, 0.25);
  background: rgba(255, 90, 0, 0.08);
  color: var(--accent);
  flex-shrink: 0;
}

.channel-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.channel-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver);
}

.channel-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}

.channel-arrow {
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.channel-card:hover .channel-arrow {
  transform: translateX(4px);
}

/* ── FOOTER PRIVACY NOTE ── */
.footer-privacy {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-privacy p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* ── NAV END (wrapper per hamburger + cta) ── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ── NAV HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-hamburger { display: flex; }
}

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(8, 8, 9, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  pointer-events: none;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
}

@media (min-width: 1025px) {
  .mobile-nav-overlay { display: none !important; }
  .nav-hamburger { display: none !important; }
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  padding: 6rem 2rem 3rem;
  max-height: 100vh;
  overflow-y: auto;
}

.mobile-nav-link {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  padding: 0.5rem 2rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.22s ease;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
  color: var(--accent);
}

.mobile-nav-cta {
  font-family: "Barlow Condensed", sans-serif !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.22em !important;
  margin-top: 1.8rem;
  min-width: 200px;
  padding: 1rem 2rem !important;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-btn {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.34rem 0.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.25s ease, background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: #000;
  background: var(--accent);
}

/* Mobile variant inside the overlay */
.lang-switch--mobile {
  margin-top: 2rem;
  padding: 5px;
  gap: 4px;
}

.lang-switch--mobile .lang-btn {
  font-size: 1rem;
  padding: 0.6rem 1.1rem;
  letter-spacing: 0.16em;
}

@media (min-width: 1025px) {
  .lang-switch--mobile { display: none !important; }
}

@media (max-width: 1024px) {
  /* Header switcher hidden on mobile (lives inside the overlay instead) */
  .nav-end > .lang-switch { display: none; }
}

/* ── iOS: previeni zoom su focus dei campi ── */
@media (max-width: 640px) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

/* ── Touch target minimi (44px) ── */
@media (max-width: 1024px) {
  .faq-item summary {
    min-height: 60px;
    padding: 1.1rem 1.4rem;
  }

  .contact-row {
    min-height: 56px;
  }

  .button-solid,
  .button-outline,
  .cta-button {
    min-height: 48px;
  }

  .nav-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── Nascondi nav-cta su schermi molto piccoli (è nel menu mobile) ── */
@media (max-width: 480px) {
  .nav-cta { display: none; }
  .scroll-indicator { display: none; }
}

/* ── Fix pricing featured in colonna singola ── */
@media (max-width: 640px) {
  .pricing-card.featured {
    transform: translateY(0);
  }
  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
}

/* ── Project overlay sempre visibile su touch ── */
@media (pointer: coarse) {
  .project-overlay {
    transform: translateY(0) !important;
  }
  .project-open {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* ── Overlay video hero per leggibilità su mobile ── */
@media (max-width: 640px) {
  .hero-bg-video {
    object-position: 30% center;
  }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 9, 0.45);
    z-index: 0;
    pointer-events: none;
  }

  .hero-lede {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .hero-grid {
    padding-bottom: 5rem;
  }
}

/* ── CTA band mobile ── */
@media (max-width: 640px) {
  .cta-band { padding: 4rem 0; }
  .cta-button { width: 100%; justify-content: center; }
}

/* ── Stat cards: 3 col su tablet, rimuovi bordo destro sull'ultima ── */
@media (max-width: 1024px) and (min-width: 641px) {
  .stat-card:last-child { border-right: 0; }
}

/* ── REDUCED MOTION / TOUCH ── */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  /* page-flash: senza animazione resterebbe visibile su iOS — nascondila subito */
  .page-flash { display: none !important; }

  .orbital-circle,
  .orbital-square,
  .pulse-dot,
  .hero-dot-grid span,
  .scroll-line {
    animation: none !important;
  }

  .reveal,
  .project-overlay,
  .project-open {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cursor-dot,
  .cursor-ring { display: none; }
}
