/* ═══════════════════════════════════════════════════════════
   CODEEVOLUTION WEB — Design System
   Tema: navbar/sidebar/footer NAVY SCURO · body BIANCO/GRIGIO
   Accent: arancio/oro dal logo ufficiale
   Font: Inter (UI) · JetBrains Mono (code)
   ═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Colori struttura (navbar / sidebar / footer) */
  --nav-bg:         #1a2332;
  --nav-bg-dark:    #131c2b;
  --nav-border:     rgba(255,255,255,.07);
  --nav-text:       #c8d6e5;
  --nav-text-muted: #7a92aa;
  --nav-hover:      rgba(255,255,255,.08);
  --nav-active-bg:  rgba(245,166,35,.18);
  --nav-active-text:#f5a623;

  /* Accent arancio/oro — dal logo */
  --orange:         #f5a623;
  --orange-dark:    #d4880a;
  --orange-light:   #ffc24d;
  --orange-bg:      rgba(245,166,35,.1);
  --orange-border:  rgba(245,166,35,.3);
  --orange-glow:    0 4px 18px rgba(245,166,35,.35);

  /* Body / content — tema CHIARO */
  --body-bg:        #f0f2f5;
  --card-bg:        #ffffff;
  --card-border:    #e2e8f0;
  --card-shadow:    0 2px 8px rgba(0,0,0,.07);

  /* Testo su sfondo chiaro */
  --text-h:         #1a2332;
  --text-body:      #2d3748;
  --text-muted:     #718096;
  --text-light:     #a0aec0;

  /* Bordi / separatori */
  --border:         #e2e8f0;
  --border-light:   #edf2f7;

  /* Stato */
  --green:          #38a169;
  --green-bg:       rgba(56,161,105,.1);
  --red:            #e53e3e;
  --blue:           #3182ce;
  --blue-bg:        rgba(49,130,206,.08);

  /* Font */
  --font-ui:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --transition: .18s cubic-bezier(.4,0,.2,1);

  /* Compat aliases for legacy page-specific styles */
  --navy-950: var(--nav-bg-dark);
  --navy-900: var(--nav-bg);
  --navy-800: #223044;
  --cyan: #22d3ee;
  --white: #ffffff;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --amber: #f59e0b;
  --font-display: var(--font-ui);
  --font-body: var(--font-ui);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-xl: var(--r-xl);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--body-bg);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: var(--orange-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

/* ════════════════════════════════════════════════
   HELP / MANUALE HTML
   ════════════════════════════════════════════════ */
.help-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 12%, rgba(245, 166, 35, .10), transparent 28%),
    var(--body-bg);
  padding: 96px 1.5rem 4rem;
}

.help-hero {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 2.25rem;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--r-xl);
  box-shadow: 0 18px 50px rgba(19, 28, 43, .22);
}

.help-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: .65rem 0 .8rem;
}

.help-hero p {
  color: var(--nav-text);
  max-width: 780px;
  margin: 0;
  font-size: 1rem;
}

.help-layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.help-sidebar,
.help-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
}

.help-sidebar {
  position: sticky;
  top: 82px;
  padding: 1rem;
}

.help-sidebar-title {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-h);
  margin-bottom: .85rem;
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.help-nav a {
  display: block;
  padding: .65rem .8rem;
  border-radius: var(--r-sm);
  color: var(--text-body);
  font-weight: 600;
  font-size: .9rem;
}

.help-nav a:hover,
.help-nav a.active {
  color: var(--orange-dark);
  background: var(--orange-bg);
}

.help-sidebar-box {
  margin-top: 1rem;
  padding: .9rem;
  border-radius: var(--r-md);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  display: grid;
  gap: .35rem;
  font-size: .85rem;
}

.help-sidebar-box span {
  color: var(--text-muted);
}

.help-content {
  padding: 1.5rem;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.help-card-link {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--text-body);
}

.help-card-link:hover {
  border-color: var(--orange-border);
  box-shadow: var(--orange-glow);
  transform: translateY(-1px);
}

.help-card-link span {
  font-family: var(--font-mono);
  color: var(--orange-dark);
  font-size: .75rem;
  font-weight: 800;
}

.help-card-link strong {
  display: block;
  color: var(--text-h);
  font-size: 1.05rem;
  margin: .25rem 0;
}

.help-card-link small {
  color: var(--text-muted);
  line-height: 1.45;
}

.help-section,
.help-step,
.help-callout {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem;
  margin-bottom: 1rem;
  background: #fff;
}

.help-section h2,
.help-step h2 {
  font-size: 1.15rem;
  color: var(--text-h);
  font-weight: 800;
  margin-bottom: .35rem;
}

.help-section p,
.help-step p {
  margin: 0;
  color: var(--text-body);
}

.help-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 1rem;
}

.help-step > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--nav-bg-dark);
  font-weight: 900;
  box-shadow: var(--orange-glow);
}

.help-callout {
  background: var(--orange-bg);
  border-color: var(--orange-border);
  color: var(--text-h);
}

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

  .help-sidebar {
    position: static;
  }

  .help-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════
   NAVBAR  — dark navy, come da screenshot
   ════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 58px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 34px;
  width: auto;
}
.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav-logo-text .dot-it { color: var(--orange); }

/* Badge PORTABLE */
.nav-badge {
  background: var(--orange);
  color: var(--nav-bg-dark);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .15rem .5rem;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Nav links centro */
.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--nav-text);
  font-size: .85rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: var(--r-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--nav-hover);
}
.nav-links a.active {
  color: var(--orange-light);
}

/* Nav CTA destra */
.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: 1rem;
}

/* Hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.35rem;
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  box-shadow: var(--orange-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange-dark);
}
.btn-outline:hover {
  background: var(--orange-bg);
  color: var(--orange-dark);
  transform: translateY(-1px);
}

.btn-nav {
  background: var(--orange);
  color: var(--nav-bg-dark);
  border-color: var(--orange);
  font-size: .82rem;
  padding: .45rem 1.1rem;
}
.btn-nav:hover {
  background: var(--orange-light);
  color: var(--nav-bg-dark);
  box-shadow: var(--orange-glow);
}

.btn-nav-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.2);
  color: var(--nav-text);
  font-size: .82rem;
  padding: .45rem 1.1rem;
}
.btn-nav-ghost:hover {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: var(--nav-hover);
}

.admin-submenu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .32rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #f8fafc;
}
.admin-submenu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-h);
  text-decoration: none;
  transition: all var(--transition);
}
.admin-submenu-link:hover {
  background: #eef2f7;
  color: #111827;
}
.admin-submenu-link.active {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
  box-shadow: inset 0 -2px 0 #dc2626;
}
.admin-submenu-logout {
  margin: 0;
}
.admin-submenu-logout-btn {
  background: transparent;
  cursor: pointer;
}

.btn-lg  { padding: .8rem 1.75rem; font-size: .9375rem; }
.btn-sm  { padding: .45rem 1rem;   font-size: .8125rem; }

.btn-paypal {
  background: #0070ba;
  color: #fff;
  border-color: #0070ba;
  font-weight: 700;
}
.btn-paypal:hover {
  background: #005ea6;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,112,186,.4);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
.hero {
  padding: 100px 2rem 70px;
  background: var(--nav-bg);
  position: relative;
  overflow: hidden;
}

/* Linea hero: strato navy pieno + arancio solo in alpha (no mix arancio↔blu nel gradiente = niente tonalità fangosa) */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background-color: var(--nav-bg);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 10%,
    rgba(255, 194, 77, 0.3) 32%,
    rgba(245, 166, 35, 0.88) 47%,
    var(--orange-light) 50%,
    rgba(245, 166, 35, 0.88) 53%,
    rgba(255, 194, 77, 0.3) 68%,
    transparent 90%,
    transparent 100%
  );
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,166,35,.15);
  border: 1px solid var(--orange-border);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--orange-light);
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.3;} }

.hero-title {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.1rem;
}
.hero-title .accent { color: var(--orange); }

.hero-sub {
  font-size: 1rem;
  color: var(--nav-text);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--nav-border);
}
.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: var(--nav-text-muted);
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* App screenshot preview nel hero */
.hero-visual {
  position: relative;
}
.app-preview {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}
.app-preview:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
}
.app-preview img { width: 100%; display: block; }

/* ════════════════════════════════════════════════
   SEZIONI GENERALI
   ════════════════════════════════════════════════ */
.section {
  padding: 80px 2rem;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Sezioni alternate: bianco / grigio chiaro */
.section-white  { background: var(--card-bg); }
.section-gray   { background: var(--body-bg); }
/* Sezione dark (come header) */
.section-dark   { background: var(--nav-bg); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 800;
  color: var(--text-h);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section-dark .section-title { color: #fff; }

.section-sub {
  font-size: .9375rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
}
.section-dark .section-sub { color: var(--nav-text); }

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ════════════════════════════════════════════════
   STATS STRIP — dark navy come sidebar
   ════════════════════════════════════════════════ */
.stats-strip {
  background: var(--nav-bg-dark);
  border-top: 1px solid var(--nav-border);
  border-bottom: 1px solid var(--nav-border);
  padding: 2.5rem 2rem;
}
.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
  text-align: center;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .8rem;
  color: var(--nav-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ════════════════════════════════════════════════
   CARDS FEATURE
   ════════════════════════════════════════════════ */
/* 6 col logic: prime 6 card = 3×2 col ciascuna; ultime 2 = 3 col ciascuna → mezza larghezza, allineate ai bordi della riga da 3 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.features-grid .feature-card:nth-child(-n + 6) {
  grid-column: span 2;
}

.features-grid .feature-card:nth-child(n + 7) {
  grid-column: span 3;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--orange-border);
  transform: translateY(-3px);
}
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  transition: all var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--orange);
  box-shadow: var(--orange-glow);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-h);
  margin-bottom: .4rem;
}
.feature-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-tag {
  display: inline-block;
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--orange-dark);
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  padding: .15rem .55rem;
  border-radius: var(--r-xs);
}

/* ════════════════════════════════════════════════
   CODE WINDOW  — come nell'app (sfondo chiaro)
   ════════════════════════════════════════════════ */
.code-window {
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.code-titlebar {
  background: var(--nav-bg);
  padding: .7rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.code-dots { display: flex; gap: 5px; }
.code-dot  { width: 10px; height: 10px; border-radius: 50%; }
.code-filename {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--nav-text-muted);
  flex: 1;
  text-align: center;
}
.code-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.9;
  overflow-x: auto;
}
.code-line { display: flex; gap: 1.25rem; }
.code-ln   { color: #b0bec5; user-select: none; flex-shrink: 0; width: 18px; text-align: right; font-size: .72rem; }
.t-kw  { color: #c62828; }   /* keywords */
.t-cls { color: #1565c0; }   /* classi */
.t-str { color: #2e7d32; }   /* stringhe */
.t-num { color: #e65100; }   /* numeri */
.t-cm  { color: #90a4ae; font-style: italic; } /* commenti */
.t-pr  { color: #4a148c; }   /* property */
.t-wh  { color: var(--text-h); }
.t-or  { color: var(--orange-dark); }

/* ════════════════════════════════════════════════
   METRICHE
   ════════════════════════════════════════════════ */
.metrics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1.5rem;
}
.metric-row {
  padding: .9rem 0;
  border-bottom: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}
.metric-row:last-child { border-bottom: none; }
.metric-name  { font-weight: 600; color: var(--text-h); font-size: .9rem; }
.metric-desc  { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.metric-val   { font-family: var(--font-mono); font-size: .82rem; font-weight: 700; color: var(--orange-dark); }
.metric-bar-bg { height: 5px; background: var(--border); border-radius: 3px; margin-top: .5rem; overflow: hidden; grid-column: 1/-1; }
.metric-bar-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--orange-light)); }

/* ════════════════════════════════════════════════
   HOW IT WORKS STEPS — su dark
   ════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: .4;
}
.step-card { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nav-bg-dark);
  margin: 0 auto 1.1rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--orange-glow);
}
.step-title { font-weight: 700; color: #fff; margin-bottom: .4rem; font-size: .9375rem; }
.step-desc  { font-size: .84rem; color: var(--nav-text); line-height: 1.6; }

/* ════════════════════════════════════════════════
   PRICING
   ════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}
.plan-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}
.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.plan-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange-border), var(--shadow-lg);
  transform: scale(1.02);
}
.plan-card.featured:hover { transform: scale(1.02) translateY(-4px); }

/* Piani a card (Starter / Community / Professional) */
.pricing-grid--tiers {
  align-items: stretch;
}
.plan-card--starter {
  border-color: rgba(148, 163, 184, .45);
  background: linear-gradient(180deg, rgba(248, 250, 252, .9) 0%, var(--card-bg) 38%);
}
.plan-card--community {
  border-color: rgba(34, 197, 94, .35);
  background: linear-gradient(180deg, rgba(220, 252, 231, .35) 0%, var(--card-bg) 40%);
}
.plan-card--professional.featured {
  border-color: rgba(59, 130, 246, .75);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .2), var(--shadow-lg);
}
.plan-card--professional.featured:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: #3b82f6;
}
.plan-badge--trial {
  background: #e2e8f0;
  color: #334155;
  letter-spacing: .06em;
  text-transform: none;
  font-weight: 700;
  font-size: .72rem;
}
.plan-badge--community {
  background: #bbf7d0;
  color: #14532d;
  text-transform: none;
  letter-spacing: .04em;
  font-weight: 800;
  font-size: .7rem;
}
.plan-badge--professional {
  background: #bfdbfe;
  color: #1e3a8a;
  text-transform: none;
  letter-spacing: .04em;
  font-weight: 800;
  font-size: .7rem;
}
.plan-tier-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-h);
  margin-top: .35rem;
  letter-spacing: -.02em;
}
.plan-tier-sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin: .25rem 0 1rem;
  line-height: 1.45;
}
.plan-tier-priceblock {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.plan-tier-price-main {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-h);
  line-height: 1.1;
}
.plan-euro {
  font-size: 1.35rem;
  font-weight: 700;
  margin-right: .15rem;
  opacity: .9;
}
.plan-tier-price-meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .35rem;
}
.plan-tier-price-hint {
  font-size: .72rem;
  color: var(--text-light);
  margin-top: .2rem;
}
.plan-features--tier {
  margin-bottom: 1rem;
}
.plan-callout {
  font-size: .78rem;
  line-height: 1.45;
  border-radius: var(--r-md);
  padding: .65rem .75rem;
  margin-bottom: .55rem;
}
.plan-callout--warn {
  background: rgba(254, 226, 226, .85);
  border: 1px solid rgba(248, 113, 113, .35);
  color: #7f1d1d;
}
.plan-callout--note {
  background: rgba(254, 243, 199, .75);
  border: 1px solid rgba(245, 158, 11, .35);
  color: #78350f;
}
.plan-cta {
  font-weight: 700;
}
.plan-cta-ext {
  font-size: .85rem;
  opacity: .85;
}
.plan-cta-foot {
  text-align: center;
  margin-top: .55rem;
  font-size: .72rem;
  color: var(--text-light);
  line-height: 1.4;
}
.plan-cta-foot a {
  color: var(--orange-dark);
  font-weight: 600;
}
.pricing-flash {
  display: inline-block;
  margin-top: .5rem;
  padding: .55rem 1rem;
  border-radius: var(--r-md);
  background: rgba(254, 243, 199, .9);
  border: 1px solid rgba(245, 158, 11, .4);
  color: #78350f;
  font-size: .84rem;
  max-width: 560px;
}
.chip-muted {
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .25);
  color: var(--text-muted);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%; transform: translateX(-50%);
  background: var(--orange);
  color: var(--nav-bg-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name   { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .5rem; }
.plan-price  { font-size: 2.75rem; font-weight: 800; color: var(--text-h); line-height: 1; }
.plan-price sup { font-size: 1.1rem; vertical-align: top; margin-top: .5rem; font-weight: 700; }
.plan-period { font-size: .82rem; color: var(--text-muted); margin-top: .25rem; display: block; }
.plan-desc   {
  font-size: .875rem; color: var(--text-muted); line-height: 1.6;
  margin: 1rem 0 1.5rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .875rem; color: var(--text-body); padding: .38rem 0; line-height: 1.5;
}
.plan-features li .check { color: var(--green); flex-shrink: 0; }
.plan-features li .cross { color: var(--text-light); flex-shrink: 0; }
.plan-features li.disabled { color: var(--text-light); }
.plan-limit {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--orange-dark); background: var(--orange-bg);
  padding: .1rem .45rem; border-radius: var(--r-xs); margin-left: auto; flex-shrink: 0;
}

/* Pricing toggle */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  margin: 1.5rem 0; font-size: .875rem; color: var(--text-muted);
}
.toggle-switch {
  width: 44px; height: 24px;
  background: var(--border);
  border-radius: 12px; position: relative; cursor: pointer;
  border: 1.5px solid var(--border); transition: all var(--transition);
}
.toggle-switch.on { background: var(--orange); border-color: var(--orange); }
.toggle-switch::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; background: #fff;
  border-radius: 50%; top: 1px; left: 2px;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch.on::after { transform: translateX(20px); }
.save-badge {
  background: var(--green-bg); border: 1px solid rgba(56,161,105,.25);
  color: var(--green); font-size: .7rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: var(--r-xs);
}

/* ════════════════════════════════════════════════
   TECH TABLE (spec tabella come da screenshot app)
   ════════════════════════════════════════════════ */
.tech-table-wrap { overflow-x: auto; margin-top: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--border); }
.tech-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.tech-table thead { background: var(--nav-bg); }
.tech-table thead th {
  color: var(--nav-text-muted); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .75rem 1rem; text-align: left; white-space: nowrap;
}
.tech-table thead th:first-child { color: var(--orange-light); }
.tech-table tbody tr { border-bottom: 1px solid var(--border-light); }
.tech-table tbody tr:last-child { border-bottom: none; }
.tech-table tbody tr:nth-child(even) { background: var(--body-bg); }
.tech-table tbody tr:hover { background: var(--orange-bg); }
.tech-table td { padding: .7rem 1rem; color: var(--text-body); vertical-align: top; }
.tech-table td:first-child { font-weight: 600; color: var(--text-h); }
.tech-table td code {
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--orange-dark); background: var(--orange-bg);
  padding: .1rem .4rem; border-radius: var(--r-xs);
}

/* ════════════════════════════════════════════════
   INFO CARD / SPEC CARD (come i pannelli bianchi nell'app)
   ════════════════════════════════════════════════ */
.info-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.info-panel-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: .75rem;
}
.info-panel-title { font-weight: 700; color: var(--text-h); font-size: .9375rem; }
.info-panel-body  { padding: 1.5rem; }

.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid var(--border-light);
  font-size: .875rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--text-muted); }
.spec-val { font-family: var(--font-mono); font-size: .82rem; color: var(--orange-dark); font-weight: 600; }

/* ════════════════════════════════════════════════
   QUOTES / TESTIMONIALS
   ════════════════════════════════════════════════ */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.quote-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}
.quote-text {
  font-size: .9rem; line-height: 1.7; color: var(--text-body);
  font-style: italic; margin-bottom: 1.25rem; padding-top: 1.25rem; position: relative;
}
.quote-text::before {
  content: '"';
  position: absolute; top: 0; left: 0;
  font-size: 2.5rem; color: var(--orange); line-height: .8; font-style: normal;
  opacity: .6;
}
.quote-author { display: flex; align-items: center; gap: .65rem; }
.quote-avatar {
  width: 38px; height: 38px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; color: var(--nav-bg-dark); flex-shrink: 0;
}
.quote-name { font-weight: 600; color: var(--text-h); font-size: .875rem; display: block; }
.quote-role { font-size: .78rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════
   ACTIVATION STEPS
   ════════════════════════════════════════════════ */
.act-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.act-step  { display: grid; grid-template-columns: 52px 1fr; gap: 1.25rem; align-items: start; }
.act-num {
  width: 52px; height: 52px;
  background: var(--orange-bg); border: 2px solid var(--orange-border);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: var(--orange-dark); flex-shrink: 0;
}
.act-title { font-weight: 700; color: var(--text-h); margin-bottom: .3rem; font-size: .9375rem; }
.act-desc  { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.code-snippet {
  background: #f8f9fb; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: .9rem 1.1rem; margin-top: .65rem;
  font-family: var(--font-mono); font-size: .8rem; color: var(--text-h);
  overflow-x: auto;
}
.code-snippet .cm { color: #90a4ae; font-style: italic; }
.code-snippet .hl { color: var(--orange-dark); }

/* ════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════ */
.faq-list { max-width: 740px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.1rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-ui); font-size: .9375rem; font-weight: 600;
  color: var(--text-h); transition: color var(--transition);
}
.faq-question:hover { color: var(--orange-dark); }
.faq-icon {
  width: 22px; height: 22px;
  background: var(--orange-bg); border: 1px solid var(--orange-border);
  border-radius: var(--r-xs); display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--orange-dark); flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-icon { background: var(--orange); color: #fff; transform: rotate(45deg); }
.faq-answer {
  font-size: .875rem; color: var(--text-muted); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height .32s ease, padding .32s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 1.1rem; }

/* ════════════════════════════════════════════════
   CHECKOUT & FORM
   ════════════════════════════════════════════════ */
.checkout-wrap { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }

.form-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--card-shadow);
}
.form-card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-h); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .45rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-input);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: .7rem .9rem; color: var(--text-h);
  font-family: var(--font-ui); font-size: .9rem; transition: all var(--transition);
  appearance: none; outline: none;
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-bg);
}
.form-input::placeholder { color: var(--text-light); }
.form-error { font-size: .78rem; color: var(--red); margin-top: .3rem; display: none; }
.form-error.visible { display: block; }

/* Order summary */
.order-summary {
  background: var(--card-bg); border: 1.5px solid var(--orange-border);
  border-radius: var(--r-xl); padding: 1.75rem; box-shadow: var(--card-shadow);
  position: sticky; top: 76px;
}
.order-plan-name { font-size: 1.15rem; font-weight: 700; color: var(--text-h); margin-bottom: .2rem; }
.order-plan-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.order-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .875rem; color: var(--text-muted);
  padding: .45rem 0; border-bottom: 1px solid var(--border-light);
}
.order-line:last-of-type { border-bottom: none; }
.order-line.total { font-weight: 700; color: var(--text-h); font-size: 1rem; border-top: 2px solid var(--border); margin-top: .5rem; padding-top: .85rem; }
.order-val { font-family: var(--font-mono); font-size: .88rem; color: var(--orange-dark); font-weight: 600; }
.order-line.total .order-val { font-size: 1.2rem; color: var(--text-h); }
.secure-note {
  display: flex; align-items: center; gap: .5rem;
  background: var(--green-bg); border: 1px solid rgba(56,161,105,.2);
  border-radius: var(--r-sm); padding: .6rem .9rem;
  margin-top: 1rem; font-size: .8rem; color: var(--green);
}

/* ════════════════════════════════════════════════
   CONFIRMATION PAGE
   ════════════════════════════════════════════════ */
.confirm-icon {
  width: 88px; height: 88px;
  background: var(--green-bg); border: 2px solid rgba(56,161,105,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; margin: 0 auto 1.5rem;
  animation: pop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes pop { from { transform:scale(0) rotate(-180deg); opacity:0; } to { transform:scale(1) rotate(0); opacity:1; } }

.license-card {
  max-width: 660px; margin: 2rem auto;
  background: var(--card-bg); border: 1.5px solid var(--orange-border);
  border-radius: var(--r-xl); padding: 2rem; box-shadow: var(--card-shadow);
}
.license-key-box {
  background: #f8f9fb; border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 1rem 1.1rem;
  font-family: var(--font-mono); font-size: .85rem; color: var(--orange-dark);
  word-break: break-all; margin: .75rem 0; position: relative;
}
.copy-btn {
  position: absolute; top: .6rem; right: .6rem;
  background: var(--orange-bg); border: 1px solid var(--orange-border);
  border-radius: var(--r-xs); padding: .2rem .55rem; font-size: .7rem;
  color: var(--orange-dark); cursor: pointer; transition: all var(--transition);
}
.copy-btn:hover { background: var(--orange); color: #fff; }

/* ════════════════════════════════════════════════
   CHIPS / TAGS
   ════════════════════════════════════════════════ */
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 500; border: 1px solid;
}
.chip-orange { background: var(--orange-bg); border-color: var(--orange-border); color: var(--orange-dark); }
.chip-green  { background: var(--green-bg);  border-color: rgba(56,161,105,.25); color: var(--green); }
.chip-blue   { background: var(--blue-bg);   border-color: rgba(49,130,206,.2);  color: var(--blue); }
.chip-gray   { background: var(--body-bg);   border-color: var(--border);        color: var(--text-muted); }

/* ════════════════════════════════════════════════
   FOOTER — dark navy come navbar/sidebar
   ════════════════════════════════════════════════ */
.footer {
  background: var(--nav-bg-dark);
  border-top: 1px solid var(--nav-border);
  padding: 4rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}
.footer-tagline { font-size: .875rem; color: var(--nav-text-muted); line-height: 1.65; margin: .75rem 0 1.1rem; max-width: 280px; }
.footer-col-title { font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .875rem; color: var(--nav-text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--orange-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid var(--nav-border);
  font-size: .8rem; color: var(--nav-text-muted); flex-wrap: wrap; gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--nav-text-muted); font-size: .8rem; }
.footer-legal a:hover { color: var(--nav-text); }

/* Footer logo */
.footer-logo {
  display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-bottom: .5rem;
}
.footer-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .85; }

/* ════════════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.alert {
  padding: .85rem 1.1rem; border-radius: var(--r-md); font-size: .875rem; line-height: 1.5;
  border: 1px solid; display: flex; align-items: flex-start; gap: .65rem;
}
.alert-orange { background: var(--orange-bg); border-color: var(--orange-border); color: #92400e; }
.alert-green  { background: var(--green-bg);  border-color: rgba(56,161,105,.25); color: #276749; }
.alert-blue   { background: var(--blue-bg);   border-color: rgba(49,130,206,.2);  color: #1a365d; }

/* Scroll animations */
.fade-up { opacity:0; transform:translateY(20px); transition:opacity .55s ease,transform .55s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ════════════════════════════════════════════════
   PAGE-SPECIFIC (centralized from views)
   ════════════════════════════════════════════════ */
.checkout-page { padding-top: 90px; background: var(--body-bg); min-height: 100vh; }
.checkout-wrap { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.5rem; display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.section-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.75rem; margin-bottom: 1.25rem; }
.section-card h3 { font-size: .9rem; font-weight: 700; color: var(--text-h); margin-bottom: 1.25rem; padding-bottom: .65rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: .5rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.campo-note { font-size: .72rem; color: var(--text-muted); margin-top: .25rem; }
.toggle-azienda { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--body-bg); border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; font-size: .875rem; color: var(--text-body); font-weight: 500; transition: all .18s; }
.toggle-azienda:hover { border-color: var(--orange); background: var(--orange-bg); }
.toggle-azienda input { accent-color: var(--orange); width: 16px; height: 16px; }
.campi-azienda { overflow: hidden; transition: max-height .35s ease; max-height: 0; }
.campi-azienda.aperto { max-height: 600px; }
.step-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--orange); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 800; flex-shrink: 0; }
.summary-box { background: #fff; border: 1.5px solid var(--orange-border); border-radius: var(--r-xl); padding: 1.75rem; position: sticky; top: 76px; }
.summary-line { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; color: var(--text-muted); padding: .4rem 0; border-bottom: 1px solid var(--border-light); }
.summary-line:last-of-type { border-bottom: none; }
.summary-total { display: flex; justify-content: space-between; font-weight: 700; color: var(--text-h); font-size: 1.05rem; border-top: 2px solid var(--border); margin-top: .5rem; padding-top: .85rem; }
.piano-badge { font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: .15rem .55rem; border-radius: 4px; text-transform: uppercase; }
.payment-methods { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.pm-icon { font-size: 1.5rem; }

.confirm-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem; }
.confirm-hero { text-align: center; margin-bottom: 2.5rem; }
.confirm-icon { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 0 auto 1.25rem; animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes popIn { from { transform: scale(0) rotate(-180deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.icon-ok { background: rgba(56,161,105,.12); border: 2px solid rgba(56,161,105,.3); }
.icon-wait { background: rgba(245,158,11,.12); border: 2px solid rgba(245,158,11,.3); }
.lic-card { background: #fff; border: 1.5px solid var(--orange-border); border-radius: var(--r-xl); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--card-shadow); }
.lic-key { background: #f8f9fb; border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.1rem; font-family: var(--font-mono); font-size: .88rem; color: var(--orange-dark); word-break: break-all; position: relative; margin: .75rem 0; }
.meta-g { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin: 1.25rem 0; }
.meta-c { background: #f8f9fb; border-radius: var(--r-md); padding: .9rem; text-align: center; }
.meta-l { font-family: var(--font-mono); font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }
.meta-v { font-weight: 700; color: var(--text-h); font-size: .95rem; }
.act-s { display: grid; grid-template-columns: 52px 1fr; gap: 1.1rem; align-items: start; margin-bottom: 1.25rem; }
.act-n { width: 52px; height: 52px; background: var(--orange-bg); border: 2px solid var(--orange-border); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; color: var(--orange-dark); flex-shrink: 0; }
.act-t { font-weight: 700; color: var(--text-h); margin-bottom: .3rem; }
.act-d { font-size: .875rem; color: var(--text-muted); line-height: 1.65; }
.code-b { background: #f8f9fb; border: 1px solid var(--border); border-radius: var(--r-sm); padding: .85rem 1rem; margin-top: .65rem; font-family: var(--font-mono); font-size: .8rem; color: var(--text-h); }
.cm { color: #90a4ae; font-style: italic; }

.verify-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: 1.5rem; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .home-kpi-grid,
  .home-metrics-grid,
  .home-usecases-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .features-split-grid,
  .features-halstead-grid,
  .features-ai-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .features-patterns-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .support-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 2rem 1.25rem !important;
  }

  .support-sticky {
    position: static !important;
  }

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

  .checkout-wrap {
    grid-template-columns: 1fr;
  }

  .summary-box {
    position: static;
  }

  .form-row-3 {
    grid-template-columns: 1fr 1fr;
  }

  .activation-tab-switcher {
    flex-wrap: wrap;
  }

  .activation-tab-switcher > button {
    min-width: 100%;
  }

  .home-hero-custom {
    padding-top: 82px !important;
  }

  .home-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    align-items: start !important;
  }

  .home-hero-text {
    padding-bottom: 2rem !important;
  }

  .home-hero-demo {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .app-preview      { display: none; }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid .feature-card:nth-child(-n + 6),
  .features-grid .feature-card:nth-child(n + 7) {
    grid-column: auto;
  }
  .pricing-grid     { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .plan-card.featured { transform: none; }
  .metrics-layout   { grid-template-columns: 1fr; }
  .steps-grid       { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
  .quote-grid       { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2,1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .checkout-grid    { grid-template-columns: 1fr; }
  .order-summary    { position: static; }
}

@media (max-width: 768px) {
  .home-kpi-grid,
  .home-metrics-grid,
  .home-usecases-grid,
  .features-mini-stats-grid,
  .features-patterns-grid,
  .features-halstead-kpi-grid,
  .support-sla-grid,
  .activation-status-grid {
    grid-template-columns: 1fr !important;
  }

  .support-page {
    padding-top: 76px !important;
  }

  .features-page {
    padding-top: 105px !important;
  }

  .activation-page {
    padding-top: 76px !important;
  }

  .form-row,
  .form-row-3,
  .meta-g,
  .verify-meta-grid {
    grid-template-columns: 1fr !important;
  }

  .confirm-wrap {
    padding: 2rem 1rem;
  }

  .act-s {
    grid-template-columns: 1fr;
    gap: .7rem;
  }

  .home-hero-custom {
    padding: 76px 1.1rem 0 !important;
  }

  .home-hero-title br {
    display: none;
  }

  .home-hero-actions .btn {
    width: 100%;
  }

  .home-hero-trust {
    line-height: 1.55;
  }

  .nav-links, .nav-cta   { display: none; }
  .nav-toggle            { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 58px; left: 0; right: 0;
    background: var(--nav-bg); border-bottom: 1px solid var(--nav-border);
    padding: .75rem; gap: .15rem; z-index: 999;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature-card:nth-child(-n + 6),
  .features-grid .feature-card:nth-child(n + 7) {
    grid-column: auto;
  }
  .steps-grid      { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .hero            { padding: 90px 1.25rem 50px; }
  .section         { padding: 56px 1.25rem; }
  .act-step        { grid-template-columns: 1fr; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: #c4cdd6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ═══════════════════════════════════════════
   HERO 2-COL FIX
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-2col { grid-template-columns: 1fr !important; }
  .hero-2col .hero-demo-col { display: none; }
}

/* Logo navbar: immagine PNG su sfondo dark — filtro per renderla leggibile */
.navbar .nav-logo img {
  height: 32px;
  width: auto;
  /* Il logo ha sfondo bianco — lo rendiamo compatibile con navbar dark */
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* Footer logo stesso filtro */
.footer-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: .75;
}

/* Nav logo text fallback quando immagine non si carica */
.nav-logo-fallback {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.nav-logo-fallback .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900;
  color: var(--nav-bg-dark);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.nav-logo-fallback .dot-it { color: var(--orange); }

/* Hero demo panel responsive */
@media (max-width: 1024px) {
  .hero-demo-col { display: none !important; }
  .hero-text-col { max-width: 600px; margin: 0 auto; }
}

/* ── Integrazione Bootstrap 5 (navbar con collapse) ─────────────────
   Il tema definisce .navbar fixed 58px; qui sovrascriviamo solo .ce-navbar. */
.navbar.ce-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: auto;
  min-height: 58px;
  padding: 0;
  gap: 0;
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-dark) 100%) !important;
  align-items: stretch;
}
/* Niente bordo sotto la navbar: separatore = div subito dopo in _Layout */
.navbar.ce-navbar.ce-navbar-full {
  border-bottom: none !important;
}

/*
 * Sotto navbar: sottile. Base navy piena + gradiente solo con arancio e trasparenza
 * (i lati “trasparenti” mostrano il navy sotto → nessuna interpolazione arancio+blu).
 */
.ce-navbar-divider {
  display: block;
  height: 2px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  flex-shrink: 0;
  background-color: var(--nav-bg-dark);
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 10%,
    rgba(255, 194, 77, 0.3) 32%,
    rgba(245, 166, 35, 0.88) 47%,
    var(--orange-light) 50%,
    rgba(245, 166, 35, 0.88) 53%,
    rgba(255, 194, 77, 0.3) 68%,
    transparent 90%,
    transparent 100%
  );
}
.navbar.ce-navbar > .container-fluid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 58px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
/* Da lg in su: menu + CTA affiancati e ancorati a destra */
@media (min-width: 992px) {
  .navbar.ce-navbar .ce-nav-menu {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }
}
.ce-brand-mark {
  width: 34px;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--nav-bg-dark);
  background: linear-gradient(135deg, var(--orange-light), var(--orange-dark));
}
.ce-brand-mark--sm {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}
.navbar.ce-navbar .nav-link {
  color: var(--nav-text) !important;
  border-radius: var(--r-sm);
  padding: 0.45rem 0.75rem !important;
}
.navbar.ce-navbar .nav-link:hover {
  color: #fff !important;
  background: var(--nav-hover);
}
.navbar.ce-navbar .nav-link.active {
  color: var(--nav-active-text) !important;
  background: var(--nav-active-bg);
}
.navbar.ce-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}
.navbar.ce-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(245, 166, 35, 0.25);
}
