/* ==========================================================================
   Studio Tecnico Geom. Valentino Laurelli — SitoWeb_Cloudflare_v5
   Home Spatial Prototype (Igloo Inc. concept · #0B192C / #FFFFFF / #94A3B8 / #D95D24)
   Zero white cards · Zero forms · Zero technical badges
   ========================================================================== */

:root {
  --navy: #0B192C;
  --steel: #1E3A5F;
  --white: #FFFFFF;
  --slate: #94A3B8;
  --copper: #D95D24;
  --copper-hover: #C24E19;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

html,
body {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ==========================================================================
   THREE.JS CANVAS, ATMOSPHERIC VIGNETTE & 400VH SCROLL TRACK
   ========================================================================== */
#spatial-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

.spatial-vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 85% at 64% 48%, rgba(11, 25, 44, 0) 34%, rgba(11, 25, 44, 0.72) 100%),
    linear-gradient(90deg, rgba(11, 25, 44, 0.90) 0%, rgba(11, 25, 44, 0.66) 34%, rgba(11, 25, 44, 0.20) 54%, rgba(11, 25, 44, 0) 74%);
}

.scroll-track {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 400vh;
  pointer-events: none;
}

/* ==========================================================================
   HEADER FISSO MINIMALISTA (1 RIGA, TRASPARENTE + CTA B2B RAME)
   ========================================================================== */
.hud-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: clamp(20px, 5vw, 64px);
  background: linear-gradient(to bottom, rgba(11, 25, 44, 0.78) 0%, rgba(11, 25, 44, 0) 100%);
}

.hud-brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.hud-brand:hover {
  color: var(--copper);
}

.hud-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
}

.hud-nav-link {
  color: var(--slate);
  cursor: pointer;
  transition: color 0.22s ease;
  padding-block: 4px;
}

.hud-nav-link:hover {
  color: var(--white);
}

.hud-nav-cta {
  border: 1px solid var(--copper);
  border-radius: 4px;
  padding: 6px 13px;
  color: var(--white);
  font-weight: 600;
  background-color: rgba(217, 93, 36, 0.08);
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.hud-nav-cta:hover {
  background-color: var(--copper);
  border-color: var(--copper);
  color: var(--white);
  transform: translateY(-1px);
}

.hud-sep {
  color: rgba(148, 163, 184, 0.45);
  user-select: none;
}

/* ==========================================================================
   STAGE TESTI FLOTTANTI (ZERO CARD RETTANGOLARI)
   ========================================================================== */
.hud-stage {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  align-items: center;
  padding-inline: clamp(24px, 6vw, 88px);
}

.act-panel {
  position: absolute;
  left: clamp(24px, 6vw, 88px);
  right: clamp(24px, 6vw, 88px);
  max-width: 660px;
  padding: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px) clamp(20px, 2.4vw, 32px) 0;
  background: radial-gradient(ellipse 95% 90% at 24% 50%, rgba(11, 25, 44, 0.80) 0%, rgba(11, 25, 44, 0.42) 52%, rgba(11, 25, 44, 0) 80%);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 24px, 0);
  will-change: opacity, transform;
  pointer-events: none;
}

.act-panel.is-active {
  visibility: visible;
  pointer-events: auto;
}

.act-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 14px;
  text-shadow: 0 2px 14px rgba(11, 25, 44, 0.95);
}

.act-panel h1,
.act-panel h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(11, 25, 44, 0.95);
}

.act-sub {
  margin-top: 18px;
  max-width: 540px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--slate);
  text-shadow: 0 2px 18px rgba(11, 25, 44, 0.95);
}

.act-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-copper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--copper);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid var(--copper);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-copper:hover {
  background-color: var(--copper-hover);
  border-color: var(--copper-hover);
  transform: translateY(-1px);
}

.btn-ghost-hud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(11, 25, 44, 0.45);
  color: var(--white);
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.btn-ghost-hud:hover {
  border-color: var(--white);
  background-color: rgba(11, 25, 44, 0.72);
  transform: translateY(-1px);
}

.scroll-cue {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--white);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.scroll-cue:hover {
  opacity: 0.85;
}

.scroll-cue-arrow {
  color: var(--copper);
  font-size: 14px;
  display: inline-block;
  animation: cue-float 2.2s ease-in-out infinite;
}

@keyframes cue-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ==========================================================================
   ANGOLI HUD DISCRETI (MONOSPACE 11PX)
   ========================================================================== */
.hud-corner {
  position: fixed;
  bottom: clamp(18px, 3vh, 32px);
  z-index: 30;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--slate);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-bottom-left {
  left: clamp(20px, 5vw, 64px);
}

.hud-bottom-right {
  right: clamp(20px, 5vw, 64px);
  text-align: right;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--copper);
  flex-shrink: 0;
}

#hud-act-indicator {
  color: var(--white);
  white-space: nowrap;
}

.hud-progress-track {
  width: 64px;
  height: 1px;
  background-color: rgba(148, 163, 184, 0.22);
  position: relative;
  overflow: hidden;
}

.hud-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background-color: var(--copper);
}

/* ==========================================================================
   MODALE SCURO MINIMALE "CONTATTO DIRETTO" (#0B192C + BORDO SOTTILE)
   ========================================================================== */
.contact-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(6, 13, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.contact-veil.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-dialog {
  width: 100%;
  max-width: 560px;
  background-color: var(--navy);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-top: 2px solid var(--copper);
  border-radius: 4px;
  padding: clamp(22px, 3.5vw, 34px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  transform: translateY(10px) scale(0.985);
  transition: transform 0.28s ease;
}

.contact-veil.is-open .contact-modal-dialog {
  transform: translateY(0) scale(1);
}

.contact-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.contact-veil-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--copper);
  text-transform: uppercase;
}

.contact-veil-close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
  cursor: pointer;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.contact-veil-close:hover {
  color: var(--copper);
}

.contact-veil-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 22px;
}

.contact-veil-list {
  display: flex;
  flex-direction: column;
}

.contact-veil-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.contact-veil-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--slate);
  text-transform: uppercase;
}

.contact-veil-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-veil-value {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.2s ease;
  width: fit-content;
}

a.contact-veil-value:hover,
.contact-veil-link-sub:hover {
  color: var(--copper);
}

.contact-veil-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--copper);
  border: 1px solid rgba(217, 93, 36, 0.55);
  border-radius: 3px;
  padding: 3px 9px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-veil-pill:hover {
  background-color: var(--copper);
  color: var(--white);
}

.contact-veil-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin-top: 2px;
}

.contact-veil-link-sub {
  color: var(--white);
  transition: color 0.2s ease;
}

.contact-veil-hours {
  color: var(--white);
  line-height: 1.5;
}

.contact-veil-actions {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-veil-actions .btn-copper,
.contact-veil-actions .btn-ghost-hud {
  padding: 12px 20px;
  font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE MOBILE (< 768PX)
   ========================================================================== */
@media (max-width: 768px) {
  .spatial-vignette {
    background: linear-gradient(
      to top,
      rgba(11, 25, 44, 0.95) 0%,
      rgba(11, 25, 44, 0.82) 38%,
      rgba(11, 25, 44, 0.18) 64%,
      rgba(11, 25, 44, 0) 82%
    );
  }

  .hud-header {
    height: 60px;
    padding-inline: 12px;
    gap: 6px;
  }

  .hud-brand {
    font-size: 9.2px;
    letter-spacing: 0.02em;
  }

  .hud-nav {
    gap: 4px;
    font-size: 10px;
  }

  .hud-nav-cta {
    padding: 3px 7px;
    font-size: 10px;
  }

  .hud-stage {
    align-items: flex-end;
    padding-inline: 16px;
    padding-bottom: 68px;
  }

  .act-panel {
    left: 16px;
    right: 16px;
    bottom: 64px;
    padding: 0;
    background: none;
  }

  .act-eyebrow {
    font-size: 9.2px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .act-panel h1,
  .act-panel h2 {
    font-size: clamp(1.75rem, 7.4vw, 2.35rem);
  }

  .act-sub {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .act-actions {
    margin-top: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-copper,
  .btn-ghost-hud {
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
  }

  .scroll-cue {
    margin-top: 16px;
  }

  .hud-bottom-left {
    bottom: 31px;
    left: 14px;
    font-size: 9.5px;
    gap: 7px;
  }

  .hud-progress-track {
    width: 32px;
  }

  .hud-bottom-right {
    bottom: 12px;
    left: 14px;
    right: 14px;
    text-align: left;
    font-size: 8.2px;
    letter-spacing: 0.02em;
    max-width: none;
    white-space: nowrap;
  }

  .contact-veil-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-arrow {
    animation: none;
  }
}
