/* ============================================================
   ExoCo V3 — White Minimal Theme (Linear / Notion inspired)
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --bg-tinted: #f5f7fb;
  --bg-elevated: #ffffff;

  /* Text */
  --text-primary: #0b0f19;
  --text-secondary: #44506a;
  --text-muted: #6b7791;
  --text-faint: #9aa3b8;

  /* Borders */
  --border: #e6e8ee;
  --border-strong: #d2d6df;
  --border-soft: #eef0f4;

  /* Brand (accenti viola/blu su sfondo bianco) */
  --brand-1: #5b6bf5;   /* indigo bright */
  --brand-2: #7c5cff;   /* violet */
  --brand-3: #3da8ff;   /* azure */
  --brand-soft: #eef0ff;
  --brand-soft-2: #f3eeff;

  /* Status palette per le 4 aree (allineata alla sidebar V3) */
  --area-1: #2563eb;    /* 01 Mappatura — blue */
  --area-2: #d97706;    /* 02 Formazione e selezione — amber */
  --area-3: #059669;    /* 03 Gestione comunicazioni — emerald */
  --area-4: #c026d3;    /* 04 Sezione agentica — fuchsia */

  /* Sfumature soft per i tile per area */
  --area-1-soft: #eff6ff;
  --area-2-soft: #fffbeb;
  --area-3-soft: #ecfdf5;
  --area-4-soft: #fdf4ff;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger:  #ef4444;

  /* Shadows soft */
  --shadow-xs: 0 1px 2px rgba(11, 15, 25, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 15, 25, 0.05), 0 1px 2px rgba(11, 15, 25, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 15, 25, 0.06), 0 2px 6px rgba(11, 15, 25, 0.04);
  --shadow-lg: 0 16px 40px rgba(11, 15, 25, 0.10);
  --shadow-glow: 0 8px 28px rgba(91, 107, 245, 0.20);

  --font-heading: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

body {
  background-image:
    radial-gradient(circle at 90% -10%, rgba(124, 92, 255, 0.06), transparent 40%),
    radial-gradient(circle at -10% 30%, rgba(61, 168, 255, 0.06), transparent 35%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a {
  color: var(--brand-1);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--brand-2); }

/* Gradient text accent */
.text-gradient {
  background: linear-gradient(95deg, var(--brand-3), var(--brand-1) 45%, var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 880px; }

section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.9rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--border-soft);
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}
.logo-subtitle {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--brand-1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.25rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-tinted); }
.nav-links a.active {
  color: var(--brand-1);
  background: var(--brand-soft);
}

.nav-cta {
  margin-left: 0.6rem;
}

/* Toggle menu mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 1.2rem 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(11,15,25,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.7rem 0.8rem; }
  .nav-links .nav-cta { margin-top: 0.4rem; }
  .nav-links .nav-cta .btn { width: 100%; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(91, 107, 245, 0.30);
  color: #fff;
}

.btn-outline {
  background: var(--bg);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-tinted); color: var(--text-primary); }

.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--brand-soft);
  color: var(--brand-1);
  border: 1px solid rgba(91, 107, 245, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(91, 107, 245, 0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91, 107, 245, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(91, 107, 245, 0.05); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.3rem;
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Page-header (per pagine interne) */
.page-header {
  padding: 9rem 0 2.5rem;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.8rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition);
  position: relative;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--brand-soft);
  color: var(--brand-1);
  margin-bottom: 1.1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .grid-4 { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 820px;
  margin: 0 auto;
}
.process-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.process-item:hover {
  border-color: var(--brand-1);
  background: var(--bg-soft);
}
.process-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-1);
  min-width: 42px;
  line-height: 1;
}
.process-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.process-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.pricing-card.is-featured {
  border-color: var(--brand-1);
  box-shadow: var(--shadow-glow);
}
.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pricing-tier {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.pricing-tier .tier-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.pricing-pitch {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-height: 2.6em;
  margin-bottom: 1.2rem;
}
.pricing-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.pricing-features li.area-line {
  font-weight: 600;
  color: var(--text-primary);
}
.pricing-features .check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 0.18rem;
}

/* ============================================================
   FORM
   ============================================================ */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.field {
  margin-bottom: 1.2rem;
}
.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(91, 107, 245, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-help {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   MOCK DASHBOARD (Realtime preview)
   ============================================================ */
.mock-dashboard {
  max-width: 920px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mock-window-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.mock-dot.red    { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green  { background: #28c840; }
.mock-bar-title {
  margin-left: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.mock-live-dot {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}
.mock-live-dot::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.05); }
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}
.kpi-cell {
  padding: 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.kpi-cell:last-child { border-right: none; }
.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kpi-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.kpi-cell.kpi-warn .kpi-value  { color: var(--warning); }
.kpi-cell.kpi-purple .kpi-value{ color: var(--brand-2); }
.kpi-cell.kpi-blue .kpi-value  { color: var(--brand-3); }
.kpi-cell.kpi-success .kpi-value { color: var(--success); }
.kpi-cell.kpi-indigo .kpi-value{ color: var(--brand-1); }

.mock-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.auto-row {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.auto-row .label {
  width: 110px;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.auto-row .track {
  flex: 1;
  height: 8px;
  background: var(--bg-tinted);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.auto-row .fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.auto-row .val {
  width: 50px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================================
   PILL / TAG
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-tinted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.pill-brand { background: var(--brand-soft); color: var(--brand-1); border-color: rgba(91, 107, 245, 0.18); }
.pill-success { background: rgba(22,163,74,0.08); color: var(--success); border-color: rgba(22,163,74,0.16); }
.pill-warning { background: rgba(245,158,11,0.08); color: var(--warning); border-color: rgba(245,158,11,0.16); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3rem 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--brand-1); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.social-row {
  display: flex; gap: 0.6rem;
}
.social-row a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: var(--transition);
}
.social-row a:hover {
  color: var(--brand-1);
  border-color: var(--brand-1);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--brand-1);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-tinted);
  overflow: hidden;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-card-meta .read-more {
  color: var(--brand-1);
  font-weight: 600;
}

/* Article reading */
.article-hero {
  padding: 9rem 0 3rem;
  text-align: center;
}
.article-hero .tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--brand-soft);
  color: var(--brand-1);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.article-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 820px;
  margin: 0 auto 1rem;
}
.article-hero .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body h2 {
  margin: 2.4rem 0 1rem;
  font-size: 1.7rem;
  color: var(--text-primary);
}
.article-body h3 {
  margin: 2rem 0 0.8rem;
  font-size: 1.3rem;
  color: var(--text-primary);
}
.article-body p { margin-bottom: 1.2rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.4rem 1.4rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--brand-1);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-style: italic;
}
.article-body strong { color: var(--text-primary); }
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.4rem 0;
}

/* ============================================================
   PRODUCT BLOCKS (4 aree)
   ============================================================ */
.product-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
@media (max-width: 1000px) { .product-blocks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .product-blocks { grid-template-columns: 1fr; } }

.product-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.product-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-1);
}
.product-block.area-1::before { background: var(--area-1); }
.product-block.area-2::before { background: var(--area-2); }
.product-block.area-3::before { background: var(--area-3); }
.product-block.area-4::before { background: var(--area-4); }

.product-block:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-block .block-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.product-block .block-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.product-block.area-1 .block-icon { background: var(--area-1-soft); color: var(--area-1); }
.product-block.area-2 .block-icon { background: var(--area-2-soft); color: var(--area-2); }
.product-block.area-3 .block-icon { background: var(--area-3-soft); color: var(--area-3); }
.product-block.area-4 .block-icon { background: var(--area-4-soft); color: var(--area-4); }

.product-block .block-step {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
}
.product-block .block-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
.product-block .block-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.product-block .block-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
/* il testo del bullet resta un blocco continuo: niente flex sui li,
   altrimenti <strong> e nodi di testo diventano colonne separate */
.product-block .block-bullets li {
  display: block;
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  overflow-wrap: break-word;
}
.product-block .block-bullets li strong {
  color: var(--text-primary);
  font-weight: 600;
}
.product-block .block-bullets li code {
  font-size: 0.92em;
  white-space: nowrap;
}
.product-block .block-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-1);
}
.product-block.area-1 .block-bullets li::before { background: var(--area-1); }
.product-block.area-2 .block-bullets li::before { background: var(--area-2); }
.product-block.area-3 .block-bullets li::before { background: var(--area-3); }
.product-block.area-4 .block-bullets li::before { background: var(--area-4); }

/* ============================================================
   AREA CARDS ROW (sistema.html — 4 colonne fianco a fianco)
   ============================================================ */
.area-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.area-cards-row > .card {
  padding: 1.4rem 1.2rem;
}
.area-cards-row > .card h3 {
  font-size: 1.2rem !important;
  margin-top: 0.7rem !important;
}
.area-cards-row > .card ul {
  font-size: 0.85rem !important;
}
.area-cards-row > .card ul li {
  line-height: 1.45;
}
@media (max-width: 1280px) {
  .area-cards-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 700px) {
  .area-cards-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FEATURE GRID (V3 highlights)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.feature-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition);
}
.feature-tile:hover {
  border-color: var(--brand-1);
  background: var(--bg-soft);
}
.feature-tile .tile-icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  display: inline-block;
}
.feature-tile h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.feature-tile p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ============================================================
   ABOUT (Chi Siamo)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
/* About-photo: ritratto al naturale, con sfondo sfumato brand
   Foto originale 480×887 (portrait stretto). Aspect-ratio 4/5 + object-fit
   contain mostra TUTTA la foto, busto incluso, senza tagli.
   Sfondo brand soft riempie il bordo. */
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-soft) 0%, var(--brand-soft-2) 100%);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
  padding: 0;
}
.about-photo::after {
  /* leggera vignetta in basso per profondità */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(11,15,25,0.05) 100%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}
.about-photo img {
  /* contain mostra la foto INTERA: testa + busto, niente tagli */
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  position: relative;
  z-index: 1;
}

/* Variante "round" per la home: cerchio focalizzato sulla testa */
.about-photo.is-round {
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-soft), var(--brand-soft-2));
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}
.about-photo.is-round::after {
  border-radius: 50%;
}
.about-photo.is-round img {
  /* nel cerchio uso cover per riempire e mostro testa+spalle ben centrate
     (la faccia è nella parte alta della foto originale) */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 5%;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   SIMULATORE DI RISPARMIO (simulatore.html)
   ============================================================ */
.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
@media (max-width: 980px) { .sim-layout { grid-template-columns: 1fr; } }

.sim-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.sim-panel + .sim-panel { margin-top: 1.2rem; }
.sim-panel h3 {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}
.sim-panel .sim-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
}
.sim-sticky { position: sticky; top: 92px; }
@media (max-width: 980px) { .sim-sticky { position: static; } }

.sim-roles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sim-role {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid var(--border-soft);
}
.sim-role:last-child { border-bottom: none; }
.sim-role .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sim-role .rname {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.3;
}
.sim-role .rname small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.sim-role input {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-align: right;
  color: var(--text-primary);
  outline: none;
}
.sim-role input:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(91, 107, 245, 0.12);
}
.sim-role-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.sim-role-total strong { color: var(--text-primary); }
.sim-role-total.mismatch strong { color: var(--warning); }

.sim-headline {
  text-align: center;
  padding: 1.8rem 1.5rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.sim-headline .big {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.sim-headline .cap {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.sim-note {
  padding: 0.8rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.sim-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
#sim-bars .auto-row .val { width: 74px; white-space: nowrap; }
#sim-bars .auto-row .label { flex-shrink: 0; }
/* Il CTA in navbar è un bottone: il colore del bottone vince sul colore dei link di menu */
.nav-links .nav-cta a.btn-primary { color: #fff; }
.nav-links .nav-cta a.btn-primary:hover { color: #fff; }
/* Cifre lunghe nelle KPI del simulatore */
.sim-sticky .kpi-value { white-space: nowrap; font-size: 1.15rem; }

/* ============================================================
   BLOCCHI EDITORIALI PREMIUM (chi-siamo, report)
   ============================================================ */
.quote-block {
  position: relative;
  margin: 2rem 0 0;
  padding: 2.2rem 2.4rem 2.2rem 3.4rem;
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--brand-soft-2) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91,107,245,0.14);
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem; left: 1.1rem;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(91,107,245,0.28);
}
.quote-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}
.quote-block p + p { margin-top: 0.9rem; }
.quote-block .quote-close {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(91,107,245,0.18);
  color: var(--text-primary);
  font-weight: 500;
}

/* --- I tre strumenti --- */
.tools-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
@media (max-width: 900px) { .tools-row { grid-template-columns: 1fr; } }
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  transition: var(--transition);
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-card.tool-current {
  border-color: rgba(91,107,245,0.45);
  box-shadow: 0 0 0 3px rgba(91,107,245,0.09), var(--shadow-sm);
}
.tool-badge {
  position: absolute;
  top: -11px; left: 1.6rem;
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tool-step {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: 0.5rem;
}
.tool-card h3 { font-size: 1.5rem; margin: 0 0 0.15rem; letter-spacing: -0.02em; }
.tool-organ {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.tool-card > p:not(.tool-organ) {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  flex-grow: 1;
}
.tool-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-1);
}
.tool-link-muted { color: var(--text-faint); font-weight: 500; }

/* --- Callout --- */
.callout {
  padding: 1.6rem 1.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-1);
  border-radius: var(--radius-md);
}
.callout h4 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.callout p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.7; margin: 0; }

/* --- Elenco dei limiti --- */
.limits-list { list-style: none; padding: 0; margin: 0; }
.limits-list li {
  position: relative;
  padding: 1.1rem 0 1.1rem 2.2rem;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.limits-list li:last-child { border-bottom: none; }
.limits-list li::before {
  content: "\2014";
  position: absolute;
  left: 0; top: 1.1rem;
  color: var(--danger);
  font-weight: 700;
}
.limits-list strong { color: var(--text-primary); }

/* --- Le cinque domande --- */
.qa-list { display: flex; flex-direction: column; gap: 0.9rem; }
.qa-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.7rem;
}
.qa-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}
.qa-item h4 { font-size: 1.02rem; margin: 0.4rem 0 0.55rem; line-height: 1.4; }
.qa-item p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.7; margin: 0; }
@media (max-width: 600px) {
  .qa-item { grid-template-columns: 1fr; }
  .qa-num { width: 38px; height: 38px; font-size: 1rem; }
}

/* ============================================================
   PAGINA REPORT (download) — layout premium
   ============================================================ */
.report-hero{
  position:relative;
  padding:7rem 0 5rem;
  background:
    radial-gradient(900px 520px at 82% 10%, rgba(124,92,255,.5) 0%, rgba(124,92,255,0) 62%),
    radial-gradient(760px 460px at 6% 96%, rgba(37,99,235,.42) 0%, rgba(37,99,235,0) 60%),
    linear-gradient(160deg,#0b0f19 0%,#141a2e 54%,#1b1636 100%);
  overflow:hidden;
}
.report-hero::after{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(70% 60% at 45% 40%, #000 0%, transparent 78%);
          mask-image:radial-gradient(70% 60% at 45% 40%, #000 0%, transparent 78%);
  pointer-events:none;
}
.report-hero > .container{position:relative;z-index:1}
.report-grid{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  gap:3.5rem; align-items:center;
}
@media (max-width:940px){ .report-grid{grid-template-columns:1fr; gap:2.5rem} }

.report-pill{
  display:inline-flex; align-items:center; gap:0.5rem;
  padding:0.4rem 0.95rem; margin-bottom:1.4rem;
  border:1px solid rgba(255,255,255,.24); border-radius:var(--radius-pill);
  font-family:var(--font-heading); font-size:0.72rem; font-weight:600;
  letter-spacing:0.14em; text-transform:uppercase; color:#c3c9ff;
}
.report-hero h1{
  font-size:clamp(2.1rem,4vw,3.1rem); line-height:1.1; letter-spacing:-.035em;
  color:#fff; margin-bottom:1.2rem;
}
.report-hero h1 span{
  background:linear-gradient(90deg,#8ba4ff,#c4a6ff);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.report-hero .lede{ color:#c3cadd; font-size:1.05rem; line-height:1.7; margin-bottom:1.8rem; max-width:46ch; }
.report-meta{
  display:flex; flex-wrap:wrap; gap:1.6rem; margin-bottom:2rem;
  padding-top:1.4rem; border-top:1px solid rgba(255,255,255,.14);
}
.report-meta div{ min-width:0 }
.report-meta b{
  display:block; font-family:var(--font-heading); font-size:1.35rem; font-weight:700;
  color:#fff; line-height:1;
}
.report-meta span{ display:block; margin-top:.35rem; font-size:.78rem; color:#8f99b5; letter-spacing:.03em }
.report-hero .btn-outline{
  border-color:rgba(255,255,255,.3); color:#e6e9f5; background:transparent;
}
.report-hero .btn-outline:hover{ background:rgba(255,255,255,.08); color:#fff }
.report-note{ margin-top:1rem; font-size:.82rem; color:#8f99b5 }

.report-shot{ position:relative }
.report-shot img{
  width:100%; height:auto; display:block;
  filter:drop-shadow(0 34px 60px rgba(0,0,0,.55));
}

/* --- cosa c'è dentro --- */
.inside-grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0.9rem;
}
@media (max-width:820px){ .inside-grid{grid-template-columns:1fr} }
.inside-item{
  display:grid; grid-template-columns:34px minmax(0,1fr); gap:0.9rem;
  align-items:start;
  padding:1.1rem 1.2rem;
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-md);
  transition:var(--transition);
}
.inside-item:hover{ box-shadow:var(--shadow-sm); border-color:var(--border-strong) }
.inside-n{
  width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  background:var(--brand-soft); color:var(--brand-1);
  font-family:var(--font-heading); font-size:.82rem; font-weight:700;
}
.inside-item h4{ font-size:.97rem; margin:0 0 .3rem; line-height:1.35 }
.inside-item p{ font-size:.86rem; color:var(--text-secondary); line-height:1.6; margin:0 }

/* --- estratto / anteprima pagine --- */
.pages-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.1rem; margin-top:2rem;
}
@media (max-width:820px){ .pages-strip{grid-template-columns:repeat(2,1fr)} }
.pages-strip figure{ margin:0 }
.pages-strip img{
  width:100%; height:auto; display:block; border-radius:8px;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
}
.pages-strip figcaption{
  margin-top:.55rem; font-family:var(--font-heading);
  font-size:.72rem; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--text-muted); text-align:center;
}

/* --- form download --- */
.dl-card{
  max-width:620px; margin:0 auto;
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:2.5rem; box-shadow:var(--shadow-md);
}
.dl-card h3{ margin-top:0; font-size:1.4rem }

/* --- form di download vincolato --- */
.dl-head{ margin-bottom:1.8rem }
.dl-head h3{ margin:0.4rem 0 0.5rem }
.dl-head p{ font-size:0.92rem; margin:0 }
.field label .req{ color:var(--danger); font-weight:700 }
.field-error{
  display:none; margin-top:0.4rem;
  font-size:0.8rem; color:var(--danger);
}
.field.has-error input{
  border-color:var(--danger);
  box-shadow:0 0 0 3px rgba(239,68,68,0.10);
}
.field.has-error .field-error{ display:block }
.dl-done{ text-align:center; padding:1rem 0 0.5rem }
.dl-done h3{ margin:0 0 0.6rem }
.dl-done p{ font-size:0.92rem }
.dl-check{
  width:56px; height:56px; margin:0 auto 1.2rem;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(22,163,74,0.10);
  color:var(--success);
  font-size:1.6rem; font-weight:700;
}

/* ============================================================
   CHI SIAMO — blocco fondatore (foto grande + percorso a schede)
   ============================================================ */
.founder{
  position:relative;
  padding:4.5rem 0 5rem;
  background:linear-gradient(180deg, var(--bg) 0%, var(--bg-tinted) 100%);
  overflow:hidden;
}
.founder::before{
  content:"";
  position:absolute; top:-18%; right:-10%;
  width:640px; height:640px; border-radius:50%;
  background:radial-gradient(circle, rgba(124,92,255,.14) 0%, rgba(124,92,255,0) 68%);
  pointer-events:none;
}
.founder > .container{ position:relative; z-index:1 }

.founder-grid{
  display:grid;
  grid-template-columns:minmax(0,0.85fr) minmax(0,1fr);
  gap:4rem;
  align-items:center;
}
@media (max-width:940px){
  .founder-grid{ grid-template-columns:1fr; gap:2.5rem; max-width:560px; margin:0 auto }
}

/* --- foto grande, ritratto intero --- */
.founder-photo{
  position:relative; margin:0;
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:4/5;
  background:linear-gradient(165deg, #eef0fc 0%, #e6e9fb 45%, #dfe4fa 100%);
  box-shadow:0 26px 60px rgba(17,22,44,.16), 0 2px 8px rgba(17,22,44,.06);
  display:flex; align-items:flex-end; justify-content:center;
}
.founder-photo::before{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:42%;
  background:linear-gradient(180deg, rgba(12,16,32,0) 0%, rgba(12,16,32,.62) 100%);
  z-index:1; pointer-events:none;
}
.founder-photo img{
  width:auto; height:100%; max-width:100%;
  object-fit:contain; object-position:bottom center;
  display:block;
}
.founder-photo figcaption{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:1.5rem 1.6rem;
  color:#fff;
}
.founder-photo figcaption strong{
  display:block;
  font-family:var(--font-heading);
  font-size:1.15rem; font-weight:700; letter-spacing:-.02em;
}
.founder-photo figcaption span{
  display:block; margin-top:.22rem;
  font-size:.78rem; letter-spacing:.06em; color:rgba(255,255,255,.72);
}

/* --- testo, corto per scelta --- */
.founder-name{
  font-size:clamp(2.1rem,3.4vw,2.9rem);
  line-height:1.05; letter-spacing:-.035em;
  margin:.3rem 0 .8rem;
}
.founder-role{
  font-family:var(--font-heading);
  font-size:1.06rem; font-weight:600; line-height:1.45;
  background:linear-gradient(90deg, var(--brand-1), var(--brand-3));
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  margin-bottom:1.6rem;
}
.founder-lede{
  font-size:1.02rem; line-height:1.75; color:var(--text-secondary);
  padding-left:1.3rem; border-left:3px solid var(--brand-1);
  margin-bottom:2rem;
}
.founder-lede strong{ color:var(--text-primary) }
.founder-cta{ display:flex; gap:.7rem; flex-wrap:wrap }

/* --- il percorso: schede invece di un muro di testo --- */
.path-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.1rem;
}
@media (max-width:820px){ .path-grid{ grid-template-columns:1fr } }
.path-card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:1.9rem 1.9rem 1.7rem;
  transition:var(--transition);
}
.path-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-2px) }
.path-card-brand{
  background:linear-gradient(150deg, var(--brand-soft) 0%, var(--brand-soft-2) 100%);
  border-color:rgba(91,107,245,.22);
}
.path-year{
  display:inline-block;
  font-family:var(--font-heading);
  font-size:.7rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--brand-1);
  padding:.28rem .7rem; margin-bottom:.9rem;
  background:var(--brand-soft); border-radius:var(--radius-pill);
}
.path-card-brand .path-year{ background:rgba(255,255,255,.75) }
.path-card h3{ font-size:1.12rem; margin:0 0 .7rem; line-height:1.35 }
.path-card p{
  font-size:.93rem; line-height:1.72; color:var(--text-secondary); margin:0;
}
.path-card p + p{ margin-top:.8rem }
@media (max-width:760px){ .br-wide{ display:none } }

/* ============================================================
   IL SISTEMA — sequenza + bande d'area (spec sheet)
   ============================================================ */
.seq-rail{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0;
  border:1px solid var(--border); border-radius:var(--radius-lg);
  overflow:hidden; background:var(--bg);
}
@media (max-width:880px){ .seq-rail{ grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media (max-width:520px){ .seq-rail{ grid-template-columns:1fr } }
.seq-step{
  position:relative;
  padding:1.5rem 1.5rem 1.4rem;
  border-right:1px solid var(--border);
  border-top:3px solid var(--c);
  display:flex; flex-direction:column; gap:.25rem;
}
.seq-step:last-child{ border-right:none }
@media (max-width:880px){
  .seq-step:nth-child(2n){ border-right:none }
  .seq-step:nth-child(-n+2){ border-bottom:1px solid var(--border) }
}
.seq-1{ --c:var(--area-1) } .seq-2{ --c:var(--area-2) }
.seq-3{ --c:var(--area-3) } .seq-4{ --c:var(--area-4) }
.seq-n{
  font-family:var(--font-heading); font-size:.72rem; font-weight:700;
  letter-spacing:.16em; color:var(--c);
}
.seq-t{ font-family:var(--font-heading); font-size:1rem; font-weight:600; color:var(--text-primary) }
.seq-s{ font-size:.83rem; color:var(--text-muted) }
.seq-step::after{
  content:"\2192";
  position:absolute; right:-9px; top:50%; transform:translateY(-50%);
  width:18px; height:18px; border-radius:50%;
  background:var(--bg); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  font-size:.6rem; color:var(--text-muted); z-index:2;
}
.seq-step:last-child::after{ display:none }
@media (max-width:880px){ .seq-step::after{ display:none } }

/* --- banda d'area --- */
.area-band{ padding:4.5rem 0; position:relative }
.area-band-1{ --c:var(--area-1); --cs:var(--area-1-soft) }
.area-band-2{ --c:var(--area-2); --cs:var(--area-2-soft) }
.area-band-3{ --c:var(--area-3); --cs:var(--area-3-soft) }
.area-band-4{ --c:var(--area-4); --cs:var(--area-4-soft) }
.area-band-2, .area-band-4{ background:var(--bg-tinted) }

.area-band-inner{ position:relative }
.area-band-head{
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:2rem;
  align-items:start; margin-bottom:2.4rem;
  padding-bottom:2rem; border-bottom:1px solid var(--border);
}
@media (max-width:720px){ .area-band-head{ grid-template-columns:1fr; gap:1rem } }
.area-band-mark{
  font-family:var(--font-heading);
  font-size:5.2rem; font-weight:800; line-height:.82;
  letter-spacing:-.05em;
  color:transparent;
  -webkit-text-stroke:2px var(--c);
  opacity:.55;
  user-select:none;
}
@media (max-width:720px){ .area-band-mark{ font-size:3.4rem } }
.area-band-kicker{
  display:inline-block; margin-bottom:.5rem;
  padding:.26rem .8rem; border-radius:var(--radius-pill);
  background:var(--cs); color:var(--c);
  font-family:var(--font-heading); font-size:.7rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
}
.area-band-title h3{
  font-size:clamp(1.6rem,2.6vw,2.1rem); letter-spacing:-.03em;
  margin:0 0 .7rem;
}
.area-band-lede{
  font-size:1.02rem; line-height:1.7; color:var(--text-secondary);
  max-width:70ch; margin:0;
}

/* --- spec sheet: 4 colonne di gruppi brevi --- */
.spec-grid{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.6rem;
}
@media (max-width:1100px){ .spec-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.8rem 1.6rem } }
@media (max-width:600px){ .spec-grid{ grid-template-columns:1fr } }
.spec h4{
  font-family:var(--font-heading);
  font-size:.74rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color:var(--c);
  margin:0 0 .9rem; padding-bottom:.55rem;
  border-bottom:1px solid var(--border);
}
.spec ul{ list-style:none; margin:0; padding:0 }
.spec li{
  position:relative; padding:0 0 .7rem 1rem;
  font-size:.9rem; line-height:1.6; color:var(--text-secondary);
}
.spec li:last-child{ padding-bottom:0 }
.spec li::before{
  content:""; position:absolute; left:0; top:.62em;
  width:5px; height:5px; border-radius:50%;
  background:var(--c); opacity:.55;
}

/* ============================================================
   SEZIONE LIBRO (chi-siamo.html — il quinto libro)
   ============================================================ */
.book-section{
  background:linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:5rem 0;
  position:relative;
  overflow:hidden;
}
.book-section::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 12% 20%, rgba(61,168,255,.07), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(124,92,255,.07), transparent 42%);
  pointer-events:none;
}
.book-section > .container{ position:relative; z-index:1 }

.book-grid{
  display:grid;
  grid-template-columns:minmax(0,0.62fr) minmax(0,1fr);
  gap:4rem;
  align-items:center;
}
@media (max-width:940px){
  .book-grid{ grid-template-columns:1fr; gap:2.5rem; max-width:600px; margin:0 auto }
}

/* copertina con effetto libro premium */
.book-cover{
  margin:0;
  position:relative;
  perspective:1400px;
}
.book-cover img{
  width:100%;
  height:auto;
  display:block;
  border-radius:6px 12px 12px 6px;
  box-shadow:
    0 34px 70px rgba(17,22,44,.30),
    0 8px 20px rgba(17,22,44,.16),
    -6px 0 0 0 rgba(255,255,255,.55) inset;
  transform:rotateY(-6deg) rotateX(1deg);
  transform-origin:left center;
  transition:transform .5s cubic-bezier(.25,.8,.25,1), box-shadow .5s ease;
}
.book-cover:hover img{
  transform:rotateY(-2deg) rotateX(0) translateY(-6px);
  box-shadow:
    0 44px 84px rgba(17,22,44,.34),
    0 10px 24px rgba(17,22,44,.18);
}
/* costa del libro */
.book-cover::after{
  content:"";
  position:absolute;
  top:1.5%; bottom:1.5%; left:0; width:10px;
  background:linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.12));
  border-radius:6px 0 0 6px;
  transform:rotateY(-6deg);
  transform-origin:left center;
  pointer-events:none;
}

.book-body .section-title{ margin-bottom:1.2rem; line-height:1.15 }
.book-body p{ margin-bottom:1rem }

.book-points{
  list-style:none;
  padding:0;
  margin:1.4rem 0 1.8rem;
  display:flex;
  flex-direction:column;
  gap:.7rem;
}
.book-points li{
  display:flex;
  gap:.7rem;
  align-items:flex-start;
  font-size:.94rem;
  color:var(--text-secondary);
  line-height:1.5;
}
.book-points li::before{
  content:"";
  flex-shrink:0;
  width:7px; height:7px;
  margin-top:.55rem;
  border-radius:50%;
  background:linear-gradient(135deg, var(--brand-1), var(--brand-2));
}
.book-points li strong{ color:var(--text-primary) }

.book-cta{
  display:flex;
  gap:.7rem;
  flex-wrap:wrap;
  margin-top:.4rem;
}

/* ============================================================
   PAGINE LEGALI (privacy.html / cookie.html)
   ============================================================ */
.legal-body{
  max-width:800px;
  margin:0 auto;
  padding:0 1.5rem 5rem;
  color:var(--text-secondary);
  font-size:1rem;
  line-height:1.75;
}
.legal-updated{
  display:inline-block;
  padding:.35rem .8rem;
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  font-size:.82rem;
  color:var(--text-muted);
  margin-bottom:2rem;
}
.legal-body h2{
  margin:2.6rem 0 .9rem;
  font-size:1.35rem;
  color:var(--text-primary);
  padding-top:1.4rem;
  border-top:1px solid var(--border-soft);
}
.legal-body h2:first-of-type{ border-top:none; padding-top:0 }
.legal-body h3{
  margin:1.8rem 0 .6rem;
  font-size:1.05rem;
  color:var(--text-primary);
}
.legal-body p{ margin-bottom:1rem }
.legal-body ul{ margin:0 0 1.3rem 1.3rem }
.legal-body li{ margin-bottom:.5rem }
.legal-body strong{ color:var(--text-primary) }
.legal-body code{
  background:var(--bg-tinted);
  padding:.12em .4em;
  border-radius:4px;
  font-size:.88em;
}

.legal-highlight{
  background:var(--brand-soft);
  border:1px solid rgba(91,107,245,.18);
  border-radius:var(--radius-lg);
  padding:1.4rem 1.6rem;
  margin:0 0 2.4rem;
}
.legal-highlight h3{ margin:0 0 .5rem; font-size:1rem }
.legal-highlight p{ margin:0 }

.legal-table-wrap{ overflow-x:auto; margin:1.2rem 0 1.8rem }
.legal-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  overflow:hidden;
  font-size:.9rem;
  min-width:520px;
}
.legal-table th{
  text-align:left;
  padding:.8rem 1rem;
  background:var(--bg-soft);
  color:var(--text-primary);
  font-family:var(--font-heading);
  font-weight:700;
  font-size:.85rem;
  border-bottom:1px solid var(--border);
}
.legal-table td{
  padding:.8rem 1rem;
  border-bottom:1px solid var(--border-soft);
  vertical-align:top;
}
.legal-table tr:last-child td{ border-bottom:none }

.legal-cta{
  margin-top:2.5rem;
  padding:1.2rem 1.4rem;
  background:var(--bg-soft);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
}
.legal-cta p{ margin:0 }

/* ============================================================
   BANNER COOKIE (informativa breve, no tracker)
   ============================================================ */
.cookie-banner{
  position:fixed;
  left:1rem; right:1rem; bottom:1rem;
  z-index:2000;
  max-width:760px;
  margin:0 auto;
  background:var(--bg);
  border:1px solid var(--border-strong);
  border-radius:var(--radius-lg);
  box-shadow:0 18px 50px rgba(11,15,25,.16);
  padding:1.1rem 1.3rem;
  display:flex;
  align-items:center;
  gap:1.2rem;
  flex-wrap:wrap;
  transform:translateY(140%);
  opacity:0;
  transition:transform .45s cubic-bezier(.25,.8,.25,1), opacity .35s ease;
}
.cookie-banner.is-visible{ transform:translateY(0); opacity:1 }
.cookie-banner p{
  margin:0;
  flex:1;
  min-width:260px;
  font-size:.88rem;
  line-height:1.55;
  color:var(--text-secondary);
}
.cookie-banner p strong{ color:var(--text-primary) }
.cookie-banner .cookie-actions{
  display:flex;
  gap:.6rem;
  align-items:center;
  flex-wrap:wrap;
}
@media (max-width:600px){
  .cookie-banner{ padding:1rem; gap:.9rem }
  .cookie-banner .cookie-actions{ width:100% }
  .cookie-banner .cookie-actions .btn{ flex:1 }
}

/* ============================================================
   CHI C'È DIETRO (home) — foto | testo | libro
   ============================================================ */
.author-grid{
  display:grid;
  grid-template-columns:312px minmax(0,1fr) 220px;
  gap:3rem;
  align-items:center;
  max-width:1140px;
  margin:0 auto;
}
.author-photo{ max-width:312px; width:100% }
.author-book{ margin:0; width:100% }
.author-book img{ width:100% }

@media (max-width:1000px){
  .author-grid{
    grid-template-columns:240px minmax(0,1fr);
    gap:2.2rem;
  }
  .author-photo{ max-width:240px }
  .author-book{
    grid-column:1 / -1;
    max-width:200px;
    margin:0 auto;
  }
}
@media (max-width:680px){
  .author-grid{ grid-template-columns:1fr; gap:2rem; text-align:left }
  .author-photo{ max-width:264px; margin:0 auto }
  .author-book{ max-width:180px }
}

/* ============================================================
   FOOTER SEMPLIFICATO (identità + policy)
   ============================================================ */
/* footer compatto: tutto su una fascia bassa */
.site-footer{
  padding:1.9rem 0 1.4rem;
  margin-top:3rem;
}
.footer-simple{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1.5rem 2rem;
  flex-wrap:wrap;
  padding-bottom:1rem;
}
.footer-identity{
  display:flex;
  align-items:baseline;
  gap:.6rem;
  flex-wrap:wrap;
}
.footer-identity .logo{ font-size:1.25rem; line-height:1 }
.footer-identity .logo-subtitle{ margin-top:0; font-size:.6rem }
.footer-policies{
  display:flex;
  align-items:center;
  gap:.6rem;
  flex-wrap:wrap;
}
.footer-social{
  width:32px; height:32px;
  border-radius:var(--radius-sm);
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--text-secondary);
  border:1px solid var(--border);
  background:var(--bg);
  transition:var(--transition);
}
.footer-social:hover{
  color:var(--brand-1);
  border-color:var(--brand-1);
  background:var(--brand-soft);
  transform:translateY(-1px);
}

/* ============================================================
   DATI SOCIETARI NEL FOOTER — riga singola compatta
   ============================================================ */
.footer-legal{
  margin:0;
  padding:0;
  border:none;
  font-style:normal;
  font-size:.78rem;
  line-height:1.5;
  color:var(--text-muted);
  letter-spacing:.01em;
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.45rem;
}
.footer-legal br{ display:none }
.footer-legal strong{
  color:var(--text-secondary);
  font-family:var(--font-heading);
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.02em;
}
/* separatore tra i pezzi dell'indirizzo */
.footer-legal > *:not(:last-child)::after{
  content:"·";
  margin-left:.45rem;
  color:var(--border-strong);
  font-weight:400;
}

/* riga finale: copyright + indirizzo se presente */
.footer-bottom{
  padding-top:.9rem;
  font-size:.8rem;
}

@media (max-width:760px){
  .footer-simple{ flex-direction:column; align-items:flex-start; gap:1.1rem }
  .footer-policies{ width:100% }
  .footer-legal{ gap:.35rem }
}
