/* ==========================================================================
   GlassDog AI - Design System & Modern CSS
   Accessibilità Totale WCAG 2.2 AAA + Glassmorphism Premium
   ========================================================================== */

:root {
  /* Tavolozza Colori Principale */
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-card: rgba(18, 26, 43, 0.75);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(245, 158, 11, 0.35);

  /* Colori di Segnalazione e Sicurezza */
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --hazard-critical: #ef4444;
  --hazard-warning: #f59e0b;
  --hazard-info: #3b82f6;
  --safe-green: #10b981;

  /* Tipografia */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-highlight: #ffffff;
  --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Dimensioni e Spaziature */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-glass: 0 12px 40px 0 rgba(0, 0, 0, 0.55);
  --backdrop-blur: blur(16px);
  --focus-ring: 3px solid #f59e0b;
}

/* Modalità Alto Contrasto (Accessibilità estrema Ipovisione) */
body.high-contrast {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #000000;
  --bg-card-hover: #121212;
  --border-subtle: #ffffff;
  --border-glow: #ffff00;
  --accent-amber: #ffff00;
  --accent-amber-light: #ffffff;
  --hazard-critical: #ff2222;
  --hazard-warning: #ffff00;
  --safe-green: #00ff66;
  --text-main: #ffffff;
  --text-muted: #e5e7eb;
  --text-highlight: #ffffff;
  --focus-ring: 4px solid #ffff00;
  --shadow-glass: none;
  --backdrop-blur: none;
}

body.high-contrast * {
  border-color: #ffffff !important;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(59, 130, 246, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .hero-title, .section-title, .brand-name, .card-title, .plan-name {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Skip Link per Screen Reader */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-amber);
  color: #000000;
  padding: 12px 24px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 4px solid #ffffff;
}

/* Focus Universale Visibile */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

/* Barra di Accessibilità Superiore */
.accessibility-bar {
  background: rgba(13, 19, 34, 0.9);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.a11y-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.a11y-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.a11y-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-amber);
  color: #ffffff;
}

.a11y-btn.active {
  background: var(--accent-amber);
  color: #000000;
  border-color: var(--accent-amber-light);
}

/* Navigazione Principale */
.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
  fill: #070a12;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent-amber);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-amber);
}

/* Hero Section */
.hero-section {
  max-width: 1280px;
  margin: 20px auto 60px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pill-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-badge.red {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

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

/* Pulsanti Primari e Secondari */
.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070a12;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: var(--backdrop-blur);
  transition: all 0.2s ease;
}

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

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  border: 1px solid var(--border-subtle);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.02);
}

.hero-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(7, 10, 18, 0.95), transparent);
  padding: 24px 20px 16px;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Sezione Card e Griglie */
.section-wrapper {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

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

.section-tag {
  color: var(--accent-amber);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.25;
  word-break: break-word;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.6;
}

/* Griglia Funzionalità Guida */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-amber);
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Sezione Suite Applicativa Operativa (Live App) */
.interactive-suite {
  background: linear-gradient(180deg, rgba(13, 19, 34, 0.6) 0%, rgba(7, 10, 18, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 40px;
  box-shadow: var(--shadow-glass);
}

.suite-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: start;
}

.viewport-container {
  background: #000000;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.viewport-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.viewport-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.overlay-top-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #ffffff;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--safe-green);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 10px var(--safe-green);
}

.status-dot.pulse {
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.overlay-bottom-ticker {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.overlay-ticker-icon {
  color: var(--accent-amber);
  font-size: 1.25rem;
}

/* ==========================================================================
   Studio Console, Live Camera Viewport & HUD Telemetry
   ========================================================================== */
.studio-body {
  background-color: var(--bg-primary);
  font-family: var(--font-sans);
}

.camera-monitor-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.camera-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-glow);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.camera-feed-image, #live-camera {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px dashed rgba(245, 158, 11, 0.35);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(245, 158, 11, 0.25) 0deg, transparent 60deg);
  animation: radarRotate 3.5s linear infinite;
}

@keyframes radarRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hud-center-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--accent-amber);
  border-radius: 50%;
}

.clock-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.clock-12 { top: 12px; left: 50%; transform: translateX(-50%); }
.clock-3 { top: 50%; right: 12px; transform: translateY(-50%); }
.clock-6 { bottom: 65px; left: 50%; transform: translateX(-50%); }
.clock-9 { top: 50%; left: 12px; transform: translateY(-50%); }

.obstacle-box {
  position: absolute;
  border: 2px solid;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  transition: all 0.3s;
}

.box-bus {
  top: 25%;
  left: 38%;
  width: 140px;
  height: 100px;
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.box-hazard {
  top: 15%;
  left: 10%;
  width: 110px;
  height: 60px;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: hazardBlink 1.2s infinite;
}

@keyframes hazardBlink {
  0% { opacity: 0.6; }
  50% { opacity: 1; border-color: #ff0000; box-shadow: 0 0 15px #ef4444; }
  100% { opacity: 0.6; }
}

.box-friend {
  top: 35%;
  right: 15%;
  width: 120px;
  height: 90px;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.box-tag {
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
  margin: -10px 0 0 4px;
}

.speech-ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(4, 7, 14, 0.92);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-top: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 50px;
}

.ticker-icon {
  font-size: 1.4rem;
}

.ticker-text {
  flex: 1;
  color: #f1f5f9;
}

.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.telemetry-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.telemetry-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.btn-voice-command {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 2px solid #60a5fa;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.35);
}

.btn-voice-command:hover, .btn-voice-command:focus-visible {
  background: #3b82f6;
  transform: translateY(-1px);
  outline: 3px solid #ffffff;
}

.btn-voice-command.active {
  background: #ef4444 !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.7) !important;
}

/* Controlli Suite Live */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.control-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  color: #ffffff;
}

.preset-btn.active {
  background: var(--accent-amber);
  color: #000000;
  border-color: var(--accent-amber-light);
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-input {
  width: 100%;
  accent-color: var(--accent-amber);
  cursor: pointer;
}

.search-input-box {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.search-input:focus {
  border-color: var(--accent-amber);
}

/* Sezione Prezzi & Stripe Checkout */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--accent-amber);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.25);
  transform: scale(1.03);
}

.popular-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-amber);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-header {
  margin-bottom: 24px;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 44px;
}

.price-figure {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  margin: 16px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-check {
  color: var(--safe-green);
  font-weight: bold;
}

.pricing-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* HUD Live Display */
.hud-card {
  margin-top: 50px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.hud-image-wrap {
  position: relative;
  width: 100%;
}

.hud-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 60px 24px 30px;
  margin-top: 100px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 440px;
  font-size: 0.95rem;
}

.footer-column h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* Diario Interattivo Audio Styles */
.journal-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.journal-chat-box {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.timeline-card:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--accent-amber);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-amber);
  font-weight: 700;
}

/* Hardware Store & Affiliazione */
.hardware-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.hardware-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.hardware-card.highlight {
  border-color: #60a5fa;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
}

.hardware-img-placeholder {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  background: #000000;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.hardware-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.affiliate-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber-light);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.affiliate-badge.ref {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
  color: #93c5fd;
}

.hardware-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 12px;
}

.hardware-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
}

/* SDK Android Box */
.sdk-banner-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(13, 19, 34, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .suite-layout {
    grid-template-columns: 1fr;
  }
  .journal-layout {
    grid-template-columns: 1fr;
  }
  .sdk-banner-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    padding: 12px 16px;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 0;
  }
  .perugia-synergy-card > div {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .accessibility-bar {
    justify-content: center;
    padding: 8px 12px;
  }
  .navbar {
    padding: 10px 12px;
  }
  .nav-links {
    font-size: 0.9rem;
    gap: 8px 12px;
  }
  .section-wrapper {
    margin: 48px auto;
    padding: 0 16px;
  }
  .glass-card {
    padding: 20px 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Banner di Accessibilità Immediata Solo Audio (Inizio Pagina)
   ========================================================================== */
.audio-first-banner {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  border-bottom: 2px solid var(--accent-amber);
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 900;
  position: relative;
}

.audio-first-banner:focus-within {
  outline: 3px solid var(--accent-amber);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-badge {
  background: var(--accent-amber);
  color: #000000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-text {
  font-size: 0.95rem;
  color: #f1f5f9;
}

.banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-audio-launch {
  background: var(--accent-amber);
  color: #000000;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
}

.btn-audio-launch:hover, .btn-audio-launch:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
  outline: 3px solid #ffffff;
}

/* ==========================================================================
   Interfaccia Modalità Solo Audio Interattiva (Audio-Only Concierge)
   ========================================================================== */
.audio-only-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 7, 14, 0.97);
  backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.audio-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.audio-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.audio-badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--safe-green);
  border: 1px solid var(--safe-green);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn-audio-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-audio-close:hover, .btn-audio-close:focus-visible {
  background: #ef4444;
  color: #ffffff;
  outline: 3px solid #ffffff;
}

.audio-modal-body {
  width: 100%;
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 20px 0;
}

/* Pulsante e Avatar Audio Animato */
.agent-pulse-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-amber) 0%, #d97706 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45);
  transition: all 0.3s ease;
  position: relative;
}

.agent-pulse-avatar.pulse-active {
  animation: agentPulseAnim 1.6s infinite ease-in-out;
}

@keyframes agentPulseAnim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.9), 0 0 100px rgba(245, 158, 11, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
  }
}

.audio-modal-status-text {
  font-size: 1.35rem;
  line-height: 1.5;
  color: #ffffff;
  max-width: 780px;
  min-height: 70px;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Griglia Tattile delle Opzioni 1, 2, 3, 4 */
.audio-modal-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

@media (max-width: 680px) {
  .audio-modal-options-grid {
    grid-template-columns: 1fr;
  }
}

.audio-choice-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: #ffffff;
}

.audio-choice-card:hover, .audio-choice-card:focus-visible {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-amber);
  transform: translateY(-2px);
  outline: 3px solid var(--accent-amber);
}

.choice-num {
  width: 44px;
  height: 44px;
  background: var(--accent-amber);
  color: #000000;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-text {
  flex: 1;
}

.choice-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

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

/* Pulsante Microfono Parlato */
.btn-audio-mic {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 2px solid #60a5fa;
  border-radius: var(--radius-full);
  padding: 14px 32px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.4);
}

.btn-audio-mic:hover, .btn-audio-mic:focus-visible {
  background: #3b82f6;
  transform: scale(1.03);
  outline: 3px solid #ffffff;
}

.btn-audio-mic.listening {
  background: #ef4444 !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.7) !important;
  animation: pulseMic 1.2s infinite;
}

@keyframes pulseMic {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Trascrizione Testuale Live Accessibile */
.audio-modal-transcript-box {
  width: 100%;
  max-width: 900px;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.85rem;
  text-align: left;
  color: #cbd5e1;
}

.transcript-line {
  margin-bottom: 4px;
}

/* Footer Scorciatoie da Tastiera */
.audio-modal-footer {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.kbd-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 2px 7px;
  border-radius: 4px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Alto Contrasto Specifico per Modalità Solo Audio */
body.high-contrast .audio-only-modal {
  background: #000000;
}

body.high-contrast .audio-choice-card {
  border-color: #ffffff !important;
  background: #111111;
}

body.high-contrast .choice-num {
  background: #ffff00;
  color: #000000;
}

body.high-contrast .audio-choice-card:hover,
body.high-contrast .audio-choice-card:focus-visible {
  border-color: #ffff00 !important;
  outline: 4px solid #ffff00;
}

/* Benchmark Table Styling */
.benchmark-table {
  width: 100%;
  border-collapse: collapse;
}

.benchmark-table th,
.benchmark-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.benchmark-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.benchmark-table th:nth-child(2),
.benchmark-table td:nth-child(2) {
  border-left: 2px solid rgba(245, 158, 11, 0.35);
  border-right: 2px solid rgba(245, 158, 11, 0.35);
}

