:root {
  --bg-base: #000000;
  --bg-surface: rgba(24, 24, 27, 0.7);
  --bg-surface-solid: #121215;
  --bg-card: rgba(30, 30, 35, 0.65);
  --bg-card-hover: rgba(42, 42, 50, 0.8);
  --primary: #f97316;
  /* Arancione Sicurezza Cantiere */
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.35);
  --accent-blue: #0a84ff;
  --accent-blue-glow: rgba(10, 132, 255, 0.25);
  --accent-green: #30d158;
  --accent-indigo: #5e5ce6;
  --accent-amber: #f59e0b;
  --danger: #ff453a;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-subtle: rgba(255, 255, 255, 0.45);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(249, 115, 22, 0.4);
  --glass-blur: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px -10px rgba(249, 115, 22, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.12), transparent 35%),
    radial-gradient(circle at 85% 60%, rgba(10, 132, 255, 0.08), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(94, 92, 230, 0.06), transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #ffffff 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Announcement Top Bar */
.top-announcement {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(10, 132, 255, 0.2));
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.top-announcement .badge {
  background: var(--primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* Apple-Style Sticky Subnav (Hidden at scroll 0, slides in smoothly on scroll) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.navbar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  background: rgba(10, 11, 16, 0.92);
  border-bottom-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-tm {
  font-size: 0.52em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: normal;
}

.brand-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(249, 115, 22, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(249, 115, 22, 0.5);
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==============================================================================
   01. HERO SECTION: KEYNOTE ILLUMINATION & PROPORTIONS
   ============================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  /* Luce teatrale di scena: bagliore caldo ambra centrale + accenno blu freddo laterale */
  background:
    radial-gradient(ellipse 65% 50% at 50% 15%, rgba(249, 115, 22, 0.13) 0%, rgba(249, 115, 22, 0.02) 55%, transparent 75%),
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
}

.hero>.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-grand-entrance {
  text-align: center;
  padding: 10px 0;
  width: 100%;
}

.hero-brand-emblem {
  width: 180px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2236 / 1405;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 14px 40px rgba(249, 115, 22, 0.42));
  transition: transform 0.3s ease;
}

.hero-brand-emblem:hover {
  transform: scale(1.03);
}

.hero-institutional-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: #fdba74;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.badge-beacon-orange {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 10px #f97316;
  animation: pulse-beacon 2s infinite ease-in-out;
}

@keyframes pulse-beacon {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 auto 20px;
  max-width: 1060px;
  /* Larghezza calibrata per non spezzare mai la seconda riga */
  color: #ffffff;
}

.hero p.subtitle {
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.62;
  color: #d1d5db;
  /* Schiarito per massima leggibilità */
  max-width: 820px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-microcopy {
  font-size: 0.85rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-microcopy span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.micro-check {
  color: var(--accent-green);
  font-weight: 900;
}

.micro-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ==============================================================================
   METEOPRO ENTERPRISE OS SAAS CONSOLE (AUTENTICA UI PROTOTIPO)
   ============================================================================== */

/* SaaS Console Window Container */
.saas-console-window {
  --cw-bg-base: #f8fafc;
  --cw-bg-surface: #ffffff;
  --cw-bg-surface-hover: #f1f5f9;
  --cw-sidebar-bg: #f8fafc;
  --cw-card-bg: #ffffff;
  --cw-text-main: #0f172a;
  --cw-text-muted: #475569;
  --cw-text-subtle: #64748b;
  --cw-border: rgba(0, 0, 0, 0.08);
  --cw-border-strong: rgba(0, 0, 0, 0.16);
  --cw-input-bg: #f1f5f9;
  --cw-topbar-bg: #ffffff;
  --cw-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.75), 0 0 50px rgba(249, 115, 22, 0.22), 0 0 100px rgba(249, 115, 22, 0.10);

  width: 100%;
  max-width: 1200px;
  height: clamp(470px, calc(100vh - 165px), 570px);
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--cw-border);
  background: var(--cw-bg-base);
  color: var(--cw-text-main);
  box-shadow: var(--cw-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 5;
}

/* Dark Mode Theme Modifier for Console */
.saas-console-window.console-dark-mode {
  --cw-bg-base: #0b0f19;
  --cw-bg-surface: #111827;
  --cw-bg-surface-hover: #1e293b;
  --cw-sidebar-bg: #0d121f;
  --cw-card-bg: #131b2e;
  --cw-text-main: #f8fafc;
  --cw-text-muted: #94a3b8;
  --cw-text-subtle: #64748b;
  --cw-border: rgba(255, 255, 255, 0.08);
  --cw-border-strong: rgba(255, 255, 255, 0.16);
  --cw-input-bg: rgba(255, 255, 255, 0.05);
  --cw-topbar-bg: #0d121f;
  --cw-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.9), 0 0 60px rgba(249, 115, 22, 0.24), 0 0 120px rgba(249, 115, 22, 0.12);
}

/* Top Window Bar */
.console-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--cw-topbar-bg);
  border-bottom: 1px solid var(--cw-border);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.console-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.console-traffic-dots {
  display: flex;
  gap: 6px;
}

.console-traffic-dots .c-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-traffic-dots .c-dot.red {
  background: #ff5f56;
}

.console-traffic-dots .c-dot.yellow {
  background: #ffbd2e;
}

.console-traffic-dots .c-dot.green {
  background: #27c93f;
}

.console-window-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cw-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.console-feed-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
  animation: pulse 1.8s infinite;
}

.console-theme-btn {
  background: var(--cw-bg-surface);
  border: 1px solid var(--cw-border);
  color: var(--cw-text-main);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.console-theme-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.console-user-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cw-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Console Body Layout */
.console-body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* Console Sidebar */
.console-sidebar {
  width: 215px;
  flex-shrink: 0;
  background: var(--cw-sidebar-bg);
  border-right: 1px solid var(--cw-border);
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.console-brand-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.console-brand-icon {
  height: 24px;
  width: auto;
}

.console-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cw-text-main);
  letter-spacing: -0.02em;
}

.console-brand-name span {
  color: var(--primary);
}

.console-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.console-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cw-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.console-nav-item:hover {
  background: var(--cw-input-bg);
  color: var(--cw-text-main);
}

.console-nav-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}

.console-nav-item.active i {
  color: #fff;
}

.cnav-badge {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: auto;
}

.cnav-badge.alert {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.console-nav-item.active .cnav-badge.alert {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.cnav-badge.live {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.console-nav-item.active .cnav-badge.live {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.console-sidebar-spacer {
  flex: 1;
}

.console-sidebar-footer {
  padding: 8px 4px 0;
  border-top: 1px solid var(--cw-border);
}

.console-client-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.client-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cw-text-main);
}

.client-meta {
  font-size: 0.62rem;
  color: var(--cw-text-subtle);
}

/* Console Main Area & Views */
.console-main-area {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px;
  scrollbar-width: thin;
  background: var(--cw-bg-base);
  transition: background 0.3s ease;
}

.console-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  will-change: opacity, transform;
}

.console-view.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==============================================================================
   VIEW 1: STATO CANTIERI (MAPPA GIS LIGHT MODE)
   ============================================================================== */
.cview-hero-banner {
  background: var(--cw-card-bg);
  border: 1px solid var(--cw-border);
  border-radius: 9px;
  padding: 8px 12px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cview-hero-greeting {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.greet-sub {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.greet-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cw-text-main);
  margin: 0;
}

.cview-banner-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
}

@media (max-width: 860px) {
  .cview-banner-split {
    grid-template-columns: 1fr;
  }
}

.cview-ai-col {
  border-left: 3px solid var(--primary);
  padding-left: 8px;
}

.cview-col-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--cw-text-muted);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cview-col-text {
  font-size: 0.72rem;
  color: var(--cw-text-main);
  line-height: 1.35;
}

.cview-dpc-col {
  border-left: 3px solid #0284c7;
  padding-left: 8px;
  background: rgba(2, 132, 199, 0.05);
  border-radius: 0 6px 6px 0;
  padding: 4px 8px;
}

.cview-dpc-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.dpc-dot.yellow {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}

/* Leaflet GIS Map Wrapper */
.console-map-wrapper {
  height: 220px;
  border-radius: 9px;
  border: 1px solid var(--cw-border);
  overflow: hidden;
  position: relative;
  background: #0f172a;
}

.console-map-el {
  width: 100%;
  height: 100%;
}

/* Satellite Imagery Layer in White Mode */
.satellite-tiles {
  filter: saturate(1.1) contrast(1.05);
}

/* True-Black Tactical Map for Console Dark Mode (Zero Blue Ocean, Pure Jet Black) */
.saas-console-window.console-dark-mode .console-map-wrapper {
  background: #0b0f19;
  border-color: rgba(255, 255, 255, 0.1);
}

.saas-console-window.console-dark-mode .dark-tactical-tiles {
  filter: brightness(0.7) invert(1) contrast(2.5) hue-rotate(180deg) saturate(0) brightness(0.65);
}

.saas-console-window.console-dark-mode .leaflet-marker-pane,
.saas-console-window.console-dark-mode .leaflet-popup-pane,
.saas-console-window.console-dark-mode .leaflet-overlay-pane {
  filter: none !important;
}

.saas-console-window.console-dark-mode .leaflet-control-zoom a {
  background: #111827;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.12);
}

.saas-console-window.console-dark-mode .leaflet-control-zoom a:hover {
  background: #1f2937;
  color: #fff;
}

.map-floating-hud {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 400;
  background: var(--cw-bg-surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--cw-border);
  border-radius: 6px;
  padding: 4px 10px;
  display: flex;
  gap: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--cw-text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.hud-dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: pulse 1.5s infinite;
}

.hud-dot.green {
  background: #22c55e;
}

/* Custom Leaflet Glowing Pin Markers */
.console-pin-marker {
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.console-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.console-pin-dot.red {
  background: #ef4444;
}

.console-pin-dot.green {
  background: #22c55e;
}

.console-pin-pulse {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  top: -4px;
  left: -4px;
  animation: markerPulse 2s infinite ease-out;
  pointer-events: none;
}

.console-pin-pulse.red {
  border: 2px solid #ef4444;
}

.console-pin-pulse.green {
  border: 2px solid #22c55e;
}

@keyframes markerPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Site Cards Grid */
.console-sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 860px) {
  .console-sites-grid {
    grid-template-columns: 1fr;
  }
}

.csite-card {
  background: var(--cw-card-bg);
  border: 1px solid var(--cw-border);
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.csite-card.critical {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, var(--cw-card-bg) 0%, rgba(239, 68, 68, 0.04) 100%);
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.08);
}

.csite-card.critical:hover {
  transform: translateY(-2px);
  border-color: #ef4444;
}

.csite-card.zoomed-focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.45), inset 0 0 12px rgba(249, 115, 22, 0.15) !important;
  transform: translateY(-3px) scale(1.025);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.csite-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.csite-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--cw-text-main);
  line-height: 1.2;
}

.csite-loc {
  font-size: 0.62rem;
  color: var(--cw-text-muted);
  margin-top: 1px;
}

.csite-status-pill {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.csite-status-pill.alert {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.csite-status-pill.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.csite-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--cw-input-bg);
  padding: 5px 4px;
  border-radius: 6px;
  text-align: center;
}

.csite-m-box .m-label {
  font-size: 0.55rem;
  color: var(--cw-text-subtle);
  display: block;
}

.csite-m-box .m-val {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--cw-text-main);
}

.csite-card-footer-muted {
  font-size: 0.62rem;
  color: var(--cw-text-subtle);
  text-align: center;
  padding-top: 2px;
}

.csite-cta-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 2px;
}

.csite-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==============================================================================
   VIEW 2: DETTAGLIO CANTIERE PIAZZALE KENNEDY (OPERATIVE CONSOLE)
   ============================================================================== */
.cdetail-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--cw-border);
  padding-bottom: 6px;
}

.cdetail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--cw-text-muted);
  margin-bottom: 2px;
}

.cdetail-back-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.cdetail-back-btn:hover {
  text-decoration: underline;
}

.cdetail-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cw-text-main);
  margin: 0;
}

.cdetail-sub {
  font-size: 0.68rem;
  color: var(--cw-text-muted);
  margin: 1px 0 0;
}

.cdetail-time-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.csegmented-toggle {
  display: inline-flex;
  background: var(--cw-input-bg);
  border: 1px solid var(--cw-border);
  border-radius: 6px;
  padding: 2px;
}

.cseg-btn {
  background: none;
  border: none;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cw-text-muted);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cseg-btn.active {
  background: var(--primary);
  color: #fff;
}

.cmodels-pills {
  display: flex;
  gap: 4px;
}

.cmodel-pill {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--cw-border);
  color: var(--cw-text-subtle);
}

.cmodel-pill.active {
  border-color: var(--primary);
  color: var(--cw-text-main);
  background: rgba(249, 115, 22, 0.08);
}

.cdetail-ai-alert-box {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ai-box-icon {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-box-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ai-box-text {
  font-size: 0.72rem;
  color: var(--cw-text-main);
  line-height: 1.35;
  margin: 0;
}

.cdetail-three-cols {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .cdetail-three-cols {
    grid-template-columns: 1fr;
  }
}

.cdetail-col {
  background: var(--cw-card-bg);
  border: 1px solid var(--cw-border);
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--cw-border);
}

.col-head h4 {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cw-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.col-subtag {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--cw-text-subtle);
  text-transform: uppercase;
}

.ckpi-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  max-height: 220px;
}

.ckpi-card {
  background: var(--cw-input-bg);
  border: 1px solid var(--cw-border);
  border-radius: 6px;
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ckpi-card.critical {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.ckpi-card.warning {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(234, 179, 8, 0.08);
}

.ckpi-card.regular {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.ckpi-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ckpi-name {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cw-text-subtle);
  text-transform: uppercase;
}

.ckpi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.ckpi-dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  animation: pulse 1.5s infinite;
}

.ckpi-dot.yellow {
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}

.ckpi-dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.ckpi-status {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

/* Status colors in White Mode (High-contrast deep tones) */
.ckpi-card.critical .ckpi-status,
.ckpi-status.text-danger {
  color: #dc2626 !important;
}

.ckpi-card.warning .ckpi-status,
.ckpi-status.text-warning {
  color: #b45309 !important;
  /* Rich amber for White Mode */
}

.ckpi-card.regular .ckpi-status,
.ckpi-status.text-success {
  color: #15803d !important;
  /* Deep emerald green for White Mode */
}

/* Status colors in Dark Mode (High-contrast bright tones) */
.saas-console-window.console-dark-mode .ckpi-card.critical .ckpi-status,
.saas-console-window.console-dark-mode .ckpi-status.text-danger {
  color: #f87171 !important;
}

.saas-console-window.console-dark-mode .ckpi-card.warning .ckpi-status,
.saas-console-window.console-dark-mode .ckpi-status.text-warning {
  color: #facc15 !important;
}

.saas-console-window.console-dark-mode .ckpi-card.regular .ckpi-status,
.saas-console-window.console-dark-mode .ckpi-status.text-success {
  color: #4ade80 !important;
}

/* Generic Console Status Utilities */
.text-danger {
  color: #dc2626 !important;
}

.text-warning {
  color: #b45309 !important;
}

.text-success {
  color: #15803d !important;
}

.font-bold {
  font-weight: 700 !important;
}

.saas-console-window.console-dark-mode .text-danger {
  color: #f87171 !important;
}

.saas-console-window.console-dark-mode .text-warning {
  color: #facc15 !important;
}

.saas-console-window.console-dark-mode .text-success {
  color: #4ade80 !important;
}

.ckpi-desc {
  font-size: 0.6rem;
  color: var(--cw-text-muted);
  line-height: 1.2;
}

/* Chart Column */
.chart-canvas-wrapper {
  flex: 1;
  min-height: 165px;
  width: 100%;
  position: relative;
}

.chart-legend-metrics {
  display: flex;
  justify-content: space-between;
  background: var(--cw-input-bg);
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 6px;
}

.cl-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.cl-k {
  font-size: 0.55rem;
  color: var(--cw-text-subtle);
}

.cl-v {
  font-size: 0.68rem;
  font-weight: 800;
}

.cl-v.ok {
  color: #16a34a;
}

.cl-v.warn {
  color: #ca8a04;
}

.cl-v.alert {
  color: #dc2626;
}

/* WhatsApp Column */
.wa-phone-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.wa-phone-frame {
  width: 265px;
  max-width: 100%;
  height: 335px;
  background: #0c0e14;
  border: 2px solid #2d303e;
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow: hidden;
}

.wa-phone-header {
  background: #1f2c34;
  border-radius: 12px 12px 0 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 38px;
  box-sizing: border-box;
}

.wa-phone-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-phone-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #e9edef;
  line-height: 1;
  letter-spacing: -0.01em;
}

.wa-phone-body {
  background: #0b141a;
  padding: 10px 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.wa-phone-body::-webkit-scrollbar {
  width: 3px;
}

.wa-phone-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.wa-bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 8px 8px 2px 8px;
  padding: 8px 10px;
  font-size: 0.64rem;
  line-height: 1.34;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  word-break: break-word;
}

.wa-bubble-head {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fca5a5;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}

.wa-bubble-meta {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: 3px;
}

.wa-lang-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  background: #1f2c34;
  border-radius: 0 0 12px 12px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.cwa-lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}

.cwa-lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.cwa-lang-btn.active {
  background: #25d366;
  color: #000;
  font-weight: 800;
  border-color: #25d366;
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.35);
}

/* ==============================================================================
   VIEW 3: REGISTRO AUDIT LOG D.LGS 81/08 (SCATOLA NERA)
   ============================================================================== */
.caudit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cw-border);
}

.caudit-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cw-text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.caudit-desc {
  font-size: 0.68rem;
  color: var(--cw-text-muted);
  margin: 1px 0 0;
}

.caudit-actions {
  display: flex;
  gap: 6px;
}

.caudit-btn {
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.caudit-btn.pdf {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.caudit-btn.pdf:hover {
  background: #ef4444;
  color: #fff;
}

.caudit-btn.wa {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid #25d366;
  color: #25d366;
}

.caudit-btn.wa:hover {
  background: #25d366;
  color: #000;
}

.caudit-table-wrapper {
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cw-card-bg);
}

.caudit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: left;
}

.caudit-table th {
  padding: 7px 10px;
  background: var(--cw-input-bg);
  color: var(--cw-text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--cw-border);
}

.caudit-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--cw-border);
  color: var(--cw-text-main);
}

.chan-tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.chan-tag.wa {
  background: rgba(37, 211, 102, 0.15);
  color: #16a34a;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.chan-tag.sms {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.65rem;
  white-space: nowrap;
}

.status-tag.delivered {
  color: #16a34a;
}

.status-tag.failed {
  color: #dc2626;
}

.console-window.console-dark-mode .status-tag.delivered {
  color: #4ade80;
}

.console-window.console-dark-mode .status-tag.failed {
  color: #f87171;
}

.console-window.console-dark-mode .chan-tag.wa {
  color: #25d366;
}

.console-window.console-dark-mode .chan-tag.sms {
  color: #c084fc;
}

.caudit-legal-notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(22, 163, 74, 0.08);
  border-left: 3px solid #16a34a;
  border-radius: 0 6px 6px 0;
  padding: 8px 10px;
  margin-top: 4px;
}

.notice-icon {
  color: #16a34a;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-text {
  font-size: 0.68rem;
  color: var(--cw-text-main);
  line-height: 1.35;
}

/* ==============================================================================
   APPLE-STYLE SCROLL-PINNED CINEMATIC STAGE (Opzione A)
   ============================================================================== */
.apple-scroll-track {
  position: relative;
  height: 320vh;
  margin: 0;
  padding: 0;
}

.apple-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background:
    radial-gradient(ellipse 85% 70% at 50% 50%, rgba(249, 115, 22, 0.22) 0%, rgba(234, 88, 12, 0.08) 48%, transparent 75%),
    radial-gradient(ellipse 90% 45% at 50% 10%, rgba(251, 146, 60, 0.16) 0%, transparent 65%),
    radial-gradient(circle at 50% 95%, rgba(249, 115, 22, 0.10) 0%, transparent 50%),
    #07080c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
  padding-top: 6px;
  box-sizing: border-box;
}

.stage-container-widescreen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 24px 8px;
  box-sizing: border-box;
  justify-content: flex-start;
  overflow: hidden;
}

.stage-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  z-index: 10;
}

.stage-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 4px;
}

.stage-step-pill {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-step-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.stage-step-pill.active {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.stage-step-pill .step-num {
  font-size: 0.72rem;
  opacity: 0.85;
}

.stage-system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
}

/* Widescreen Compact Narrative Header */
.stage-act-header-banner {
  position: relative;
  width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 4px 0 6px;
  flex-shrink: 0;
  z-index: 10;
}

.stage-act-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.stage-act-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.act-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

.act-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 2px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.act-title-compact {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 1px 0 0;
  line-height: 1.15;
}

.act-desc-compact {
  max-width: 580px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  text-align: right;
}

.act-desc-compact strong {
  color: #fff;
}

/* Responsive adjustments for Stage and Console */
@media (max-height: 820px) {
  .saas-console-window {
    height: 520px;
  }

  .console-map-wrapper {
    height: 180px;
  }

  .chart-canvas-wrapper {
    min-height: 140px;
  }

  .wa-phone-body {
    min-height: 110px;
  }

  .ckpi-list {
    max-height: 180px;
  }
}

@media (max-height: 680px) {
  .saas-console-window {
    height: 460px;
  }

  .console-map-wrapper {
    height: 150px;
  }

  .chart-canvas-wrapper {
    min-height: 120px;
  }
}

/* Stage Bottom Bar */
.stage-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  margin-top: auto;
}

.stage-progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.stage-progress-fill {
  height: 100%;
  background: var(--primary);
  width: 25%;
  transition: width 0.2s ease;
}

.stage-scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.stage-scroll-hint .scroll-arrow {
  animation: bounce 1.8s infinite;
  color: var(--primary);
  font-weight: 800;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

@media (max-width: 960px) {
  .stage-arena {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: auto;
  }

  .stage-narrative-col {
    min-height: 180px;
  }

  .stage-act-header-banner {
    min-height: auto;
    margin-bottom: 16px;
  }

  .stage-act-card {
    position: static;
    transform: none;
    display: none;
  }

  .stage-act-card.active {
    display: block;
    transform: none;
  }

  .act-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .act-desc-compact {
    text-align: left;
    max-width: 100%;
  }

  .stage-canvas-widescreen {
    min-height: auto;
  }


  .dash-kpi-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Metrics & Trust Bar */
.trust-metrics-section {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Problem vs Solution Comparison Section */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 25px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

.comparison-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
}

.comparison-card.old-way {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.03);
}

.comparison-card.new-way {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.05);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.1);
}

.comparison-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.comparison-list li strong {
  color: #fff;
}

.icon-x {
  color: var(--danger);
  font-weight: bold;
}

.icon-check {
  color: var(--accent-green);
  font-weight: bold;
}

/* Bento Grid Features */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(var(--glass-blur));
  transition: all 0.3s ease;
}

.bento-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-12 {
  grid-column: span 12;
}

@media (max-width: 900px) {

  .bento-col-8,
  .bento-col-4,
  .bento-col-6 {
    grid-column: span 12;
  }
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ITEM 3: AUDIT WIZARD STYLING */
.audit-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(18, 18, 21, 0.9) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
}

.audit-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 32px;
  overflow: hidden;
}

.audit-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  transition: width 0.4s ease;
}

.audit-step-badge {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.audit-question {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 24px;
}

.audit-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audit-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.audit-opt-btn:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: var(--primary);
  transform: translateX(4px);
}

.audit-opt-btn .opt-icon {
  font-size: 1.4rem;
}

.audit-risk-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

/* ==============================================================================
   05. L'IMPATTO ECONOMICO & ROI DEL CANTIERE
   ============================================================================== */
.roi-section-atmosphere {
  position: relative;
  overflow: hidden;
}

.roi-section-atmosphere::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 380px;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249, 115, 22, 0.12), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* 4 Trust Metrics Bar */
.roi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.roi-metric-card {
  background: rgba(18, 20, 29, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 142px;
  gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.roi-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(249, 115, 22, 0.15);
}

.rmc-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.rmc-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rmc-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Interactive ROI Cockpit (2 Columns) */
.roi-cockpit {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

/* Colonna Sinistra: Configurator */
.roi-controls-card {
  background: rgba(14, 18, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roi-card-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.roi-card-header h4 i {
  color: var(--primary);
}

.roi-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Presets Bar */
.roi-presets-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.roi-preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.roi-preset-btn i {
  font-size: 1rem;
  color: var(--text-subtle);
  transition: color 0.2s ease;
}

.roi-preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.roi-preset-btn:hover i {
  color: var(--primary);
}

.roi-preset-btn.active {
  background: rgba(249, 115, 22, 0.14);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px -2px rgba(249, 115, 22, 0.3);
}

.roi-preset-btn.active i {
  color: var(--primary);
}

/* Enhanced Sliders */
.slider-group-enhanced {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 13px 16px;
}

.sge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sge-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sge-title i {
  color: var(--primary);
  font-size: 0.95rem;
}

.sge-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono, monospace);
  background: rgba(249, 115, 22, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.roi-slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
  -webkit-appearance: none;
  appearance: none;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  cursor: grab;
  transition: transform 0.15s ease, background 0.15s ease;
}

.roi-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  background: var(--primary-hover);
}

.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
  cursor: grab;
}

.sge-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-family: var(--font-mono, monospace);
  padding: 0 2px;
}

.roi-footnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.45;
  margin-top: auto;
}

.roi-footnote i {
  color: var(--accent-blue);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Colonna Destra: Breakdown & Grand Total */
.roi-breakdown-card {
  background: rgba(14, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: flex-start;
}

.roi-breakdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roi-breakdown-head h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roi-breakdown-head h4 i {
  color: var(--accent-green);
}

.roi-period-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Items List */
.roi-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roi-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.roi-item-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.roi-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.roi-item-icon.blue {
  background: rgba(10, 132, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(10, 132, 255, 0.25);
}

.roi-item-icon.orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.roi-item-icon.green {
  background: rgba(48, 209, 88, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(48, 209, 88, 0.25);
}

.roi-item-info {
  flex: 1;
  min-width: 0;
}

.roi-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.roi-source-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.roi-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roi-item-amount {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

/* Monumental Total Box */
.roi-total-block {
  background: linear-gradient(145deg, rgba(16, 24, 38, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1.5px solid rgba(48, 209, 88, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 35px -8px rgba(48, 209, 88, 0.15);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.roi-total-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(48, 209, 88, 0.7), transparent);
}

.roi-total-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(48, 209, 88, 0.9);
}

.roi-total-amount {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: #34d399;
  font-family: var(--font-mono, monospace);
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(52, 211, 153, 0.3);
  letter-spacing: -0.02em;
}

.roi-total-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.roi-badge-green {
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.roi-badge-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.roi-cta-btn {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 20px -4px rgba(249, 115, 22, 0.4);
}

/* Basi Contabili Ufficiali (Methodology Banner below Cockpit) */
.roi-methodology-banner {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
}

.rmb-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.25);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.rmb-content {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.rmb-content strong {
  color: #ffffff;
  font-weight: 700;
}

/* Legal Forensic Shield Banner */
.roi-legal-banner {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(18, 22, 34, 0.7) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}

.rlb-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.rlb-content h5 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.rlb-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .roi-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .roi-cockpit {
    grid-template-columns: 1fr;
  }
}

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

  .roi-presets-bar {
    grid-template-columns: 1fr;
  }

  .roi-controls-card,
  .roi-breakdown-card {
    padding: 20px 16px;
  }

  .roi-item-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .roi-item-amount {
    align-self: flex-end;
  }

  .roi-methodology-banner {
    flex-direction: column;
    padding: 16px 14px;
    gap: 12px;
  }

  .roi-legal-banner {
    flex-direction: column;
    padding: 18px 16px;
  }
}

/* Multi-Language Preview Component */
.lang-switcher-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.lang-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.lang-tab {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.sms-preview-box {
  background: rgba(18, 18, 21, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.sms-body {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.5;
}

/* How It Works Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(249, 115, 22, 0.25);
  position: absolute;
  top: 20px;
  right: 24px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.12) 0%, rgba(24, 24, 27, 0.8) 100%);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .pricing-card.featured {
    transform: scale(1);
  }
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.pricing-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  margin: 16px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-price-custom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 16px 0 8px;
  min-height: 58px;
  justify-content: center;
}

.pricing-price-custom .custom-val {
  font-size: 1.85rem;
  font-weight: 900;
  white-space: nowrap;
  color: #fff;
  line-height: 1.2;
}

.pricing-price-custom .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-price span.period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features li.check {
  color: #fff;
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

/* Final CTA Section & Form Modal */
.cta-banner {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(10, 132, 255, 0.1) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Lead Form Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-subtle);
  line-height: 1.6;
}

/* Sticky Mobile CTA Bar */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 18, 21, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-highlight);
  padding: 12px 20px;
  display: none;
  z-index: 99;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==============================================================================
   NUOVE SEZIONI: MANIFESTO DELLA MISSIONE & CHI SIAMO (FOUNDER TEAM)
   ============================================================================== */

/* Section Tag & Headers */
.section-tag-emerald {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-tag-blue {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* ==============================================================================
   03. MANIFESTO SATELLITE SCROLLYTELLING STAGE (ARCGIS WORLD IMAGERY)
   ============================================================================== */
.manifesto-scroll-track {
  position: relative;
  height: 300vh;
  margin: 0;
  padding: 0;
}

.manifesto-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #07080c;
  z-index: 15;
}

/* Satellite Map Background */
.manifesto-sat-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Leaflet Attribution subtle styling */
.manifesto-sat-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6) !important;
  color: #71717a !important;
  font-size: 9px !important;
  margin: 0 8px 8px 0 !important;
  border-radius: 4px;
}

.manifesto-sat-map .leaflet-control-attribution a {
  color: #a1a1aa !important;
}

/* Cinematic Dark Vignette & Atmospheric Overlay */
.manifesto-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(7, 8, 12, 0.45) 0%, rgba(7, 8, 12, 0.78) 65%, rgba(7, 8, 12, 0.96) 100%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.25) 20%, rgba(7, 8, 12, 0.25) 80%, rgba(7, 8, 12, 0.98) 100%);
}

/* Telemetry Top HUD Bar */
.manifesto-hud-bar {
  position: absolute;
  top: 76px;
  left: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 12px;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 15, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 8px #30d158;
  animation: pulse 1.5s infinite;
}

.hud-coords {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: rgba(13, 15, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Central Cinematic Story Container */
.manifesto-content-container {
  position: relative;
  z-index: 5;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  box-sizing: border-box;
  pointer-events: none;
}

.manifesto-scene {
  position: absolute;
  width: 100%;
  max-width: 960px;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: center;
}

.manifesto-scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Scene 1: Territorial Origin */
.manifesto-scene-inner {
  background: rgba(13, 15, 23, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(249, 115, 22, 0.08);
  max-width: 820px;
  margin: 0 auto;
}

.manifesto-scene-title {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 18px;
}

.manifesto-scene-desc {
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 700px;
  margin: 0 auto 24px;
}

.manifesto-scroll-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
}

.prompt-arrow {
  animation: bounce 2s infinite;
  font-size: 0.9rem;
}

/* Scene 2: Live Quote Card from Ing. Mariscotti */
.manifesto-quote-card {
  background: rgba(13, 15, 23, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 36px 42px;
  box-shadow: 0 30px 90px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(249, 115, 22, 0.2);
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.quote-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.badge-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 1.5s infinite;
}

.quote-card-text {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 24px;
  font-weight: 400;
}

.quote-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-author-info strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
}

.quote-author-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quote-site-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

/* Scene 3: The 3 Foundational Pillars */
.manifesto-pillars-wrapper {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.manifesto-pillars-header {
  text-align: center;
  margin-bottom: 22px;
}

.manifesto-pillars-title {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.manifesto-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}

.manifesto-pillar-card {
  background: rgba(13, 15, 23, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.manifesto-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pillar-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.35);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.pillar-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pillar-tag.orange {
  color: var(--primary);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.pillar-tag.green {
  color: #30d158;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
}

.pillar-tag.blue {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.manifesto-pillar-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.manifesto-pillar-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Stepper Bottom Controls */
.manifesto-stepper {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 15, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.m-step {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-step:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.m-step.active {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.m-step-num {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Custom Leaflet Satellite Beacon Pin */
.sat-map-beacon {
  position: relative;
  width: 24px;
  height: 24px;
}

.beacon-core {
  width: 14px;
  height: 14px;
  background: #f97316;
  border-radius: 50%;
  position: absolute;
  top: 5px;
  left: 5px;
  box-shadow: 0 0 14px #f97316, 0 0 28px rgba(249, 115, 22, 0.8);
  border: 2px solid #fff;
  z-index: 2;
}

.beacon-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #f97316;
  animation: beaconPulse 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.beacon-ring.ring-2 {
  animation-delay: 0.8s;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.beacon-label {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(13, 15, 23, 0.92);
  border: 1px solid rgba(249, 115, 22, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.beacon-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.beacon-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f3f4f6;
}

/* Responsive Overrides for Manifesto Stage */
@media (max-width: 960px) {
  .manifesto-hud-bar {
    top: 10px;
    left: 12px;
    right: 12px;
  }

  .hud-coords {
    display: none;
  }

  .manifesto-scene-inner {
    padding: 28px 20px;
  }

  .manifesto-quote-card {
    padding: 24px 20px;
  }

  .manifesto-pillars-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
  }

  .manifesto-stepper {
    bottom: 12px;
  }

  .m-step-name {
    display: none;
  }

  .m-step {
    padding: 6px 12px;
  }
}

/* Team Section: Triangolo delle Competenze */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

.team-card {
  background: linear-gradient(180deg, rgba(28, 28, 33, 0.75) 0%, rgba(18, 18, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 16px 40px -10px rgba(249, 115, 22, 0.25);
}

.team-avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar-img {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
}

.team-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  height: 28px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.team-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.team-academic {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-align: center;
  margin-bottom: 16px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  flex-shrink: 0;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  min-height: 140px;
  display: flex;
  align-items: flex-start;
}

.team-quote {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--primary);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  font-style: italic;
  color: #e5e7eb;
  margin-bottom: 18px;
  line-height: 1.5;
  min-height: 85px;
  display: flex;
  align-items: center;
}

.team-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 68px;
  align-content: flex-start;
}

.team-skill-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* Cosa Facciamo: 6 Card Grid */
.six-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .six-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--bg-card-hover);
}

.pillar-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  min-height: 54px;
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.pillar-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
  flex-grow: 1;
}

.pillar-metric-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Institutional Proof Banner (Ancorato in fondo alla schermata Hero) */
.authority-bar {
  background: rgba(13, 15, 23, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px 0;
  margin: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.authority-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.authority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.authority-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* ==============================================================================
   SPECIMEN TECNICO: SCATOLA NERA DIGITALE (ART. 2712 C.C.)
   ============================================================================== */
.legal-specimen-wrapper {
  margin-top: 40px;
  background: #0d0f17;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

.legal-specimen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-header-left h3 {
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-header-left p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-stamp {
  border: 2px dashed rgba(249, 115, 22, 0.6);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  text-align: right;
  background: rgba(249, 115, 22, 0.05);
}

.legal-stamp .stamp-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.legal-stamp .stamp-sub {
  font-size: 0.7rem;
  color: var(--text-subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.legal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .legal-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.legal-meta-item .meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-meta-item .meta-val {
  font-size: 0.9rem;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 600;
}

.legal-telemetry-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 0.88rem;
}

.legal-telemetry-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-telemetry-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.legal-prescription-box {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid var(--danger);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.legal-prescription-box h4 {
  font-size: 0.95rem;
  color: #fca5a5;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-prescription-box p {
  font-size: 0.88rem;
  color: #f3f4f6;
  line-height: 1.5;
}

.legal-footer-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-subtle);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-footer-notice strong {
  color: var(--text-muted);
}

/* ==============================================================================
   02. IL PROBLEMA: SECTION INTRO & CONTECH SCROLL-DRIVEN STAGE
   ============================================================================== */

.section-intro-problem {
  padding-top: 55px;
  padding-bottom: 35px;
  /* Gradiente teatrale continuo IDENTICO all'Hero: bagliore ambra vivo centrale + riflesso freddo laterale */
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, rgba(249, 115, 22, 0.14) 0%, rgba(249, 115, 22, 0.02) 55%, transparent 75%),
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 15% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 50%),
    #06070a;
  text-align: center;
  position: relative;
  z-index: 5;
}

.section-intro-problem .section-header {
  max-width: 1100px;
  margin: 0 auto;
}

.section-intro-problem .section-header h2 {
  font-size: clamp(1.75rem, 2.45vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-intro-problem .section-header h2 .title-line {
  display: block;
}

.section-intro-problem .section-header p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.section-tag-red {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* Live Operating System Intro (Sezione 04 Header) */
.section-intro-live-os,
#esperienza-prodotto-intro {
  padding-top: 80px;
  padding-bottom: 50px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 15%, rgba(249, 115, 22, 0.18) 0%, rgba(249, 115, 22, 0.03) 55%, transparent 75%),
    #06070a;
  text-align: center;
  position: relative;
  z-index: 5;
}

.section-intro-live-os .section-header h2,
#esperienza-prodotto-intro .section-header h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.035em !important;
  color: #ffffff;
  margin: 0 auto 22px;
  max-width: 980px;
}

.section-intro-live-os .section-header h2 .title-line,
#esperienza-prodotto-intro .section-header h2 .title-line {
  display: block;
}

.section-intro-live-os .section-header p,
#esperienza-prodotto-intro .section-header p {
  max-width: 840px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.badge-beacon-red,
.section-tag-live-os,
.section-tag-orange {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.18);
  width: auto;
  height: auto;
}

.badge-beacon-red::before,
.section-tag-live-os::before,
.section-tag-orange::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 10px #f97316;
  animation: pulse-beacon 2s infinite ease-in-out;
  flex-shrink: 0;
}

.section-intro-manifesto {
  padding-top: 90px;
  padding-bottom: 50px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 10%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 15% 25%, rgba(249, 115, 22, 0.04) 0%, transparent 50%),
    #06070a;
  text-align: center;
  position: relative;
  z-index: 5;
}

.risk-scroll-track {
  position: relative;
  height: 450vh;
  margin: 0;
  padding: 0;
}

.risk-sticky-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #06070a;
  z-index: 12;
}

/* Dynamic Multi-Act Photographic Background Layers */
.risk-bg-layers-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.risk-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.risk-bg-layer.active {
  opacity: 1;
  transform: scale(1.0);
}

#risk-bg-0 {
  filter: contrast(1.12) brightness(0.75);
}

#risk-bg-1 {
  filter: contrast(1.22) brightness(0.9);
}

#risk-bg-2 {
  filter: contrast(1.15) brightness(0.75);
}

#risk-bg-3 {
  filter: contrast(1.2) brightness(0.75);
}

#risk-bg-4 {
  filter: contrast(1.12) brightness(0.6);
}

/* Real-time 60fps Kinetic Diagonal Rain Canvas */
.risk-rain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Cinematic Atmospheric Vignette */
.risk-stage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(6, 7, 10, 0.2) 0%, rgba(6, 7, 10, 0.72) 65%, rgba(6, 7, 10, 0.98) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.95) 0%, rgba(6, 7, 10, 0.1) 20%, rgba(6, 7, 10, 0.2) 80%, rgba(6, 7, 10, 0.98) 100%);
}

/* Vertical Steps Tracker */
.risk-steps-tracker {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .risk-steps-tracker {
    display: none;
  }
}

.risk-step-dot {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(13, 15, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
  transition: all 0.3s ease;
  cursor: pointer;
}

.risk-step-dot.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

/* Telemetry Top HUD Bar (Abbassata per lasciare spazio alla navbar fissa da 60px) */
.risk-hud-bar {
  position: absolute;
  top: 80px;
  left: 24px;
  right: 24px;
  z-index: 15;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 12px;
}

/* Central Cinematic Story Container */
.risk-content-container {
  position: relative;
  z-index: 10;
  height: 100%;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  box-sizing: border-box;
  pointer-events: none;
}

.risk-scene {
  position: absolute;
  width: 100%;
  max-width: 860px;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  text-align: center;
}

.risk-scene.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.risk-scene-inner {
  background: rgba(13, 15, 23, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.95);
  margin: 0 auto;
}

.risk-scene-inner.alert-frame {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(239, 68, 68, 0.15);
}

.risk-scene-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.risk-scene-badge svg {
  flex-shrink: 0;
}

.risk-scene-badge.phone-badge {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.risk-scene-badge.alert-badge {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  animation: pulse 1.8s infinite;
}

.risk-scene-badge.orange-badge {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.risk-scene-badge.red-badge {
  color: #f87171;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.risk-scene-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.risk-highlight-amber {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.risk-highlight-red {
  color: #f87171;
  text-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
}

.risk-highlight-orange {
  color: #fb923c;
}

.risk-telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.risk-telemetry-pill.safe {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.risk-telemetry-pill.danger {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pill-dot.green {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.pill-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse 1.2s infinite;
}

.risk-scene-caption {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Scena 3: Duo Grid (Getti & Scavi) */
.risk-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  text-align: left;
}

@media (max-width: 768px) {
  .risk-duo-grid {
    grid-template-columns: 1fr;
  }
}

.risk-duo-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.risk-duo-card .duo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.risk-duo-card strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.risk-duo-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Scena 4: Consequences Grid */
.risk-consequences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
  text-align: left;
}

@media (max-width: 768px) {
  .risk-consequences-grid {
    grid-template-columns: 1fr;
  }
}

.risk-consequence-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.risk-consequence-card.cost {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(13, 15, 23, 0.8) 100%);
}

.risk-consequence-card.legal {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(13, 15, 23, 0.8) 100%);
}

.consequence-icon-big {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.risk-consequence-card.cost .consequence-icon-big {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

.risk-consequence-card.legal .consequence-icon-big {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.consequence-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.risk-consequence-card.cost .consequence-num {
  color: #fb923c;
}

.risk-consequence-card.legal .consequence-num {
  color: #f87171;
}

.consequence-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.risk-consequence-card p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* ==============================================================================
   VERIFICATION BADGE & PROTOCOL SEAL (Form Success State)
   ============================================================================== */
.verification-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
}

.verification-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.35);
  box-shadow: 0 0 28px rgba(48, 209, 88, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.verification-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #30d158;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.verification-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.verification-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
  margin: 0 auto;
}

/* ==============================================================================
   METEOPRO SITE™ BRANDING & RESPONSIVE ENGINE (MOBILE & DESKTOP)
   ============================================================================== */

/* Brand Badge "Site" nel Logo */
.brand-site-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 4px;
}

/* Calibrazione spaziatura Navbar Desktop con Q&A e Contatti */
.nav-links {
  gap: 20px !important;
}

.nav-links a {
  font-size: 0.84rem !important;
}

/* Evita che la navbar fissa copra i titoli al click dei link */
#problema,
#missione,
#esperienza-prodotto,
#impatto-economico,
#metodo-attivazione,
#team,
#faq,
#contatti,
#candidatura-pilota {
  scroll-margin-top: 85px;
}

/* ------------------------------------------------------------------------------
   NAVBAR MOBILE: HAMBURGER & DRAWER TOUCH
   ------------------------------------------------------------------------------ */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .nav-hamburger {
    display: flex;
  }
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100%;
  height: 100dvh;
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  box-sizing: border-box;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-links {
  list-style: none;
  padding: 24px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #f1f5f9;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: #f97316;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.mobile-nav-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-cta-btn {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 0.95rem;
}

.mobile-nav-meta {
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 12px;
}

/* ------------------------------------------------------------------------------
   SAAS CONSOLE OS: MOBILE SEGMENTED CONTROL & RESPONSIVE
   ------------------------------------------------------------------------------ */
.console-mobile-tabs {
  display: none;
  background: var(--cw-topbar-bg);
  border-bottom: 1px solid var(--cw-border);
  padding: 6px;
  gap: 6px;
  flex-shrink: 0;
}

.c-mobile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--cw-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.c-mobile-tab.active {
  background: var(--cw-bg-surface);
  border-color: var(--cw-border-strong);
  color: #f97316;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .console-sidebar {
    display: none !important;
  }

  .console-mobile-tabs {
    display: flex;
  }

  .console-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .console-main-area {
    width: 100%;
    overflow-y: visible;
  }

  .saas-console-window {
    height: auto !important;
    max-height: none !important;
    border-radius: 10px;
  }

  .console-topbar {
    padding: 10px 14px;
  }

  .console-user-pill {
    display: none;
  }
}

.section-activation {
  padding: 80px 0;
}

.activation-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

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

.activation-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.activation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.activation-card.active-pulse {
  border-color: rgba(249, 115, 22, 0.35);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.act-step-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-subtle);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.act-step-badge.orange {
  color: #f97316;
}

.act-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #f1f5f9;
  margin-bottom: 20px;
}

.act-icon-box.orange {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: #f97316;
}

.activation-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0 0 10px;
  font-weight: 800;
}

.activation-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}

.act-time-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  align-self: flex-start;
}

.act-time-pill.orange {
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
}

/* Callout Banner Offerta Pilota */
.pilot-offer-banner {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(28, 24, 20, 0.85) 0%, rgba(13, 15, 23, 0.95) 100%);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(249, 115, 22, 0.12);
}

@media (max-width: 900px) {
  .pilot-offer-banner {
    flex-direction: column;
    padding: 28px 20px;
    gap: 24px;
  }
}

.pilot-offer-content {
  flex: 1;
}

.pilot-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: #f97316;
  margin-bottom: 12px;
}

.pilot-offer-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 18px;
  line-height: 1.25;
}

.pilot-offer-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.perk-check {
  color: #30d158;
  font-weight: 800;
}

.pilot-offer-action {
  flex-shrink: 0;
  max-width: 300px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pilot-offer-subtext {
  font-size: 0.74rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ------------------------------------------------------------------------------
   TEAM DIRECT CONTACT LINKS
   ------------------------------------------------------------------------------ */
.team-direct-contact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-msg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f97316;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.team-msg-link:hover {
  color: #fb923c;
  transform: translateX(3px);
}

/* ------------------------------------------------------------------------------
   BOX CONTATTO DIRETTO FOUNDER & TUTELA SEGRETO INDUSTRIALE
   ------------------------------------------------------------------------------ */
.direct-founder-contact-box {
  margin-top: 56px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dfc-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f97316;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.dfc-content h4 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0 0 8px;
}

.dfc-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.dfc-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp-direct {
  background: #25D366;
  color: #0c1c10;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-whatsapp-direct:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.dfc-phone-link {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dfc-phone-link:hover {
  color: #f97316;
}

.dfc-security-badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dfc-sec-icon {
  color: #30d158;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.dfc-sec-text {
  font-size: 0.8rem;
  color: var(--text-subtle);
  line-height: 1.5;
}

.dfc-sec-text strong {
  color: #e2e8f0;
}

/* ------------------------------------------------------------------------------
   STICKY MOBILE CTA BAR (FIX AND ATTIVAZIONE)
   ------------------------------------------------------------------------------ */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 15, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(249, 115, 22, 0.3);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 998;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.sticky-mobile-cta.visible {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
  }
}

.sticky-cta-info {
  display: flex;
  flex-direction: column;
}

.sticky-cta-info strong {
  font-size: 0.88rem;
  color: #ffffff;
}

.sticky-cta-info span {
  font-size: 0.72rem;
  color: #f97316;
  font-weight: 700;
}

/* ------------------------------------------------------------------------------
   FIX CRUCIALI SMARTPHONE: ANTI-ZOOM iOS & ALTEZZE 100dvh
   ------------------------------------------------------------------------------ */
@media (max-width: 768px) {

  /* Disattiva zoom automatico fastidioso su iPhone */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Modale con scroll sicuro su smartphone con tastiera aperta */
  .modal-overlay {
    padding: 16px;
    align-items: flex-start;
    overflow-y: auto;
  }

  .modal-card {
    max-height: 85dvh;
    overflow-y: auto;
    margin: auto 0;
    padding: 24px 18px;
  }

  /* Hero Typography adattiva */
  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.15;
  }

  /* Supporto 100dvh per evitare tagli barra Safari */
  .risk-sticky-stage,
  .manifesto-sticky-stage {
    height: 100dvh !important;
  }
}



.closing-hub-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
}

.closing-form-col,
.closing-founder-col {
  background: rgba(18, 20, 28, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.closing-founder-col {
  border-color: rgba(249, 115, 22, 0.25);
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08) 0%, rgba(18, 20, 28, 0.75) 60%);
}

.closing-col-header {
  margin-bottom: 22px;
}

.closing-col-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.closing-col-badge.badge-direct {
  color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
}

.closing-col-header h3 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.closing-col-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Profilo del Founder Diretto */
.founder-direct-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.founder-direct-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.founder-direct-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f97316;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.founder-direct-name {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
}

.founder-direct-role {
  display: block;
  font-size: 0.8rem;
  color: #f97316;
  font-weight: 600;
  margin-top: 2px;
}

.founder-direct-city {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-top: 4px;
}

.founder-direct-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dfc-call-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.dfc-call-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.dfc-sms-link {
  text-align: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
  transition: color 0.2s ease;
}

.dfc-sms-link:hover {
  color: #ffffff;
}

/* ------------------------------------------------------------------------------
   RESPONSIVE CLOSING HUB: MOBILE-FIRST ERGONOMICS
   ------------------------------------------------------------------------------ */
.form-row-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 992px) {
  .closing-hub-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* SU SMARTPHONE: Linea Diretta con Filippo Borgogni (WhatsApp) in CIMA! */
  .closing-founder-col {
    order: 1;
  }

  /* Il Form va subito sotto */
  .closing-form-col {
    order: 2;
  }
}

@media (max-width: 768px) {
  .form-row-responsive {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .closing-form-col,
  .closing-founder-col {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .closing-col-header h3 {
    font-size: 1.25rem;
  }

  .closing-col-header p {
    font-size: 0.84rem;
  }

  .form-group label {
    font-size: 0.82rem;
  }

  .form-group input,
  .form-group select {
    height: 48px;
    font-size: 16px !important;
    /* Anti-zoom iOS Safari */
    padding: 12px 14px;
  }

  .founder-direct-profile {
    padding: 12px;
    gap: 12px;
  }

  .founder-direct-avatar {
    width: 52px;
    height: 52px;
  }

  .founder-direct-name {
    font-size: 1rem;
  }

  .founder-direct-role {
    font-size: 0.76rem;
  }
}

/* ------------------------------------------------------------------------------
   FASE 2 MOBILE: SBLOCCO SCROLLYTELLING & FLUIDITÀ NATURALE (ZERO TRAPPOLE)
   ------------------------------------------------------------------------------ */
@media (max-width: 768px) {

  /* Disinnesco altezze mostruose e blocco sticky nel Rischio */
  .risk-scroll-track {
    height: auto !important;
    padding: 20px 0 40px !important;
  }

  .risk-sticky-stage {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* Nascondi la barra HUD microscopica che si sovrapponeva alla navbar */
  .risk-hud-bar,
  .risk-steps-tracker {
    display: none !important;
  }

  /* Le scene del Rischio scorrono fluide in verticale senza sovrapporsi */
  .risk-content-container {
    position: relative !important;
    height: auto !important;
    padding: 10px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    pointer-events: auto !important;
  }

  .risk-scene {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 0 !important;
  }

  .risk-scene-inner {
    padding: 24px 18px !important;
    border-radius: var(--radius-lg) !important;
  }

  .risk-scene-inner h3 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
  }

  .risk-scene-inner p {
    font-size: 0.88rem !important;
  }

  /* Disinnesco per lo Scrollytelling del Manifesto */
  .manifesto-scroll-track {
    height: auto !important;
    padding: 20px 0 40px !important;
  }

  .manifesto-sticky-stage {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .manifesto-hud-bar,
  .manifesto-steps-tracker {
    display: none !important;
  }

  .manifesto-content-container {
    position: relative !important;
    height: auto !important;
    padding: 10px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    pointer-events: auto !important;
  }

  .manifesto-scene {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .manifesto-scene-inner {
    padding: 24px 18px !important;
    border-radius: var(--radius-lg) !important;
  }
}

/* ------------------------------------------------------------------------------
   ESPERIENZA MOBILE D'ÉLITE: PRODOTTO LIVE & CARTA ROI (ZERO TAGLI, ZERO OVERFLOW)
   ------------------------------------------------------------------------------ */

/* Su Desktop nascondiamo le viste mobile */
@media (min-width: 769px) {

  .mobile-product-showcase,
  .mobile-roi-card {
    display: none !important;
  }
}

/* Su Smartphone attiviamo il layout puro e nascondiamo i blocchi complessi desktop */
@media (max-width: 768px) {

  /* SBLOCCO TOTALE CONTENITORE PRODOTTO (Zero tagli, altezza naturale) */
  .apple-scroll-track {
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .apple-sticky-stage {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 20px 0 50px !important;
    display: block !important;
  }

  .stage-container-widescreen {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* SPEGNIMENTO TOTALE DI TUTTI I RESIDUI DELLA VECCHIA CONSOLE DESKTOP */
  .saas-console-window,
  .desktop-product-console,
  .console-mobile-tabs,
  .console-body,
  .console-topbar,
  .console-sidebar,
  .console-main-area,
  .stage-nav-header,
  .stage-act-header-banner,
  .stage-bottom-bar,
  .map-floating-hud,
  .desktop-roi-only,
  .roi-metrics-grid,
  .roi-cockpit,
  .roi-legal-banner {
    display: none !important;
  }

  /* 1. SEZIONE PRODOTTO MOBILE (Perfettamente dentro i 390px, zero scroll orizzontale) */
  .mobile-product-showcase {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Header della card di certificato che andava a capo male */
  .mac-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .mobile-prod-card {
    background: rgba(18, 20, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  }

  .mpc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
  }

  .mpc-badge.orange {
    color: #f97316;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.3);
  }

  .mpc-badge.blue {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
  }

  .mpc-badge.green {
    color: #30d158;
    background: rgba(48, 209, 88, 0.12);
    border: 1px solid rgba(48, 209, 88, 0.3);
  }

  .mobile-prod-card h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 8px;
  }

  .mobile-prod-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
  }

  /* WhatsApp Bubble Mockup */
  .mobile-wa-bubble {
    background: #0d1418;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-left: 4px solid #25d366;
    border-radius: 12px;
    padding: 16px;
  }

  .wa-bubble-sender {
    font-size: 0.75rem;
    color: #25d366;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .wa-bubble-alert.red {
    font-size: 0.82rem;
    color: #f87171;
    font-weight: 800;
    background: rgba(239, 68, 68, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
  }

  .wa-bubble-text {
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.55;
  }

  .wa-bubble-time {
    font-size: 0.68rem;
    color: var(--text-subtle);
    text-align: right;
    margin-top: 8px;
  }

  /* Traffic Row */
  .mobile-traffic-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .traffic-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    border-radius: 10px;
  }

  .tr-status {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 6px;
    min-width: 55px;
    text-align: center;
  }

  .tr-status.red {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
  }

  .tr-status.yellow {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid #f59e0b;
  }

  .tr-status.green {
    background: rgba(48, 209, 88, 0.2);
    color: #4ade80;
    border: 1px solid #22c55e;
  }

  .tr-info strong {
    display: block;
    font-size: 0.92rem;
    color: #fff;
  }

  .tr-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  /* Audit Cert */
  .mobile-audit-cert {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(48, 209, 88, 0.25);
    border-radius: 12px;
    padding: 14px;
  }

  .mac-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
  }

  .mac-seal {
    color: #4ade80;
    font-weight: 700;
  }

  .mac-tag {
    color: var(--text-subtle);
  }

  .mac-body {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.6;
  }

  .mac-body strong {
    color: #fff;
  }

  /* 2. CARTA ROI MOBILE */
  .mobile-roi-card {
    display: flex !important;
    flex-direction: column !important;
    background: rgba(18, 20, 28, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
  }

  .mrc-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    color: #f97316;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 6px;
  }

  .mrc-header h3 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 6px;
  }

  .mrc-header p {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 18px;
  }

  .mrc-preset-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .mrc-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 4px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
  }

  .mrc-tab.active {
    background: rgba(249, 115, 22, 0.15);
    border-color: #f97316;
    color: #fff;
  }

  .mrc-hero-number-box {
    text-align: center;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.15) 0%, rgba(0, 0, 0, 0.4) 80%);
    border: 1px solid rgba(249, 115, 22, 0.25);
    padding: 20px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .mrc-val-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #f97316;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 4px;
  }

  .mrc-val-amount {
    font-size: clamp(2.2rem, 9vw, 2.8rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
  }

  .mrc-val-sub {
    font-size: 0.76rem;
    color: var(--text-subtle);
    display: block;
    margin-top: 6px;
  }

  .mrc-pillars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .mrc-pillar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.84rem;
    color: var(--text-muted);
  }

  .mrc-pillar-row strong {
    color: #fff;
  }

  .mrc-p-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
  }

  .mrc-p-icon.blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
  }

  .mrc-p-icon.orange {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
  }

  .mrc-p-icon.green {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
  }

  .mrc-footer-note {
    font-size: 0.72rem;
    color: var(--text-subtle);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
  }
}

/* ==============================================================================
   MEPTHOR REBRANDING: SPLASH SKYLINE, SFUMATURA ARMONICA & WORDMARK NAVBAR
   ============================================================================== */
.brand-logo {
  gap: 12px;
}

.brand-logo img.brand-mp-icon {
  height: 28px;
  width: auto;
}

.brand-logo img.brand-mepthor-wordmark {
  height: 16px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

footer .brand-logo img.brand-mepthor-wordmark {
  height: 19px;
}

/* Sezione Apertura Skyline */
.hero-skyline-splash {
  position: relative;
  width: 100%;
  height: 92vh;
  height: 92dvh;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #080c16;
  background-image: url('../assets/mepthor_wallpaper_4k_skyline.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Sfumatura verso il basso in armonia con il nero #000000 della sezione successiva */
.hero-skyline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(8, 12, 22, 0.20) 0%,
      rgba(8, 12, 22, 0.00) 40%,
      rgba(0, 0, 0, 0.55) 75%,
      #000000 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-skyline-center {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

/* Su desktop il wordmark è già nello sfondo 2560x1440 */
@media (min-width: 769px) {
  .hero-skyline-wordmark {
    display: none;
  }
}

/* Su smartphone usiamo lo sfondo verticale pulito + il wordmark nitido sopra */
@media (max-width: 768px) {
  .hero-skyline-splash {
    height: 86dvh;
    min-height: 480px;
    background-image: url('../assets/skyline_hero_mobile.webp');
    background-position: center bottom;
  }

  .hero-skyline-wordmark {
    display: block;
    width: min(82vw, 360px);
    height: auto;
    margin-top: -14vh;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.9));
  }
}

/* Freccina minima in basso */
.hero-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
}

.hero-scroll-cue:hover {
  color: #ffffff;
}

.scroll-cue-line {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.65));
}

.hero-scroll-cue i {
  animation: mepthor-cue-bounce 2s infinite ease-in-out;
}

@keyframes mepthor-cue-bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* Raccordo morbido del blocco "Minimizziamo i fermi cantiere..." subito sotto lo splash */
.hero.hero-value-followup {
  min-height: auto;
  padding: 56px 0 96px;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(249, 115, 22, 0.08) 0%, #000000 70%);
}

#proposta-valore {
  scroll-margin-top: 85px;
}