

.cta-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 60px 0;
  padding: 20px 0;
}

.btn-start {
  display: inline-block;
  padding: 20px 50px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  margin-bottom: 15px;    /* Distanza dalla nota sotto */
}

.btn-start:hover {
  transform: scale(1.05);
  background: #1d4ed8;
}

.cta-note {
  font-size: 0.9rem;
  color: #64748b;
  max-width: 450px;       /* Evita che il testo diventi troppo lungo */
  line-height: 1.5;
}


/* SEZIONE GRAFICO */
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.graph-box {
  background: #1e293b; /* Tema dark per il grafico */
  padding: 30px;
  border-radius: 12px;
  height: 300px;
  position: relative;
  color: #94a3b8;
}

.chart-area {
  height: 200px;
  border-left: 2px solid #475569;
  border-bottom: 2px solid #475569;
  position: relative;
  margin: 20px 0;
}

.line {
  position: absolute;
  height: 2px;
  width: 100%;
}

.line-stato { top: 30%; background: #3b82f6; box-shadow: 0 0 10px #3b82f6; }
.line-banca { top: 60%; background: #10b981; box-shadow: 0 0 10px #10b981; }
.line-famiglia { top: 45%; background: #8b5cf6; box-shadow: 0 0 10px #8b5cf6; }

.x-axis, .y-axis { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }



.code-label {
  font-family: 'Courier New', monospace;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 12px;
  display: inline-block;
}

.threshold-bar {
  width: 100%;
  height: 8px;
  background: #fee2e2;
  border-radius: 4px;
  position: relative;
}

.threshold-bar .fill {
  width: 15%;
  height: 100%;
  background: #ef4444;
  border-radius: 4px;
}

.params-list {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #64748b;
}

.params-list li {
  margin-bottom: 8px;
}

/* Container generale della sezione tecnica */
.technical-deep-dive {
  padding: 80px 0;
  background-color: #f8fafc;
}




/* Sezione Funzioni Tecniche */
@media (max-width: 768px) {
  .tech-stack-grid { 
    grid-template-columns: 1fr; 
  }
  
  .macro-dynamics-grid { 
    grid-template-columns: 1fr; 
  }

  .data-grid {
    grid-template-columns: 1fr; /* Il grafico e i parametri uno sotto l'altro */
    padding: 40px 0;
  }

  .stability-box {
    flex-direction: column; /* Il box rosso: testo e barra uno sotto l'altro */
    text-align: center;
    gap: 20px;
  }
}





/* Griglia Funzioni (2 colonne) */
.tech-stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.tech-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.code-tag {
  display: inline-block;
  background: #eff6ff;
  color: #3b6ea5;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* Area Tabella + Stabilità */
.specs-and-stability {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 40px;
}

.specs-wrapper {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 30px;
  margin-top: 0;
}

.specs-wrapper h4 {
  margin-bottom: 25px;
  font-size: 1.2rem;
  color: #1a1a1a;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th {
  text-align: left;
  padding: 12px;
  color: #64748b;
  font-size: 0.85rem;
  border-bottom: 2px solid #f1f5f9;
}

.specs-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.specs-table tr:last-child td { border-bottom: none; }

.specs-table td:first-child {
  font-weight: 700;
  color: #3b6ea5;
}

/* Box Stabilità (quello che sembrava schiacciato) */
.stability-box {
  background: #fff5f5;
  padding: 25px 30px;
  border-top: 1px solid #fee2e2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.threshold-bar-container { flex-grow: 1; }

.macro-dynamics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.macro-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.card-icon { font-size: 2rem; margin-bottom: 15px; }


.entities-overview { padding: 80px 24px; background: #fff; }


.entities-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 20px; 
  margin-top: 40px; 
}

/* Aggiungi questa per il Desktop */
@media (min-width: 768px) {
  .entities-grid { 
    grid-template-columns: repeat(3, 1fr);
  }
}

.entity-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
}

.entity-header {
  padding: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-align: center;
  color: white;
}

.color-stato { background: #3b82f6; } /* Blu Stato */
.color-banca { background: #10b981; } /* Verde Banca */
.color-famiglia { background: #6366f1; } /* Viola/Indaco Famiglia */

.entity-list { list-style: none; padding: 20px; }
.entity-list li {
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  padding-left: 15px;
}
.entity-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3b6ea5;
}

.audit-card {

  background: #1a1a1a;
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  margin-top: -50px;
}

.mini-log-preview {
  background: #000;
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.75rem;
  color: #10b981;
  margin-top: 20px;
}

.stat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.alert .stat-val { color: #ef4444; }

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #9ca3af;
  margin-top: 4px;
}

.scenario-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.scenario-info p {
  font-size: 0.85rem;
  color: #6e6e73;
  line-height: 1.5;
}

/* Mini Decorazioni per i grafici */
.mini-graph { display: flex; gap: 4px; align-items: flex-end; margin-top: 15px; }
.m-bar { width: 12px; border-radius: 2px; }
.m-bar.red { background: #fca5a5; }

.alert-icon {
  font-size: 2rem;
  color: #ef4444;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}




/* ── LOGIC DEPTH SECTION ── */
.logic-depth {
  background: #fcfcfc; /* Grigio quasi bianco per stacco visivo */
  padding: 100px 24px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.container {
  max-width: 860px;
  margin: 0 auto;
}

.logic-header {
  text-align: center;
  margin-bottom: 64px;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3b6ea5;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.logic-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.logic-header p {
  font-size: 1.05rem;
  color: #6e6e73;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.logic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.logic-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.logic-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.logic-card p {
  font-size: 0.85rem;
  color: #6e6e73;
  line-height: 1.6;
}

.logic-card strong {
  color: #3b6ea5;
  font-weight: 600;
}

/* ── RESPONSIVE LOGIC DEPTH ── */
@media(max-width:768px){
  .logic-grid { grid-template-columns: 1fr; }
  .logic-header h2 { font-size: 1.8rem; }
}




.mock-bar-item::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  border-radius: 4px 4px 0 0;
}





@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}
.logo span { color: #3b6ea5; }
.btn-accedi {
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a1a1a;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 980px;
  padding: 7px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.btn-accedi:hover {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.28);
}

/* ── HERO ── */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3b6ea5;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.15rem;
  font-weight: 300;
  color: #6e6e73;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}
.btn-hero {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 36px;
  border-radius: 980px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
}
.btn-hero:hover { background: #2d2d2d; transform: translateY(-1px); }

/* ── MOCKUP ── */
.mockup-wrap {
  max-width: 820px;
  margin: 72px auto 0;
  padding: 0 24px;
}
.mockup {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.06),
    0 32px 64px rgba(0,0,0,0.08);
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 18px;
  background: #f1f3f5;
  border-bottom: 1px solid #e5e7eb;
}
.mockup-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.mockup-body {
  padding: 28px 28px 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  min-height: 340px;
  background: #ffffff;
}
.mockup-sidebar {
  border-right: 1px solid #f0f0f0;
  padding-right: 20px;
}
.mock-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: default;
}
.mock-row.active { background: #eff6ff; }
.mock-row-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: #374151;
}
.mock-row.active .mock-row-label { color: #3b6ea5; }
.mock-row-val {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}
.mock-row.active .mock-row-val { color: #3b6ea5; }
.mock-slider-wrap { margin-top: 18px; }
.mock-slider-lbl { font-size: 0.65rem; color: #9ca3af; margin-bottom: 6px; font-weight:500; letter-spacing:.06em; }
.mock-slider {
  width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #3b6ea5 65%, #e5e7eb 65%);
  margin-bottom: 12px;
}
.mock-slider.s2 { background: linear-gradient(90deg, #3b6ea5 38%, #e5e7eb 38%); }
.mock-slider.s3 { background: linear-gradient(90deg, #ef4444 22%, #e5e7eb 22%); }
.mock-main { padding-left: 4px; }
.mock-main-title {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #9ca3af; margin-bottom: 16px;
}
.mock-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 120px; margin-bottom: 20px;
}
.mock-bar-item {
  flex: 1; border-radius: 4px 4px 0 0;
  background: #dbeafe;
  transition: height .3s;
  position: relative;
}
.mock-bar-item.hi { background: #3b6ea5; }
.mock-bar-item.mid { background: #93c5fd; }
.mock-bar-item.warn { background: #fca5a5; }
.mock-kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mock-kpi {
  background: #f9fafb; border-radius: 8px;
  padding: 12px 10px;
}
.mock-kpi-val {
  font-size: 1rem; font-weight: 700;
  color: #1a1a1a; letter-spacing: -0.02em;
  line-height: 1;
}
.mock-kpi-val.red { color: #ef4444; }
.mock-kpi-sub {
  font-size: 0.6rem; color: #9ca3af;
  margin-top: 5px; font-weight:500; letter-spacing:.04em;
}

/* ── FEATURES ── */
.features {
  max-width: 860px;
  margin: 110px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
}
.feat {
  padding: 40px 36px;
  border-top: 1px solid #e5e7eb;
}
.feat:not(:last-child) { border-right: 1px solid #e5e7eb; }
.feat-icon {
  width: 38px; height: 38px; margin-bottom: 20px;
  color: #3b6ea5;
}
.feat h3 {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.feat p {
  font-size: 0.83rem;
  color: #6e6e73;
  line-height: 1.65;
  font-weight: 400;
}

/* ── QUOTE ── */
.quote-section {
  max-width: 640px;
  margin: 100px auto 0;
  padding: 0 24px;
  text-align: center;
}
.quote-section blockquote {
  font-size: 1.25rem;
  font-weight: 300;
  font-style: italic;
  color: #9ca3af;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* ── FOOTER ── */
footer {
  margin-top: 100px;
  background: #111111;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}
.footer-logo span { color: #5b8db8; }
.footer-disc {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.22);
  line-height: 1.6;
  max-width: 560px;
}

@media(max-width:680px){
  header { padding: 0 20px; }
  .hero h1 { font-size: 2.2rem; }
  .features { grid-template-columns: 1fr; }
  .feat { border-right: none !important; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { border-right: none; border-bottom: 1px solid #f0f0f0; padding-right:0; padding-bottom:16px; }
  footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
}
