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

:root {
  --bg:           #f7f7f5;
  --surface:      #ffffff;
  --border:       rgba(0,0,0,0.07);
  --border-mid:   rgba(0,0,0,0.11);

  --text-1: #1a1a1a;
  --text-2: #6b7280;
  --text-3: #9ca3af;

  --accent:       #7c3aed;
  --accent-h:     #6d28d9;
  --accent-light: #ede9fe;
  --accent-mid:   #ddd6fe;

  --green:        #16a34a;
  --green-light:  #dcfce7;
  --green-border: #bbf7d0;
  --amber:        #d97706;
  --amber-light:  #fef3c7;
  --blue:         #2563eb;
  --blue-light:   #dbeafe;
  --blue-border:  #bfdbfe;

  --sidebar-w: 268px;
  --footer-h:   60px;
  --r:    14px;
  --r-sm:  8px;
  --r-xs:  5px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);

  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text-1);
  line-height: 1.6;
}

html, body { height: 100%; overflow: hidden; background: var(--bg); }

/* ─── Layout ─────────────────────────────────────────────── */
#app {
  display: flex;
  height: 100vh;
}

/* ─── Sidebar ────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

#ente-logo-wrap a { display: block; }
#ente-logo-wrap img {
  max-height: 42px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.ente-fallback {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
}

#nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

.nav-gruppo {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 14px 8px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-radius: var(--r-sm);
  transition: color 0.15s;
}
.nav-gruppo:hover { color: var(--text-2); }

.nav-gruppo-freccia {
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.15s;
  flex-shrink: 0;
}
.nav-gruppo:hover .nav-gruppo-freccia { opacity: 0.9; }

.nav-sezione.collapsed .nav-gruppo-freccia {
  transform: rotate(-90deg);
}
.nav-sezione .nav-items-wrap {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 2000px;
  opacity: 1;
}
.nav-sezione.collapsed .nav-items-wrap {
  max-height: 0;
  opacity: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  color: var(--text-2);
  font-size: 13.5px;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  line-height: 1.35;
}

.nav-item:hover           { background: var(--bg); color: var(--text-1); }
.nav-item.attiva          { background: var(--accent-light); color: var(--accent); font-weight: 500; }

.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-mid);
  flex-shrink: 0;
  transition: background 0.15s;
}
.nav-item.attiva .nav-dot { background: var(--accent); }

#sidebar-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
#progress-track {
  height: 3px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
#progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(.4,0,.2,1);
  width: 0%;
}
#progress-text { font-size: 12px; color: var(--text-3); }

/* ─── Main ───────────────────────────────────────────────── */
#main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

#slide-area {
  flex: 1;
  overflow-y: auto;
  padding: 40px 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: var(--border-mid) transparent;
}

#nav-bar {
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

#nav-bar button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border-mid);
  background: var(--surface);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-1);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
#nav-bar button:hover:not(:disabled) {
  background: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent);
}
#nav-bar button:disabled { opacity: 0.3; cursor: not-allowed; }
#counter { font-size: 13px; color: var(--text-3); }

/* ─── Slide base ─────────────────────────────────────────── */
.slide {
  width: 100%;
  max-width: 860px;
  padding-bottom: 40px;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-modulo {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.slide h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 14px;
}

.slide .lead {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 28px;
}

.slide .lead strong { color: var(--text-1); }

/* ─── Copertina ──────────────────────────────────────────── */
.slide-copertina {
  min-height: calc(100vh - var(--footer-h) - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-bottom: 0;
}

.slide-copertina::after {
  content: '';
  position: fixed;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.slide-copertina > * { position: relative; z-index: 1; }

.ente-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.ente-divider {
  width: 1px;
  height: 22px;
  background: var(--border-mid);
}

.ente-label {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.copertina-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
  width: fit-content;
  letter-spacing: 0.03em;
}

.copertina-titolo {
  font-size: clamp(32px, 4.5vw, 56px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  color: var(--text-1) !important;
  margin-bottom: 14px !important;
  max-width: 720px;
}

.copertina-sub {
  font-size: 19px;
  color: var(--text-2);
  margin-bottom: 40px;
}

.copertina-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

.meta-chip svg { color: var(--accent); flex-shrink: 0; }

/* ─── Card Grid ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-icon  { font-size: 26px; display: block; margin-bottom: 10px; }
.card-titolo{ font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 4px; }
.card-desc  { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ─── Callout ────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r);
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.callout-tip   { background: var(--accent-light); border-color: var(--accent-mid);  color: #5b21b6; }
.callout-info  { background: var(--blue-light);   border-color: var(--blue-border); color: #1e40af; }
.callout-verde { background: var(--green-light);  border-color: var(--green-border);color: #15803d; }
.callout-amber { background: var(--amber-light);  border-color: #fcd34d;            color: #92400e; }

.callout-icon { font-size: 17px; flex-shrink: 0; line-height: 1.5; }
.callout strong { font-weight: 600; }

.callout code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.6);
  padding: 1px 6px;
  border-radius: var(--r-xs);
}

/* ─── Steps ──────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.step-content p  { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* ─── Confronto ──────────────────────────────────────────── */
.confronto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0;
}

.confronto-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.confronto-col.dopo { border-left: 3px solid var(--accent); }

.confronto-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.confronto-col.prima h4 { color: var(--text-3); }
.confronto-col.dopo  h4 { color: var(--accent); }

.confronto-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.confronto-col li {
  font-size: 14px;
  color: var(--text-2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.confronto-col.prima li::before { content: '·'; flex-shrink: 0; }
.confronto-col.dopo  li         { color: var(--text-1); }
.confronto-col.dopo  li::before { content: '✦'; color: var(--accent); font-size: 9px; flex-shrink: 0; margin-top: 3px; }

/* ─── Big Numbers ────────────────────────────────────────── */
.big-numbers {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.big-num {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  min-width: 130px;
}

.big-num-val   { font-size: 34px; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.big-num-label { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }

/* ─── Prompt Block (white, elegant) ─────────────────────── */
.prompt-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}

.prompt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.prompt-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.copia-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--text-3);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.copia-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.copia-btn.copiato {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
}

.prompt-corpo {
  padding: 12px 16px;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-1);
  white-space: pre-wrap;
}

.prompt-footer {
  padding: 6px 14px;
  font-size: 11.5px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Prompt povero */
.prompt-povero {
  border-left-color: var(--border-mid);
  opacity: 0.5;
}
.prompt-povero .prompt-tag { color: var(--text-3); }
.prompt-povero .copia-btn  { display: none; }

/* ─── Links ──────────────────────────────────────────────── */
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 99px; }

/* ─── Tabella ────────────────────────────────────────────── */
.tabella-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.tabella { width: 100%; border-collapse: collapse; font-size: 14px; }

.tabella th {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tabella td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  vertical-align: top;
  line-height: 1.5;
}

.tabella tr:last-child td  { border-bottom: none; }
.tabella tbody tr:hover td { background: var(--bg); }
.tabella td:first-child    { color: var(--text-2); }

/* ─── Tag Cloud ──────────────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.tag-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13.5px;
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
}

.tag-chip-accent {
  background: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent);
  font-weight: 500;
}

/* ─── Formula Box ────────────────────────────────────────── */
.formula-box {
  background: var(--accent-light);
  border: 1.5px solid var(--accent-mid);
  border-radius: var(--r);
  padding: 20px 28px;
  margin: 20px 0;
  text-align: center;
}

.formula-text {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ─── Due colonne card ───────────────────────────────────── */
.due-colonne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.col-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.col-card-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.col-list-plain {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.col-list-plain li {
  font-size: 13.5px;
  color: var(--text-2);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.col-list-plain li::before {
  content: '·';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

/* ─── Processo ───────────────────────────────────────────── */
.processo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.processo-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
}

.processo-arrow { color: var(--accent); font-size: 14px; font-weight: 700; }

/* ─── Checklist ──────────────────────────────────────────── */
.checklist-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-1);
}

.checklist-item:last-child { border-bottom: none; }

.checklist-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Autocomplete Demo ──────────────────────────────────── */
.autocomplete-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.autocomplete-input {
  padding: 14px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 13.5px;
  color: var(--text-1);
}

.autocomplete-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.autocomplete-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.autocomplete-option:last-child { border-bottom: none; }
.autocomplete-option::before    { content: '·'; color: var(--accent); font-weight: 700; }

/* ─── Prompt povero ──────────────────────────────────────── */
.prompt-povero {
  border-left-color: var(--text-3);
  opacity: 0.7;
}

.prompt-povero .prompt-header {
  background: var(--bg);
  border-bottom-color: var(--border);
}

/* ─── Tre punti PA ───────────────────────────────────────── */
.tre-punti {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.punto {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.punto-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}

.punto-no .punto-label  { background: #fee2e2; color: #dc2626; }
.punto-si .punto-label  { background: var(--green-light); color: var(--green); }
.punto-testo { font-size: 14px; color: var(--text-1); line-height: 1.5; }

/* ─── Aiuta / Cautela ────────────────────────────────────── */
.aiuta-cautela {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.col-aiuta, .col-cautela {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.col-aiuta   { border-top: 3px solid var(--green); }
.col-cautela { border-top: 3px solid var(--amber); }

.col-header {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.col-aiuta   .col-header { color: var(--green); }
.col-cautela .col-header { color: var(--amber); }

.col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-list li {
  font-size: 13.5px;
  color: var(--text-1);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}

.col-aiuta   .col-list li::before { content: '✓'; color: var(--green); flex-shrink: 0; font-weight: 700; font-size: 12px; }
.col-cautela .col-list li::before { content: '⚠'; color: var(--amber); flex-shrink: 0; font-size: 11px; margin-top: 1px; }

/* ─── Problemi Grid ──────────────────────────────────────── */
.problemi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 4px 0;
}

.problema-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-1);
  box-shadow: var(--shadow-sm);
}

.problema-icon { font-size: 16px; flex-shrink: 0; }

/* ─── Callout amber ──────────────────────────────────────── */
.callout-amber { background: var(--amber-light); border-color: #fcd34d; color: #92400e; }

/* ─── Opzione C: scala completa — font grandi, layout espanso ─ */
#slide-area { padding: 24px 48px; }
.slide { max-width: 1080px; padding-bottom: 12px; }
.slide-modulo { margin-bottom: 7px; }
.slide h2 { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 10px; }
.slide .lead { font-size: 19px; margin-bottom: 16px; line-height: 1.55; }

.callout { padding: 11px 17px; margin: 11px 0; font-size: 15.5px; }
.callout-icon { font-size: 17px; line-height: 1.4; }

.steps { gap: 9px; margin-top: 6px; }
.step { padding: 12px 16px; }
.step-num { width: 30px; height: 30px; font-size: 13px; }
.step-content h4 { font-size: 15.5px; }
.step-content p  { font-size: 14.5px; }

.card-grid { gap: 10px; margin-top: 6px; }
.card { padding: 15px 16px; }
.card-icon { font-size: 24px; margin-bottom: 7px; }
.card-titolo { font-size: 15px; }
.card-desc   { font-size: 14px; }

.tabella-wrap { margin: 12px 0; }
.tabella td { padding: 9px 14px; font-size: 15px; }
.tabella th { padding: 9px 14px; font-size: 14px; }

.due-colonne { gap: 12px; margin: 10px 0; }
.col-card { padding: 16px; }
.col-card-header { font-size: 12.5px; margin-bottom: 10px; padding-bottom: 9px; }
.col-list-plain li { font-size: 15px; gap: 7px; }

.tag-cloud { margin: 8px 0 12px; gap: 7px; }
.tag-chip { padding: 5px 13px; font-size: 14.5px; }

.formula-box { padding: 16px 26px; margin: 12px 0; }
.formula-text { font-size: clamp(16px, 1.9vw, 22px); }

.processo { margin: 10px 0 14px; gap: 6px; }
.processo-step { padding: 8px 14px; font-size: 14.5px; }

.checklist-item { padding: 9px 16px; font-size: 15.5px; }
.checklist-icon { width: 24px; height: 24px; font-size: 12px; }

.big-numbers { margin-top: 14px; gap: 12px; }
.big-num { padding: 14px 18px; }
.big-num-val   { font-size: 32px; margin-bottom: 5px; }
.big-num-label { font-size: 13.5px; }

.confronto { gap: 12px; margin: 8px 0; }
.confronto-col { padding: 15px; }
.confronto-col h4 { margin-bottom: 10px; padding-bottom: 9px; }
.confronto-col li { font-size: 15px; gap: 6px; }

.aiuta-cautela { gap: 12px; margin: 10px 0; }
.col-aiuta, .col-cautela { padding: 15px; }
.col-header { margin-bottom: 10px; padding-bottom: 9px; font-size: 12.5px; }
.col-list { gap: 5px; }
.col-list li { font-size: 15px; }

.problemi-grid { gap: 9px; margin: 6px 0;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.problema-item { padding: 10px 14px; font-size: 14.5px; }
.problema-icon { font-size: 16px; }

.autocomplete-demo { margin: 10px 0; }
.autocomplete-input  { padding: 11px 15px; font-size: 14.5px; }
.autocomplete-option { padding: 8px 15px; font-size: 14.5px; }

.tre-punti { gap: 9px; }
.punto { padding: 12px 16px; }
.punto-testo { font-size: 15.5px; }

/* Logo copertina più piccolo */
.ente-strip { margin-bottom: 22px; padding-bottom: 16px; }
.ente-strip img { max-height: 30px; object-fit: contain; }
.copertina-badge { margin-bottom: 12px; font-size: 11.5px; }
.copertina-titolo { font-size: clamp(26px, 3.8vw, 46px) !important; margin-bottom: 8px !important; }
.copertina-sub { font-size: 16px; margin-bottom: 24px; }
.meta-chip { font-size: 13px; padding: 5px 12px; }

/* Ghost button apri documento */
.doc-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.doc-link-btn:hover {
  background: var(--accent);
  color: #fff;
}
