/* ==========================================================================
   SICURISSIMO OS — ENTERPRISE SAAS/ERP & CONTROL TOWER DESIGN SYSTEM
   Theme: Deep Cybernetic Blue (#050B18 / #0A3678 / #2563EB), Crisp White (#FFFFFF)
   BRAND_BLUE_FINAL = APPROVAL_PENDING
   ========================================================================== */

:root {
  /* CYBERNETIC DEEP BLUE ELEVATIONS */
  --bg-dark: #040916;
  --bg-surface: #0A1428;
  --bg-card: #0D1C38;
  --bg-card-hover: #142850;
  --bg-card-active: #1C356A;
  --bg-glass: rgba(10, 20, 40, 0.94);
  
  /* BRAND COLORS — BLU POLITICO ISTITUZIONALE & BIANCO */
  --brand-blue: #0A3678;
  --brand-blue-deep: #05142E;
  --brand-blue-light: #1A56B4;
  --brand-blue-accent: #2563EB;
  --brand-cyan-glow: #60A5FA;
  --brand-blue-glow: rgba(10, 54, 120, 0.45);
  --brand-blue-glow-intense: rgba(37, 99, 235, 0.65);
  
  /* Compatibility mappings */
  --orange-primary: #38BDF8;
  --orange-light: #60A5FA;
  --orange-dark: #1D4ED8;
  --orange-glow: rgba(37, 99, 235, 0.35);
  --orange-glow-intense: rgba(56, 189, 248, 0.55);
  
  /* HIGH-CONTRAST TYPOGRAPHY (WCAG AAA) */
  --text-white: #FFFFFF;
  --text-light: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-dim: #94A3B8;
  --text-highlight: #93C5FD;
  
  /* BORDERS & TECH GRIDS */
  --border-subtle: rgba(59, 130, 246, 0.25);
  --border-hover: rgba(96, 165, 250, 0.6);
  --border-active: #38BDF8;
  --brand-blue-border: #1E4E9E;
  
  /* STATUS INDICATORS */
  --status-pass: #10B981;
  --status-pass-bg: rgba(16, 185, 129, 0.18);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.18);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.18);
  --status-info: #0EA5E9;

  /* TYPOGRAPHY SCALES — CALIBRI / CARLITO & PLUS JAKARTA SANS */
  --font-main: 'Calibri', 'Carlito', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Calibri', 'Carlito', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* ELEVATION SHADOWS */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 12px 35px -5px rgba(2, 6, 23, 0.8), 0 0 1px rgba(96, 165, 250, 0.35);
  --shadow-glow: 0 0 28px rgba(37, 99, 235, 0.45);
  --shadow-glow-pulse: 0 0 45px rgba(56, 189, 248, 0.7);
}

/* BASE RESETS & PWA MOBILE-FIRST ZERO-SCROLLBAR ENGINE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% -15%, #0F3B78 0%, rgba(10, 54, 120, 0.4) 35%, transparent 75%),
    radial-gradient(circle at 90% 40%, rgba(37, 99, 235, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--text-light);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

p, span, li, a, label, td, th {
  font-family: var(--font-main);
}

p {
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
}

button, input, select, textarea {
  font-family: var(--font-main);
}

/* MICRO-ANIMATIONS */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.7);
    opacity: 0.9;
  }
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.92); }
}

/* CANONICAL BRAND BADGE — SCRITTA BIANCA SU RETTANGOLO BLU POLITICO */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0F4C9C, #0A3678);
  color: #FFFFFF !important;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1.3px;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #2563EB;
  box-shadow: 0 4px 16px rgba(10, 54, 120, 0.5), inset 0 0 8px rgba(96, 165, 250, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  cursor: pointer;
}

.brand-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.65), inset 0 0 14px rgba(96, 165, 250, 0.35);
}

.brand-badge:active {
  transform: translateY(0);
}

.brand-badge .pill-81 {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* LAYOUT CONTAINER */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
  }
}

/* SIDEBAR NAVIGATION */
.sidebar {
  background: rgba(10, 20, 40, 0.96);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

.sidebar-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.tenant-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  transition: border-color 0.2s;
}

.tenant-pill:hover {
  border-color: var(--brand-blue-accent);
}

.tenant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-pass);
  box-shadow: 0 0 10px var(--status-pass);
  animation: liveBlink 2.5s infinite ease-in-out;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  min-height: 48px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-white);
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
}

.nav-link.active {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28), rgba(10, 54, 120, 0.12));
  border-left: 3px solid #38BDF8;
  border-color: rgba(56, 189, 248, 0.45);
  font-weight: 700;
}

.nav-link .badge-count {
  margin-left: auto;
  background: rgba(37, 99, 235, 0.25);
  color: #93C5FD;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* TOP BAR */
.main-wrapper {
  display: flex;
  flex-direction: column;
  background: transparent;
  min-width: 0;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 20, 40, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* CONTENT VIEW AREA */
.content-area {
  padding: 32px;
  flex-grow: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.view-panel {
  display: none;
}

.view-panel:first-child, .view-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-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;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(10, 54, 120, 0.35);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-title {
  color: #93C5FD;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--font-main);
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  text-shadow: none;
}

.kpi-subtext {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563EB, #0A3678);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid #38BDF8;
  box-shadow: 0 4px 16px rgba(10, 54, 120, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38BDF8, #1D4ED8);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.75), inset 0 0 12px rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(14, 28, 56, 0.7);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 20px;
  min-height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-1px);
}

/* 3D CANVAS CARD — CORTEX NEURALOG BRAIN */
.canvas-card {
  background: radial-gradient(circle at 50% 45%, #071530 0%, #030712 85%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-lg);
  position: relative;
  height: 620px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(56, 189, 248, 0.3);
}

.canvas-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  pointer-events: none;
  z-index: 10;
}

/* CORTEX CONTAINER */
.cortex-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 540px;
  box-shadow: var(--shadow-card);
}

.cortex-messages {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.msg-bubble {
  max-width: 82%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.msg-ai {
  background: rgba(14, 28, 56, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.4);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  color: #F8FAFC;
}

.msg-user {
  background: linear-gradient(135deg, #1E4E9E, #0A3678);
  border: 1px solid rgba(96, 165, 250, 0.4);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  color: #FFFFFF;
}

.cortex-citation {
  display: block;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(3, 7, 18, 0.65);
  border-left: 3px solid #38BDF8;
  font-size: 0.82rem;
  color: #CBD5E1;
  border-radius: 2px;
}

.cortex-input-bar {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  background: rgba(3, 7, 18, 0.5);
}

.cortex-input {
  flex-grow: 1;
  background: rgba(10, 20, 40, 0.8);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  padding: 12px 18px;
  min-height: 48px;
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.94rem;
  transition: border-color 0.2s;
}

.cortex-input:focus {
  border-color: #38BDF8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* DROPZONE */
.dropzone-box {
  border: 2px dashed rgba(59, 130, 246, 0.5);
  background: rgba(10, 54, 120, 0.1);
  padding: 44px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropzone-box:hover {
  background: rgba(10, 54, 120, 0.22);
  border-color: #38BDF8;
  transform: scale(1.005);
}

/* STATUS PILLS */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pill-pass {
  background: var(--status-pass-bg);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pill-warning {
  background: var(--status-warning-bg);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.pill-danger {
  background: var(--status-danger-bg);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pill-blue {
  background: rgba(37, 99, 235, 0.22);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.pill-orange {
  background: rgba(37, 99, 235, 0.22);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.45);
}

/* DATA TABLES */
.data-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: rgba(3, 7, 18, 0.55);
  padding: 15px 20px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #93C5FD;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.6px;
}

.data-table td {
  padding: 15px 20px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #F8FAFC;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(37, 99, 235, 0.08);
}

/* DEMO CALLOUT */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.16);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* TRUST CERTIFICATE BADGE */
.trust-seal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 32px;
  background: rgba(10, 20, 40, 0.7);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #E2E8F0;
}

.text-pass { color: #34D399 !important; }
.text-warning { color: #FBBF24 !important; }
.text-danger { color: #F87171 !important; }
.text-brand-blue { color: #60A5FA !important; }
.text-orange { color: #60A5FA !important; }

/* ==========================================================================
   UNIVERSAL TOPBAR BLU POLITICO & MATRIX 81+ BACKGROUND
   ========================================================================== */
.sic-universal-topbar {
  background: linear-gradient(90deg, #072658 0%, #0A3678 50%, #072658 100%);
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
  padding: 10px 24px;
  position: relative;
  z-index: 105;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.sic-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.sic-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sic-topbar-label {
  color: #E2E8F0;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sic-topbar-val {
  color: #38BDF8;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.96rem;
  background: rgba(10, 20, 40, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
}

.sic-val-pulse {
  transform: scale(1.1);
  color: #67E8F9;
  border-color: #38BDF8;
}

.sic-topbar-val-accent {
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.5px;
  background: rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.4);
  padding: 2px 10px;
  border-radius: 4px;
}

.sic-topbar-sub {
  color: #93C5FD;
  font-size: 0.74rem;
}

.sic-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sic-live-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: sicPulse 1.8s infinite;
}

@keyframes sicPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* MATRIX 81+ CANVAS BACKGROUND - FILIGRANA ULTRA-SLOW & ELEGANTE SULLO SFONDO */
.sic-matrix-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.15 !important;
  mix-blend-mode: screen !important;
}

/* CONTENUTI SEMPRE NITIDI E LEGGIBILI SOPRA LA FILIGRANA MATRIX */
main, section, header, footer, .landing-nav, #sicUniversalTopBar, .magnet-container, .hero-section {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CORNICI 3D SCOLPITE AD ALTA DEFINIZIONE SU TUTTE LE CARDS DEL SITO
   ========================================================================== */
.ateco-card, 
.pricing-card, 
.review-card, 
.canvas-card, 
.magnet-container, 
.sic-mockup-frame, 
.kpi-card, 
.module-card, 
.zone-card, 
.card-3d,
.faq-item,
.summary-box,
.score-box,
.rating-bars,
.filters-bar,
.trust-badge-container,
.dropzone-box,
.view-panel,
details {
  background: #081225 !important; /* Fondo 100% solido e opaco anti-trasparenza per massima leggibilità */
  border: 1.5px solid #1E4E9E !important;
  border-top: 2.5px solid #38BDF8 !important; /* Luce riflessa superiore 3D */
  border-left: 2px solid #2563EB !important; /* Luce laterale sinistra */
  border-right: 2px solid #0D2852 !important; /* Ombra laterale destra */
  border-bottom: 4.5px solid #020815 !important; /* Ombra di profondità 3D inferiore */
  border-radius: 14px !important;
  box-shadow: 
    0 22px 48px rgba(0, 0, 0, 0.95),
    0 4px 14px rgba(10, 54, 120, 0.5),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.28),
    inset 0 -3px 8px rgba(0, 0, 0, 0.9) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
  position: relative !important;
  z-index: 2 !important;
}

.ateco-card:hover, 
.pricing-card:hover, 
.review-card:hover, 
.canvas-card:hover, 
.sic-mockup-frame:hover {
  transform: translateY(-5px) !important;
  border-top: 3px solid #60A5FA !important;
  box-shadow: 
    0 28px 60px rgba(0, 0, 0, 0.98),
    0 0 28px rgba(56, 189, 248, 0.5),
    inset 0 1.5px 3px rgba(255, 255, 255, 0.4),
    inset 0 -3px 8px rgba(0, 0, 0, 0.9) !important;
}

/* EVIDENZA SPECIALE PER LA CARD FEATURED */
.pricing-card.featured {
  overflow: visible !important;
  border-top: 3.5px solid #38BDF8 !important;
  border-left: 2.5px solid #38BDF8 !important;
  box-shadow: 
    0 24px 55px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(37, 99, 235, 0.65),
    inset 0 2px 3px rgba(255, 255, 255, 0.4),
    inset 0 -3px 8px rgba(0, 0, 0, 0.9) !important;
}

.sic-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ==========================================================================
   MASSIMO CONTRASTO TESTI: BIANCO PURO E BIANCO GHIACCIO WCAG AAA SU TUTTE LE PAGINE
   ========================================================================== */
* {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body, html {
  background-color: #030712 !important;
  color: #FFFFFF !important;
}

h1, h2, h3, h4, h5, h6,
.hero-title, .section-title, .ateco-card h3, .pricing-card h3, .pricing-tier {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  letter-spacing: -0.01em !important;
}

p {
  color: #F8FAFC !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  text-shadow: none !important;
  font-size: 1.02rem !important;
}

li {
  color: #F8FAFC !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  text-shadow: none !important;
  font-size: 0.98rem !important;
}

strong, b {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

span, label, a {
  text-shadow: none !important;
}

/* OVERWRITE DEI TESTI PRECEDENTI: BIANCO PURO E MASSIMO CONTRASTO */
[style*="color: #94A3B8"],
[style*="color: #64748B"],
[style*="color: #CBD5E1"],
[style*="color: #475569"],
[style*="color: #E2E8F0"],
[style*="color:#94A3B8"],
[style*="color:#64748B"],
[style*="color:#CBD5E1"],
[style*="color:#475569"],
[style*="color:#E2E8F0"],
[style*="rgba(255,255,255,0.7)"],
[style*="rgba(255,255,255,0.6)"],
[style*="rgba(255,255,255,0.5)"],
[style*="rgba(255, 255, 255, 0.7)"],
[style*="rgba(255, 255, 255, 0.6)"],
[style*="rgba(255, 255, 255, 0.5)"] {
  color: #F8FAFC !important;
  text-shadow: none !important;
}

.hero-subtitle,
.review-comment {
  color: #F8FAFC !important;
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
  font-weight: 500 !important;
}

/* ==========================================================================
   GLOBAL TEXT JUSTIFICATION — 100% SPECIFICA UTENTE
   Tutti i testi di contenuto, paragrafi, descrizioni, card, recensioni e FAQ
   sono resi giustificati su qualsiasi dispositivo (Desktop, Tablet, Mobile).
   ========================================================================== */
p,
.hero-subtitle,
.section-desc,
.card-desc,
.fear-desc,
.fear-box p,
.fear-card .fear-desc,
.scenario-card p,
.scenario-card li,
.pillar-card p,
.pillar-card li,
.ateco-card p,
.ateco-card div[style*="line-height"],
.pricing-card p,
.pricing-card ul li,
.benchmark-card p,
.benchmark-card li,
.reconciliation-card p,
.reconciliation-card li,
.review-card p,
.review-card .review-comment,
.review-comment,
.faq-answer,
.faq-answer p,
.faq-answer div,
details div,
.magnet-container p,
.card3d p,
.kpi-card .kpi-subtext,
.modal-body,
.modal-body p,
.tab-pane p,
.tab-pane div,
.ecosystem-card p,
.justified-text,
.card-body,
.card-text,
.content-text {
  text-align: justify !important;
  text-align-last: left !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

/* ==========================================================================
   METALLIC SPECULAR 3D CARDS & ROUNDED CHAMFERED BORDERS (SUPER COOL VISUAL)
   ========================================================================== */
.card3d,
.ateco-card,
.pricing-card,
.fear-card,
.scenario-card,
.pillar-card,
.kpi-card,
.review-card,
.canvas-card,
.score-box,
.view-panel,
.dash-kpi,
.box,
.dropzone-box,
.sic-mockup-frame,
.competitor-table-wrapper,
.magnet-container {
  border-radius: 24px !important;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.16) 0%, transparent 65%),
              linear-gradient(145deg, #0d1e3d 0%, #060e20 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.4) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85),
              inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
              inset 0 -2px 0 rgba(0, 0, 0, 0.7),
              0 0 24px rgba(10, 54, 120, 0.3) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Specular top sheen line */
.card3d::before,
.ateco-card::before,
.pricing-card::before,
.fear-card::before,
.scenario-card::before,
.pillar-card::before,
.kpi-card::before,
.review-card::before,
.canvas-card::before,
.score-box::before,
.view-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.7) 25%, #38BDF8 50%, rgba(255, 255, 255, 0.7) 75%, transparent 100%);
  pointer-events: none;
  opacity: 0.9;
  z-index: 2;
}

/* Hover metallic reflection & specular lift */
.card3d:hover,
.ateco-card:hover,
.pricing-card:hover,
.fear-card:hover,
.scenario-card:hover,
.pillar-card:hover,
.kpi-card:hover,
.review-card:hover,
.canvas-card:hover,
.score-box:hover,
.view-panel:hover {
  transform: translateY(-5px) scale(1.01) !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 26px 65px rgba(10, 54, 120, 0.65),
              inset 0 2px 0 rgba(255, 255, 255, 0.7),
              0 0 38px rgba(56, 189, 248, 0.45) !important;
}

.pricing-card {
  overflow: visible !important;
}

.pricing-card.featured {
  overflow: visible !important;
  border: 2px solid #38BDF8 !important;
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.6),
              inset 0 2px 0 rgba(255, 255, 255, 0.7),
              0 0 45px rgba(56, 189, 248, 0.4) !important;
}

.featured-badge {
  position: absolute !important;
  top: -15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #38BDF8, #1D4ED8) !important;
  color: #FFFFFF !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.8px !important;
  padding: 5px 18px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.5) !important;
  white-space: nowrap !important;
  z-index: 25 !important;
}

/* ==========================================================================
   MOBILE-FIRST GLOBAL RESPONSIVE ENGINE (ZERO SBORDATURE — 100% ADATTIVO)
   ========================================================================== */

/* Anti-Overflow Global Reset */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
  max-width: 100%;
}

img, video, canvas, iframe {
  max-width: 100% !important;
  height: auto;
}

/* TABLET & MOBILE BREAKPOINTS (<= 992px) */
@media (max-width: 992px) {
  .app-container {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .content-area {
    padding: 20px 16px !important;
  }

  .magnet-container {
    grid-template-columns: 1fr !important;
    padding: 26px 20px !important;
    margin: 40px auto !important;
  }

  .hero-section {
    padding: 40px 18px 50px !important;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem) !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }
}

/* SMARTPHONE BREAKPOINTS (<= 768px) */
@media (max-width: 768px) {
  /* Universal Top Bar */
  .sic-universal-topbar {
    padding: 8px 12px !important;
  }
  .sic-topbar-inner {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
  }
  .sic-topbar-center {
    display: none !important;
  }
  .sic-topbar-item {
    justify-content: center !important;
    font-size: 0.78rem !important;
    flex-wrap: wrap !important;
  }

  /* Navigation Bar */
  .landing-nav {
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .landing-nav .brand-badge {
    font-size: 1rem !important;
    padding: 6px 14px !important;
  }

  /* Trust seal bar */
  .trust-seal-bar {
    padding: 14px 16px !important;
    gap: 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .trust-item {
    font-size: 0.82rem !important;
  }

  /* ALL SECTIONS ZERO SBORDATURE */
  section, main, .hero-section, .container, .section-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
  }

  /* TEXT JUSTIFICATION & HYPHENATION ON MOBILE (USER REQUIREMENT) */
  p, .card-desc, .fear-desc, .fear-box p, .pricing-card p, .ateco-card p, .scenario-card p, .pillar-card p, .reconciliation-card p, .faq-answer p {
    text-align: justify !important;
    text-align-last: left !important;
    text-justify: inter-word !important;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem) !important;
    line-height: 1.18 !important;
    text-align: center !important;
  }
  h2 {
    font-size: clamp(1.4rem, 5.8vw, 2.1rem) !important;
    line-height: 1.22 !important;
    text-align: center !important;
  }
  h3 {
    font-size: clamp(1.15rem, 4.5vw, 1.55rem) !important;
    line-height: 1.28 !important;
  }

  /* ALL GRIDS FULL WIDTH SINGLE COLUMN - ZERO SBORDATURE */
  .pricing-grid,
  .ateco-grid,
  .fear-grid,
  .benchmark-grid,
  .pillar-grid,
  .kpi-grid,
  .app-grid,
  .grid,
  [style*="display: grid"],
  [style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 18px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* UNIVERSAL CARDS 100% ADAPTIVE FOR ALL SMARTPHONES */
  .sic-card,
  .card-3d,
  .fear-card,
  .fear-box,
  .pricing-card,
  .ateco-card,
  .scenario-card,
  .pillar-card,
  .arch-card,
  .review-card,
  .kpi-card,
  .metric-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    border-radius: 18px !important;
  }

  /* PRICING CARDS 100% ADAPTIVE FOR PHONES */
  .pricing-card {
    padding: 22px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .pricing-card .featured-badge {
    position: static !important;
    transform: none !important;
    display: inline-block !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    padding: 4px 12px !important;
  }

  .pricing-card h3 {
    font-size: 1.28rem !important;
  }

  .pricing-card .pricing-price,
  .pricing-card div[style*="font-size: 3rem"],
  .pricing-card div[style*="font-size:3rem"] {
    font-size: clamp(2.1rem, 8.5vw, 2.8rem) !important;
    line-height: 1.1 !important;
  }

  .pricing-card ul {
    padding-left: 0 !important;
    margin: 14px 0 !important;
    list-style: none !important;
  }

  .pricing-card li {
    font-size: 0.88rem !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
  }

  .pricing-card button,
  .pricing-card .btn-primary,
  .pricing-card .btn-secondary {
    width: 100% !important;
    padding: 13px 12px !important;
    font-size: 0.92rem !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    min-height: 48px !important;
  }

  /* ATECO, FEAR, SCENARIO & PILLAR CARDS ADAPTIVITY */
  .ateco-card,
  .fear-card,
  .scenario-card,
  .pillar-card,
  .review-card {
    padding: 18px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .scenario-card .dimensions-list > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
  }

  /* CORTEX 3D BRAIN VISUAL TOOL ADAPTIVE */
  .canvas-card {
    height: 480px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border-radius: 16px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  #landingBrainCanvas,
  #cortexCanvas,
  #twinCanvas {
    width: 100% !important;
    height: 100% !important;
    touch-action: none !important;
    display: block !important;
  }

  .canvas-overlay {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
    pointer-events: none !important;
  }

  #landingZoneDetailBox {
    display: none !important; /* Su mobile l'interazione tocco apre direttamente la scheda modale CORTEX */
  }

  /* BUTTON GROUPS TOUCH FRIENDLY */
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100% !important;
    text-align: center !important;
    min-height: 48px !important;
  }

  /* VISUAL IMAGES & MOCKUPS */
  img, video, svg, canvas {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* COMPETITOR COMPARISON TABLE OVERFLOW GUARD (9:16 MOBILE ZERO SBORDATURE) */
  .competitor-table-wrapper {
    overflow-x: hidden !important;
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 14px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .comp-table-fixed th, .comp-table-fixed td {
    padding: 8px 4px !important;
    font-size: 0.74rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  /* CHAT BUTTON & WINDOW MOBILE (PULLED UP HIGHER) */
  #cortexChatTrigger, .cortex-chat-btn {
    bottom: 95px !important;
    right: 18px !important;
    width: 62px !important;
    height: 62px !important;
    z-index: 999999 !important;
  }

  #cortexChatWindow, .cortex-chat-window {
    position: fixed !important;
    bottom: 168px !important;
    left: 8px !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: 480px !important;
    max-height: calc(100vh - 180px) !important;
    margin: 0 !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
    z-index: 1000000 !important;
  }

  /* APP.HTML SIDEBAR & HEADER MOBILE EXPERIENCE */
  .app-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .sidebar {
    height: auto !important;
    position: relative !important;
    padding: 14px 16px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .sidebar .nav-group {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .content-area {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 16px 12px !important;
  }

  .sidebar .nav-link {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    padding: 8px 12px !important;
    min-height: 40px !important;
  }

  .top-bar {
    padding: 12px 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .top-actions {
    width: 100% !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .top-actions a,
  .top-actions button {
    flex-grow: 1 !important;
    text-align: center !important;
    min-height: 42px !important;
  }

  /* DATA TABLES SCROLL ON MOBILE */
  .data-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
  }

  .data-table th, .data-table td {
    padding: 10px 12px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }
}

/* ULTRA-COMPACT SMARTPHONES (<= 400px - es. iPhone SE, piccoli Android) */
@media (max-width: 400px) {
  section, main, .hero-section, .container, .section-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .pricing-card {
    padding: 16px 12px !important;
  }

  .pricing-card h3 {
    font-size: 1.15rem !important;
  }

  .hero-title {
    font-size: 1.75rem !important;
  }

  .brand-badge {
    font-size: 0.85rem !important;
    padding: 4px 8px !important;
    gap: 4px !important;
  }

  .canvas-card {
    height: 380px !important;
  }
}

/* PWA OFFLINE STATUS NOTIFICATION PILL */
.pwa-offline-pill {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 20, 40, 0.95);
  border: 1px solid #38BDF8;
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  z-index: 100000;
  display: none;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
}
.pwa-offline-pill.active {
  display: flex !important;
}



/* ==========================================================================
   GLOBAL MOBILE-FIRST RESPONSIVE ENGINE — ZERO SBORDI · COMPACT CARDS
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  *, *::before, *::after {
    box-sizing: border-box !important;
  }
  .pricing-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .pricing-card ul li:nth-child(n+5) {
    display: none !important;
  }
  .pricing-card.expanded ul li:nth-child(n+5) {
    display: flex !important;
  }
  .mobile-features-toggle {
    display: block !important;
  }
  .ateco-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .fear-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .magnet-container {
    padding: 18px 14px !important;
    gap: 16px !important;
  }
}
@media (max-width: 480px) {
  .ateco-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   MOBILE-FIRST GLOBAL ENGINE (ZERO SBORDI & COMPACT CARDS)
   ========================================================================== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }
  .pricing-mobile-switcher {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #081225;
    border: 1.5px solid #1E3A8A;
    border-radius: 30px;
    padding: 5px;
    margin: 16px auto 20px auto;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }
  .pricing-switch-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 24px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
  }
  .pricing-switch-btn.active {
    background: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(37,99,235,0.6);
  }
  .mobile-hidden-grid {
    display: none !important;
  }
  .pricing-card {
    padding: 18px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
  }
  .magnet-container {
    padding: 16px 12px !important;
    margin: 24px auto !important;
    border-radius: 14px !important;
    gap: 16px !important;
  }
  .black-holes-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
  }
  .hole-chip {
    background: rgba(10,38,88,0.7);
    border: 1px solid #1E4E9E;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.72rem;
    color: #E2E8F0;
    line-height: 1.2;
  }
  .hole-chip strong {
    color: #38BDF8;
  }
  .benchmark-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .scenario-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }
  .pillar-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .pillar-card {
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }
}


@media (max-width: 768px) {
  #pricingGridBooster { display: none !important; }
  #pricingGridBooster.mobile-active-grid { display: flex !important; flex-direction: column !important; }
  #pricingGridPlans.mobile-hidden-grid { display: none !important; }
  .scenario-card .dimensions-list { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; font-size: 0.74rem !important; }
  .magnet-compact-lead { display: block !important; }
  .magnet-full-lead { display: none !important; }
}


/* ==========================================================================
   ENTERPRISE MASTER CARD SYSTEM (ORDINATO, PROFESSIONALE, ZERO FUORI POSTO)
   ========================================================================== */

/* Universal Grid Alignment: All cards in the same row share identical height */
.pricing-grid,
.pillar-grid,
.ateco-grid,
.fear-grid,
.method-grid,
.download-grid,
.review-grid,
.benchmark-grid {
  display: grid;
  align-items: stretch !important;
  box-sizing: border-box;
}

/* Master Card Surface & Elevation */
.method-card,
.download-card,
.review-card,
.faq-card,
.ateco-card,
.pillar-card,
.fear-card,
.scenario-card,
.pricing-card {
  box-sizing: border-box;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

/* --------------------------------------------------------------------------
   1. METHOD CARDS (#metodo-3way)
   -------------------------------------------------------------------------- */
.method-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 22px;
  text-align: left;
  margin-top: 20px;
}
.method-card {
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 65%),
              linear-gradient(145deg, #0d1e3d 0%, #060e20 100%);
  border: 1.5px solid #1E3A8A;
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(56, 189, 248, 0.2);
}
.method-card:hover {
  transform: translateY(-4px);
  border-color: #38BDF8;
  box-shadow: 0 16px 45px rgba(10, 54, 120, 0.6), inset 0 1.5px 0 rgba(56, 189, 248, 0.4);
}
.method-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.method-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1.25;
}
.method-card-desc {
  font-size: 0.88rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.method-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #34D399;
}
.method-check-icon {
  font-weight: 900;
  color: #34D399;
}

/* --------------------------------------------------------------------------
   2. DOWNLOAD CARDS (#download)
   -------------------------------------------------------------------------- */
.download-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  text-align: left;
  margin-bottom: 36px;
}
.download-card {
  background: rgba(8, 18, 38, 0.9);
  border: 1.5px solid #1E4E9E;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
}
.download-card:hover {
  transform: translateY(-4px);
  border-color: #38BDF8;
  box-shadow: 0 18px 45px rgba(10, 54, 120, 0.5);
}
.download-card-media {
  position: relative;
  overflow: hidden;
  background: #040916;
  height: 190px;
}
.download-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.download-card:hover .download-card-media img {
  transform: scale(1.04);
}
.download-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  border: 1px solid;
  letter-spacing: 0.4px;
}
.badge-blue {
  background: rgba(3, 7, 18, 0.85);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.5);
}
.badge-green {
  background: rgba(3, 7, 18, 0.85);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.5);
}
.badge-purple {
  background: rgba(3, 7, 18, 0.85);
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, 0.5);
}
.download-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.download-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.download-card-title {
  color: #FFFFFF;
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0;
}
.download-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.pill-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}
.pill-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #C4B5FD;
  border-color: rgba(139, 92, 246, 0.3);
}
.download-card-desc {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.55;
  min-height: 60px;
  margin-bottom: 20px;
}
.download-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.download-btn {
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-green {
  background: linear-gradient(135deg, #059669, #10B981) !important;
  border-color: #34D399 !important;
  color: #FFF !important;
}
.btn-purple {
  background: linear-gradient(135deg, #7C3AED, #9333EA) !important;
  border-color: #A78BFA !important;
  color: #FFF !important;
}

/* --------------------------------------------------------------------------
   3. REVIEW CARDS (#social-proof)
   -------------------------------------------------------------------------- */
.review-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 22px;
  text-align: left;
  margin-bottom: 36px;
}
.review-card {
  background: #081225;
  border: 1.5px solid #1E3A8A;
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(56, 189, 248, 0.15);
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: #38BDF8;
  box-shadow: 0 14px 40px rgba(10, 54, 120, 0.5);
}
.review-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.review-stars {
  color: #00B67A;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1;
}
.review-verified-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00B67A;
  background: rgba(0, 182, 122, 0.12);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 182, 122, 0.3);
}
.review-quote {
  font-size: 0.88rem;
  color: #F1F5F9;
  line-height: 1.6;
  font-style: italic;
  min-height: 85px;
  margin-bottom: 18px;
  flex: 1;
}
.review-author-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(37, 99, 235, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-author-name {
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 800;
}
.review-author-role {
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. FAQ CARDS (#faq)
   -------------------------------------------------------------------------- */
.faq-card {
  background: #081225;
  border: 1.5px solid #1E3A8A;
  border-radius: 14px;
  padding: 18px 22px;
  cursor: pointer;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.faq-card:hover {
  border-color: #38BDF8;
}
.faq-card[open] {
  border-color: #38BDF8;
  box-shadow: 0 10px 30px rgba(10, 54, 120, 0.4), inset 0 1px 0 rgba(56, 189, 248, 0.2);
}
.faq-card summary {
  font-weight: 800;
  font-size: 1.02rem;
  color: #FFFFFF;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-card summary::-webkit-details-marker {
  display: none;
}
.faq-card summary::after {
  content: '▾';
  font-size: 1.2rem;
  color: #38BDF8;
  transition: transform 0.25s ease;
}
.faq-card[open] summary::after {
  transform: rotate(180deg);
}
.faq-card > div {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #E2E8F0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. SCENARIO BENCHMARK CARDS (#scenari-benchmark)
   -------------------------------------------------------------------------- */
.benchmark-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
  gap: 24px;
}
.scenario-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.scenario-card > div:last-child {
  margin-top: auto;
  min-height: 75px;
}

/* --------------------------------------------------------------------------
   6. PRICING CARDS (#pricing)
   -------------------------------------------------------------------------- */
.pricing-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
}
.pricing-card > div:first-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pricing-card > button:last-child,
.pricing-card > a:last-child {
  margin-top: auto;
}
.pricing-card p {
  min-height: 44px;
}

/* Mobile responsive refinements for all cards */

      .download-card-actions.multi-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
      }
      .download-card-actions.multi-actions .download-btn {
        padding: 9px 6px !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
      }

@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .method-card {
    padding: 16px 14px !important;
  }
  .download-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .download-card-media {
    height: 120px !important;
  }
  .download-card-body {
    padding: 14px 12px !important;
  }
  .review-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .review-card {
    padding: 16px 14px !important;
  }
  .review-quote {
    min-height: auto !important;
  }
  .faq-card {
    padding: 14px 14px !important;
  }
  .faq-card summary {
    font-size: 0.92rem !important;
  }
}

/* ==========================================================================
   PWA FLOATING INSTALL BANNER & NATIVE DIALOG
   ========================================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: rgba(4, 11, 26, 0.96);
  border: 1.5px solid #38BDF8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(20px);
  max-width: 440px;
  width: calc(100vw - 32px);
  animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes pwaSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.pwa-install-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #0A3678;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.pwa-install-info {
  flex: 1;
  min-width: 0;
}

.pwa-install-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 2px 0;
}

.pwa-install-sub {
  font-size: 0.78rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.3;
}

.pwa-install-btn {
  background: linear-gradient(135deg, #2563EB, #0284C7);
  color: #FFFFFF;
  border: 1px solid #38BDF8;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

.pwa-install-btn:hover {
  transform: scale(1.04);
  background: linear-gradient(135deg, #1D4ED8, #0369A1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

.pwa-install-close {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}

.pwa-install-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .pwa-install-banner {
    bottom: 12px;
    right: 16px;
    left: 16px;
    width: auto;
    padding: 12px 14px;
    gap: 10px;
  }
  .pwa-install-icon {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   SIMULATORE DINAMICO ROI & SANZIONI ATECO 81/08
   ========================================================================== */
.roi-simulator-card {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.18) 0%, transparent 70%),
              linear-gradient(145deg, #071329 0%, #030816 100%);
  border: 1.5px solid #2563EB;
  border-radius: 20px;
  padding: 28px 24px;
  margin: 32px 0;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(56, 189, 248, 0.25);
  box-sizing: border-box;
}

.roi-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}

.roi-sim-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
}

.roi-sim-badge {
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.roi-sim-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.sim-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-control-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #93C5FD;
}

.sim-select, .sim-slider {
  background: #0B1936;
  border: 1px solid #1E4E9E;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.sim-select:focus {
  border-color: #38BDF8;
}

.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.sim-res-card {
  background: rgba(10, 24, 52, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.sim-res-label {
  font-size: 0.75rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.sim-res-val {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}

.val-green { color: #34D399; }
.val-amber { color: #FBBF24; }
.val-cyan  { color: #38BDF8; }

/* ==========================================================================
   CORTEX AI QUICK PROMPTS COMPONENT
   ========================================================================== */
.cortex-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px 0;
}

.cortex-prompt-chip {
  background: rgba(14, 30, 64, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #BAE6FD;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cortex-prompt-chip:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: #38BDF8;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cortex-response-box {
  background: rgba(6, 15, 34, 0.95);
  border: 1px solid #1E4E9E;
  border-left: 4px solid #38BDF8;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #F8FAFC;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

/* ==========================================================================
   VIDEO PLAYER CHAPTERS EPPPA BAR
   ========================================================================== */
.video-chapters-nav {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  padding: 12px 4px;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.video-chap-btn {
  background: rgba(8, 18, 40, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #94A3B8;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.video-chap-btn:hover {
  border-color: #38BDF8;
  color: #FFFFFF;
}

.video-chap-btn.active {
  background: #2563EB;
  border-color: #38BDF8;
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.6);
}

/* ACCESSIBILITY FOCUS RING FOR KEYBOARD NAVIGATION */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2.5px solid #38BDF8 !important;
  outline-offset: 3px !important;
}


/* ==========================================================================
   SICURISSIMO OS — 3D GOLD CARD & WEBINAR PLAYER STYLING
   Luxury 3D metallic gold contour, reflection effects, political blue play button,
   and bottom-left brand mask covering the 'Clip XX' watermark.
   ========================================================================== */

.sicurissimo-gold-card {
  position: relative;
  max-width: 1040px;
  margin: 35px auto 55px;
  border-radius: 22px;
  padding: 4px;
  background: linear-gradient(
    135deg,
    #F3E5AB 0%,
    #D4AF37 20%,
    #AA771C 40%,
    #FFF8DC 50%,
    #D4AF37 70%,
    #8B6508 88%,
    #FFDF73 100%
  );
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.98),
    0 0 50px rgba(212, 175, 55, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.sicurissimo-gold-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 20;
  animation: goldShimmer 8s infinite linear;
}

@keyframes goldShimmer {
  0% { transform: translateY(-100%) rotate(25deg); }
  100% { transform: translateY(100%) rotate(25deg); }
}

.sicurissimo-gold-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 35px 95px rgba(0, 0, 0, 1),
    0 0 65px rgba(212, 175, 55, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.9);
}

.sicurissimo-gold-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 18px;
  overflow: hidden;
}

.sicurissimo-gold-card-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  background: #000;
}

/* YOUTUBE-STYLE CENTRAL POLITICAL BLUE PLAY BUTTON */
.player-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.38);
  backdrop-filter: blur(2px);
  cursor: pointer;
  z-index: 12;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.yt-political-blue-btn {
  width: 92px;
  height: 64px;
  background: linear-gradient(145deg, #0f3568 0%, #061a38 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #D4AF37;
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(15, 53, 104, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 5px rgba(0, 0, 0, 0.6);
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.22s ease, background 0.22s ease;
}

.player-play-overlay:hover .yt-political-blue-btn {
  transform: scale(1.1);
  background: linear-gradient(145deg, #134282 0%, #0a254c 100%);
  border-color: #FFF8DC;
  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(212, 175, 55, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.8);
}

.yt-political-blue-btn svg {
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* FULL-WIDTH POLITICAL BLUE LUXURY MASK BAND (BOTTOM OF VIDEO — 100% OPAQUE, COVERS ALL BOTTOM-LEFT WATERMARKS) */
.sicurissimo-fullwidth-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 24% !important;
  min-height: 64px;
  max-height: 155px;
  z-index: 25;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
  background: linear-gradient(
    180deg,
    #0e2b52 0%,
    #081d38 45%,
    #041021 100%
  ) !important;
  opacity: 1 !important;
  border-top: 2.5px solid #D4AF37;
  box-shadow:
    0 -8px 30px rgba(0, 0, 0, 0.98),
    0 -2px 14px rgba(212, 175, 55, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.sicurissimo-fullwidth-mask .mask-brand-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 16px);
  width: 100%;
  max-width: 900px;
}

.sicurissimo-fullwidth-mask .mask-decor-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.6) 50%,
    rgba(212, 175, 55, 0.9) 100%
  );
}

.sicurissimo-fullwidth-mask .mask-decor-line.right {
  background: linear-gradient(
    90deg,
    rgba(212, 175, 55, 0.9) 0%,
    rgba(212, 175, 55, 0.6) 50%,
    transparent 100%
  );
}

.sicurissimo-fullwidth-mask .mask-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 10px #FFDF73;
  flex-shrink: 0;
}

.sicurissimo-fullwidth-mask .mask-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(0.95rem, 2.4vw, 1.4rem);
  letter-spacing: clamp(3px, 0.8vw, 6px);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8DC 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

@media (max-width: 640px) {
  .sicurissimo-gold-card {
    border-radius: 16px;
    padding: 3px;
    margin: 20px auto 40px;
  }
  .sicurissimo-gold-card-inner {
    border-radius: 13px;
  }
  .yt-political-blue-btn {
    width: 72px;
    height: 50px;
    border-radius: 14px;
  }
  .sicurissimo-fullwidth-mask {
    height: 24% !important;
    min-height: 52px;
    padding: 0 8px;
  }
  .sicurissimo-fullwidth-mask .mask-title {
    font-size: clamp(0.80rem, 3.6vw, 1.02rem);
    letter-spacing: 2px;
  }
  .sicurissimo-fullwidth-mask .mask-decor-line {
    max-width: 25px;
  }
}


/* ==========================================================================
   100% ADAPTIVE & RESPONSIVE COMPARISON TABLE (ZERO HORIZONTAL SCROLLBARS)
   Mobile 9:16 Adaptive Card Matrix + 1-to-1 Direct Comparison
   Desktop & Tablet 16:9 Fixed Proportional Table
   ========================================================================== */

.competitor-table-wrapper {
  background: var(--bg-card, #07132B) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.comp-table-fixed {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.comp-table-fixed th,
.comp-table-fixed td {
  padding: 14px 10px !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
  vertical-align: middle !important;
}

.comp-table-fixed th {
  background: rgba(4, 9, 24, 0.85) !important;
  color: #93C5FD !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.col-hero-sic {
  background: rgba(10, 54, 120, 0.45) !important;
  border-left: 2px solid #38BDF8 !important;
  border-right: 2px solid #38BDF8 !important;
}

.comp-mobile-filter-bar {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

.comp-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.comp-pill {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(8, 20, 48, 0.85);
  color: #94A3B8;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.22s ease;
  box-sizing: border-box;
}

.comp-pill:hover {
  color: #FFFFFF;
  border-color: #38BDF8;
}

.comp-pill.active {
  background: linear-gradient(135deg, #0A3678, #1D4ED8) !important;
  color: #FFFFFF !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
}

.competitor-mobile-matrix {
  display: none;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.comp-matrix-card {
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 65%),
              linear-gradient(145deg, #0d1e3d 0%, #060e20 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.comp-matrix-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.comp-matrix-badge {
  background: rgba(37, 99, 235, 0.25);
  color: #38BDF8;
  font-weight: 900;
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.comp-matrix-title {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

.comp-matrix-sicurissimo {
  background: linear-gradient(135deg, #0A3678, #07192F);
  border: 1.5px solid #38BDF8;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(10, 54, 120, 0.5);
}

.comp-brand-tag {
  font-weight: 900;
  font-size: 0.85rem;
  color: #38BDF8;
  letter-spacing: 0.5px;
}

.comp-matrix-others {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.comp-other-row {
  background: rgba(4, 10, 24, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: #94A3B8;
  box-sizing: border-box;
}


/* ==========================================================================
   PERFECT ADAPTIVE & RESPONSIVE COMPARISON MATRIX (16:9 PC/TABLET & 9:16 MOBILE)
   ZERO SBORDATURE · ZERO SCROLLBARS · 100% FIRST-MOBILE ADAPTIVE
   ========================================================================== */

.desktop-table-adaptive {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.comp-table-fixed {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.comp-table-fixed th,
.comp-table-fixed td {
  padding: 13px 8px !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  white-space: normal !important;
  vertical-align: middle !important;
}

.comp-table-fixed th {
  background: rgba(4, 9, 24, 0.9) !important;
  color: #93C5FD !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.col-hero-sic {
  background: rgba(10, 54, 120, 0.45) !important;
  border-left: 2px solid #38BDF8 !important;
  border-right: 2px solid #38BDF8 !important;
}

/* TABLET ADAPTIVITY (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .comp-table-fixed th,
  .comp-table-fixed td {
    padding: 9px 3px !important;
    font-size: 0.72rem !important;
  }
  .comp-table-fixed th {
    font-size: 0.68rem !important;
    padding: 8px 2px !important;
    letter-spacing: 0 !important;
  }
  .comp-table-fixed .badge-yes,
  .comp-table-fixed .badge-no,
  .comp-table-fixed .badge-partial {
    padding: 3px 4px !important;
    font-size: 0.66rem !important;
    white-space: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
  }
}

/* SMARTPHONE 9:16 ADAPTIVE (< 768px) */
@media (max-width: 767px) {
  .desktop-table-adaptive {
    display: none !important;
  }
  .comp-mobile-filter-bar {
    display: flex !important;
  }
  .competitor-mobile-matrix {
    display: flex !important;
  }
  .mobile-direct-table {
    display: none;
    margin-top: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .mobile-direct-table th,
  .mobile-direct-table td {
    padding: 10px 6px !important;
    font-size: 0.78rem !important;
    word-break: break-word !important;
    white-space: normal !important;
  }
  .comp-matrix-others {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}


/* DESKTOP / TABLET (>= 768px) ENSURE MOBILE VIEWS ARE COMPLETELY HIDDEN */
@media (min-width: 768px) {
  .comp-mobile-filter-bar,
  .competitor-mobile-matrix,
  .mobile-direct-table {
    display: none !important;
  }
  .desktop-table-adaptive {
    display: block !important;
  }
}
