/* =========================================================
   PROJECT LAB S.R.L. — Shared stylesheet
   Multi-page B2B technical surveying site
   Palette: white surfaces, ink text, gold (#B88917) accents
   ========================================================= */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f8f9fa;

  /* Text */
  --ink: #1b1812;
  --ink-muted: #6f6a5d;
  --ink-faint: #a8a192;

  /* Gold accent system */
  --gold: #b88917;
  --gold-dim: #97700f;
  --gold-soft: rgba(184, 137, 23, 0.08);
  --gold-line: rgba(184, 137, 23, 0.28);
  --gold-glow: rgba(184, 137, 23, 0.45);

  /* Borders */
  --border: rgba(27, 24, 18, 0.10);
  --border-strong: rgba(27, 24, 18, 0.16);
  --border-gold: rgba(184, 137, 23, 0.35);

  /* Dark sections (footer / CTA bands) */
  --dark: #15120c;
  --dark-surface: #1f1a11;
  --on-dark: #f7f3ea;
  --on-dark-muted: #b7ad99;
  --on-dark-border: rgba(247, 243, 234, 0.12);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --radius: 3px;
  --container: 1320px;
  --pad-inline: clamp(1.25rem, 5vw, 3rem);
  --space-section: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* NOT overflow-x:hidden here — it breaks position:sticky on .nav
     (an ancestor with non-visible overflow stops sticky descendants
     from tracking the real viewport). body's own overflow-x:hidden
     below is enough to stop horizontal scroll/zoom without that side
     effect. */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, object, embed, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

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

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

main { display: block; }

section { position: relative; }

.section-pad { padding-block: var(--space-section); }
.section-pad-sm { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-alt { background: var(--bg-soft); }
.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section-dark .ink-muted-dark { color: var(--on-dark-muted); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .head-copy { max-width: 38rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; line-height: 1.7; }
.section-dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--on-dark); }

h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; }

p { color: var(--ink-muted); }
.section-dark p { color: var(--on-dark-muted); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 38rem;
}
.section-dark .lead { color: var(--on-dark-muted); }

.text-gold { color: var(--gold); }

mark.accent {
  background: none;
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.85rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn i { font-size: 1.1rem; transition: transform 0.25s ease; }

.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dim);
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px var(--gold-glow);
}
.btn-primary:hover i { transform: translateX(3px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-outline:hover i { transform: translateX(3px); }

.section-dark .btn-outline {
  color: var(--on-dark);
  border-color: var(--on-dark-border);
}
.section-dark .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; }

/* =========================================================
   DECORATIVE / GSAP EFFECT LAYERS
   ========================================================= */

/* Geometric grid reveal on hover — subtle geodetic/triangulation pattern
   that lights up softly around the cursor */
.grid-hover {
  position: relative;
  isolation: isolate;
}
.grid-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--gold-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold-line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,1), transparent 72%);
  mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,1), transparent 72%);
  pointer-events: none;
}
/* Soft gold glow on the card edge, layered above the border */
.grid-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--gold-line), 0 0 36px -6px var(--gold-glow);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.grid-hover:hover::before,
.grid-hover:focus-within::before,
.grid-hover:hover::after,
.grid-hover:focus-within::after { opacity: 1; }

/* Laser-fade reveal wrapper */
.laser-reveal {
  position: relative;
  overflow: hidden;
}
.laser-reveal .laser-content {
  display: block;
}
.laser-reveal .laser-bar {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 2px;
  left: 0;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px 2px var(--gold-glow);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Reveal gating — see script.js: js-reveal added immediately,
   reveal-ready added only once GSAP/ScrollTrigger confirm load */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-reveal .laser-reveal[data-reveal] .laser-content { clip-path: inset(0 100% 0 0); opacity: 1 !important; transform: none !important; }
.js-reveal.reveal-ready [data-reveal] {
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js-reveal .laser-reveal[data-reveal] .laser-content { clip-path: none; }
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.brand-mark object,
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand span.accent {
  display: inline-flex;
  align-items: center;
  background-color: var(--ink);
  color: var(--gold);
  padding: 0 1px;
  line-height: 1;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
/* width set inline by fitBrandPayoff() in script.js to match the fixed
   tagline width exactly; the inner span is horizontally scaled to fill
   that width so "ProjectLab" always spans exactly between the two lines */
.brand-name-text {
  display: inline-flex;
  align-items: center;
  transform-origin: left center;
}
.brand-name::before,
.brand-name::after {
  content: '';
  position: absolute;
  top: 100%;
  width: 1.5px;
  height: 22px;
  background: var(--gold);
}
.brand-name::before { left: 0; }
.brand-name::after { right: 0; }
.brand-payoff {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
}
/* width set inline by fitBrandPayoff() in script.js to match .brand-name
   exactly; the inner span is horizontally scaled to fill that width so the
   tagline never runs wider than the logo name above it */
.brand-payoff-text {
  display: inline-block;
  transform-origin: left center;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1.25rem;
  color: var(--ink);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  z-index: 199;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--pad-inline) 2.5rem;
  overflow-y: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-mobile a.active { color: var(--gold); }
.nav-mobile .btn { margin-top: 1.5rem; width: 100%; padding-inline: 1rem; gap: 0.5rem; }

/* =========================================================
   HERO (homepage)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  min-height: 72dvh;
}
.hero-copy { max-width: 32rem; }
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-copy .lead { margin-bottom: 2.25rem; }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
}
.hero-frame {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-frame .frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--gold);
  z-index: 2;
}
.hero-frame .frame-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.hero-frame .frame-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.hero-frame .frame-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(21, 18, 12, 0.82);
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 0.9rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero-frame .frame-tag .value-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.hero-frame .frame-tag .value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold);
}
.hero-frame .frame-tag .unit {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--on-dark);
}
.hero-frame .frame-tag .label {
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

.hero-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.9rem;
}
.hero-meta li i { color: var(--gold); font-size: 1rem; }

/* =========================================================
   PAGE HEADER (sub-pages)
   ========================================================= */
.page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6.5rem, 13vw, 9.5rem) clamp(3.5rem, 7vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  max-width: 44rem;
}
.page-header .lead { margin-top: 1.4rem; }
.page-header-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-header-meta span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.page-header-meta span i { color: var(--gold); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--ink-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.7rem; }
.breadcrumb .current { color: var(--gold); }

/* =========================================================
   SERVICES GRID / CARDS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -32px rgba(27, 24, 18, 0.28);
}
.service-card .service-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.service-card:hover .service-icon {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-card .card-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  margin-bottom: 1.5rem;
}
.service-card .card-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.service-card .card-link i { font-size: 0.95rem; transition: transform 0.25s ease; }
.service-card:hover .card-link i { transform: translateX(5px); }
.service-card .card-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s ease;
}
.service-card:hover .card-link::after { right: 0; }

/* compact variant used for "related services" */
.services-grid.compact { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.services-grid.compact .service-card { padding: 1.5rem 1.35rem; }
.services-grid.compact .service-icon { width: 44px; height: 44px; font-size: 1.25rem; margin-bottom: 1.25rem; }
.services-grid.compact h3 { font-size: 1.05rem; }
.services-grid.compact p { font-size: 0.9rem; margin-bottom: 1.1rem; }

/* =========================================================
   SPLIT / TEXT+IMAGE SECTIONS
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4; }
.split-media .media-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(21, 18, 12, 0.82);
  color: var(--on-dark);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.split-body h2 { margin-bottom: 1.25rem; }
.split-body p + p { margin-top: 1rem; }
.split-body .lead { margin-bottom: 1.25rem; }

.checklist { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.6;
}
.checklist li i {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.85rem;
}

/* =========================================================
   VALUES / PROCESS GRIDS
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.value-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.value-card .value-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.value-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.value-card p { font-size: 0.95rem; line-height: 1.65; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-step {
  background: var(--surface);
  padding: 2.25rem 1.75rem;
  position: relative;
}
.process-step .step-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold-line);
  margin-bottom: 1.25rem;
  line-height: 1;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.process-step p { font-size: 0.92rem; line-height: 1.6; }

/* =========================================================
   TEAM GRID
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -32px rgba(27, 24, 18, 0.28);
}
.team-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.team-card:hover .team-photo img {
  filter: grayscale(0);
  transform: scale(1.04);
}
.team-body { padding: 1.5rem 1.5rem 1.75rem; }
.team-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.team-role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.team-body p { font-size: 0.92rem; line-height: 1.65; }

/* =========================================================
   SPECS STRIP (mono data)
   ========================================================= */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-cell {
  background: var(--surface);
  padding: 2rem 1.75rem;
}
.spec-cell .spec-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}
.spec-cell .spec-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--ink);
}
.spec-cell .spec-value .unit { font-size: 1rem; color: var(--gold); margin-left: 0.3rem; }

/* =========================================================
   3D BIM VIEWER (laser-scanner.html only)
   ========================================================= */
.bim-viewer-block {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.bim-viewer-head { max-width: 42rem; margin-bottom: 1.75rem; }
.bim-viewer-head .eyebrow { margin-bottom: 1rem; }
.bim-viewer-head h3 { color: var(--ink); margin-bottom: 0.6rem; }
.bim-viewer-head p { color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.bim-viewer-stage {
  position: relative;
  width: 100%;
  height: clamp(360px, 45vw, 480px);
  overflow: hidden;
  background: var(--surface);
  touch-action: none;
}
.bim-viewer-stage canvas { display: block; width: 100%; height: 100%; }
.bim-viewer-stage .bim-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.bim-viewer-hint {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.bim-viewer-hint i { color: var(--gold); }

/* =========================================================
   3D DRONE/PHOTOGRAMMETRY VIEWER (rilievi-drone.html only)
   ========================================================= */
.drone-viewer-block { }
.drone-viewer-head { max-width: 42rem; margin-bottom: 1.75rem; }
.drone-viewer-head .eyebrow { margin-bottom: 1rem; }
.drone-viewer-head h3 { color: var(--ink); margin-bottom: 0.6rem; }
.drone-viewer-head p { color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.drone-viewer-stage {
  position: relative;
  width: 100%;
  height: clamp(360px, 45vw, 480px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  touch-action: none;
}
.drone-viewer-stage canvas { display: block; width: 100%; height: 100%; }
.drone-viewer-stage .drone-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.drone-viewer-hint {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.drone-viewer-hint i { color: var(--gold); }

/* =========================================================
   SURVEY MAP / PLANIMETRIA VIEWER (rilievi-topografici.html only)
   ========================================================= */
.survey-map-block { }
.survey-map-head { max-width: 42rem; margin-bottom: 1.75rem; }
.survey-map-head .eyebrow { margin-bottom: 1rem; }
.survey-map-head h2 { margin-bottom: 1rem; }
.survey-map-head p { color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.survey-map-stage {
  position: relative;
  width: 100%;
}
.survey-map-img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.72;
  user-select: none;
}
.survey-map-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 72% 72% at 50% 50%, transparent 55%, var(--surface) 100%);
  pointer-events: none;
}
.survey-map-svg {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.survey-bg { fill: transparent; }

.survey-north line, .survey-north polygon { stroke: var(--ink-faint); fill: var(--ink-faint); stroke-width: 1.5; }
.survey-north text { font-family: var(--font-mono); font-size: 14px; fill: var(--ink-faint); }

.survey-point-group { cursor: pointer; outline: none; }
.survey-point {
  fill: var(--gold);
  stroke: #fff;
  stroke-width: 2;
  transition: r 0.15s ease, fill 0.15s ease;
}
.survey-point-group:hover .survey-point,
.survey-point-group:focus-visible .survey-point,
.survey-point-group.is-active .survey-point {
  r: 9;
  fill: var(--gold-dim);
}
.survey-point-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  fill: var(--ink);
  stroke: var(--surface);
  stroke-width: 3px;
  paint-order: stroke;
  pointer-events: none;
  user-select: none;
}

/* ---------- click-to-place GNSS operator ---------- */
.survey-operator { pointer-events: none; }
.op-shadow { fill: var(--ink); opacity: 0.1; }
.op-pole { stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.op-antenna-disc,
.op-ground,
.op-head,
.op-torso { fill: var(--gold); }
.op-antenna-dome { fill: var(--gold); opacity: 0.85; }
.op-controller { fill: var(--ink); }
.op-arm-back,
.op-arm-front,
.op-leg-back,
.op-leg-front {
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}
.op-bubble-shape {
  fill: var(--surface);
  stroke: var(--border-gold);
  stroke-width: 1.5;
}
.op-bubble-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  fill: var(--ink);
  user-select: none;
}

.survey-map-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 12rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 24, 18, 0.14);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-muted);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 0.15s ease;
}
.survey-map-tooltip.is-visible { opacity: 1; }
.survey-map-tooltip.tooltip-below { transform: translate(-50%, 16px); }
.survey-map-tooltip strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gold-dim);
}
.survey-map-tooltip span { display: block; color: var(--ink); }

.survey-map-hint {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.survey-map-hint i { color: var(--gold); }

@media (max-width: 640px) {
  .survey-point-label { display: none; }
}

/* =========================================================
   STRATIGRAPHIC SECTION VIEWER (indagini-sottosuolo.html only)
   ========================================================= */
.strata-block { }
.strata-head { max-width: 42rem; margin-bottom: 1.75rem; }
.strata-head .eyebrow { margin-bottom: 1rem; }
.strata-head h2 { margin-bottom: 1rem; }
.strata-head p { color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.strata-stage {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.strata-svg { display: block; width: 100%; height: auto; }

.strata-scale-line { stroke: var(--border-strong); stroke-width: 1; }
.strata-tick line { stroke: var(--ink-faint); stroke-width: 1; }
.strata-tick text {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink-muted);
}
.strata-ground { stroke: var(--ink); stroke-width: 2; }

.strata-1 .strata-base { fill: #d8c7ab; }
.strata-2 .strata-base { fill: #b3a08a; }
.strata-3 .strata-base { fill: #e3cd96; }
.strata-4 .strata-base { fill: #c2ad8d; }
.strata-5 .strata-base { fill: #9b9389; }

.strata-texture { pointer-events: none; }
.strata-highlight {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  transition: fill 0.15s ease, stroke 0.15s ease;
  pointer-events: none;
}
.strata-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  fill: var(--ink);
  transition: fill 0.15s ease;
}
.strata-range {
  font-family: var(--font-mono);
  font-size: 12px;
  fill: var(--ink-muted);
  pointer-events: none;
}

.strata-layer { cursor: pointer; outline: none; }
.strata-layer:hover .strata-highlight,
.strata-layer:focus-visible .strata-highlight,
.strata-layer.is-active .strata-highlight {
  fill: var(--gold-soft);
  stroke: var(--gold);
}
.strata-layer:hover .strata-label,
.strata-layer:focus-visible .strata-label,
.strata-layer.is-active .strata-label {
  fill: var(--gold-dim);
}

.strata-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 16rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 24, 18, 0.14);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-muted);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 0.15s ease;
}
.strata-tooltip.is-visible { opacity: 1; }
.strata-tooltip.tooltip-below { transform: translate(-50%, 16px); }
.strata-tooltip strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gold-dim);
}
.strata-tooltip span { display: block; color: var(--ink); }

.strata-note {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.strata-hint {
  margin: 0.6rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.strata-hint i { color: var(--gold); }

@media (max-width: 640px) {
  .strata-label { font-size: 15px; }
  .strata-range { font-size: 11px; }
}

/* =========================================================
   THERMAL CAMERA VIEWER (diagnostica-strutturale.html only)
   ========================================================= */
.thermo-block { }
.thermo-head { max-width: 42rem; margin-bottom: 1.75rem; }
.thermo-head .eyebrow { margin-bottom: 1rem; }
.thermo-head h2 { margin-bottom: 1rem; }
.thermo-head p { color: var(--ink-muted); font-size: 0.98rem; line-height: 1.65; margin: 0; }

.thermo-stage {
  --thermo-ink: #4a4540;
  --thermo-lens-size: 130px;
  --thermo-lens-radius: 64px;
  position: relative;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: none;
}
.thermo-svg { display: block; width: 100%; height: auto; }
.thermo-bg { fill: var(--surface); }
.thermo-wall { fill: url(#thermoWallGrad); stroke: var(--thermo-ink); stroke-width: 2; }
.thermo-plinth { fill: #dbd8d0; }
.thermo-pilaster { fill: #e7e5e0; stroke: var(--thermo-ink); stroke-width: 1; opacity: 0.85; }
.thermo-eave { fill: #e4e2dd; stroke: var(--thermo-ink); stroke-width: 2; }
.thermo-cornice { fill: #cfccc3; }
.thermo-line { stroke: var(--thermo-ink); stroke-width: 1.5; opacity: 0.5; }
.thermo-window { fill: var(--surface); stroke: var(--thermo-ink); stroke-width: 1.5; }
.thermo-mullion { stroke: var(--thermo-ink); stroke-width: 1; opacity: 0.5; }
.thermo-sill { stroke: var(--thermo-ink); stroke-width: 2; }
.thermo-door { fill: #e4e2dd; stroke: var(--thermo-ink); stroke-width: 1.5; }
.thermo-door-line { stroke: var(--thermo-ink); stroke-width: 1.5; }
.thermo-door-handle { fill: var(--thermo-ink); }
.thermo-ground { stroke: #2a2722; stroke-width: 2.5; }

.thermo-zoom {
  position: absolute;
  inset: 0;
  transform: scale(1.18);
  transform-origin: var(--mx, 50%) var(--my, 50%);
  -webkit-mask-image: radial-gradient(circle var(--thermo-lens-radius) at var(--mx, -9999px) var(--my, -9999px), #000 60%, transparent 100%);
  mask-image: radial-gradient(circle var(--thermo-lens-radius) at var(--mx, -9999px) var(--my, -9999px), #000 60%, transparent 100%);
  pointer-events: none;
}

.thermo-heatmap {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 21.5% 15%, rgba(255, 176, 40, 0.95) 0%, rgba(255, 176, 40, 0) 14%),
    radial-gradient(circle at 21.5% 90%, rgba(90, 130, 255, 0.95) 0%, rgba(90, 130, 255, 0) 16%),
    radial-gradient(circle at 92% 37%, rgba(255, 221, 87, 0.95) 0%, rgba(255, 221, 87, 0) 13%),
    linear-gradient(135deg, #16294f 0%, #1f5c86 30%, #2f8f86 55%, #4fae72 75%, #7ec98a 100%);
  -webkit-mask-image: radial-gradient(circle var(--thermo-lens-radius) at var(--mx, -9999px) var(--my, -9999px), #000 60%, transparent 100%);
  mask-image: radial-gradient(circle var(--thermo-lens-radius) at var(--mx, -9999px) var(--my, -9999px), #000 60%, transparent 100%);
  mix-blend-mode: hard-light;
  pointer-events: none;
}

.thermo-lens {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--thermo-lens-size);
  height: var(--thermo-lens-size);
  margin: calc(var(--thermo-lens-size) / -2) 0 0 calc(var(--thermo-lens-size) / -2);
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(27, 24, 18, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, width 0.2s ease, height 0.2s ease, margin 0.2s ease;
}
.thermo-stage.is-active .thermo-lens { opacity: 1; }
.thermo-lens::after {
  content: '';
  position: absolute;
  top: calc(var(--thermo-lens-size) * 0.823);
  left: calc(var(--thermo-lens-size) * 0.823);
  width: calc(var(--thermo-lens-size) * 0.308);
  height: calc(var(--thermo-lens-size) * 0.069);
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dim) 100%);
  border-radius: 5px;
  transform-origin: 0 50%;
  transform: rotate(45deg);
  box-shadow: 2px 4px 8px rgba(27, 24, 18, 0.3);
}

.thermo-anomaly {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1.5px dashed var(--gold-line);
  border-radius: 50%;
  pointer-events: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.thermo-anomaly.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--gold-soft);
}

.thermo-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 16rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(27, 24, 18, 0.14);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-muted);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 0.15s ease;
}
.thermo-tooltip.is-visible { opacity: 1; }
.thermo-tooltip.tooltip-below { transform: translate(-50%, 16px); }
.thermo-tooltip strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gold-dim);
}
.thermo-tooltip span { display: block; color: var(--ink); }

.thermo-hint {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.thermo-hint i { color: var(--gold); }

/* =========================================================
   CTA BANDS
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--on-dark-border);
  background: var(--dark);
  color: var(--on-dark);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.cta-band .cta-copy { max-width: 32rem; position: relative; z-index: 1; }
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4 { margin-bottom: 0.85rem; color: var(--on-dark); }
.cta-band p { color: var(--on-dark-muted); font-size: 1.02rem; line-height: 1.7; }
.cta-band .cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-outline { color: var(--on-dark); border-color: var(--on-dark-border); }
.cta-band .btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Banner asset section (brand lockup banners) */
.banner-section { padding-block: clamp(1rem, 2vw, 1.5rem); }
.banner-section .container { display: flex; justify-content: center; }
.banner-asset {
  position: relative;
  height: clamp(56px, 8vw, 96px);
  width: auto;
  max-width: 100%;
  overflow: hidden;
}
.banner-asset img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================================
   FORMS
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.form-field label .optional {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.9rem 1.05rem;
  font-size: 0.96rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-faint); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-field textarea { resize: vertical; min-height: 130px; font-family: inherit; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b88917' stroke-width='1.8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}
.form-field .file-input {
  position: relative;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field .file-input i { font-size: 1.4rem; color: var(--gold); display: block; margin: 0 auto 0.6rem; }
.form-field .file-input input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.form-field .file-input:hover { border-color: var(--gold); background: var(--gold-soft); }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.checkbox-field a { color: var(--gold); border-bottom: 1px solid var(--border-gold); }

.form-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 1rem;
  line-height: 1.6;
}

/* =========================================================
   CONTACT INFO BLOCK
   ========================================================= */
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 2.25rem;
}
.info-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
}
.info-row:first-child { padding-top: 0; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row .info-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-row .info-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}
.info-row .info-value { font-size: 1rem; color: var(--ink); line-height: 1.55; }
.info-row .info-value a { transition: color 0.2s; }
.info-row .info-value a:hover { color: var(--gold); }

.map-frame {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* =========================================================
   JOB / CAREER CARDS
   ========================================================= */
.jobs-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.job-card {
  background: var(--surface);
  padding: 1.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: background 0.25s ease;
}
.job-card:hover { background: var(--gold-soft); }
.job-card .job-info h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.job-card .job-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.job-card .job-tags span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.65rem;
}
.job-card .job-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.job-card .job-link i { transition: transform 0.25s ease; }
.job-card:hover .job-link i { transform: translateX(5px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: 4.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .brand { display: flex; flex-direction: row; align-items: center; gap: 10px; margin-left: 0; padding-left: 0; color: var(--on-dark); margin-bottom: 1.25rem; }
.footer-brand .brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.footer-brand .brand-name { color: var(--on-dark); font-size: 1.55rem; font-weight: 700; }
.footer-brand .brand-payoff { color: var(--gold); font-size: 0.5rem; }
.footer-brand .brand span.accent {
  background-color: #fff;
  border: none;
  color: var(--gold);
}
.footer-brand p { max-width: 26rem; line-height: 1.7; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  font-weight: 500;
}
.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  display: block;
  color: var(--on-dark-muted);
  padding: 0.3rem 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
  font-size: 0.95rem;
}
.footer-links li:first-child a { padding-top: 0; }
.footer-links a:hover { color: var(--gold); padding-left: 0.4rem; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--on-dark-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }
.footer-bottom .legal-links a:hover { color: var(--gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid.compact { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  /* the same CTA already appears full-width in .nav-mobile below;
     keeping it in the top bar too left it squeezed against the
     hamburger icon with no room to wrap (white-space: nowrap),
     clipping the label */
  .nav-actions .btn-primary { display: none; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 2.5rem; }
  .hero-copy { max-width: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .services-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .nav-inner { height: 72px; }
  .nav-mobile { inset: 72px 0 0 0; }
  .thermo-stage { --thermo-lens-size: 78px; --thermo-lens-radius: 38px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid.compact { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-meta { gap: 1.5rem; }
  .job-card { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════════════════
   CUSTOM CROSSHAIR CURSOR
   Attivo solo su dispositivi puntatore fine (mouse/trackpad).
   Su touch / mobile → cursor di default invariato.
   ═══════════════════════════════════════════════════════════════════ */

/* cursore nativo attivo — custom cursor disabilitato */

/* ── Wrapper di posizionamento (spostato da JS via transform) ─────── */
.c-ring-pos {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ── Cerchio mirino ──────────────────────────────────────────────── */
.c-ring {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--gold, #b88917);
  border-radius: 50%;
  /* Centra il cerchio rispetto alla posizione del wrapper */
  transform: translate(-50%, -50%);
  position: relative;
  transition:
    transform      0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background-color 0.18s ease,
    border-color   0.18s ease,
    opacity        0.18s ease;
}

/* Linea orizzontale del mirino */
.c-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold, #b88917);
  transform: translateY(-0.5px);
  opacity: 0.65;
}

/* Linea verticale del mirino */
.c-ring::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--gold, #b88917);
  transform: translateX(-0.5px);
  opacity: 0.65;
}

/* ── Dot (punto esatto di click) ─────────────────────────────────── */
.c-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--gold, #b88917);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ── Hover: il cerchio si espande e si riempie leggermente ─────────── */
.c-ring-pos.is-hovering .c-ring {
  transform: translate(-50%, -50%) scale(1.55);
  background-color: rgba(184, 137, 23, 0.17);
  border-color: var(--gold, #b88917);
}

/* ── Click: breve contrazione ────────────────────────────────────── */
.c-ring-pos.is-clicking .c-ring {
  transform: translate(-50%, -50%) scale(0.82);
  transition:
    transform      0.08s ease,
    background-color 0.08s ease;
}

/* ── Viewer 3D: cerchio semitrasparente per non coprire i controlli ── */
.c-ring-pos.is-in-viewer .c-ring {
  border-color: rgba(184, 137, 23, 0.45);
  background-color: transparent;
}
.c-ring-pos.is-in-viewer .c-ring::before,
.c-ring-pos.is-in-viewer .c-ring::after {
  opacity: 0.35;
}

/* ── Dark sections: il cursore rimane leggibile su sfondo scuro ────── */
.section-dark .c-ring { /* ereditato dal DOM, non necessita override: oro visibile */ }

/* ── Reduced motion: disabilita le transizioni del cursore ──────────
   (la posizione rimane animata via JS, ma senza la transizione CSS) */
@media (prefers-reduced-motion: reduce) {
  .c-ring,
  .c-ring-pos,
  .c-dot {
    transition: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   INTRO SPLASH SCREEN  (solo index.html)
   z-index 9999 → sopra tutti i contenuti pagina, sotto il cursore custom
   ═══════════════════════════════════════════════════════════════════ */

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.intro-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 1.9rem);
  text-align: center;
  user-select: none;
}

/* ── SVG globo / mirino ──────────────────────────────────────────── */
.intro-logo-svg {
  width:  clamp(100px, 15vw, 160px);
  height: clamp(100px, 15vw, 160px);
  display: block;
  overflow: visible;
}

/* I path SVG partono invisibili; JS imposta strokeDasharray/Offset */
.ip { fill: none; }

/* ── Nome "PROJECT LAB" ──────────────────────────────────────────── */
.intro-brand {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size:   clamp(1.65rem, 4.5vw, 2.9rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.22em;
  line-height: 1;
  margin: 0;
}

/* Singole lettere (iniettate da JS) */
.il {
  display: inline-block;
  opacity: 0;
  transform: translateY(7px);
}
.il-space {
  display: inline-block;
  width: 0.38em;
  opacity: 1;
  transform: none;
}
/* Blocco LAB: sfondo scuro, testo oro */
.il-lab {
  color: #b88917;
  background: #111;
  padding: 0.04em 0.18em;
  margin-left: 0.05em;
  transform: none; /* GSAP controlla scale, non translateY */
}

/* ── Payoff ──────────────────────────────────────────────────────── */
.intro-payoff {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size:   clamp(0.62rem, 1.7vw, 0.82rem);
  font-weight: 500;
  color: var(--gold, #b88917);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0;
  transform: translateY(4px);
}

/* ── Bottone "Salta intro" ───────────────────────────────────────── */
#intro-skip {
  position: fixed;
  bottom: 1.75rem;
  right:  2rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease;
  pointer-events: all;
  line-height: 1;
}
#intro-skip:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* Reduced motion: salta direttamente al dissolve */
@media (prefers-reduced-motion: reduce) {
  #intro-overlay { transition: opacity 0.01ms; }
}


/* ═══════════════════════════════════════════════════════════════════
   PRIMA / DOPO — Slider before/after  (solo index.html)
   ═══════════════════════════════════════════════════════════════════ */

#prima-dopo {
  overflow: hidden;
}

#prima-dopo > .container {
  margin-bottom: 2.75rem;
}

.pd-subtitle {
  font-size: 0.88rem;
  color: var(--muted, #888);
  letter-spacing: 0.04em;
  margin-top: 0.6rem;
}

/* ── Wrapper ─────────────────────────────────────────────────────── */
.pd-wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Stage ───────────────────────────────────────────────────────── */
.pd-stage {
  --pd-pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 2238 / 1100;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--bg-soft, #f8f9fa);
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}

/* ── Layers ──────────────────────────────────────────────────────── */
.pd-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* DOPO: restituzione CAD — layer base, sempre visibile */
.pd-after {
  background: var(--bg-soft, #f8f9fa);
}

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

/* PRIMA: nuvola di punti — clippato alla percentuale sx */
.pd-before {
  clip-path: inset(0 calc(100% - var(--pd-pos)) 0 0);
  will-change: clip-path;
  background: var(--bg-soft, #f8f9fa);
}

/* ── Etichette ───────────────────────────────────────────────────── */
.pd-label {
  position: absolute;
  bottom: 1.25rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.28rem 0.8rem;
  border-radius: 2rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  white-space: nowrap;
}

.pd-label-before {
  left: 1.25rem;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pd-label-after {
  right: 1.25rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Linea divisoria ─────────────────────────────────────────────── */
.pd-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pd-pos);
  width: 2px;
  background: var(--gold, #b88917);
  transform: translateX(-50%);
  z-index: 20;
  cursor: ew-resize;
  will-change: left;
  outline: none;
}

/* Alone attorno alla linea per cattura drag più facile */
.pd-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -5px;
  width: 12px;
  background: rgba(184, 137, 23, 0.1);
}

/* ── Maniglia circolare ──────────────────────────────────────────── */
.pd-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold, #b88917);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  box-shadow:
    0 2px 14px rgba(0, 0, 0, 0.55),
    0 0 0 3px rgba(184, 137, 23, 0.28);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.pd-stage.pd-dragging .pd-handle,
.pd-divider:hover .pd-handle,
.pd-divider:focus-visible .pd-handle {
  box-shadow:
    0 4px 22px rgba(0, 0, 0, 0.65),
    0 0 0 6px rgba(184, 137, 23, 0.35);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .pd-stage {
    max-height: none;
    border-radius: 0;
  }
  .pd-wrap {
    padding: 0;
  }
  .pd-handle {
    width: 42px;
    height: 42px;
  }
  .pd-label {
    font-size: 0.56rem;
    padding: 0.22rem 0.6rem;
    bottom: 0.85rem;
  }
  .pd-label-before { left: 0.75rem; }
  .pd-label-after  { right: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pd-before  { will-change: auto; }
  .pd-divider { will-change: auto; }
  .pd-handle  { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   LIDAR SHOWCASE  (home page, sezione "Scansione LiDAR")
   ═══════════════════════════════════════════════════════════════════ */
.lidar-frame {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #00040a;
}
.lidar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lidar-frame .frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--gold);
  z-index: 2;
}
.lidar-frame .frame-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.lidar-frame .frame-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.lidar-frame .frame-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  background: rgba(21, 18, 12, 0.82);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
@media (max-width: 767px) {
  .lidar-frame { aspect-ratio: 4 / 3; border-radius: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   LOADER — Technical Loading Bar  (tutte le pagine)
   z-index 9990: sopra contenuto, sotto intro overlay (9999) e cursore
   ═══════════════════════════════════════════════════════════════════ */

/* ── Barra di progresso ──────────────────────────────────────────── */
#ld-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(184, 137, 23, 0.14);
  z-index: 9990;
  pointer-events: none;
}

#ld-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #b88917 0%,
    #e4bc3a 35%,
    #b88917 60%,
    #c89b1f 100%
  );
  background-size: 300% 100%;
  box-shadow:
    0 0 8px rgba(184, 137, 23, 0.7),
    0 0 2px rgba(184, 137, 23, 0.95);
  will-change: width;
}

/* Shimmer animato (classe aggiunta da JS, rimossa al completamento) */
#ld-fill.ld-active {
  animation: ld-shine 1.8s linear infinite;
}

@keyframes ld-shine {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

@media (prefers-reduced-motion: reduce) {
  #ld-fill.ld-active { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   SCROLL PROGRESS — Indicatore verticale destro  (tutte le pagine)
   ═══════════════════════════════════════════════════════════════════ */

#sp-track {
  position: fixed;
  right: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
  z-index: 9000;
  pointer-events: none;
}

#sp-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold, #b88917);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

/* Nascosto su mobile */
@media (max-width: 767px) {
  #sp-track { display: none; }
}

/* ── FSC / FAInSicilia — disclosure obbligatoria finanziamento pubblico ── */
.fsc-disclosure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(247,243,234,.08);
}
.fsc-disclosure img {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: block;
}
.fsc-disclosure p {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--on-dark-muted, #b7ad99);
  margin: 0;
  max-width: 52rem;
}
@media (max-width: 480px) {
  .fsc-disclosure img { max-width: 220px; }
}
