/* ── Personalize section — selettore conversazionale ──────────────────────── */
/* Visible separator that signals "you're entering an interactive zone" */
.personalize-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(78, 168, 255, 0.4) 50%, transparent 100%);
  margin: 0;
}

.section-personalize {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
  padding-top: 96px;
  padding-bottom: 96px;
}

.personalize-header {
  text-align: center;
  margin-bottom: 36px;
}

.personalize-header .eyebrow {
  display: inline-block;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent, #4EA8FF);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(78, 168, 255, 0.4);
  border-radius: 999px;
  background: rgba(78, 168, 255, 0.08);
  font-weight: 700;
}

.personalize-title {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.personalize-title em {
  color: var(--accent, #4EA8FF);
  font-style: normal;
}

.personalize-lede {
  font-size: 17px;
  color: var(--text-mute, #B9C1D9);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Distinct interactive container — separates the input area from the page bg */
.personalize-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  background: linear-gradient(135deg, rgba(13, 31, 60, 0.6) 0%, rgba(11, 14, 24, 0.4) 100%);
  border: 1px solid rgba(78, 168, 255, 0.32);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 48px -12px rgba(78, 168, 255, 0.18);
}
@media (max-width: 640px) {
  .personalize-card { padding: 22px 18px; border-radius: 14px; }
}

/* Quick-start chips */
.pz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.pz-chip {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text-mute, #B9C1D9);
  padding: 7px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  text-align: left;
  max-width: 100%;
}
.pz-chip:hover {
  background: rgba(78, 168, 255, 0.14);
  border-color: rgba(78, 168, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Pre-submit hint nudging the user that the page reacts */
.pz-hint {
  margin: 12px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent, #4EA8FF);
}

/* ── Flow: steps stack ────────────────────────────────────────────────────── */
.personalize-flow {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pz-step {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s ease, max-height 0.4s ease, transform 0.4s ease, margin 0.3s ease;
  pointer-events: none;
}

.pz-step-active {
  opacity: 1;
  max-height: 400px;
  transform: translateY(0);
  pointer-events: auto;
}

.pz-step-answered {
  opacity: 0.55;
}

.pz-prompt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.pz-num {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  color: var(--text-faint, #7B85A6);
  letter-spacing: 0.08em;
}

.pz-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #E7EBF4);
}

.pz-optional {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-faint, #7B85A6);
}

/* ── Chips ────────────────────────────────────────────────────────────────── */
.pz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pz-chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-2, #1F2540);
  color: var(--text, #E7EBF4);
  font-family: var(--font, 'Lato', sans-serif);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.pz-chip:hover {
  border-color: var(--accent, #4EA8FF);
  color: var(--accent, #4EA8FF);
}

.pz-chip:active {
  transform: scale(0.97);
}

.pz-chip.active {
  background: var(--accent, #4EA8FF);
  color: #0A1F44;
  border-color: var(--accent, #4EA8FF);
  font-weight: 700;
}

.pz-chip-other,
.pz-chip-skip {
  border-style: dashed;
  color: var(--text-mute, #B9C1D9);
}

/* ── Textarea row (free-text question) ───────────────────────────────────── */
.pz-textarea-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 12px;
}

.pz-textarea-row textarea {
  flex: 1;
  background: var(--bg-2, #1F2540);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text, #E7EBF4);
  font-family: var(--font, 'Lato', sans-serif);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pz-textarea-row textarea:focus {
  border-color: var(--accent, #4EA8FF);
  box-shadow: 0 0 0 3px rgba(78, 168, 255, 0.12);
}

.pz-textarea-row textarea::placeholder {
  color: #94A3B8;
  font-style: italic;
  white-space: pre-wrap;
}

.pz-mini-btn-large {
  padding: 0 22px;
  height: 100px;
  min-width: 56px;
  font-size: 22px;
}

@media (max-width: 720px) {
  .pz-textarea-row { flex-direction: column; }
  .pz-mini-btn-large { width: 100%; height: 48px; font-size: 18px; }
}

/* ── Custom question input (legacy — still used by "Altro" if shown) + brand row ── */
.pz-custom-question,
.pz-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.pz-custom-question input,
.pz-input-row input {
  flex: 1;
  background: var(--bg-2, #1F2540);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text, #E7EBF4);
  font-family: var(--font, 'Lato', sans-serif);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.pz-custom-question input:focus,
.pz-input-row input:focus {
  border-color: var(--accent, #4EA8FF);
}

.pz-custom-question input::placeholder,
.pz-input-row input::placeholder {
  color: var(--text-faint, #7B85A6);
}

.pz-mini-btn {
  padding: 0 16px;
  background: var(--accent, #4EA8FF);
  color: #0A1F44;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.pz-mini-btn:hover {
  opacity: 0.88;
}

.pz-mini-btn:active {
  transform: scale(0.95);
}

.pz-skip {
  padding: 0 14px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-faint, #7B85A6);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.pz-skip:hover {
  color: var(--text-mute, #B9C1D9);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Answer summary chip ──────────────────────────────────────────────────── */
.pz-answer {
  display: none;
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(78, 168, 255, 0.08);
  border-left: 2px solid var(--accent, #4EA8FF);
  color: var(--text-mute, #B9C1D9);
  font-size: 14px;
  font-style: italic;
}

.pz-step-answered .pz-answer {
  display: block;
}

.pz-step-answered .pz-chips,
.pz-step-answered .pz-custom-question,
.pz-step-answered .pz-input-row {
  display: none;
}

/* ── Reset button ─────────────────────────────────────────────────────────── */
.pz-reset {
  display: block;
  margin: 32px auto 0;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-faint, #7B85A6);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.pz-reset:hover {
  color: var(--text, #E7EBF4);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── Live banner: fixed bottom bar shown once the page is personalized ───── */
.pz-live-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(10, 14, 24, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-mute, #B9C1D9);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: pz-banner-slide-up 0.3s ease-out;
}

.pz-live-banner strong {
  color: var(--accent, #4EA8FF);
  font-weight: 700;
}

.pz-live-banner-cta {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(78, 168, 255, 0.4);
  color: var(--accent, #4EA8FF);
  border-radius: 999px;
  padding: 6px 14px;
  font: 500 12px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.pz-live-banner-cta:hover {
  background: rgba(78, 168, 255, 0.12);
  border-color: var(--accent, #4EA8FF);
  transform: translateY(-1px);
}

/* Reserve space at the bottom of the page so the fixed banner never covers
   content (CTA / footer). Only kicks in once the scenario is complete. */
body.pz-complete { padding-bottom: 64px; }

/* Once the user has fully entered a scenario, the input section is no longer
   needed — the bottom banner takes over and offers a "Nuova generazione" CTA. */
body.pz-complete #personalize { display: none; }

/* ── Intuo credibility block — small trust band before footer ──────────── */
.section-intuo-credit {
  padding: 36px 24px;
  background: rgba(11, 14, 24, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.intuo-credit-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.intuo-credit-line {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: var(--text, #E8ECF4);
  margin: 0;
}
.intuo-credit-line strong { color: #ffffff; font-weight: 800; }
.intuo-credit-tagline {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint, #7B85A6);
  text-transform: uppercase;
  margin: 0;
}
.intuo-credit-cta {
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent, #4EA8FF);
  text-decoration: none;
  border-bottom: 1px solid rgba(78, 168, 255, 0.4);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.intuo-credit-cta:hover { color: #6BB8FF; border-color: var(--accent, #4EA8FF); }

/* Footer "a project by Intuo" — make the tag look clickable */
.site-footer .footer-tag {
  color: var(--text-faint, #7B85A6);
  text-decoration: none;
  transition: color 0.15s;
}
.site-footer .footer-tag:hover { color: var(--accent, #4EA8FF); }

/* ── Email capture inside narrative — low-friction lead ─────────────────── */
.pz-email-capture {
  margin: 28px auto 24px;
  max-width: 640px;
  padding: 24px 26px;
  background: rgba(78, 168, 255, 0.08);
  border: 1px solid rgba(78, 168, 255, 0.32);
  border-radius: 14px;
  text-align: center;
  animation: pz-email-fadein 480ms ease-out;
}
@keyframes pz-email-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pz-email-capture-title {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 8px;
}
.pz-email-capture-context { color: var(--accent, #4EA8FF); }
.pz-email-capture-lede {
  font-size: 14px;
  color: var(--text-mute, #B9C1D9);
  margin: 0 0 18px;
}
.pz-email-capture-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 12px;
}
.pz-email-capture-form input {
  flex: 1;
  padding: 11px 14px;
  background: rgba(11, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #E8ECF4;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
}
.pz-email-capture-form input:focus {
  outline: none;
  border-color: var(--accent, #4EA8FF);
}
.pz-email-capture-form input::placeholder { color: #94A3B8; }
.pz-email-capture-form button {
  padding: 0 18px;
  background: var(--accent, #4EA8FF);
  color: #06182F;
  border: none;
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.pz-email-capture-form button:hover:not(:disabled) {
  background: #6BB8FF;
  transform: translateY(-1px);
}
.pz-email-capture-form button:disabled { opacity: 0.5; cursor: not-allowed; }
.pz-email-capture-success {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent, #4EA8FF);
  margin: 0 0 12px;
}
.pz-email-capture-alt {
  font-size: 12px;
  color: var(--text-faint, #7B85A6);
  margin: 12px 0 0;
  line-height: 1.6;
}
.pz-email-capture-alt strong { color: #E8ECF4; }
.pz-email-capture-alt a { color: var(--accent, #4EA8FF); text-decoration: none; }
.pz-email-capture-alt a:hover { text-decoration: underline; }
@media (max-width: 540px) {
  .pz-email-capture-form { flex-direction: column; }
  .pz-email-capture-form button { padding: 11px 18px; }
}

/* ── #prenota-stand — Netcomm booking form ──────────────────────────────── */
.section-stand {
  padding: 80px 24px;
  background: linear-gradient(180deg, #06182F 0%, #0A1424 100%);
  border-top: 1px solid rgba(78, 168, 255, 0.18);
  border-bottom: 1px solid rgba(78, 168, 255, 0.18);
}
.stand-inner { max-width: 760px; margin: 0 auto; }
.stand-head { text-align: center; margin-bottom: 36px; }
.stand-head .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em;
  color: #6BB8FF; text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.stand-h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.stand-payoff {
  font-size: 17px;
  color: #B9C1D9;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 22px;
}
.stand-meta {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 6px;
}
.stand-meta strong { color: #B9C1D9; font-weight: 600; }
.stand-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--accent, #4EA8FF);
  text-transform: uppercase;
}

.stand-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.stand-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .stand-row { grid-template-columns: 1fr; }
  .section-stand { padding: 56px 16px; }
  .stand-form { padding: 20px; }
}
.stand-field { display: flex; flex-direction: column; gap: 7px; }
/* Crucially: any .stand-field with [hidden] must stay hidden — our default
   `display: flex` on .stand-field would otherwise win over browser defaults. */
.stand-field[hidden] { display: none; }
.stand-field label {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  color: #E8ECF4;
  font-weight: 600;
}
.stand-field input,
.stand-field select,
.stand-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(11, 14, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #E8ECF4;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}
.stand-field input::placeholder,
.stand-field textarea::placeholder { color: #7B85A6; }
.stand-field input:focus,
.stand-field select:focus,
.stand-field textarea:focus {
  outline: none;
  border-color: var(--accent, #4EA8FF);
  background: rgba(11, 14, 24, 0.8);
}
.stand-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6BB8FF 50%), linear-gradient(135deg, #6BB8FF 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.stand-field textarea { resize: vertical; min-height: 56px; font-family: 'Lato', sans-serif; }
.stand-optional { color: #7B85A6; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Conditional reveal — fade-in when shown */
.stand-conditional {
  animation: stand-fadein 220ms ease-out;
}
@keyframes stand-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stand-consent-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #B9C1D9; line-height: 1.5;
}
.stand-consent-row input[type="checkbox"] {
  margin-top: 3px; width: 16px; height: 16px;
  accent-color: var(--accent, #4EA8FF);
  cursor: pointer;
}
.stand-consent-row a { color: var(--accent, #4EA8FF); }

.stand-submit {
  margin-top: 6px;
  padding: 14px 22px;
  background: var(--accent, #4EA8FF);
  color: #06182F;
  border: none;
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 22px -4px rgba(78, 168, 255, 0.4);
}
.stand-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #6BB8FF;
  box-shadow: 0 14px 32px -4px rgba(78, 168, 255, 0.55);
}
.stand-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.stand-form-error {
  color: #ff8a8a; font-size: 13px; margin: 0;
}

.stand-success {
  background: rgba(78, 168, 255, 0.06);
  border: 1px solid rgba(78, 168, 255, 0.4);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  animation: stand-fadein 360ms ease-out;
}
.stand-success-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--accent, #4EA8FF);
  color: #06182F;
  font-size: 30px; font-weight: 900;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px -4px rgba(78, 168, 255, 0.5);
}
.stand-success-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 28px);
  color: #ffffff;
  margin-bottom: 22px;
}
.stand-success-cta {
  display: inline-block;
  padding: 14px 26px;
  background: var(--accent, #4EA8FF);
  color: #06182F;
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 22px;
  transition: transform 0.15s, background 0.15s;
}
.stand-success-cta:hover { transform: translateY(-2px); background: #6BB8FF; }
.stand-success-alt {
  font-size: 14px;
  color: #B9C1D9;
  line-height: 1.6;
  margin-bottom: 12px;
}
.stand-success-alt strong { color: #ffffff; }
.stand-success-mail { font-size: 13px; color: #7B85A6; }
.stand-success-mail a { color: var(--accent, #4EA8FF); }

/* Loading state on the bottom bar while the LLM is streaming. */
.pz-live-banner-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(78, 168, 255, 0.25);
  border-top-color: var(--accent, #4EA8FF);
  border-radius: 50%;
  animation: pz-spinner-rotate 0.8s linear infinite;
  vertical-align: -2px;
  margin-right: 4px;
}
@keyframes pz-spinner-rotate {
  to { transform: rotate(360deg); }
}

@keyframes pz-banner-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Adaptive sections: smooth transition when content swaps ─────────────── */
[data-personalize-target] {
  transition: opacity 0.25s ease;
}

[data-personalize-target].pz-swapping {
  opacity: 0.3;
}

/* Gentle highlight: l'elemento rilevante guadagna enfasi senza sminuire gli altri.
   Tutte le card rimangono visibili e leggibili — niente .pz-dim. */
.industry.pz-highlight,
.case-card.pz-highlight {
  position: relative;
  border-color: var(--accent, #4EA8FF) !important;
  box-shadow: 0 0 0 1px var(--accent, #4EA8FF), 0 8px 32px rgba(78, 168, 255, 0.18);
  background: linear-gradient(180deg, rgba(78, 168, 255, 0.05), transparent 60%);
  transform: translateY(-2px);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.industry.pz-highlight::before,
.case-card.pz-highlight::before,
.pillar.pz-highlight::before {
  content: '★ rilevante per te';
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--accent, #4EA8FF);
  color: #0A1F44;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-family: var(--mono, monospace);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  z-index: 2;
}

.pillar.pz-highlight {
  position: relative;
  border-color: var(--accent, #4EA8FF) !important;
  background: linear-gradient(180deg, rgba(78, 168, 255, 0.08), transparent 70%);
  box-shadow: 0 0 0 1px var(--accent, #4EA8FF), 0 8px 24px rgba(78, 168, 255, 0.12);
}

/* ── Indicator highlights in DATI section ────────────────────────────────── */
.pz-indicator-pill {
  display: inline-block;
  padding: 4px 10px;
  margin: 3px;
  background: rgba(78, 168, 255, 0.12);
  border: 1px solid rgba(78, 168, 255, 0.3);
  color: var(--accent, #4EA8FF);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--mono, 'JetBrains Mono', monospace);
}

/* ── Lead form (in CTA section) ──────────────────────────────────────────── */
.pz-lead-form {
  max-width: 540px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.pz-lead-form label {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint, #7B85A6);
  text-transform: uppercase;
}

.pz-lead-form input[type="email"] {
  background: var(--bg-2, #1F2540);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text, #E7EBF4);
  font-family: var(--font, 'Lato', sans-serif);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

.pz-lead-form input[type="email"]:focus {
  border-color: var(--accent, #4EA8FF);
}

.pz-lead-form .pz-consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-mute, #B9C1D9);
}

.pz-lead-form .pz-consent-row input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent, #4EA8FF);
}

.pz-lead-form .pz-consent-row a {
  color: var(--accent, #4EA8FF);
}

.pz-lead-form .pz-context {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-faint, #7B85A6);
  font-style: italic;
}

.pz-lead-form button[type="submit"] {
  padding: 14px 24px;
  background: var(--accent, #4EA8FF);
  color: #0A1F44;
  border: none;
  border-radius: 10px;
  font-family: var(--font, 'Lato', sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.pz-lead-form button[type="submit"]:hover:not(:disabled) {
  opacity: 0.88;
}

.pz-lead-form button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pz-lead-success {
  text-align: center;
  padding: 24px;
  background: rgba(0, 200, 117, 0.1);
  border: 1px solid rgba(0, 200, 117, 0.3);
  border-radius: 10px;
  color: #00c875;
  font-weight: 700;
}

@media (max-width: 720px) {
  .pz-prompt { flex-wrap: wrap; }
  .pz-chip { font-size: 13px; padding: 8px 14px; }
  .pz-input-row { flex-wrap: wrap; }
  .pz-input-row input { min-width: 0; }
}

/* ────────────────────────────────────────────────────────────────────────────
   NARRATIVE SECTION — drammatico, AI-personalizzato
   ──────────────────────────────────────────────────────────────────────── */

.section-narrative {
  background: linear-gradient(135deg, var(--bg) 0%, #0d1224 50%, var(--bg-1) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-narrative::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(78, 168, 255, 0.08), transparent 60%);
  pointer-events: none;
}

.section-narrative .section-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.pz-narrative-eyebrow {
  font-family: var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent, #4EA8FF);
  margin-bottom: 18px;
}

.pz-narrative-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  color: var(--text, #E7EBF4);
}

.pz-narrative-title .pz-brand {
  background: linear-gradient(90deg, var(--accent, #4EA8FF), #a99bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

/* Quote */
.pz-narrative-quote {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  color: var(--text, #E7EBF4);
  max-width: 780px;
  margin: 0 auto 48px;
  padding: 0 24px;
  border-left: 3px solid var(--accent, #4EA8FF);
  text-align: left;
  position: relative;
  min-height: 80px;
}

.pz-narrative-quote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -8px;
  font-size: 80px;
  color: var(--accent, #4EA8FF);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

/* KPI grid */
.pz-narrative-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0 auto 56px;
  max-width: 880px;
}

.pz-kpi {
  background: var(--bg-2, #1F2540);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.pz-kpi:hover {
  border-color: var(--accent, #4EA8FF);
  transform: translateY(-2px);
}

.pz-kpi-value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1;
  color: var(--accent, #4EA8FF);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.pz-kpi-label {
  font-size: 13px;
  color: var(--text-mute, #B9C1D9);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.pz-kpi-hint {
  font-size: 11px;
  color: var(--text-faint, #7B85A6);
  font-style: italic;
  font-weight: 400;
}

/* Bullets */
.pz-narrative-bullets-wrap {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: left;
}

.pz-narrative-bullets-title {
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-faint, #7B85A6);
  margin-bottom: 16px;
  text-align: center;
}

.pz-narrative-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pz-narrative-bullets li {
  position: relative;
  padding: 14px 16px 14px 50px;
  background: rgba(78, 168, 255, 0.04);
  border: 1px solid rgba(78, 168, 255, 0.12);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text, #E7EBF4);
  min-height: 50px;
}

.pz-narrative-bullets li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--accent, #4EA8FF);
  color: #0A1F44;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}

/* CTA */
.pz-narrative-cta-row {
  margin: 0 0 16px;
}

.pz-narrative-cta {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent, #4EA8FF);
  color: #0A1F44;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(78, 168, 255, 0.3);
}

.pz-narrative-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(78, 168, 255, 0.4);
}

.pz-narrative-disclaimer {
  font-size: 12px;
  color: var(--text-faint, #7B85A6);
  font-style: italic;
  margin: 0;
}

/* ── Skeleton shimmer animation (used while LLM is generating) ───────────── */
.pz-skeleton {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  user-select: none;
}

.pz-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.06) 60%,
    transparent 100%
  );
  animation: pz-shimmer 1.6s ease-in-out infinite;
}

@keyframes pz-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.pz-skeleton-line {
  display: block;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin: 8px 0;
  width: 100%;
}

.pz-skeleton-line:last-child { width: 75%; }

.pz-narrative-quote.pz-skeleton {
  border-left-color: rgba(78, 168, 255, 0.3);
}

.pz-kpi.pz-skeleton .pz-kpi-value,
.pz-kpi.pz-skeleton .pz-kpi-label {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: transparent;
}

.pz-narrative-bullets li.pz-skeleton {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

/* ────────────────────────────────────────────────────────────────────────────
   GENTLE HIGHLIGHT — la struttura della pagina rimane uguale,
   solo gli elementi rilevanti ricevono enfasi visiva
   ──────────────────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────────────────────────
   CONTINUE GATE — bottone tra CASI e NARRATIVA che innesca la phase 2 LLM
   ──────────────────────────────────────────────────────────────────────── */

.pz-continue-gate {
  background: linear-gradient(180deg, var(--bg-1) 0%, transparent 100%);
  padding: 64px 24px 80px;
  position: relative;
}

.pz-continue-gate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--accent, #4EA8FF));
}

.pz-continue-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-2, #1F2540);
  border: 1px solid rgba(78, 168, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(78, 168, 255, 0.08);
}

.pz-continue-headline {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text, #E7EBF4);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pz-continue-headline strong {
  background: linear-gradient(90deg, var(--accent, #4EA8FF), #a99bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.pz-continue-sub {
  color: var(--text-mute, #B9C1D9);
  font-size: 14px;
  margin-bottom: 24px;
}

.pz-continue-btn {
  padding: 14px 32px;
  background: var(--accent, #4EA8FF);
  color: #0A1F44;
  border: none;
  border-radius: 12px;
  font-family: var(--font, 'Lato', sans-serif);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(78, 168, 255, 0.25);
}

.pz-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(78, 168, 255, 0.4);
}

.pz-continue-btn:active {
  transform: scale(0.98);
}


/* When personalized: show only priority case cards; the rest live behind
   the "Vedi altro" toggle. The button reveals them by adding .show-all. */
.cases-show-more {
  display: none;
  margin: 28px auto 0;
  padding: 12px 22px;
  background: transparent;
  color: var(--text, #E8ECF4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font: 500 13px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.cases-show-more:hover {
  border-color: var(--accent, #4EA8FF);
  background: rgba(78, 168, 255, 0.08);
  transform: translateY(-1px);
}
#casi.cases-filtered .case-card:not(.pz-highlight) { display: none; }
#casi.cases-filtered.cases-expanded .case-card:not(.pz-highlight) { display: flex; }
#casi.cases-filtered .cases-show-more { display: block; }
#casi.cases-filtered.cases-expanded .cases-show-more { display: none; }

/* Reveal animation per sezione narrativa quando il content arriva */
#pz-narrative {
  animation: pz-narrative-reveal 0.5s ease-out;
}

@keyframes pz-narrative-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .pz-narrative-kpis { grid-template-columns: repeat(2, 1fr); }
  .pz-narrative-quote { font-size: 17px; padding: 0 16px; }
  .pz-narrative-quote::before { font-size: 60px; top: -16px; left: -4px; }
}
