/* =========================================================
   Speedline SRL — Stylesheet
   Dark industrial design system with brand accents
   ========================================================= */

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

:root {
  --bg-0: transparent;
  --bg-1: rgba(255, 255, 255, 0.55);
  --bg-2: rgba(160, 165, 175, 0.82);
  --bg-3: rgba(230, 233, 239, 0.75);
  --bg-4: rgba(220, 225, 232, 0.85);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text-0: #111111;
  --text-1: #333333;
  --text-2: #666666;
  --text-3: #999999;
  /* I due colori del marchio Speedline, presi dal logo
     (assets/img/speedline-logo.png): rosso #E30615 e verde #009640.
     Prima qui c'erano un arancione e un verde inventati: somigliavano al
     marchio senza esserlo, ed e' il genere di scarto che si nota solo quando
     il sito sta accanto a un biglietto da visita stampato. */
  --accent-green: #009640;
  --accent-green-soft: rgba(0, 150, 64, 0.15);
  --accent-red: #E30615;
  --accent-red-soft: rgba(227, 6, 21, 0.15);
  /* Le tinte del marchio servono per riempimenti e grafica. Per il TESTO
     piccolo non bastano: misurato, il verde di marca su bianco sta a 3,86:1,
     sotto il minimo di 4,5:1, e il rosso su fondo scuro a 3,69:1. Queste due
     varianti tengono il tono e passano la soglia — il marchio resta quello,
     cambia solo la tinta di chi deve essere letto. */
  --accent-red-text: #E30615;    /* su bianco: 4,88:1 */
  --accent-green-text: #008237;  /* su bianco: 4,94:1 */
  --accent-warm: #f5f1ea;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1320px;
  --gutter: 28px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: transparent;
  color: var(--text-0);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}



img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent-green); color: #fff; }

/* --- Typography Display Stack --- */
.display, h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 6.8rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); letter-spacing: -0.02em; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent-green);
}

.eyebrow-orange { color: var(--text-2); }
.eyebrow-orange::before { background: var(--accent-red); }

.chip-orange .dot { background: var(--accent-red); box-shadow: 0 0 12px var(--accent-red); }

/* --- Layout helpers --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(80px, 11vh, 160px) 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head .col-meta { display: flex; flex-direction: column; gap: 24px; }
.section-head .col-title h2 { max-width: 14ch; }

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
}

/* --- Loader --- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #e6e9ef;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px;
  pointer-events: all;
}
.loader.is-done { opacity: 0; pointer-events: none; transition: opacity 0.6s var(--easing) 0.2s; }
.loader-bar { width: min(280px, 50vw); height: 1px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0%; background: var(--accent-green); transition: width 0.2s linear; }
.loader-text { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--text-2); text-transform: uppercase; }
.loader-count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--accent-green); }

/* --- Top Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s var(--easing);
  border-bottom: none;
  min-height: 64px;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--easing);
}
.nav.is-scrolled {
  padding: 10px var(--gutter);
}
.nav.is-scrolled::before {
  opacity: 1;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  position: relative; z-index: 2;
  /* Ensures logo baseline aligns with menu text */
  align-self: center;
}
.nav-logo img { height: 39px; width: auto; filter: none; transition: filter 0.4s; display: block; }
.nav-logo:hover img { filter: brightness(0.8); }

/* Actions group — stays on the right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: center;
}

/* Menu */
.nav-menu {
  display: flex; align-items: center; gap: 36px;
  position: relative;
  align-self: center;
}

/* Neon sliding indicator */
.nav-neon-indicator {
  position: absolute;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-green));
  background-size: 200% 100%;
  box-shadow: 0 0 8px 1px var(--accent-red), 0 0 18px 2px rgba(0, 150, 64,0.5);
  opacity: 0;
  transition: left 0.55s var(--ease-out-expo), width 0.55s var(--ease-out-expo), opacity 0.4s;
  animation: neonShift 3s linear infinite;
}
.nav-neon-indicator.is-active {
  opacity: 1;
}
@keyframes neonShift {
  0%   { background-position: 0% 50%;   box-shadow: 0 0 8px 2px var(--accent-red), 0 0 20px 4px rgba(227, 6, 21,0.4); }
  50%  { background-position: 100% 50%; box-shadow: 0 0 8px 2px var(--accent-green),  0 0 20px 4px rgba(0, 150, 64,0.45); }
  100% { background-position: 0% 50%;   box-shadow: 0 0 8px 2px var(--accent-red), 0 0 20px 4px rgba(227, 6, 21,0.4); }
}

.nav-menu a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  padding: 6px 0;
  transition: color 0.25s;
  white-space: nowrap;
}
/* Remove old hover underline – replaced by neon indicator */
.nav-menu a::after { display: none; }
.nav-menu a:hover { color: var(--text-0); }
.nav-menu a.is-active { color: var(--text-0); }

/* CTA — same visual language as .btn-primary in the form */
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  background: var(--text-0);
  color: var(--accent-red);
  border: 1px solid var(--text-0);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  align-self: center;
  transition:
    background 0.3s var(--easing),
    border-color 0.3s var(--easing),
    color 0.3s var(--easing),
    transform 0.4s var(--easing),
    box-shadow 0.3s var(--easing);
}
.nav-cta:hover {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 150, 64, 0.28);
}
.nav-cta:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 150, 64, 0.15);
}
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-cta:hover .dot {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  position: relative; z-index: 100;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(230, 233, 238, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  transition: background 0.3s, border-color 0.3s;
  align-self: center;
}
.nav-toggle:hover { border-color: var(--accent-red); }
.nav-toggle.is-active { background: var(--text-0); border-color: var(--text-0); }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--text-0); transition: transform 0.3s var(--easing), opacity 0.3s, background 0.3s; border-radius: 1px; }
.nav-toggle.is-active span { background: #fff; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav-logo { display: none; }

@media (max-width: 900px) {
  /* CTA hidden, toggle shown */
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Menu always rendered as flex, hidden via opacity/transform */
  .nav-menu {
    display: flex !important;
    position: fixed; top: 90px; right: var(--gutter); left: var(--gutter);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(225, 228, 236, 0.60);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 32px 24px 36px;
    z-index: 90;
    height: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.5);
    overflow: visible;
    /* Closed state */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.97);
    transition:
      opacity 0.52s var(--ease-out-expo),
      transform 0.52s var(--ease-out-expo),
      visibility 0s linear 0.52s;
  }

  /* Open state — fade + scale in */
  .nav-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.38s var(--ease-out-expo),
      transform 0.38s var(--ease-out-expo),
      visibility 0s linear 0s;
  }

  .nav-menu a {
    font-size: 1.1rem; font-weight: 600; position: relative; z-index: 10;
    padding: 11px 24px; width: 100%; text-align: center;
    border-radius: var(--radius-sm);
    transition: background 0.3s, color 0.3s, transform 0.2s var(--easing);
    letter-spacing: -0.01em;
  }
  .nav-menu a:hover { background: rgba(227, 6, 21, 0.08); color: var(--accent-red); }
  .nav-menu a.is-active {
    color: var(--accent-red);
    background: rgba(227, 6, 21, 0.07);
  }
  .nav-menu a::after { display: none; }

  /* Mobile neon: vertical left bar */
  .nav-menu.is-open .nav-neon-indicator {
    display: block;
    position: absolute;
    left: 0 !important;
    width: 4px !important;
    height: 44px;
    bottom: auto !important;
    border-radius: 0 3px 3px 0;
    transition: top 0.5s var(--ease-out-expo), height 0.5s var(--ease-out-expo), opacity 0.4s;
    animation: neonShift 3s linear infinite;
  }

  .mobile-nav-logo { display: block; margin-top: auto; width: 100px; max-width: 40%; opacity: 0.7; position: relative; z-index: 10; }
  .mobile-menu-waves {
    position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
    overflow: hidden; pointer-events: none; z-index: 1; opacity: 0.8;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .mobile-menu-waves .wave {
    position: absolute; bottom: 0; left: 0;
    width: 200%; height: 100%;
    background-size: 50% 100%;
    animation: waveAnim 15s linear infinite;
  }
  .mobile-menu-waves .wave1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q250,80 500,50 T1000,50 L1000,100 L0,100 Z' fill='rgba(0,0,0,0.1)'/%3E%3C/svg%3E");
    animation-duration: 18s;
  }
  .mobile-menu-waves .wave2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q250,75 500,50 T1000,50 L1000,100 L0,100 Z' fill='rgba(227, 6, 21,0.15)'/%3E%3C/svg%3E");
    animation-duration: 24s;
    animation-direction: reverse;
    bottom: -15px;
  }
  .mobile-menu-waves .wave3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 Q250,85 500,50 T1000,50 L1000,100 L0,100 Z' fill='rgba(0, 150, 64,0.12)'/%3E%3C/svg%3E");
    animation-duration: 14s;
    bottom: -5px;
  }
  @keyframes waveAnim {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
  }
}

/* =========================================================
   Nav link click feedback (desktop + mobile)
   ========================================================= */
@keyframes navLinkRipple {
  0%   { transform: scale(1);    opacity: 1; }
  30%  { transform: scale(0.88); opacity: 0.7; }
  65%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes navLinkFlash {
  0%   { background: transparent; }
  20%  { background: rgba(227, 6, 21, 0.22); }
  80%  { background: rgba(227, 6, 21, 0.08); }
  100% { background: transparent; }
}
.nav-link-clicked {
  animation: navLinkRipple 0.65s var(--easing) forwards;
}
.nav-link-clicked.mobile-click {
  animation: navLinkRipple 0.65s var(--easing) forwards,
             navLinkFlash  0.65s var(--easing) forwards;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 110px;
  display: flex; align-items: stretch;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 2;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, transparent 0%, #000 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 0%, #000 70%);
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 30vh;
  background: linear-gradient(to bottom, transparent, var(--bg-1) 85%);
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto auto;
  width: 100%;
  padding-bottom: 60px;
}

.hero-title {
  align-self: end;
  padding-top: 60px;
}
.hero-title h1 {
  font-weight: 700;
  font-size: clamp(2.4rem, 8.8vw, 8.6rem);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line .inner { display: inline-block; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-green) 0%, #3fc98a 50%, var(--accent-warm) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-family: 'Instrument Serif', 'Space Grotesk', serif;
  font-weight: 700;
  font-style: italic;
  padding-right: 0.14em;
  margin-right: -0.08em;
}

/* Tracking Widget */
.tracking-widget {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  min-width: 0;
}
.tracking-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tracking-input-group:hover {
  border-color: var(--accent-red);
  box-shadow: 0 8px 24px rgba(227, 6, 21, 0.1);
}
.tracking-input-group svg {
  width: 16px; height: 16px;
  stroke: var(--text-2);
  margin-right: 10px;
  flex-shrink: 0;
}
.tracking-input-group input {
  border: none; background: transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-0);
  width: 100%;
  outline: none;
}
.tracking-input-group input::placeholder { color: var(--text-3); font-family: 'Inter', sans-serif; }
.tracking-input-group .btn-track {
  background: var(--text-0);
  color: var(--accent-green);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: not-allowed;
  opacity: 0.8;
  transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}

/* Modal Skeleton (Funzionalità Futura) */
.modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--easing);
}
.modal.is-open { opacity: 1; pointer-events: all; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  position: relative; z-index: 1;
  background: var(--bg-3);
  padding: 40px;
  border-radius: var(--radius-lg);
  width: 90%; max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.4s var(--easing);
  border: 1px solid var(--border);
}
.modal.is-open .modal-content { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; font-size: 24px;
  cursor: pointer; color: var(--text-2); transition: color 0.2s;
}
.modal-close:hover { color: var(--text-0); }
.modal h3 { margin-bottom: 16px; }
.placeholder-text { color: var(--text-2); font-size: 0.95rem; }

.hero-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  align-items: start;
  min-width: 0;
}
.hero-meta p { color: var(--text-1); max-width: 44ch; font-size: 1.05rem; line-height: 1.65; }
.hero-meta .stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 8px;
}
.hero-meta .stat .num .unit { color: var(--accent-green); }
.hero-meta .stat .label { color: var(--text-2); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }

.hero-scroll {
  position: absolute;
  bottom: 36px; right: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  z-index: 5;
}
.hero-scroll .line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--accent-green), transparent);
  animation: scrollLine 2.4s var(--ease-out-expo) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; color: var(--text-2); text-transform: uppercase; }

@media (max-width: 800px) {
  .hero-meta { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .hero-scroll { display: none; }
  .hero-title h1 { font-size: clamp(2rem, 9.5vw, 3.4rem); }
  .hero { padding-top: 86px; min-height: 100svh; }
  .hero-content { padding-bottom: 40px; }
  .hero-title { padding-top: 32px; }
}

@media (max-width: 480px) {
  .hero-title h1 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .hero-meta p { font-size: 0.95rem; }
  .hero-meta .stat .num { font-size: clamp(1.6rem, 8vw, 2.4rem); }
}

/* --- Ticker --- */
.ticker {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(237, 239, 242, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  padding: 22px 0;
}
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, rgba(235, 237, 240, 0.95), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, rgba(235, 237, 240, 0.95), transparent); }
.ticker-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: tickerScroll 38s linear infinite;
  align-items: center;
}
.ticker-track span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-1);
  display: inline-flex; align-items: center; gap: 64px;
}
.ticker-track span::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Services / Card grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: rgba(230, 233, 238, 0.65); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  padding: 56px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 28px;
  min-height: 380px;
  transition: background 0.5s var(--easing), transform 0.5s var(--easing);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.12);
}
.service-card::before, .time-card::before, .process-step::before, .feature::before, .form-card::before {
  content: '';
  position: absolute; left: -20%; width: 140%; bottom: -100%; height: 140%;
  background: radial-gradient(circle at bottom center, rgba(227, 6, 21, 0.45) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--easing), bottom 0.8s var(--easing);
  pointer-events: none;
  z-index: 0;
}
.service-card:hover::before, .time-card:hover::before, .process-step:hover::before, .feature:hover::before, .form-card:hover::before, .form-card:focus-within::before { 
  opacity: 1; bottom: -40%; 
}
.service-card .index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.18em;
}
.service-card .icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-card .icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.service-card h3 { letter-spacing: -0.02em; }
.service-card p { color: var(--text-1); max-width: 36ch; line-height: 1.6; }
.service-card .arrow {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.3s, gap 0.3s;
}
.service-card .arrow svg { width: 14px; height: 14px; transition: transform 0.4s var(--easing); }
.service-card:hover .arrow { color: var(--accent-green); gap: 16px; }
.service-card:hover .arrow svg { transform: rotate(-45deg); }

@media (max-width: 800px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; min-height: auto; gap: 20px; }
  .service-card .icon { width: 52px; height: 52px; }
  .service-card .icon svg { width: 22px; height: 22px; }
}

/* --- Delivery / Times --- */
.times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.time-card {
  position: relative;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  padding: 48px 36px 36px;
  border-radius: var(--radius-md);
  background: rgba(230, 233, 238, 0.65);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.4s;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.12);
}
.time-card:hover { transform: translateY(-6px); border-color: var(--accent-green); }
.time-card .ring {
  position: absolute; top: 24px; right: 24px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.time-card svg.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.time-card svg.ring-svg circle { fill: none; stroke-width: 1.4; }
.time-card svg.ring-svg .bg { stroke: var(--border-strong); }
.time-card svg.ring-svg .fg { stroke: var(--accent-green); stroke-linecap: round; }

.time-card .big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4.6rem, 9vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 30px 0 12px;
}
.time-card .big sup {
  font-size: 0.32em;
  font-weight: 500;
  vertical-align: top;
  color: var(--accent-green);
  margin-left: 6px;
  position: relative; top: 0.6em;
}
.time-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.time-card p { color: var(--text-1); font-size: 0.95rem; line-height: 1.6; }

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

/* --- Stats Row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-box {
  padding: 56px 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.stat-box:last-child { border-right: none; }
.stat-box .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-box .num span.suffix { color: var(--accent-green); }
.stat-box .label {
  color: var(--text-2);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat-box:nth-child(2) { border-right: none; } .stat-box:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stat-box { border-right: none; border-bottom: 1px solid var(--border); } .stat-box:last-child { border-bottom: none; } }

/* --- Clients Marquee --- */
.clients-marquee {
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clients-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 48px;
  width: 100%;
}
.marquee-track {
  display: flex;
  width: 100vw;
  position: relative; left: 50%; transform: translateX(-50%);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee-content {
  display: flex;
  align-items: center;
  min-width: max-content;
  gap: 100px;
  padding-right: 100px;
  animation: scrollMarquee 40s linear infinite;
}
.marquee-content img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.4s var(--easing), transform 0.4s var(--easing);
  mix-blend-mode: multiply;
}
.marquee-content img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .clients-marquee { padding: 60px 0 20px 0; }
  .marquee-content { gap: 60px; padding-right: 60px; animation-duration: 25s; }
  .marquee-content img { height: 32px; max-width: 140px; }
}

/* --- Process / Timeline --- */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.process-sticky { position: sticky; top: 120px; }
.process-sticky h2 { margin-bottom: 24px; }
.process-sticky p { color: var(--text-1); max-width: 40ch; line-height: 1.65; }

.process-steps { display: flex; flex-direction: column; gap: 24px; counter-reset: step; }
.process-step {
  position: relative; overflow: hidden;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  padding: 36px 32px;
  background: rgba(230, 233, 238, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  transition: border-color 0.4s, transform 0.6s var(--ease-out-expo);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.12);
}
.process-step:hover { border-color: var(--accent-green); }
.process-step .num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-green);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  letter-spacing: 0.14em;
}
.process-step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.process-step p { color: var(--text-1); font-size: 0.98rem; line-height: 1.6; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 36px; }
  .process-sticky { position: static; }
}

/* --- Features grid (Why us) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative; overflow: hidden;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  background: rgba(230, 233, 238, 0.65);
  padding: 44px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.5s var(--easing);
}
.feature .ico { color: var(--accent-green); }
.feature .ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.feature h3 { font-size: 1.2rem; line-height: 1.2; }
.feature p { color: var(--text-1); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* --- Quote / CTA panel --- */
.cta-panel {
  position: relative;
  margin: 60px 0;
  padding: clamp(56px, 8vw, 110px) clamp(36px, 6vw, 88px);
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-green-soft) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
}
.cta-panel::after {
  content: '';
  position: absolute;
  inset: auto auto -30% -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-red-soft) 0%, transparent 60%);
  filter: blur(50px);
  z-index: -1;
}
.cta-panel .eyebrow { margin-bottom: 22px; }
.cta-panel h2 {
  max-width: 16ch;
  font-weight: 400;
  margin-bottom: 28px;
}
.cta-panel h2 em {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  color: var(--accent-green);
}
.cta-panel p { color: var(--text-1); max-width: 50ch; margin-bottom: 38px; line-height: 1.65; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--easing), box-shadow 0.3s;
  border: 1px solid transparent;
  user-select: none;
}
.btn-primary { background: var(--text-0); color: var(--accent-red); }
.btn-primary:hover { background: var(--accent-green); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 150, 64, 0.25); }
.btn-primary:active { transform: translateY(0) scale(0.97); box-shadow: 0 2px 8px rgba(0, 150, 64, 0.15); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-0); }
.btn-ghost:hover { background: var(--text-0); color: var(--accent-red); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.97); }
.btn .arrow-i {
  width: 14px; height: 14px; transition: transform 0.4s var(--easing);
}
.btn:hover .arrow-i { transform: rotate(-45deg); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 520px) {
  .btn-row { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
  .cta-panel { padding: 40px 24px; margin: 32px 0; }
  .cta-panel h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .cta-panel p { font-size: 0.92rem; margin-bottom: 28px; }
}

/* --- Contact / Form --- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info { 
  display: flex; flex-direction: column; justify-content: space-between;
  padding-bottom: 24px;
}
.contact-info h2 { margin-bottom: auto; padding-bottom: 24px; }
.contact-info .block { display: flex; flex-direction: column; gap: 6px; }
.contact-info .block .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.contact-info .block a, .contact-info .block .value { color: var(--text-0); font-size: 1.05rem; }
.contact-info .block a:hover { color: var(--accent-green); }

.form-card {
  position: relative; overflow: hidden;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  background: rgba(200, 205, 215, 0.82); /* 15% lighter than var(--bg-2) */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2), 0 8px 16px rgba(0,0,0,0.12); /* slightly stronger shadow for the main form */
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 10px; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 0 10px;
  font-size: 1rem;
  color: var(--text-0);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
  width: 100%;
  border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333333' stroke-opacity='0.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; padding-right: 28px; cursor: pointer; }
.field select option { background: var(--bg-3); color: var(--text-0); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-bottom-color: var(--accent-red);
  box-shadow: 0 4px 12px rgba(227, 6, 21, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

/* GDPR Checkbox */
.gdpr-field { margin-top: 10px; }
.field .checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Inter', sans-serif;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent-green);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-text {
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.4;
}

.form-submit {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.form-msg { font-size: 13px; color: var(--text-2); flex: 1; min-height: 1.2em; }
.form-msg.is-success { color: var(--accent-green); }
.form-msg.is-error { color: var(--accent-red); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .form-submit { flex-direction: column; align-items: stretch; }
  .contact-info h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}

@media (max-width: 480px) {
  .form-card { padding: 20px 16px; border-radius: var(--radius-md); }
  .field input, .field select, .field textarea { font-size: 16px; } /* prevents iOS zoom */
  .field textarea { min-height: 100px; }
  .form-submit .btn { width: 100%; justify-content: center; }
}

/* --- Footer --- */
.footer {
  border-top: none;
  padding: 140px 0 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(24px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 140px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 140px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer-brand img { height: 38px; filter: none; margin-bottom: 24px; }
.footer-brand p { color: var(--text-2); max-width: 36ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col .v { color: var(--text-1); font-size: 0.95rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--accent-green); }

.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-credits {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 600;
}
.footer-credits a { color: var(--text-2); transition: color 0.3s; }
.footer-credits a:hover { color: var(--accent-red); }
.footer-bottom small { color: var(--text-3); font-size: 12px; }
.footer-bottom .meta { display: flex; gap: 24px; }
.footer-bottom .meta span { color: var(--text-3); font-size: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-credits { position: static; transform: none; order: 2; }
  .footer-bottom small { font-size: 11px; line-height: 1.5; }
  .footer-bottom .meta { justify-content: center; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 100px 0 28px; }
}

/* --- Scroll To Top --- */
.scroll-top {
  position: fixed; bottom: 30px; right: var(--gutter); z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--text-0); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: opacity 0.4s var(--easing), transform 0.4s var(--easing), background 0.3s;
  border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.scroll-top.is-visible {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent-red); transform: translateY(-4px);
}
.scroll-top svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .scroll-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
  .scroll-top svg { width: 20px; height: 20px; }
}


/* --- Reveal Animations (Apple-style elastic) --- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-line { overflow: hidden; }
.reveal-line .inner { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-line.is-visible .inner { transform: translateY(0); }
.reveal-line.delay-1 .inner { transition-delay: 0.1s; }
.reveal-line.delay-2 .inner { transition-delay: 0.2s; }
.reveal-line.delay-3 .inner { transition-delay: 0.3s; }

/* --- Tag chip --- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 12px var(--accent-green); }

/* --- IMMERSIVE OVERRIDES --- */
#webgl-canvas {
  position: fixed; inset: 0;
  z-index: -10; pointer-events: none;
}
.global-grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 140vh;
  z-index: -9; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 10vw 10vh;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  overflow: hidden;
}

.glow-runner {
  position: absolute;
  --c: var(--accent-green);
  opacity: 0.8;
}
.glow-runner.vertical {
  top: 0; width: 1px; height: 250px;
  background: linear-gradient(to bottom, transparent, var(--c), transparent);
  box-shadow: 0 0 20px 2px var(--c);
  animation: run-v 7s linear infinite;
}
.glow-runner.horizontal {
  left: 0; height: 1px; width: 250px;
  background: linear-gradient(to right, transparent, var(--c), transparent);
  box-shadow: 0 0 20px 2px var(--c);
  animation: run-h 9s linear infinite;
}
@keyframes run-v {
  0% { transform: translateY(-300px); }
  100% { transform: translateY(150vh); }
}
@keyframes run-h {
  0% { transform: translateX(-300px); }
  100% { transform: translateX(120vw); }
}

.hero { min-height: 100vh; padding-top: 110px; display: flex; align-items: stretch; overflow: visible; background: transparent; }
.hero-content { isolation: isolate; }

/* Smooth scrollbar for Webkit */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.25); }

/* =========================================================
   Scene Customizer Panel (inline in navbar)
   ========================================================= */
.nav-customizer {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
}

.customizer-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  transition: all 0.3s var(--easing);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.customizer-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}
.customizer-toggle.active {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}
.customizer-toggle.active svg { stroke: #fff; }

.customizer-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(240, 242, 246, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.35s var(--easing);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
  pointer-events: none;
  min-width: 180px;
}
.customizer-panel.open {
  padding: 16px 20px;
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.customizer-panel h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-2);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.customizer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  user-select: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.customizer-item:hover { color: var(--accent-green); }

.customizer-item input[type="checkbox"] {
  display: none;
}

.customizer-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: #ccc;
  border-radius: 10px;
  transition: background 0.3s var(--easing);
  flex-shrink: 0;
}
.customizer-switch::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s var(--easing);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.customizer-item input:checked + .customizer-switch {
  background: var(--accent-green);
}
.customizer-item input:checked + .customizer-switch::after {
  transform: translateX(16px);
}

/* Customizer divider & language select */
.customizer-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.customizer-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.customizer-lang-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
}
.customizer-select {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(245,245,245,0.85);
  color: var(--text-0);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.25s, box-shadow 0.25s;
  min-width: 120px;
}
.customizer-select:hover { border-color: var(--accent-red); }
.customizer-select:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(227, 6, 21,0.15);
}

/* =========================================================
   Dark Theme
   ========================================================= */
body.dark-theme {
  --surface: #141620;
  --text-0: #f0f2f5;
  --text-1: #b8bcc4;
  --text-2: #7a7f8a;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --accent-red-text: #F91E2D;    /* su fondo scuro: 4,51:1 */
  --accent-green-text: #009640;  /* su fondo scuro: 4,67:1 */
  --bg-1: rgba(20,22,32,0.55);
  --bg-2: rgba(30,33,45,0.65);
  --bg-3: rgba(25,28,40,0.6);
  --bg-4: rgba(28,31,42,0.7);
  /* Fondo del tema scuro: la griglia non e' un'immagine ne' un elemento in piu',
     sono strati di gradiente sul fondo del body. E' la via che non puo' finire
     sopra al testo: nessun elemento posizionato, nessun z-index da litigare.

     Gli strati, dal piu' vicino all'occhio al piu' lontano:
       1. la vignettatura — scurisce i bordi e lascia luce al centro: e' quella
          che fa il "si vede / non si vede" e da' profondita' alla pagina;
       2. la griglia larga da 120px, appena azzurrata: le linee maestre;
       3. la griglia fine da 24px, quasi invisibile: da' la trama.
     Due passi diversi insieme leggono come profondita'; uno solo sembra carta
     millimetrata. */
  background-color: #141620 !important;
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 32%,
      rgba(20, 22, 32, 0) 0%,
      rgba(18, 20, 29, 0.55) 55%,
      rgba(13, 14, 21, 0.92) 100%),
    linear-gradient(rgba(125, 200, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 200, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size:
    100% 100%,
    120px 120px, 120px 120px,
    24px 24px, 24px 24px;
  background-attachment: fixed;
  background-position: center center;
  color: #f0f2f5;
}

/* La griglia si muove piano: 90 secondi per 120px, cioe' un quadrato intero.
   Non si vede scorrere, si sente che la pagina e' viva. La vignettatura resta
   ferma (primo strato, 0 0), altrimenti il chiarore al centro ballerebbe. */
@keyframes derivaGriglia {
  from { background-position: center center, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: center center, 120px 120px, 120px 120px, 120px 120px, 120px 120px; }
}

@media (prefers-reduced-motion: no-preference) {
  body.dark-theme { animation: derivaGriglia 90s linear infinite; }
}
body.dark-theme,
body.dark-theme html { background-color: #141620 !important; }
html.dark-theme-root { background-color: #141620 !important; }
body.dark-theme .section { background-color: transparent; }
body.dark-theme .hero { background-color: transparent; }
body.dark-theme .clients-marquee { background-color: rgba(14,16,20,0.8); }
body.dark-theme .cta-panel { background: rgba(20,22,28,0.7); border-color: rgba(255,255,255,0.1); }
body.dark-theme #webgl-canvas { opacity: 0.55; }
body { transition: background-color 0.4s ease, color 0.4s ease; }
body.dark-theme .nav::before { background: rgba(13,15,19,0.92); }
body.dark-theme .nav-menu a { color: #b8bcc4; }
body.dark-theme .nav-menu a:hover,
body.dark-theme .nav-menu a.is-active { color: var(--accent-red); }
body.dark-theme .nav-cta { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
body.dark-theme .nav-toggle { border-color: rgba(255,255,255,0.2); }
body.dark-theme .nav-toggle span { background: #f0f2f5; }
body.dark-theme .loader { background: #141620; }
body.dark-theme .loader-text { color: #7a7f8a; }
body.dark-theme .hero h1,
body.dark-theme .hero h1 .inner { color: #f0f2f5; }
body.dark-theme .hero-meta p { color: #b8bcc4; }
body.dark-theme .eyebrow,
body.dark-theme .eyebrow span { color: #7a7f8a; }
body.dark-theme .chip { background: rgba(255,255,255,0.06); color: #b8bcc4; }
body.dark-theme .section-head h2,
body.dark-theme .section h2 { color: #f0f2f5; }
body.dark-theme .section-head .sub { color: #b8bcc4; }
body.dark-theme .stat .big,
body.dark-theme .stat .big sup,
body.dark-theme .stat-box .num { color: #f0f2f5; }
body.dark-theme .stat .label,
body.dark-theme .stat-box .label { color: #7a7f8a; }
body.dark-theme .service-card,
body.dark-theme .time-card,
body.dark-theme .net-card,
body.dark-theme .form-card {
  background: rgba(18,20,30,0.75);
  border-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
body.dark-theme .service-card h3,
body.dark-theme .time-card h3,
body.dark-theme .net-card h3 { color: #f0f2f5; }
body.dark-theme .service-card p,
body.dark-theme .time-card p,
body.dark-theme .net-card p { color: #b8bcc4; }
body.dark-theme .time-card .big { color: #f0f2f5; }
body.dark-theme .feature { background: rgba(18,20,30,0.75); border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
body.dark-theme .feature h3 { color: #f0f2f5; }
body.dark-theme .feature p { color: #b8bcc4; }
body.dark-theme .feature .ico svg { stroke: #b8bcc4; }
body.dark-theme .process-step { background: rgba(18,20,30,0.75); border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
body.dark-theme .process-step h3 { color: #f0f2f5; }
body.dark-theme .process-step p { color: #b8bcc4; }
body.dark-theme .process-sticky p { color: #b8bcc4; }
body.dark-theme .cta-panel { background: rgba(18,20,30,0.8); border-color: rgba(255,255,255,0.1); box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
body.dark-theme .cta-panel h2 { color: #f0f2f5; }
body.dark-theme .cta-panel p { color: #b8bcc4; }
body.dark-theme .btn-ghost { color: #b8bcc4; border-color: rgba(255,255,255,0.15); }
body.dark-theme .btn-ghost:hover { background: rgba(255,255,255,0.06); color: #f0f2f5; }
body.dark-theme .clients-label { color: #7a7f8a; }
body.dark-theme .footer { background: rgba(13,15,19,0.92); }
body.dark-theme .footer h4 { color: #f0f2f5; }
body.dark-theme .footer p,
body.dark-theme .footer a,
body.dark-theme .footer li { color: #b8bcc4; }
body.dark-theme .footer-brand p { color: #7a7f8a; }
body.dark-theme .footer-bottom { border-color: rgba(255,255,255,0.08); color: #7a7f8a; }
body.dark-theme .contact-info h2 { color: #f0f2f5; }
body.dark-theme .contact-info p,
body.dark-theme .contact-info .value { color: #b8bcc4; }
body.dark-theme .contact-info .label { color: #7a7f8a; }
body.dark-theme .field input,
body.dark-theme .field select,
body.dark-theme .field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #f0f2f5;
}
body.dark-theme .field input::placeholder,
body.dark-theme .field textarea::placeholder { color: #555; }
body.dark-theme .field label { color: #b8bcc4; }
body.dark-theme .btn-primary { background: var(--accent-red); color: #fff; }
body.dark-theme .tracking-widget { background: rgba(18,20,30,0.8); border-color: rgba(255,255,255,0.12); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
body.dark-theme .tracking-widget input { color: #b8bcc4; background: transparent; }
body.dark-theme .tracking-widget input::placeholder { color: #555; }
body.dark-theme .btn-track { background: rgba(255,255,255,0.1); color: #b8bcc4; }
body.dark-theme .customizer-toggle { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #b8bcc4; }
body.dark-theme .customizer-panel { background: rgba(20,22,28,0.95); border-color: rgba(255,255,255,0.1); }
body.dark-theme .customizer-panel h4 { color: #7a7f8a; border-color: rgba(255,255,255,0.08); }
body.dark-theme .customizer-item { color: #b8bcc4; }
body.dark-theme .customizer-select { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #f0f2f5; }
body.dark-theme .customizer-select option { background: #1a1c22; color: #f0f2f5; }
body.dark-theme .customizer-divider { background: rgba(255,255,255,0.08); }
body.dark-theme .customizer-lang-label { color: #7a7f8a; }
body.dark-theme .nav-dropdown { background: rgba(20,22,28,0.95); border-color: rgba(255,255,255,0.1); }
body.dark-theme .nav-dropdown a { color: #b8bcc4 !important; }
body.dark-theme .nav-dropdown a:hover { background: rgba(227, 6, 21,0.12); color: var(--accent-red) !important; }
body.dark-theme .nav-menu { background: rgba(20,22,28,0.85); border-color: rgba(255,255,255,0.08); }
body.dark-theme .scroll-label { color: #7a7f8a; }
body.dark-theme .back-to-top,
body.dark-theme .scroll-top { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: #b8bcc4; }
body.dark-theme .policy-modal-content { background: rgba(20,22,28,0.97); border-color: rgba(255,255,255,0.1); }
body.dark-theme .policy-body h2,
body.dark-theme .policy-body h3 { color: #f0f2f5; }
body.dark-theme .policy-body p,
body.dark-theme .policy-body li { color: #b8bcc4; }
body.dark-theme .policy-modal-close { background: rgba(255,255,255,0.08); color: #b8bcc4; }
body.dark-theme .policy-updated { color: #7a7f8a; }
/* CTA Modal dark inputs */
body.dark-theme #ctaModal input[type="text"],
body.dark-theme #ctaModal input[type="email"],
body.dark-theme #ctaModal input[type="tel"] {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #f0f2f5 !important;
}
body.dark-theme #ctaModal input::placeholder { color: #555 !important; }
body.dark-theme #ctaModal .checkbox-text,
body.dark-theme #ctaModal label { color: #b8bcc4 !important; }
body.dark-theme .cookie-banner-inner { background: rgba(20,22,28,0.95); border-color: rgba(255,255,255,0.1); }
body.dark-theme .cookie-banner-text { color: #b8bcc4; }
body.dark-theme .chatbot-window { background: rgba(20,22,28,0.97); border-color: rgba(255,255,255,0.1); }
body.dark-theme .chatbot-header { background: rgba(13,15,19,0.9); border-color: rgba(255,255,255,0.08); }
body.dark-theme .chatbot-header-name { color: #f0f2f5; }
body.dark-theme .chatbot-input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #f0f2f5; }
body.dark-theme .chat-chip { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: #b8bcc4; }
body.dark-theme .msg.bot .bubble { background: rgba(255,255,255,0.06); color: #b8bcc4; }
body.dark-theme .msg.user .bubble { background: var(--accent-red); color: #fff; }
body.dark-theme .global-grid-overlay { opacity: 0.3; }
body.dark-theme .stat-box { border-color: rgba(255,255,255,0.08); }
body.dark-theme .gdpr-field .checkbox-text { color: #7a7f8a; }
body.dark-theme .service-card .icon svg,
body.dark-theme .service-card .index { color: #7a7f8a; }
body.dark-theme .marquee-track { background: rgba(14,16,22,0.85); }
body.dark-theme .marquee-content img { filter: brightness(0.8) contrast(1.1); }
/* Ticker (hero marquee) dark */
body.dark-theme .ticker { background: rgba(14,16,22,0.85); border-color: rgba(255,255,255,0.08); }
body.dark-theme .ticker::before { background: linear-gradient(to right, rgba(14,16,22,0.95), transparent); }
body.dark-theme .ticker::after  { background: linear-gradient(to left,  rgba(14,16,22,0.95), transparent); }
body.dark-theme .ticker-track span { color: #b8bcc4; }
body.dark-theme .stat-box { background: rgba(18,20,30,0.6); border-color: rgba(255,255,255,0.1); }
body.dark-theme .section { border-color: rgba(255,255,255,0.06); }
body.dark-theme .process-step .num { color: var(--accent-green); }
body.dark-theme .contact { background: transparent; }
body.dark-theme .contact-info a { color: var(--accent-red); }
body.dark-theme .ring .bg { stroke: rgba(255,255,255,0.08); }
body.dark-theme .nav::before { background: rgba(14,16,22,0.88); backdrop-filter: blur(20px); }



@media (max-width: 900px) {
  .customizer-toggle {
    width: 38px;
    height: 38px;
  }
  .customizer-panel {
    right: 0;
    left: auto;
    max-width: calc(100vw - 32px);
    min-width: 200px;
  }
}

/* --- Mobile Hero top-row (eyebrow + tracking) --- */
@media (max-width: 640px) {
  .hero-top-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .tracking-widget {
    max-width: 100%;
    width: 100%;
  }
  .tracking-input-group {
    width: 100%;
  }
}

/* --- Mobile nav safe area (notch phones) --- */
@supports (padding-top: env(safe-area-inset-top)) {
  .nav {
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .nav.is-scrolled {
    padding-top: calc(10px + env(safe-area-inset-top));
  }
}

/* --- Prevent horizontal overflow on very small screens --- */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero-title h1 { font-size: clamp(1.75rem, 9vw, 2.6rem); }
  .service-card { padding: 28px 18px; }
  .process-step { padding: 28px 20px; gap: 20px; }
  .stat-box { padding: 36px 20px; }
  .time-card { padding: 36px 24px 28px; }
  h2 { font-size: clamp(1.6rem, 8vw, 3rem); }
}

/* =========================================================
   RTL Support (Urdu, Arabic, etc.)
   ========================================================= */
[dir="rtl"] { overflow-x: hidden; }
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .container { text-align: right; }

/* Nav */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-actions { flex-direction: row-reverse; }
[dir="rtl"] .nav-cta { flex-direction: row-reverse; }

/* Hero */
[dir="rtl"] .hero-title { text-align: right; }
[dir="rtl"] .hero-desc { text-align: right; }
[dir="rtl"] .hero-stats { direction: ltr; }

/* Ticker — keep LTR animation direction */
[dir="rtl"] .ticker { direction: ltr; }
[dir="rtl"] .marquee-track { direction: ltr; }

/* Section headings */
[dir="rtl"] .section-eyebrow { text-align: right; }
[dir="rtl"] .chip { margin-left: auto; margin-right: 0; }

/* Service cards */
[dir="rtl"] .service-card { text-align: right; }
[dir="rtl"] .service-card .ico { margin-left: auto; margin-right: 0; }

/* Time cards */
[dir="rtl"] .time-card { text-align: right; }
[dir="rtl"] .time-badge { margin-left: auto; margin-right: 0; }

/* Stats */
[dir="rtl"] .stats { direction: ltr; }
[dir="rtl"] .stat-box { direction: rtl; }

/* Features */
[dir="rtl"] .feature { text-align: right; }
[dir="rtl"] .feature .ico { margin-left: auto; margin-right: 0; }

/* Process */
[dir="rtl"] .process { direction: rtl; }
[dir="rtl"] .process-step { text-align: right; }

/* CTA */
[dir="rtl"] .cta-panel { text-align: right; }
[dir="rtl"] .cta-form-header { text-align: right; }

/* Contact */
[dir="rtl"] .contact-grid { direction: rtl; }
[dir="rtl"] .contact-info-item { text-align: right; flex-direction: row-reverse; }
[dir="rtl"] .contact-form { text-align: right; }

/* Footer */
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-bottom { direction: rtl; flex-direction: row-reverse; }

/* Clients marquee — always LTR */
[dir="rtl"] .clients-marquee { direction: ltr; }
[dir="rtl"] .clients-label { direction: rtl; }

/* Cookie banner */
[dir="rtl"] .cookie-banner-inner { text-align: right; }
[dir="rtl"] .cookie-banner-actions { flex-direction: row-reverse; flex-wrap: wrap; }

/* Policy modals */
[dir="rtl"] .policy-body { text-align: right; }
[dir="rtl"] .policy-body ul { padding-left: 0; padding-right: 20px; }

/* Chatbot */
[dir="rtl"] .chatbot-header { flex-direction: row-reverse; }
[dir="rtl"] .chatbot-header-actions { flex-direction: row-reverse; }
[dir="rtl"] .chat-msg.bot { align-self: flex-end; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat-msg.user { align-self: flex-start; border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
[dir="rtl"] .chatbot-input-area { flex-direction: row-reverse; }
[dir="rtl"] .chatbot-chips { flex-direction: row-reverse; }

/* Customizer panel */
[dir="rtl"] .customizer-panel { right: auto; left: 0; }
[dir="rtl"] .customizer-item { flex-direction: row-reverse; }
[dir="rtl"] .customizer-lang { flex-direction: row-reverse; }
[dir="rtl"] .customizer-select {
  padding: 7px 10px 7px 28px;
  background-position: left 9px center;
}

/* Nav dropdown */
[dir="rtl"] .nav-dropdown-wrap > a { flex-direction: row-reverse; }


/* ─────────── il risultato del tracking dentro la hero ───────────
   Il widget di Ermes porta il suo CSS con prefisso slt- e si lascia vestire
   da fuori con queste variabili: qui gli si passano i colori, i raggi e il
   carattere del sito, cosi' non sembra un pezzo incollato da un'altra pagina. */
.tracking-risultato {
    margin-top: 10px;
    max-height: 60vh;
    overflow-y: auto;
    --slt-primary: var(--accent-red);
    --slt-bg: var(--bg-3);
    --slt-text: var(--text-0);
    --slt-muted: var(--text-2);
    --slt-border: var(--border);
    --slt-radius: 12px;
    --slt-font: 'Inter', system-ui, sans-serif;
}
.tracking-risultato .tracking-errore {
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--accent-red-text);
}
body.dark-theme .tracking-risultato {
    --slt-bg: rgba(18, 20, 30, 0.9);
    --slt-text: #f0f2f5;
    --slt-muted: #b8bcc4;
    --slt-border: rgba(255, 255, 255, 0.12);
}
