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

:root {
  --bg-primary: #0a0a0d;
  --bg-secondary: #111115;
  --text-primary: #e8e4dd;
  --text-secondary: #8a8680;
  --text-muted: #555;
  --accent-red: #e8192c;
  --accent-amber: #f0a820;
  --accent-blue: #2d8cff;
  --accent-warm: #e8e4dd;
  --accent-rgb: 232, 25, 44;
  --border-color: rgba(232,228,221,0.08);
  --radius: 2px;
  --radius-sm: 2px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

html {
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  scroll-behavior: auto;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Prevent text selection on UI elements */
.svc-card, .mb-btn, .sticky-cta-btn, .bottom-nav-item,
.service-card, .comp-card, .comp-filter, .gm-card, .gm-hero,
.mb-tile, .mb-comp-card, .svc-sheet, .gallery-item,
.hn-btn, .mobile-toggle { user-select: none; -webkit-user-select: none; }

/* ==================== HEADER — Floating glass pill ==================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.header.scrolled {
  border-bottom-color: rgba(255,255,255,0.08);
}

/* Desktop: header trasparente in cima, frosted allo scroll */
@media (min-width: 1024px) {
  .header {
    background: transparent;
    border-bottom-color: transparent;
  }
  .header.scrolled {
    background: rgba(10,10,13,0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
            backdrop-filter: blur(16px) saturate(1.25);
    border-bottom-color: rgba(255,255,255,0.08);
  }
  /* "Menu" e frecce → servono solo al menu fullscreen mobile */
  .nav-header,
  .nav-arrow { display: none; }
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 24px;
  transition: padding 0.35s ease;
}

.header.scrolled .header-inner {
  padding: 12px 20px;
}

@media (min-width: 1024px) {
  .header-inner { padding: 16px 48px; }
  .header.scrolled .header-inner { padding: 12px 48px; }
}

@media (max-width: 1023px) {
  .header-inner { 
    display: flex;
    justify-content: space-between;
    padding: 14px 20px; 
    gap: 0;
  }
  .header.scrolled .header-inner { padding: 10px 20px; }
  .logo img { height: 28px; width: auto; }
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.logo img { display: block; height: 34px; width: auto; }
.logo:hover { transform: scale(1.04); }
.logo-tag,
.header-actions,
.nav-credits { display: none; }

/* Desktop nav — ambient glass dock + CTA */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 30px;
  background: rgba(22,22,26,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  justify-self: center;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
          backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav a {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: color 0.25s ease;
  position: relative;
  letter-spacing: 0.6px;
  cursor: pointer;
  text-transform: uppercase;
  font-family: 'Syne', sans-serif;
  padding: 10px 16px;
  border-radius: 22px;
  text-decoration: none;
  z-index: 2;
  white-space: nowrap;
}

.nav a::after { display: none; }

.nav a:hover { color: #fff; }
.nav a.active { color: #fff; font-weight: 700; }

/* Indicatore ambient che scorre sotto la voce attiva (posizione/size da JS) */
.nav-pill {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-radius: 22px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.22,1,0.36,1),
    width 0.4s cubic-bezier(0.22,1,0.36,1),
    height 0.4s cubic-bezier(0.22,1,0.36,1),
    opacity 0.3s ease;
}

/* la riga di luce ambient RGB — stesso linguaggio della hero (.hn-rail) */
.nav-pill::after {
  content: "";
  position: absolute;
  left: 18%; right: 18%;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--accent-red), var(--accent-amber), var(--accent-blue));
  box-shadow: 0 0 10px 1px rgba(240,168,32,0.5);
}

.nav-underline { display: none; }
.nav-icon,
.nav-handle,
.nav-footer { display: none; }

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 22px;
  background: var(--accent-amber);
  color: var(--bg-primary);
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,168,32,0.28);
}

@media (max-width: 1200px) {
  .header-inner { grid-template-columns: 120px 1fr auto; gap: 16px; }
  .nav a { padding: 10px 12px; }
}

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .nav {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px 28px 120px;
    z-index: 999;
    gap: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    border-radius: 0;
    box-shadow: none;
    justify-self: stretch;
  }
  .nav-pill { display: none; }
}

/* Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  position: relative;
  z-index: 1100;
  transition: background 0.2s ease;
}
.mobile-toggle:active { background: rgba(255,255,255,0.08); }
.mobile-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  transform-origin: center;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==================== LOADING ==================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content { text-align: center; }

.loader-logo-img {
  display: block;
  margin: 0 auto 32px;
  max-width: 200px;
  height: auto;
  animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.loader-bar {
  width: 280px;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #e8192c, #ff4455);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(232, 25, 44, 0.5);
}

.loader-info {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: #555;
}

.loader-pct {
  font-variant-numeric: tabular-nums;
  min-width: 32px;
}

/* ==================== THREE.JS CANVAS ==================== */
#three-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  cursor: grab;
}

#three-canvas:active {
  cursor: grabbing;
}

/* ==================== CSS3D PANELS ==================== */
.panel-3d {
  position: relative;
  padding: 24px 28px;
  background: rgba(8, 8, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-3d.debug {
  border-color: rgba(0, 255, 100, 0.6);
  border-width: 2px;
}

.panel-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.panel-3d::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(
    135deg,
    rgba(232, 25, 44,0.15),
    transparent 40%,
    transparent 60%,
    rgba(232, 25, 44,0.05)
  );
  pointer-events: none;
  z-index: -1;
}

.panel-3d h1, .panel-3d h2, .panel-3d h3 {
  letter-spacing: -0.3px;
}

.panel-3d .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 10px;
  position: relative;
}

.panel-3d .section-label::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, currentColor, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.25s;
}

.panel-3d .section-label.swept::after {
  transform: scaleX(1);
}

.panel-3d .section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
}

/* Section label color variants */
.section-label.sl-neutral { color: #888; }
.section-label.sl-neutral::before { background: #888; }
.section-label.sl-purple { color: #cc0f1f; }
.section-label.sl-purple::before { background: #cc0f1f; }
.section-label.sl-green { color: #e8192c; }
.section-label.sl-green::before { background: #e8192c; }
.section-label.sl-warm { color: #ff4422; }
.section-label.sl-warm::before { background: #ff4422; }

.panel-3d .section-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.panel-3d .neon-word {
  color: var(--accent-red);
  text-shadow: 0 0 12px rgba(232, 25, 44,0.45);
}

.panel-3d .panel-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.panel-header {
  margin-bottom: 12px;
}

.panel-visible {
  display: block;
}

/* Hero panel */
.hero-panel {
  width: 100%;
  padding: 28px 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(232, 25, 44,0.08);
  border: 1px solid rgba(232, 25, 44,0.15);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent-red);
  margin-bottom: 14px;
}

.hero-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #e8192c, #ff4455);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
}

/* Service cards in panel */
.servizi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.service-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 10px 10px 0;
  transition: var(--transition);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.045);
}

.service-card:nth-child(1) { border-left-color: #e8192c; }
.service-card:nth-child(2) { border-left-color: #ff3344; }
.service-card:nth-child(3) { border-left-color: #cc0f1f; }
.service-card:nth-child(4) { border-left-color: #e8192c; }
.service-card:nth-child(5) { border-left-color: #ff3344; }
.service-card:nth-child(6) { border-left-color: #cc0f1f; }

.service-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: none;
  background: none;
}

.service-card h3 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  word-break: break-word;
}

.service-card p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin-top: 6px;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-red);
}

/* Contact panel */
.contatti-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contatti-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.contatti-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contatti-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
  transition: var(--transition);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(232, 25, 44,0.06);
}

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

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

.contact-form .btn {
  padding: 10px 18px;
  font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #e8192c, #ff4455);
  color: #fff;
  box-shadow: 0 4px 24px rgba(232, 25, 44,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(232, 25, 44,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

/* ==================== SCROLL SPACER ==================== */
#scroll-spacer {
  height: 400vh;
  pointer-events: none;
}

@media (max-width: 1023px) {
  #scroll-spacer { display: none; }
}

/* ==================== FOOTER ==================== */
.footer {
  position: relative;
  z-index: 2;
  padding: 64px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #060606;
}

.footer .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer .container { padding: 0 24px; }
  .footer { padding: 48px 0 24px; }
}
@media (max-width: 1023px) {
  .footer { display: none; }
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.38);
  line-height: 1.6;
  margin-top: 18px;
  max-width: 380px;
}

.footer-logo {
  display: block;
  height: 48px;
  width: auto;
  opacity: 0.9;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4, .footer-contact h4 {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 4px;
}

.footer-links a, .footer-contact a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--accent-red);
  border-color: rgba(232,25,44,0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
}

.footer-credit {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.footer-credit-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #fff; text-decoration: none; transition: var(--transition);
}
.footer-credit-link:hover {
  background: rgba(255,255,255,0.08); border-color: rgba(255,45,45,0.4);
}
.footer-credit-link img {
  width: 18px; height: 18px; border-radius: 4px;
}
.footer-credit-link strong {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}
.footer-bottom .iubenda-embed {
  display: inline-block;
  margin-top: 12px;
  margin-right: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.45) !important;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.footer-bottom .iubenda-embed:hover {
  color: #fff !important;
}
.footer-bottom .iubenda-embed:last-of-type {
  margin-right: 0;
}


/* ==================== NEW HERO — Full-bleed dramatic ==================== */
.hero-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding-top: 60px;
}

.hero-ios-title { display: none; }

.mb-hero-ios-title { display: none; }

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

.hero-new-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.1) contrast(1.05) brightness(0.9);
  animation: hero-zoom 12s ease-out forwards;
  /* la foto sfuma verso sinistra: il titolo poggia sul nero e resta leggibile */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 32%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.18) 32%, #000 70%);
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero-new-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #0a0a0d 0%,
      rgba(10,10,13,0.88) 34%,
      rgba(10,10,13,0.35) 64%,
      rgba(10,10,13,0.55) 100%),
    linear-gradient(180deg,
      rgba(10,10,13,0.55) 0%,
      transparent 26%,
      transparent 60%,
      #0a0a0d 100%);
}

.hero-new-texture {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(
      0deg, transparent, transparent 2px, rgba(255,255,255,0.5) 2px, rgba(255,255,255,0.5) 3px
    );
  pointer-events: none;
}

.hero-new-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  width: 100%;
}

.hero-new-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hne-line {
  width: 48px;
  height: 1px;
  background: var(--accent-red);
}

.hne-text {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(240,232,216,0.5);
}

.hero-new-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 8vw, 116px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 0.82;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
}

.hn-line { display: block; }

/* il punto di ogni pilastro riprende un colore dello spettro ambient */
.hn-dot { color: var(--accent-amber); }
.hero-new-title .hn-line:nth-child(2) .hn-dot { color: var(--accent-blue); }
.hero-new-title .hn-line:nth-child(3) .hn-dot { color: var(--accent-red); }

.hn-accent { color: var(--text-primary); }

/* SIGNATURE — barra di luce ambient RGB (lo spettro dei LED che montiamo) */
.hn-rail {
  width: min(540px, 60%);
  height: 3px;
  margin: 36px 0 32px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    var(--accent-red) 0%,
    var(--accent-amber) 50%,
    var(--accent-blue) 100%);
  box-shadow: 0 0 22px 1px rgba(232,25,44,0.35);
  animation: rail-breathe 7s ease-in-out infinite;
}

@keyframes rail-breathe {
  0%, 100% { box-shadow: 0 0 22px 1px rgba(232,25,44,0.35); }
  50%      { box-shadow: 0 0 32px 3px rgba(45,140,255,0.42); }
}

.hero-new-sub {
  font-size: 18px;
  line-height: 1.62;
  color: rgba(240,232,216,0.55);
  max-width: 520px;
  margin: 0 0 38px;
  font-weight: 400;
}

.hero-new-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 2px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hn-btn-primary {
  background: var(--accent-red);
  color: #fff;
}

.hn-btn-primary:hover {
  background: #e8192c;
  box-shadow: 0 8px 32px rgba(232,25,44,0.35);
  transform: translateY(-1px);
}

.hn-btn-ghost {
  background: transparent;
  color: rgba(232,228,221,0.65);
  border: 1px solid rgba(232,228,221,0.12);
}

.hn-btn-ghost:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  background: rgba(240,168,32,0.06);
}

/* Meta line — frasi vere al posto delle stats template */
.hero-new-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid rgba(240,232,216,0.08);
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(240,232,216,0.3);
  flex-wrap: wrap;
}

.hnm-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(240,232,216,0.2);
}

.hero-new-scroll {
  position: absolute;
  bottom: 28px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-new-img,
  .hn-rail,
  .hero-new-scroll { animation: none; }
  .nav-pill { transition: opacity 0.3s ease; }
}

/* Hide old 3D hero styles */
.hero-panel.hero-split,
.hero-col-3d,
#hero-3d,
.hero-3d-tag,
.cockpit-console,
.console-switch,
.console-section,
.preset-btn,
.paint-swatch,
.ambient-swatch,
.action-btn,
.console-actions,
.console-presets,
.console-zoom,
.zoom-btn,
.switch-track,
.switch-knob,
.switch-label,
.console-divider,
.console-section-label,
.demo-switch,
.preset-spin,
.ambient-player,
.paint-player,
.car-controls,
.car-btn,
.car-btn-dot {
  display: none !important;
}

/* Hide canvas */
#three-canvas { display: none !important; }

#page-content {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
}

/* Hero section special */
.section-hero {
  padding: 0 !important;
  border: none !important;
}

/* ---------- SEZIONI: blocchi normali ---------- */
.section-page {
  position: relative;
  min-height: auto;
  display: block;
  padding: 120px 0;
}
.section-page + .section-page { border-top: 1px solid rgba(255,255,255,0.05); }
.section-page::before { display: none; }

.section-page .panel-3d {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  background: none; border: none; backdrop-filter: none; box-shadow: none; border-radius: 0;
}
.section-page .panel-3d::before,
.section-page .panel-3d::after { display: none; }

/* ---------- HERO SPLIT ---------- */
#section-hero { padding: 76px 0 48px; }
.hero-panel.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  min-height: 84vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.hero-col-text { min-width: 0; }
.hero-streak { display: none; }
.hero-badge {
  display: block; font-family: 'Syne', sans-serif; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.34); margin-bottom: 22px;
  background: none; border: none; padding: 0;
}
.hero-badge::before { display: none; }
.hero-title {
  font-family: 'Syne', sans-serif; font-size: clamp(38px, 3.8vw, 60px); font-weight: 800;
  letter-spacing: -2px; line-height: 0.94; margin: 0;
}
.hero-title .highlight {
  color: var(--accent-red); -webkit-text-fill-color: var(--accent-red); background: none;
}
.hero-sub {
  font-size: 16px; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 480px;
  margin: 22px 0 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-tags { display: none; }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; }
.hero-stats {
  display: flex; gap: 0; margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
}
.hero-stat { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 20px; }
.stat-n { font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px; }
.stat-l { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.32); }

/* ---------- HERO 3D BOX ---------- */
.hero-col-3d { display: flex; flex-direction: column; gap: 18px; }
#hero-3d {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  /* studio chiaro: l'auto nera risalta e la scena si alleggerisce */
  background: radial-gradient(78% 82% at 50% 26%, #f5f6f8 0%, #e4e6ea 50%, #d0d3da 100%);
}
.hero-3d-tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-family: 'Syne', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(20,22,28,0.5); pointer-events: none;
}

/* ---------- COCKPIT CONSOLE — comandi da abitacolo auto ---------- */
.cockpit-console {
  background: linear-gradient(160deg, #121216 0%, #0e0e12 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.cockpit-console::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232,25,44,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0,136,255,0.04) 0%, transparent 50%);
  pointer-events: none;
  border-radius: 18px;
}

/* Console sections */
.console-section {
  position: relative;
  z-index: 1;
}

.console-section-label {
  font-family: 'Syne', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  margin-bottom: 8px;
  padding-left: 2px;
}

/* Console row — interruttori */
.console-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.console-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  -webkit-tap-highlight-color: transparent;
  flex: 1 1 auto;
  min-width: 70px;
}

.console-switch:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.console-switch:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Switch track */
.switch-track {
  width: 36px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255,255,255,0.08);
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s ease;
  border: 1px solid rgba(255,255,255,0.06);
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0, #aaa);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.console-switch.is-on .switch-knob {
  left: 16px;
  background: linear-gradient(135deg, #fff, #ffe9b0);
  box-shadow: 0 1px 8px rgba(255,209,102,0.5), 0 0 12px rgba(255,209,102,0.3);
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.console-switch.is-on .switch-label {
  color: #fff;
}

.console-switch .switch-label svg {
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.console-switch.is-on .switch-label svg {
  opacity: 1;
}

/* Console divider — etichetta sezione */
.console-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.console-divider span {
  font-family: 'Syne', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
}

/* Paint swatches — campioni di vernice da carrozziere */
.paint-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.paint-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  background: var(--sw);
  border: 2px solid rgba(255,255,255,0.08);
  transition: all 0.22s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.paint-swatch:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.paint-swatch.is-active {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.1),
    0 4px 16px rgba(0,0,0,0.4);
}

.paint-swatch.is-active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
}

/* Ambient swatches — LED colorati */
.ambient-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ambient-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  background: var(--sw);
  border: 2px solid rgba(255,255,255,0.08);
  transition: all 0.22s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}

.ambient-swatch:hover {
  transform: scale(1.15);
  border-color: rgba(255,255,255,0.25);
}

.ambient-swatch.is-active {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.1),
    0 0 24px 4px var(--sw);
}

/* Old car controls / paint player — remove */
.car-controls, .car-btn, .car-btn-dot,
.paint-player, .paint-label,
.ambient-player, .ambient-player-label, .ambient-dot {
  display: none;
}

/* ---------- HERO 3D BACKGROUND TOGGLE ---------- */
#hero-3d {
  transition: background 0.6s ease;
}

#hero-3d.lights-on {
  background: radial-gradient(78% 82% at 50% 26%, #1a1a22 0%, #0e0e14 60%, #08080c 100%) !important;
}

#hero-3d.lights-on .hero-3d-tag {
  color: rgba(255,255,255,0.3) !important;
}

/* Zoom buttons (inline in actions) */
.zoom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.zoom-btn:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.16);
}

.zoom-btn:active {
  transform: scale(0.95);
}

/* ---------- CAMERA PRESETS ---------- */
.console-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-btn {
  width: 40px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.35);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 36px;
}

.preset-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}

.preset-btn.is-active {
  background: rgba(232,25,44,0.15);
  border-color: rgba(232,25,44,0.4);
  color: var(--accent-red);
}

.preset-spin.is-active {
  background: rgba(0,136,255,0.15);
  border-color: rgba(0,136,255,0.4);
  color: #0088ff;
  animation: spin-pulse 2s ease-in-out infinite;
}

@keyframes spin-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,136,255,0.2); }
  50% { box-shadow: 0 0 16px rgba(0,136,255,0.4); }
}

/* Demo switch */
.demo-switch.is-on .switch-track {
  background: rgba(0,200,100,0.3);
  border-color: rgba(0,200,100,0.4);
  box-shadow: 0 0 12px rgba(0,200,100,0.2);
}

.demo-switch.is-on .switch-knob {
  background: linear-gradient(135deg, #fff, #80ffb0);
  box-shadow: 0 1px 8px rgba(0,255,128,0.5);
}

/* Action buttons */
.console-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.15);
}

.action-btn:active {
  transform: scale(0.96);
}

/* ---------- ALTERNATING SECTION BACKGROUNDS ---------- */
.section-page:nth-child(even) { background: #0e0e12; }
.section-page:nth-child(odd)  { background: var(--bg-primary); }

/* Stats banner tra hero e servizi */
#section-servizi { padding-top: 48px; }

/* ---------- SECTION HEADER ---------- */
.section-page .panel-header { margin-bottom: 36px; }
.section-page .section-label {
  display: block; font-family: 'Syne', sans-serif; font-size: 11px; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 12px;
}
.section-page .section-label::before,
.section-page .section-label::after { display: none; }
.section-page .section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(38px, 4vw, 56px); font-weight: 800;
  letter-spacing: -2px; line-height: 1; margin: 0;
}
.section-page .neon-word {
  color: var(--accent-red); -webkit-text-fill-color: var(--accent-red); background: none; text-shadow: none;
}
.section-page .panel-desc {
  font-size: 16px; color: rgba(255,255,255,0.45); line-height: 1.65; margin: 18px 0 0; max-width: 620px;
}

/* ---------- SERVIZI — card grid ---------- */
.section-page .servizi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; border: none;
}
.section-page .service-card {
  display: block; padding: 32px 28px; gap: 0; cursor: pointer;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-left: 3px solid transparent; border-radius: 2px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, border-left-color 0.3s ease;
  position: relative;
}
.section-page .service-card::after {
  content: '→';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: transparent;
  transition: color 0.3s ease, transform 0.3s ease;
}
.section-page .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,168,32,0.35);
  border-left-color: var(--accent-amber);
  background: #16161a;
}
.section-page .service-card:hover::after {
  color: var(--accent-amber);
  transform: translateY(-50%) translateX(4px);
}
.section-page .service-card-inner { display: block; width: 100%; }
.section-page .service-icon {
  width: 44px; height: 44px; border-radius: 2px; display: flex; align-items: center; justify-content: center;
  background: rgba(240,168,32,0.1); border: 1px solid rgba(240,168,32,0.2); opacity: 1; margin-bottom: 18px;
}
.section-page .service-icon svg { width: 22px; height: 22px; stroke: var(--accent-amber); }
.section-page .service-card h3 {
  display: block; font-family: 'Syne', sans-serif;
  font-size: clamp(16px, 1.45vw, 19px); font-weight: 800;
  color: var(--text-primary); margin: 0 0 8px; letter-spacing: -0.3px;
  padding-right: 70px; /* evita sovrapposizione con .svc-code */
  word-break: break-word;
}
.section-page .service-card h3::after { display: none; }
.section-page .service-card p {
  display: block; font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0;
}

/* codice servizio stile officina */
.section-page .svc-code {
  position: absolute; top: 20px; right: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  color: rgba(255,255,255,0.22); text-transform: uppercase;
  transition: color 0.3s ease;
}
.section-page .service-card:hover .svc-code { color: rgba(240,168,32,0.65); }

/* riga di luce in alto sulla card al hover */
.section-page .service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-amber), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.section-page .service-card:hover::before { opacity: 1; }

/* ==================== SERVICE DETAIL OVERLAY (desktop) ==================== */
.service-overlay {
  position: fixed; inset: 0; z-index: 2500;
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.service-overlay.open { visibility: visible; opacity: 1; }
.service-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(5,5,8,0.9);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

/* Scheda servizio — due colonne (foto + contenuto scrollabile) */
.svo-panel {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 42% 58%;
  width: min(960px, 92vw);
  height: min(620px, 88vh);
  background: #0e0e12;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.75);
}
.service-overlay.open .svo-panel { transform: translateY(0) scale(1); }

/* colonna foto */
.svo-media { position: relative; height: 100%; overflow: hidden; }
.svo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.03);
}
.svo-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,13,0.1) 0%, rgba(10,10,13,0.35) 52%, rgba(10,10,13,0.96) 100%);
}
.svo-icon {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  width: 46px; height: 46px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,13,0.55); border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.svo-icon svg { width: 24px; height: 24px; stroke: var(--accent-amber); }
.svo-media-cap { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; }
.svo-code {
  display: inline-block; margin-bottom: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent-amber);
  padding: 3px 6px; border: 1px solid rgba(240,168,32,0.25);
  background: rgba(240,168,32,0.08); border-radius: 2px;
}
.svo-eyebrow {
  display: block;
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-amber);
}
.svo-title {
  font-family: 'Syne', sans-serif; font-size: 30px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.02; color: #fff; margin: 8px 0 0;
}

/* colonna contenuto */
.svo-content { padding: 34px 34px 30px; overflow-y: auto; overscroll-behavior: contain; }
.svo-content::-webkit-scrollbar { width: 8px; }
.svo-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1); border-radius: 8px;
}
.svo-rail {
  width: 64px; height: 3px; border-radius: 4px; margin-bottom: 22px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-amber), var(--accent-blue));
  box-shadow: 0 0 16px 1px rgba(240,168,32,0.4);
}
.svo-desc {
  font-size: 15.5px; line-height: 1.7; color: rgba(232,228,221,0.7); margin: 0 0 22px;
}
.svo-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.svo-chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 14px; border-radius: 4px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07);
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary);
}
.svo-chip b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.svo-h {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(232,228,221,0.45);
  margin: 0 0 14px;
}
.svo-includes { list-style: none; padding: 0; margin: 0 0 30px; }
.svo-includes li {
  display: flex; gap: 12px; align-items: flex-start; padding: 9px 0;
  font-size: 14px; line-height: 1.5; color: rgba(232,228,221,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.svo-includes li::before {
  content: ""; flex-shrink: 0; margin-top: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px 1px rgba(240,168,32,0.5);
}
.svo-steps-wrap { margin-bottom: 30px; }
.svo-steps { list-style: none; padding: 0; margin: 0; }
.svo-steps li {
  display: flex; gap: 16px; align-items: flex-start; padding: 0 0 18px; position: relative;
}
.svo-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px;
  width: 1px; background: rgba(255,255,255,0.1);
}
.svo-step-n {
  flex-shrink: 0; width: 27px; height: 27px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px; font-weight: 700;
  color: var(--accent-amber);
  border: 1px solid rgba(240,168,32,0.35); background: rgba(240,168,32,0.08);
  position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}
.svo-step-tx {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 13.5px; line-height: 1.45; color: rgba(232,228,221,0.55); padding-top: 2px;
}
.svo-step-tx b {
  font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-primary);
}
.svo-cta { width: 100%; justify-content: center; }
.svo-cta svg { width: 16px; height: 16px; }

.service-overlay-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,10,13,0.6); color: #fff; font-size: 19px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}
.service-overlay-close:hover {
  background: rgba(232,25,44,0.7); border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .svo-panel { transition: opacity 0.3s ease; }
}

/* ---------- COMPONENTI — griglia ricambi & accessori ---------- */
.section-page .componenti-panel .comp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px;
}
.section-page .comp-card {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer; position: relative;
}
.section-page .comp-card:hover {
  transform: translateY(-6px); border-color: rgba(232,25,44,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.section-page .comp-card-img {
  aspect-ratio: 4/3; overflow: hidden; background: #0e0e0e; position: relative;
}
.section-page .comp-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.section-page .comp-card:hover .comp-card-img img { transform: scale(1.07); }
.section-page .comp-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5));
  pointer-events: none;
}
.section-page .comp-card-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: 'Syne', sans-serif; font-size: 8px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: #fff;
  padding: 5px 10px; border-radius: 6px;
  background: rgba(232,25,44,0.25); backdrop-filter: blur(6px);
  border: 1px solid rgba(232,25,44,0.3);
}
.section-page .comp-card-price {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.section-page .comp-card-body {
  padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.section-page .comp-card-name {
  font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700;
  color: #fff; line-height: 1.2; letter-spacing: -0.3px;
}
.section-page .comp-card-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: auto; padding: 10px 16px; border-radius: 10px; background: rgba(232,25,44,0.12);
  border: 1px solid rgba(232,25,44,0.25); color: #ff5a68;
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.section-page .comp-card-cta:hover {
  background: rgba(232,25,44,0.25); color: #fff;
}
.section-page .comp-card-cta svg { width: 14px; height: 14px; }

/* ---------- COMPONENTI FILTRI ---------- */
.section-page .comp-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px;
}
.section-page .comp-filter {
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  padding: 9px 18px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: rgba(255,255,255,0.4);
  transition: all 0.2s ease;
}
.section-page .comp-filter:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.section-page .comp-filter.is-active {
  background: rgba(232,25,44,0.15); border-color: rgba(232,25,44,0.4);
  color: var(--accent-red);
}

/* ---------- COMPONENTI — detail overlay (desktop) ---------- */
.comp-overlay {
  position: fixed; inset: 0; z-index: 2000;
  visibility: hidden; opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.comp-overlay.open { visibility: visible; opacity: 1; }
.comp-overlay-bg {
  position: absolute; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.comp-overlay-panel {
  position: relative; width: min(800px, 90vw); max-height: 82vh;
  background: #0e0e0e; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; overflow: hidden; display: grid;
  grid-template-columns: 1fr 1fr;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.comp-overlay.open .comp-overlay-panel { transform: scale(1) translateY(0); }
.comp-overlay-img { position: relative; overflow: hidden; min-height: 380px; }
.comp-overlay-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.comp-overlay-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgba(0,0,0,0.3));
  pointer-events: none;
}
.comp-overlay-body {
  padding: 36px 34px; display: flex; flex-direction: column; overflow-y: auto;
}
.comp-overlay-cat {
  font-family: 'Syne', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-red);
  margin-bottom: 8px;
}
.comp-overlay-name {
  font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800;
  letter-spacing: -1px; color: #fff; line-height: 1; margin-bottom: 14px;
}
.comp-overlay-price {
  font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800;
  color: var(--accent-red); margin-bottom: 18px;
}
.comp-overlay-desc {
  font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.55);
  margin-bottom: 22px;
}
.comp-overlay-feats { list-style: none; padding: 0; margin: 0 0 28px; }
.comp-overlay-feats li {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.4;
}
.comp-overlay-feats li::before {
  content: '✦'; color: var(--accent-red); font-size: 12px; flex-shrink: 0; margin-top: 2px;
}
.comp-overlay .btn { width: 100%; justify-content: center; padding: 14px; margin-top: auto; }
.comp-overlay-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.5); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.comp-overlay-close:hover { background: rgba(232,25,44,0.6); }

/* ---------- SHOWCASE SPLIT (personalizzazione · android desktop) ---------- */
.section-page .showcase-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.section-page .showcase-split.showcase-reverse {
  direction: ltr;
}
.section-page .showcase-media {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 4/3;
  position: relative;
}
.section-page .showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.section-page .showcase-media:hover img {
  transform: scale(1.05);
}
.section-page .showcase-text {
  display: flex;
  flex-direction: column;
}
.section-page .showcase-text .panel-header {
  margin-bottom: 20px;
}
.section-page .showcase-text .panel-desc {
  margin: 0 0 20px;
}
.section-page .cta-showcase {
  margin-top: 24px;
  align-self: flex-start;
}

/* Chi Siamo badge */
.chisiamo-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 2px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}
.chisiamo-badge img { display: block; height: 40px; width: auto; opacity: 0.8; }
.chisiamo-badge span {
  font-family: 'Syne', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 1px; color: var(--text-secondary);
}

/* ==================== CAR SCREEN FRAME (YouTube embed) ==================== */
.car-screen-frame {
  aspect-ratio: auto !important;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  overflow: visible;
  gap: 12px;
}

.csf-bezel {
  width: 340px;
  background: linear-gradient(180deg, #1a1a20 0%, #0e0e12 100%);
  border-radius: 16px;
  padding: 14px 10px 10px;
  border: 2px solid #2a2a32;
  box-shadow:
    0 0 0 3px #0a0a0d,
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.03);
  position: relative;
}

.csf-display {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.csf-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.csf-vent {
  height: 4px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  border-radius: 2px;
}

.csf-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ---------- ANDROID PRODUCT PAGE (desktop) ---------- */
.android-product { max-width: 1100px; margin: 0 auto; }
.ap-hero {
  position: relative; border-radius: 28px; overflow: hidden;
  aspect-ratio: 21 / 9; margin-bottom: 40px;
  border: 1px solid rgba(255,255,255,0.08);
}
.ap-hero img { width: 100%; height: 100%; object-fit: cover; }
.ap-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,0) 30%, rgba(10,10,13,0.8) 100%);
}
.ap-hero-badge {
  position: absolute; left: 28px; bottom: 28px; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 24px;
  background: rgba(240,168,32,0.16); border: 1px solid rgba(240,168,32,0.35);
  font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent-amber);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ap-hero-star { font-size: 14px; }

.ap-intro { text-align: center; margin-bottom: 44px; }
.ap-intro .panel-header { justify-content: center; align-items: center; }
.ap-intro .panel-desc {
  max-width: 680px; margin: 16px auto 0;
  font-size: 18px; color: rgba(255,255,255,0.55); line-height: 1.6;
}

.ap-feats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  margin-bottom: 44px;
}
.ap-feat {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 14px; border-radius: 18px;
  background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.ap-feat-icon {
  width: 26px; height: 26px; color: var(--accent-amber); margin-bottom: 4px;
}
.ap-feat-icon svg { width: 100%; height: 100%; }
.ap-feat strong {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: #fff; letter-spacing: 0.3px;
}
.ap-feat span { font-size: 12px; color: rgba(255,255,255,0.4); }

.ap-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 32px; align-items: center;
}
.ap-specs {
  padding: 28px; border-radius: 20px;
  background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.06);
}
.ap-spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}
.ap-spec-row:first-child { padding-top: 0; }
.ap-spec-row:last-child { padding-bottom: 0; border-bottom: none; }
.ap-spec-row span { color: rgba(255,255,255,0.4); }
.ap-spec-row strong { color: #fff; font-weight: 600; text-align: right; }

.ap-preview {
  display: flex; justify-content: center;
}
.ap-preview .csf-bezel { width: 100%; max-width: 420px; }

.ap-compat {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 36px; padding: 14px;
  border-radius: 14px; background: rgba(37,211,102,0.06);
  border: 1px solid rgba(37,211,102,0.14);
  font-size: 14px; color: #25d366; font-weight: 600;
}
.ap-compat-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #25d366; box-shadow: 0 0 10px #25d366;
}

.ap-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 28px; border-radius: 20px;
  background: var(--bg-secondary); border: 1px solid rgba(255,255,255,0.06);
}
.ap-price { display: flex; align-items: baseline; gap: 8px; }
.ap-price span { font-size: 15px; color: rgba(255,255,255,0.4); }
.ap-price strong {
  font-family: 'Syne', sans-serif; font-size: 48px; font-weight: 800;
  color: var(--accent-amber); letter-spacing: -1px;
}
.ap-actions { display: flex; gap: 14px; }
.ap-actions .btn { padding: 14px 26px; font-size: 13px; }
.ap-actions .btn-secondary {
  background: transparent; border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
}
.ap-actions .btn-secondary:hover {
  border-color: rgba(255,255,255,0.3); color: #fff;
}

@media (max-width: 1200px) {
  .ap-feats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .ap-split { grid-template-columns: 1fr; }
  .ap-cta { flex-direction: column; align-items: flex-start; }
  .ap-actions { width: 100%; }
  .ap-actions .btn { flex: 1; }
}

/* Hide old mockup styles */
.android-preview, .ap-screen, .ap-status, .ap-panel, .ap-nav, .ap-nav-btn { display: none; }

/* ---------- FEATURE LIST (personalizzazione · android) ---------- */
.section-page .feature-list { list-style: none; padding: 0; margin: 0 0 20px; max-width: 620px; }
.section-page .feature-list li {
  padding: 16px 0 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 15px; color: rgba(255,255,255,0.62); line-height: 1.5; position: relative;
}
.section-page .feature-list li:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.section-page .feature-list li::before {
  content: ''; position: absolute; left: 0; top: 23px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent-red); box-shadow: none;
}

/* ---------- CONTATTI ---------- */
.section-page .contatti-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 8px; align-items: start;
}
.section-page .contatti-info p { font-size: 16px; color: rgba(255,255,255,0.45); margin: 0; }
.section-page .contatti-details {
  display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 18px;
}
.section-page .contatti-item {
  display: flex; align-items: center; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 15px; color: rgba(255,255,255,0.6);
}

/* ---------- CONTACT FORM ---------- */
.section-page .contact-form { display: flex; flex-direction: column; gap: 0; }
.section-page .field-group { position: relative; }
.section-page .field-group input,
.section-page .field-group textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 0; padding: 22px 0 9px; font-size: 15px; color: rgba(255,255,255,0.88); width: 100%;
}
.section-page .field-group input:focus,
.section-page .field-group textarea:focus {
  border-bottom-color: var(--accent-red); box-shadow: none; outline: none;
}
.section-page .field-group label { left: 0; }
.section-page .field-group input:focus ~ label,
.section-page .field-group input:not(:placeholder-shown) ~ label,
.section-page .field-group textarea:focus ~ label,
.section-page .field-group textarea:not(:placeholder-shown) ~ label { left: 0; }

/* Galleria desktop: spaziatura wrapper (lo stile item è nel blocco successivo) */
.section-page .gallery-scroll { display: none; }

/* ==================== GALLERIA MAGAZINE ==================== */
.gallery-magazine { margin-top: 28px; }

/* Hero */
.gm-hero {
  position: relative; border-radius: 2px; overflow: hidden;
  margin-bottom: 14px; aspect-ratio: 21 / 9;
  border: 1px solid var(--border-color); cursor: pointer;
  transition: border-color 0.4s ease;
}
.gm-hero:hover { border-color: rgba(240,168,32,0.3); }
.gm-img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.gm-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.gm-hero:hover .gm-img-wrap img { transform: scale(1.04); }
.gm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,13,0.7) 100%);
  pointer-events: none; transition: opacity 0.4s ease;
}
.gm-hero:hover .gm-overlay { opacity: 0.5; }
.gm-hero figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 48px 44px 36px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.4s ease;
}
.gm-hero:hover figcaption { transform: translateY(-4px); }

/* Tags & titles */
.gm-tag {
  font-family: 'Syne', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-amber);
}
.gm-title {
  font-family: 'Syne', sans-serif; font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800; letter-spacing: -0.5px; color: var(--text-primary); line-height: 1.05;
}
.gm-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.5; max-width: 440px; margin: 0;
}

/* Rows */
.gm-row { display: grid; gap: 14px; margin-bottom: 14px; }
.gm-trio { grid-template-columns: 1fr 1.3fr 1fr; }
.gm-quad { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.gm-card {
  position: relative; border-radius: 2px; overflow: hidden;
  border: 1px solid var(--border-color); cursor: pointer;
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  aspect-ratio: 4 / 3;
}
.gm-card:hover {
  border-color: rgba(240,168,32,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.gm-card .gm-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gm-card:hover .gm-img-wrap img { transform: scale(1.06); }
.gm-card .gm-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,13,0.75) 100%);
}
.gm-card:hover .gm-overlay { opacity: 0.45; }
.gm-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 22px 18px 16px;
  display: flex; flex-direction: column; gap: 2px;
  transition: transform 0.35s ease;
}
.gm-card:hover figcaption { transform: translateY(-3px); }
.gm-card .gm-desc { display: none; font-size: 13px; margin-top: 4px; }

/* Featured card — larger, shows description */
.gm-featured { aspect-ratio: 4 / 3; }
.gm-featured .gm-desc { display: block; }
.gm-featured figcaption { padding: 28px 20px 22px; }

/* Spark effect on featured */
.gm-spark {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(240,168,32,0.12) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.5s ease;
}
.gm-featured:hover .gm-spark { opacity: 1; }

/* ==================== LIGHTBOX ==================== */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(5,5,8,0.95);
  display: flex; align-items: center; justify-content: center;
  visibility: hidden; opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: pointer;
}
.gallery-lightbox.open { visibility: visible; opacity: 1; }
.gallery-lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.5); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.lightbox-close:hover { background: rgba(232,25,44,0.6); border-color: transparent; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.4);
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.lightbox-nav:hover { background: rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.3); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Hide old gallery styles */
.gallery-editorial, .ge-hero, .ge-item, .ge-row, .ge-tall, .ge-stack { display: none; }

/* ---------- CONTATTI — redesign ---------- */
.contatti-panel .ct-head { max-width: 640px; margin-bottom: 38px; }
.contatti-panel .ct-lead {
  font-size: 16px; color: rgba(255,255,255,0.45); line-height: 1.65; margin: 18px 0 0;
}
.ct-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 36px; align-items: start; }
.ct-side { display: flex; flex-direction: column; gap: 12px; }
.ct-tile {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: 16px; background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08); text-decoration: none;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}
.ct-tile:hover { transform: translateY(-3px); border-color: rgba(232,25,44,0.4); background: rgba(255,255,255,0.045); }
.ct-tile-wa:hover { border-color: rgba(37,211,102,0.5); }
.ct-tile-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,25,44,0.12); border: 1px solid rgba(232,25,44,0.25); color: #ff5a68;
}
.ct-tile-wa .ct-tile-ic { background: rgba(37,211,102,0.14); border-color: rgba(37,211,102,0.3); color: #25d366; }
.ct-tile-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-tile-txt b { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.ct-tile-txt small { font-size: 13px; color: rgba(255,255,255,0.45); }
.ct-tile-go { margin-left: auto; color: rgba(255,255,255,0.25); font-size: 18px; transition: transform 0.2s ease, color 0.2s ease; }
.ct-tile:hover .ct-tile-go { transform: translateX(4px); color: var(--accent-red); }
.ct-tile-wa:hover .ct-tile-go { color: #25d366; }

.ct-form {
  padding: 30px 30px 28px; border-radius: 18px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08);
}
.ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.ct-submit { width: 100%; justify-content: center; margin-top: 22px; }
.ct-form .form-success {
  display: none; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 13px; color: #25d366;
}
.ct-form .form-success.visible { display: flex; }

/* ==================== DESKTOP — GALLERIA FOTO · AMBIENT PLAYER · CTA ==================== */
@media (min-width: 1024px) {
  /* Contatti — Chiama + WhatsApp */
  .contatti-cta { display: flex; gap: 10px; margin: 14px 0 6px; }
  .btn-call, .btn-wa { padding: 11px 20px; font-size: 12px; font-weight: 700; }
  .btn-call { background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.14); }
  .btn-call:hover { border-color: rgba(255,255,255,0.32); }
  .btn-wa { background: #25d366; color: #062b14; }
  .btn-wa:hover { background: #1fc35d; }

  /* Floating WhatsApp */
  #desktop-wa {
    position: fixed; right: 26px; bottom: 26px; z-index: 950;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #062b14;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 28px rgba(37,211,102,0.4); transition: transform 0.2s ease;
  }
  #desktop-wa:hover { transform: scale(1.08); }
}
@media (max-width: 1023px) {
  #desktop-wa { display: none !important; }
}

/* ==================== BOTTOM NAV ==================== */
/* Hide old bottom-nav-item references */
.bottom-nav-item { display: none; }

/* ==================== HEADER ==================== */
@media (max-width: 767px) {
  .header {
    background: rgba(8,8,8,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

/* ==================== RESPONSIVE MOBILE (≤ 767px) ==================== */
@media (max-width: 767px) {
  .section-page {
    padding: 0 0 80px;
  }

  .section-page .hero-panel,
  .section-page .panel-3d {
    padding: 0 24px;
  }

  .section-page .hero-title {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .section-page .hero-sub {
    font-size: 14px;
    max-width: none;
  }

  .section-page .section-title {
    font-size: 34px;
    letter-spacing: -1.5px;
  }

  .section-page .gallery-scroll {
    margin: 20px -24px 0;
  }
  .section-page .gallery-track {
    padding: 0 24px;
  }

  .section-page .panel-desc {
    font-size: 14px;
  }
}

/* ==================== TABLET (768–1023px) ==================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .section-page .hero-title {
    font-size: 56px;
  }
  .section-page .section-title {
    font-size: 40px;
  }
}

/* ============================================================
   SEPARAZIONE DESKTOP / MOBILE
   ============================================================ */
@media (max-width: 1023px) {
  #three-canvas  { display: none !important; }
  #page-content  { display: none !important; }
}
@media (min-width: 1024px) {
  #mobile-content { display: none !important; }
  .bottom-nav     { display: none !important; }
}

/* ============================================================
   MOBILE — APP-LIKE (card stack)   ≤ 1023px
   ============================================================ */
:root {
  --mb-nav-h: 60px;
  --mb-cta-h: 64px;
  --mb-pad: 20px;
  --mb-surface: rgba(255,255,255,0.04);
  --mb-border: rgba(255,255,255,0.07);
  --mb-wa: #25d366;
}

#mobile-content {
  position: relative;
  z-index: 1;
  background: #070707;
  overflow-x: hidden;
  padding-bottom: calc(var(--mb-nav-h) + var(--mb-cta-h) + env(safe-area-inset-bottom, 0px));
  /* Aggiungi padding-top per header fisso */
  padding-top: 56px;
}
body.sheet-lock { overflow: hidden; }

.section-mb { position: relative; }

/* ---- Blocchi standard ---- */
.mb-block { padding: 54px var(--mb-pad) 6px; }

.mb-head { margin-bottom: 22px; }
.mb-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.mb-label::before {
  content: ''; width: 22px; height: 1px;
  background: var(--accent-amber); flex-shrink: 0;
}
.mb-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 8.4vw, 44px); font-weight: 800;
  letter-spacing: -1.6px; line-height: 0.95;
  text-transform: uppercase; color: #fff; margin: 0;
  overflow-wrap: break-word;
}
.mb-title em { font-style: normal; color: var(--accent-amber); }
.mb-desc {
  font-size: 13.5px; line-height: 1.65;
  color: rgba(255,255,255,0.42); margin: 16px 0 0; max-width: 44ch;
}

/* ============================================================
   HERO
   ============================================================ */
.mb-hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  padding-top: 56px;
}

.mb-hero-ios-title { display: none; }

.mb-hero-media { position: absolute; inset: 0; z-index: 0; }
.mb-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.mb-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(7,7,7,0.10) 0%, rgba(7,7,7,0.25) 40%,
    rgba(7,7,7,0.82) 72%, #070707 100%);
}
.mb-hero-inner { position: relative; z-index: 2; padding: 0 var(--mb-pad) 34px; }
.mb-eyebrow {
  display: block; font-family: 'Syne', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.mb-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 8.5vw, 48px); font-weight: 800;
  line-height: 1; letter-spacing: -1.5px; text-transform: uppercase;
  color: #fff; margin: 0 0 18px;
}
.mb-hero-title em { font-style: normal; color: var(--accent-amber); }
.mb-hero-sub {
  font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.6);
  max-width: 38ch; margin: 0 0 26px;
}
.mb-hero-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.mb-hero-stats {
  display: flex; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
}
.mb-stat { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mb-stat + .mb-stat { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 16px; }
.mb-stat b {
  font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800;
  color: #fff; line-height: 1; letter-spacing: -1px;
}
.mb-stat span {
  font-size: 8.5px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.32);
}

/* ============================================================
   BOTTONI
   ============================================================ */
.mb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  padding: 16px 24px; border-radius: 14px; cursor: pointer; border: none;
  -webkit-tap-highlight-color: transparent; transition: transform 0.15s ease, background 0.2s ease;
}
.mb-btn:active { transform: scale(0.97); }
.mb-btn svg { width: 16px; height: 16px; }
.mb-btn-primary { background: var(--accent-amber); color: #0a0a0d; }
.mb-btn-primary:active { background: #d99010; }
.mb-btn-ghost {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
  border: 1px solid var(--mb-border);
}
.mb-btn-wide { width: 100%; margin-top: 24px; position: relative; }

/* spinner riuso */
.mb-form .btn-spinner {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  opacity: 0; animation: mb-spin 0.7s linear infinite;
}
.mb-form button.loading .btn-label { opacity: 0; }
.mb-form button.loading .btn-spinner { opacity: 1; }
@keyframes mb-spin { to { transform: rotate(360deg); } }

/* ============================================================
   SERVIZI — griglia card
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 1.12; padding: 14px; border-radius: 18px; overflow: hidden;
  text-align: left; cursor: pointer; border: 1px solid var(--mb-border);
  background: var(--mb-surface); -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
}
.svc-card:active { transform: scale(0.97); }
.svc-card-media { position: absolute; inset: 0; z-index: 0; }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.3s; }
.svc-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,7,7,0.15) 0%, rgba(7,7,7,0.55) 55%, rgba(7,7,7,0.92) 100%);
}
.svc-card-icon {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,168,32,0.14); backdrop-filter: blur(6px);
  border: 1px solid rgba(240,168,32,0.25); color: #ffd280;
}
.svc-card-icon svg { width: 19px; height: 19px; }
.svc-card-body { position: relative; z-index: 2; }
.svc-card-title {
  display: block; font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 800;
  letter-spacing: -0.3px; color: #fff; line-height: 1.05;
}
.svc-card-short {
  display: block; font-size: 11px; color: rgba(255,255,255,0.5);
  margin-top: 4px; letter-spacing: 0.2px;
}

/* ============================================================
   GALLERIA — bento grid mobile
   ============================================================ */
#mb-galleria { padding-bottom: 8px; }
.gallery-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.gallery-bento-item {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--mb-border);
  cursor: pointer;
  transform: translateZ(0);
}
.gallery-bento-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.gallery-bento-item:active img { transform: scale(1.05); }
.gallery-bento-item .gb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  transition: opacity 0.3s ease;
}
.gallery-bento-item figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 1;
}
.gb-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(10,10,13,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: 'Syne', sans-serif; font-size: 9px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.gb-hero {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
}
.gb-hero .gb-tag { font-size: 11px; padding: 6px 10px; }
.gb-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.gb-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-bento-item:nth-child(1) { animation-delay: 0ms; }
.gallery-bento-item:nth-child(2) { animation-delay: 60ms; }
.gallery-bento-item:nth-child(3) { animation-delay: 120ms; }
.gallery-bento-item:nth-child(4) { animation-delay: 180ms; }
.gallery-bento-item:nth-child(5) { animation-delay: 240ms; }
.gallery-bento-item:nth-child(6) { animation-delay: 300ms; }
.gallery-bento-item:nth-child(7) { animation-delay: 360ms; }
.gallery-bento-item:nth-child(8) { animation-delay: 420ms; }

/* ============================================================
   SHOWCASE — Personalizzazione + Android
   ============================================================ */
.mb-showcase-media {
  border-radius: 20px; overflow: hidden; margin-bottom: 26px;
  aspect-ratio: 16 / 11; border: 1px solid var(--mb-border);
}
.mb-showcase-media img { width: 100%; height: 100%; object-fit: cover; }
.mb-feats { list-style: none; padding: 0; margin: 22px 0 0; }
.mb-feats li {
  display: flex; gap: 14px; padding: 15px 0; align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.62);
}
.mb-feats li:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.mb-feats li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-amber); margin-top: 7px;
}

/* ============================================================
   COMPONENTI MOBILE — griglia card
   ============================================================ */
.mb-comp-head { margin-bottom: 4px; }
.mb-comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.mb-comp-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--mb-border);
  background: var(--mb-surface); cursor: pointer; position: relative;
  -webkit-tap-highlight-color: transparent; transition: transform 0.15s;
}
.mb-comp-card:active { transform: scale(0.97); }
.mb-comp-card-img { aspect-ratio: 4/3; overflow: hidden; background: #0e0e0e; position: relative; }
.mb-comp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mb-comp-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55));
  pointer-events: none;
}
.mb-comp-card-price {
  position: absolute; bottom: 8px; right: 10px; z-index: 2;
  font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.mb-comp-card-cat {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: 'Syne', sans-serif; font-size: 8px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #fff;
  padding: 4px 8px; border-radius: 5px;
  background: rgba(240,168,32,0.25); backdrop-filter: blur(4px);
}
.mb-comp-card-body { padding: 12px 12px 14px; }
.mb-comp-card-name {
  font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
  color: #fff; line-height: 1.15; letter-spacing: -0.2px;
}
.mb-comp-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; padding: 10px 12px; border-radius: 8px;
  background: rgba(240,168,32,0.1); border: 1px solid rgba(240,168,32,0.2);
  color: #ffd280; font-family: 'Syne', sans-serif; font-size: 11px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none;
}

/* ============================================================
   ANDROID — sezione prodotto mobile
   ============================================================ */
#mb-android { padding-bottom: 8px; }
.mb-android-hero {
  position: relative; margin: 0 calc(var(--mb-pad) * -1) 26px;
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 26px 26px;
}
.mb-android-hero img { width: 100%; height: 100%; object-fit: cover; }
.mb-android-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,13,0) 30%, rgba(10,10,13,0.85) 100%);
}
.mb-android-hero-badge {
  position: absolute; left: var(--mb-pad); bottom: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 20px;
  background: rgba(240,168,32,0.18); border: 1px solid rgba(240,168,32,0.35);
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent-amber);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mb-ahb-star { color: var(--accent-amber); font-size: 11px; }

.mb-android-feats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 24px;
}
.mb-android-feat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border-radius: 16px;
  background: var(--mb-surface); border: 1px solid var(--mb-border);
  text-align: center;
}
.mb-af-icon {
  width: 24px; height: 24px; color: var(--accent-amber);
}
.mb-af-icon svg { width: 100%; height: 100%; }
.mb-af-label {
  font-family: 'Syne', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; color: #fff;
}
.mb-af-desc {
  font-size: 10px; color: var(--text-secondary);
}

.mb-android-specs {
  margin-top: 24px; padding: 18px; border-radius: 18px;
  background: var(--mb-surface); border: 1px solid var(--mb-border);
}
.mb-as-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}
.mb-as-row:first-child { padding-top: 0; }
.mb-as-row:last-child { padding-bottom: 0; border-bottom: none; }
.mb-as-row span { color: var(--text-secondary); }
.mb-as-row strong { color: #fff; font-weight: 600; text-align: right; }

.mb-android-compat {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 18px; padding: 12px;
  border-radius: 12px; background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.18);
  font-size: 12px; color: #25d366; font-weight: 600;
}
.mb-ac-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #25d366; box-shadow: 0 0 8px #25d366;
}

.mb-android-cta { margin-top: 24px; }
.mb-android-price {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px;
}
.mb-ap-from { font-size: 13px; color: var(--text-secondary); }
.mb-ap-num {
  font-family: 'Syne', sans-serif; font-size: 36px; font-weight: 800;
  color: var(--accent-amber); letter-spacing: -1px;
}
.mb-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 10px; padding: 14px 18px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7); font-family: 'Syne', sans-serif; font-size: 12px;
  font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  text-decoration: none;
}

/* ============================================================
   CONTATTI
   ============================================================ */
.mb-contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.mb-tile {
  display: flex; align-items: center; gap: 12px; padding: 16px 14px;
  border-radius: 16px; background: var(--mb-surface); border: 1px solid var(--mb-border);
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform 0.15s;
}
.mb-tile:active { transform: scale(0.97); }
.mb-tile-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,168,32,0.12); color: #ffd280;
}
.mb-tile-ic svg { width: 19px; height: 19px; }
.mb-tile-ic.mb-tile-wa { background: rgba(37,211,102,0.14); color: var(--mb-wa); }
.mb-tile b { display: block; font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.mb-tile small { display: block; font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }

.mb-form { margin-top: 30px; display: flex; flex-direction: column; }
.mb-form .field-group { position: relative; }
.mb-form .field-group input,
.mb-form .field-group textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12); border-radius: 0;
  padding: 24px 0 9px; font-size: 15px; font-family: inherit; color: #fff; outline: none;
}
.mb-form .field-group textarea { min-height: 90px; resize: vertical; }
.mb-form .field-group input:focus,
.mb-form .field-group textarea:focus { border-bottom-color: var(--accent-amber); }
.mb-form .field-group label {
  position: absolute; left: 0; top: 24px; font-size: 15px;
  color: rgba(255,255,255,0.4); pointer-events: none;
  transition: all 0.2s ease;
}
.mb-form .field-group input:focus ~ label,
.mb-form .field-group input:not(:placeholder-shown) ~ label,
.mb-form .field-group textarea:focus ~ label,
.mb-form .field-group textarea:not(:placeholder-shown) ~ label {
  top: 4px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.mb-form .field-group input.invalid,
.mb-form .field-group textarea.invalid { border-bottom-color: var(--accent-red); }
.mb-form .form-success {
  display: none; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 13px; color: var(--mb-wa);
}
.mb-form .form-success.visible { display: flex; }
.mb-form .form-success svg { width: 16px; height: 16px; }

/* ============================================================
   STICKY CTA DOCK (Chiama + WhatsApp)
   ============================================================ */
.sticky-cta { display: none !important; }
.sticky-cta.visible { display: none !important; }

.mb-footer { padding-top: 8px; padding-bottom: calc(var(--mb-nav-h) + 24px); text-align: center; }
.mb-footer-credit {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px; border-radius: 16px;
  background: var(--mb-surface); border: 1px solid var(--mb-border);
  margin-bottom: 18px;
}
.mb-footer-credit span { font-size: 12px; color: var(--text-secondary); }
.mb-footer-credit a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; text-decoration: none;
}
.mb-footer-credit a img { width: 20px; height: 20px; border-radius: 5px; }
.mb-footer-credit a strong { font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700; }
.mb-footer-copy { font-size: 11px; color: rgba(255,255,255,0.25); }
.mb-footer-legal {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 14px;
}
.mb-footer-legal .iubenda-embed {
  font-size: 11px;
  color: rgba(255,255,255,0.45) !important;
  text-decoration: underline;
}
.mb-footer-legal .iubenda-embed:hover {
  color: #fff !important;
}
.mb-footer-credit .credit-tagline {
  margin: 8px 0 0;
  font-size: 12px; line-height: 1.5;
  text-align: center; color: var(--text-secondary);
}

/* ============================================================
   BOTTOM NAV — iOS full-width tab bar
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 902;
  background: #121214;
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bn-items {
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  max-width: 600px;
  margin: 0 auto;
  padding: 6px 0 4px;
  height: var(--mb-nav-h);
}

.bn-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 4px 12px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  transition: transform 0.12s ease;
  pointer-events: auto;
}
.bn-tab:active { transform: scale(0.9); }

/* WhatsApp tab — centered, green */
.bn-tab.bn-wa .bn-icon { color: #25d366; }
.bn-tab.bn-wa .bn-label { color: #25d366; }
.bn-tab.bn-wa:active { transform: scale(0.92); }

.bn-icon {
  position: relative;
  width: 24px;
  height: 24px;
}
.bn-icon .bn-out {
  position: absolute;
  inset: 0;
  color: rgba(255,255,255,0.35);
  transition: opacity 0.2s ease, color 0.2s ease;
}
.bn-icon .bn-fill {
  position: absolute;
  inset: 0;
  color: var(--accent-amber);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bn-tab.active .bn-out { opacity: 0; }
.bn-tab.active .bn-fill { opacity: 1; }

.bn-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s ease;
}
.bn-tab.active .bn-label { color: var(--accent-amber); }

.bottom-nav-item { display: none; }
.bn-cta { display: none; }
.bn-pill { display: none; }
.bn-dock { display: none; }

@media (min-width: 1024px) {
  .bottom-nav { display: none !important; }
}

/* ============================================================
   BOTTOM SHEET — dettaglio servizio
   ============================================================ */
.svc-sheet { position: fixed; inset: 0; z-index: 1500; visibility: hidden; }
.svc-sheet.open { visibility: visible; }
.svc-sheet-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; transition: opacity 0.35s ease;
}
.svc-sheet.open .svc-sheet-backdrop { opacity: 1; }
.svc-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88vh; overflow-y: auto; background: #101010;
  border-radius: 24px 24px 0 0; border-top: 1px solid var(--mb-border);
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.svc-sheet.open .svc-sheet-panel { transform: translateY(0); }
.svc-sheet-grab {
  display: block; width: 40px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.2); margin: 10px auto 0; position: relative; z-index: 2;
}
.svc-sheet-media { height: 200px; margin-top: -28px; }
.svc-sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-sheet-content { padding: 24px var(--mb-pad) 0; position: relative; }
.svc-sheet-content::before {
  content: ''; position: absolute; left: 0; right: 0; top: -60px; height: 60px;
  background: linear-gradient(180deg, transparent, #101010); pointer-events: none;
}
.svc-sheet-title {
  font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800;
  letter-spacing: -1px; text-transform: uppercase; color: #fff; margin: 0;
}
.svc-sheet-desc { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.55); margin: 12px 0 0; }
.svc-sheet-points { list-style: none; padding: 0; margin: 20px 0 0; }
.svc-sheet-points li {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 0;
  font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.4;
}
.svc-sheet-points li svg { width: 17px; height: 17px; color: var(--accent-amber); flex-shrink: 0; margin-top: 1px; }
.svc-sheet-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px);
}


/* ================================================================
   MOBILE — full-screen staggered menu
   ================================================================ */

@media (max-width: 1023px) {
  .footer { display: none; }
  .mobile-toggle { display: flex; }
  .logo img { height: 38px; }
  .header-inner { padding: 10px 20px; }

  .logo { flex-direction: column; align-items: flex-start; gap: 2px; }
  .logo-tag {
    display: block;
    font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 600;
    letter-spacing: 0.8px; text-transform: uppercase; color: rgba(255,255,255,0.38);
  }

  .header-actions {
    display: flex; align-items: center; gap: 3px;
    padding: 3px; border-radius: 22px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .header-icon-btn {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .header-icon-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.12); }
  .header-icon-btn svg { width: 14px; height: 14px; }
  .header-icon-btn--wa { background: rgba(37,211,102,0.12); color: #25d366; border-color: rgba(37,211,102,0.25); }
  .header-icon-btn--wa:active { background: rgba(37,211,102,0.22); }
  .header-actions .mobile-toggle {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12);
  }
  .header-actions .mobile-toggle span { width: 15px; }

  .nav {
    display: flex;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 92px 20px 120px;
    z-index: 999;
    gap: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
    background: rgba(10,10,13,0.68);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
            backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 30px 80px rgba(0,0,0,0.55);
    transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1),
                visibility 0.45s ease,
                transform 0.45s cubic-bezier(0.22,1,0.36,1);
  }
  .nav-underline { display: none; }
  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* handle iOS in cima al pannello */
  .nav-handle {
    width: 36px; height: 5px; border-radius: 3px;
    background: rgba(255,255,255,0.25);
    margin: 0 auto 28px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }

  .nav-header {
    font-family: 'Syne', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
    text-align: center;
  }

  .nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.2px;
    text-transform: none;
    color: rgba(255,255,255,0.9);
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    transform: translateY(-12px);
  }
  .nav.open a {
    opacity: 1;
    transform: translateY(0);
  }
  .nav.open a:nth-of-type(1) { transition-delay: 0.04s; }
  .nav.open a:nth-of-type(2) { transition-delay: 0.08s; }
  .nav.open a:nth-of-type(3) { transition-delay: 0.12s; }
  .nav.open a:nth-of-type(4) { transition-delay: 0.16s; }
  .nav.open a:nth-of-type(5) { transition-delay: 0.20s; }
  .nav a.active { color: var(--accent-amber); background: rgba(240,168,32,0.08); border-color: rgba(240,168,32,0.18); }
  .nav a:active { transform: scale(0.98); background: rgba(255,255,255,0.08); }
  .nav a::after { display: none; }

  .nav-arrow {
    margin-left: auto;
    color: rgba(255,255,255,0.25);
    font-size: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .nav a:hover .nav-arrow,
  .nav a:active .nav-arrow { color: var(--accent-amber); transform: translateX(3px); }

  .nav-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .nav-icon svg { width: 18px; height: 18px; stroke: #fff; }
  .nav-icon--home { background: linear-gradient(135deg, #0a84ff, #0066d4); }
  .nav-icon--servizi { background: linear-gradient(135deg, #e8192c, #ff3344); }
  .nav-icon--android { background: linear-gradient(135deg, #30d158, #248a3d); }
  .nav-icon--galleria { background: linear-gradient(135deg, #bf5af2, #8944ab); }
  .nav-icon--contatti { background: linear-gradient(135deg, #64d2ff, #0a84ff); }
  .nav-icon--phone { background: linear-gradient(135deg, #34c759, #248a3d); }
  .nav-icon--wa { background: linear-gradient(135deg, #25d366, #128c7e); }

  /* crediti collaborazione */
  .nav-credits {
    display: block;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px; line-height: 1.5;
    color: rgba(255,255,255,0.32);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.22s, transform 0.35s ease 0.22s;
  }
  .nav.open .nav-credits {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-credits a {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
    color: rgba(255,255,255,0.65); text-decoration: none;
    font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
    transition: color 0.2s ease;
  }
  .nav-credits a:hover { color: #fff; }
  .nav-credits img { width: 20px; height: 20px; border-radius: 5px; }
  .nav-credits .credit-tagline {
    margin: 10px 0 0;
    font-size: 11px; line-height: 1.5;
    color: rgba(255,255,255,0.35);
  }

  /* piede menu con CTA rapidi */
  .nav-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease 0.24s, transform 0.35s ease 0.24s;
  }
  .nav.open .nav-footer {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-footer-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 12px; border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
    color: #fff; text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
  }
  .nav-footer-btn:active { transform: scale(0.97); background: rgba(255,255,255,0.12); }
  .nav-footer-btn .nav-icon { width: 30px; height: 30px; border-radius: 8px; }
  .nav-footer-btn .nav-icon svg { width: 16px; height: 16px; }

  #page-content { display: none !important; }
  #hero-3d { display: none !important; }
  .service-overlay { display: none !important; }
  .comp-overlay { display: none !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --mb-pad: 32px; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .mb-comp-grid { grid-template-columns: repeat(3, 1fr); }
  .mb-contact-tiles { grid-template-columns: repeat(2, 1fr); }
  .mb-hero-title { font-size: clamp(36px, 6vw, 48px); }
}
