/* ============================================================================
   Pagine pubbliche: home, Chiedi ad AppLI, Crescita professionale.
   Figma bYYHwUrG0g1Ipktdm5n6BI: HP Desktop 8564:2932, HP Mobile 8564:3386,
   Crescita professionale 8561:100279 / 8561:101868, Prelogin Chat 8564:3917.
   Palette e tipografia = Bootstrap 5 UI Kit del Figma (Plus Jakarta Sans).
   Tutto è sotto body.hp-page: non tocca le altre pagine che caricano app.css.
   ============================================================================ */

.hp-page {
  --hp-primary: #0d6efd;
  --hp-primary-hover: #0b5ed7;
  --hp-navy: #052c65;
  --hp-blue-600: #0a58ca;
  --hp-blue-100: #e7f1ff;
  --hp-blue-50: #eff6ff;
  --hp-cyan: #0dcaf0;
  --hp-yellow: #ffc107;
  --hp-yellow-100: #fff3cd;
  --hp-body: #212529;
  --hp-secondary: #6c757d;
  --hp-border: #dee2e6;
  --hp-light: #f8f9fa;
  --hp-gray-200: #e9ecef;
  --hp-gray-800: #343a40;
  --hp-divider: #c5c7c9;
  --hp-ink-chat: #2f475e;
  --hp-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.07);
  --hp-shadow-badge: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.1);
  --hp-focus: #0a58ca;
  --hp-focus-dark: #ffc107;

  margin: 0;
  background: #fff;
  color: var(--hp-body);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-variant-ligatures: none;
  font-size: 16px;
  line-height: 1.5;
}

.hp-page *:focus-visible {
  outline: 3px solid var(--hp-focus);
  outline-offset: 2px;
}
.hp-topbar *:focus-visible,
.hp-navbar *:focus-visible,
.hp-hero *:focus-visible,
.hp-project *:focus-visible,
.hp-footer *:focus-visible {
  outline-color: var(--hp-focus-dark);
}

.hp-page h1, .hp-page h2, .hp-page h3, .hp-page p { margin: 0; }
.hp-page ul, .hp-page ol { margin: 0; padding: 0; list-style: none; }
.hp-page img { max-width: 100%; }

/* Contenitore: 1116px di contenuto come nel Figma (82px di margine a 1280). */
.hp-wrap {
  width: 100%;
  max-width: calc(1116px + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.hp-skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: var(--hp-primary);
  padding: 8px 12px;
  border-radius: 4px;
}

/* ---------- Tipografia (stili testo del Figma) ---------- */

.hp-h1 {            /* Title 1 */
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--hp-navy);
}
.hp-h1--inverse { color: #fff; }
.hp-h2 {            /* Title 2 */
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-navy);
}
.hp-h3 {            /* Title 3 */
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-navy);
}
.hp-lead {          /* Body LG */
  font-size: 18px;
  line-height: 1.5;
  color: var(--hp-body);
}
.hp-accent { color: var(--hp-cyan); }

.hp-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- Bottoni e link (componente «Button AppLI») ---------- */

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 4px;
  border: 2px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hp-btn--lg { padding: 10px 22px; font-size: 18px; }
.hp-btn--primary { background: var(--hp-primary); border-color: var(--hp-primary); color: #fff; }
.hp-btn--primary:hover { background: var(--hp-primary-hover); border-color: var(--hp-primary-hover); color: #fff; }
.hp-btn--white { background: #fff; border-color: #fff; color: var(--hp-primary); }
.hp-btn--white:hover { background: var(--hp-blue-100); border-color: var(--hp-blue-100); color: var(--hp-blue-600); }
.hp-btn--outline-white { background: transparent; border-color: #fff; color: #fff; }
.hp-btn--outline-white:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.hp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--hp-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}
.hp-link:hover { color: var(--hp-blue-600); text-decoration: underline; }
.hp-link--sm { font-size: 14px; line-height: 20px; font-weight: 700; text-decoration: underline; }

/* ---------- Testata ---------- */

.hp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  background: var(--hp-primary);
}
.hp-topbar a { display: inline-flex; align-items: center; }
.hp-topbar img { width: auto; }
.hp-topbar a + a img { height: 24px; }

.hp-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 9px 16px;
  background: var(--hp-navy);
}
.hp-navbar__brand { display: inline-flex; }
.hp-navbar__brand img { width: auto; height: 38px; }
.hp-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 4px;
  color: #fff;
  font: inherit;
  font-weight: 600;
}
.hp-lang::after { margin-left: 6px; }

/* ---------- Hero ---------- */

.hp-hero {
  color: #fff;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 25, 217, 0.6), rgba(0, 25, 217, 0)),
    var(--hp-navy);
}
.hp-hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
  min-height: 504px;
  padding-top: 54px;
  padding-bottom: 54px;
}
.hp-hero__text {
  flex: 0 1 509px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hp-hero--solo .hp-hero__text { flex-basis: 640px; }
.hp-hero__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #fff;
}
.hp-hero__lead { font-size: 18px; line-height: 1.2; }
.hp-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px 32px; }
/* Quattro tick, due e due. */
.hp-hero__checks { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 0 16px; }
.hp-hero__checks li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 4px 8px;
  font-weight: 600;
}

/* Pannello «Prova AppLI» */
.hp-try {
  flex: 1 1 543px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hp-try__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hp-try__head { display: flex; align-items: flex-start; gap: 8px; }
.hp-try__title { font-size: 20px; font-weight: 700; line-height: 1.2; color: #fff; }
.hp-try__sub { font-size: 14px; line-height: 20px; }
.hp-try__paths { display: flex; flex-direction: column; gap: 8px; }
.hp-try__path {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border: 1px solid #fff;
  border-radius: 32px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
.hp-try__path span { flex: 1; }
.hp-try__path:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
/* Prelogin nuovo: titolo + riga piccola che dice cosa trovi. */
.hp-try__path--due { padding: 10px 12px; gap: 12px; }
.hp-try__ic {
  flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}
.hp-try__path .hp-try__ic { flex: 0 0 32px; }
.hp-try__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-try__copy strong { font-weight: 700; }
.hp-try__copy small { font-size: 14px; line-height: 20px; font-weight: 400; color: rgba(255, 255, 255, 0.85); }
.hp-try__or {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}
.hp-try__or::before,
.hp-try__or::after {
  content: "";
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}
.hp-try__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  background: #fff;
  border-radius: 8px;
}
.hp-try__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--hp-body);
  font: inherit;
}
.hp-try__input::placeholder { color: var(--hp-secondary); }
.hp-try__input:focus { outline: none; }
.hp-try__form:focus-within { box-shadow: 0 0 0 3px var(--hp-focus-dark); }
.hp-try__send {
  flex: 0 0 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: var(--hp-primary);
  cursor: pointer;
}
.hp-try__send:hover { background: var(--hp-primary-hover); }

.hp-studi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #fff;
  background: var(--hp-blue-100);
  text-decoration: none;
  transition: background-color .15s ease;
}
.hp-studi:hover { background: #fff; }
.hp-studi__icon {
  flex: 0 0 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: #fff;
}
.hp-studi__copy { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hp-studi__title { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--hp-blue-600); }
.hp-studi__text { color: var(--hp-navy); }

/* ---------- Perché fidarsi ---------- */

.hp-trust { border-bottom: 1px solid var(--hp-border); }
.hp-trust__list {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.hp-trust__item { flex: 1 1 0; display: flex; align-items: flex-start; gap: 21px; }
.hp-trust__icon {
  flex: 0 0 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--hp-blue-100);
}
.hp-trust__icon--award { background: var(--hp-yellow-100); }
.hp-trust__item > div { display: flex; flex-direction: column; gap: 4px; }
.hp-trust__title { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--hp-navy); }
.hp-trust__text { color: var(--hp-secondary); }
.hp-trust .hp-link { align-self: flex-start; }

/* ---------- Come funziona ---------- */

.hp-how {
  padding: 40px 0;
  background: linear-gradient(to top, #fff, var(--hp-blue-100));
}
.hp-how__body { display: flex; align-items: center; gap: 40px; }
.hp-steps { flex: 0 1 494px; display: flex; flex-direction: column; gap: 16px; }
.hp-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 16px;
  box-shadow: var(--hp-shadow-card);
}
.hp-step > div { display: flex; flex-direction: column; gap: 8px; }
.hp-step__num {
  flex: 0 0 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: var(--hp-shadow-badge);
}
.hp-step__num--1 { border-radius: 12px; background: linear-gradient(107deg, #133afe 4%, #052c65 96%); }
.hp-step__num--2 { background: linear-gradient(107deg, #9013fe 4%, #6a10f3 96%); }
.hp-step__num--3 { background: linear-gradient(107deg, #0ebfbf 4%, #008080 96%); }
.hp-step__title { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); }
.hp-step__text { color: var(--hp-secondary); }

/* Illustrazione: conversazione d'esempio con tre etichette di esito. */
.hp-demo {
  position: relative;
  flex: 0 0 576px;
  height: 447px;
}
.hp-demo__glow {
  position: absolute;
  inset: 0 0 0 -9px;
  border-radius: 24px;
  filter: blur(40px);
  background: radial-gradient(ellipse 70% 70% at 50% 50%,
    rgba(13, 110, 253, 0.3) 0%, rgba(7, 55, 127, 0.15) 35%, rgba(0, 0, 0, 0) 70%);
}
.hp-demo__chat {
  position: absolute;
  left: 84px;
  top: 77px;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.hp-demo__msg {
  padding: 8px 16px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 16px;
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.12);
}
.hp-demo__msg--user {
  max-width: 261px;
  border-top-right-radius: 8px;
  background: var(--hp-primary);
  color: #fff;
}
.hp-demo__msg--bot {
  width: 100%;
  border-top-left-radius: 8px;
  background: var(--hp-light);
  color: var(--hp-body);
}
.hp-demo__tag {
  position: absolute;
  z-index: 1;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--hp-light);
  background: var(--hp-blue-100);
  color: var(--hp-gray-800);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  box-shadow: var(--hp-shadow-badge);
}
.hp-demo__tag--cv { left: 26px; top: 96px; }
.hp-demo__tag--offerte { left: 432px; top: 129px; }
.hp-demo__tag--colloquio { left: 383px; top: 347px; }

/* I messaggi compaiono uno dopo l'altro, come una conversazione. */
@media (prefers-reduced-motion: no-preference) {
  .hp-demo__msg, .hp-demo__tag {
    opacity: 0;
    animation: hp-appear .5s ease-out forwards;
  }
  .hp-demo__msg:nth-child(1) { animation-delay: .2s; }
  .hp-demo__msg:nth-child(2) { animation-delay: .9s; }
  .hp-demo__msg:nth-child(3) { animation-delay: 1.6s; }
  .hp-demo__msg:nth-child(4) { animation-delay: 2.3s; }
  .hp-demo__tag--cv { animation-delay: 1.2s; }
  .hp-demo__tag--offerte { animation-delay: 2s; }
  .hp-demo__tag--colloquio { animation-delay: 2.8s; }
}
@keyframes hp-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Partner ---------- */

.hp-partners { padding: 40px 0; background: #fff; }
.hp-partners .hp-partners__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 64px;
  margin-top: 48px;
}
.hp-partners__logos img { height: 48px; width: auto; display: block; }

/* ---------- Cosa puoi fare ---------- */

.hp-features {
  padding: 40px 0;
  background: linear-gradient(to top, var(--hp-blue-100), #fff);
}
.hp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 24px;
  box-shadow: var(--hp-shadow-card);
}
.hp-card__icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--hp-blue-50);
}
.hp-card__title { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); }
.hp-card__text { flex: 1; }

/* ---------- Inizia il tuo percorso ---------- */

.hp-start { padding: 16px 0 40px; }
.hp-start__box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
}
.hp-start__row { display: flex; align-items: center; gap: 24px; }
.hp-start__row p { flex: 1; max-width: 913px; }

/* ---------- Come nasce AppLI ---------- */

.hp-project {
  padding: 48px 0;
  color: #fff;
  background:
    radial-gradient(ellipse 640px 300px at 37% 100%, rgba(0, 25, 217, 0.6), rgba(0, 25, 217, 0)),
    var(--hp-navy);
}
.hp-project__inner { display: flex; align-items: center; gap: 64px; }
.hp-project__text { flex: 0 1 546px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hp-project .hp-project__lead { font-size: 20px; line-height: 1.2; margin-bottom: 16px; }
.hp-project__awards { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hp-award {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}
.hp-award:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }
.hp-award__icon {
  flex: 0 0 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  background: var(--hp-yellow);
}
.hp-award__body { display: flex; flex-direction: column; gap: 4px; }
.hp-award__title { font-size: 20px; font-weight: 600; line-height: 1.2; }

/* ---------- FAQ e supporto ---------- */

.hp-help { background: linear-gradient(to top, var(--hp-blue-100), #fff); }
.hp-help__list {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hp-help__card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 24px;
  box-shadow: var(--hp-shadow-card);
}
.hp-help__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--hp-primary);
  box-shadow: var(--hp-shadow-badge);
}
.hp-help__title { font-size: 20px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); }
.hp-help__text { flex: 1; font-size: 18px; }

/* ---------- Footer ---------- */

.hp-footer { background: var(--hp-navy); color: #fff; padding: 24px 0; }
.hp-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hp-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.hp-footer__enti { display: flex; align-items: center; gap: 24px; }
.hp-footer__enti a { display: inline-flex; }
.hp-footer__ml { height: 56px; width: auto; }
.hp-footer__ml--v { height: 62px; }
.hp-footer__inps { height: 32px; width: auto; filter: brightness(0) invert(1); }
.hp-footer__line { margin: 24px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.5); opacity: 1; }
.hp-footer__links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.hp-footer__links a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
}
.hp-footer__links a:hover { color: #fff; opacity: .85; }

/* ---------- Pagine di approfondimento (Crescita professionale) ---------- */

.hp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.hp-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hp-breadcrumb li + li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  background: url("/imgs/home/chevron-breadcrumb.svg") center / 20px 20px no-repeat;
}
.hp-breadcrumb a { color: var(--hp-primary); font-weight: 600; text-decoration: none; }
.hp-breadcrumb a:hover { text-decoration: underline; }
.hp-breadcrumb [aria-current] { color: var(--hp-body); }

.hp-article { padding: 24px 0 80px; }
.hp-article .hp-wrap { display: flex; flex-direction: column; gap: 32px; }
.hp-article__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hp-border);
}
.hp-article__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--hp-body);
}
.hp-article__lead { font-size: 18px; }
.hp-article__bar { display: flex; align-items: center; gap: 24px; padding-top: 16px; }
.hp-badges { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-badges li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px 4px 8px;
  border-radius: 24px;
  background: var(--hp-blue-100);
  color: var(--hp-blue-600);
  font-weight: 600;
}
.hp-article__block { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hp-article__block h2 { font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--hp-navy); }
.hp-article__block p { font-size: 18px; }
.hp-article__block p + p { margin-top: -16px; }
/* Le pagine di approfondimento hanno elenchi: il paragrafo che li introduce resta attaccato. */
.hp-article__block ul { font-size: 18px; margin-top: -12px; padding-left: 28px; list-style: disc; }
.hp-article__block ul + p { margin-top: -4px; }
.hp-article__block strong { font-weight: 600; }

/* ---------- Chiedi ad AppLI: la chat diventa una card nella pagina ---------- */

.hp-page--chat .prelogin-overlay--page {
  position: static;
  display: block;
  height: auto;
  background: #fff;
  overflow: visible;
}
.hp-page--chat .prelogin-overlay__page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 80px;
}
.hp-chat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hp-chat__top nav { padding-top: 8px; }

.hp-page--chat .prelogin-overlay__window {
  height: clamp(480px, calc(100dvh - 220px), 720px);
  flex: none;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
}
.hp-page--chat .prelogin-overlay__header {
  margin: 0 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hp-divider);
}
.hp-page--chat .prelogin-overlay__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-navy);
}
.hp-page--chat .prelogin-overlay__restart {
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hp-primary);
  border-radius: 4px;
  background: #fff;
  color: var(--hp-primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.hp-page--chat .prelogin-overlay__restart:hover { background: var(--hp-blue-100); }

/* Corpo: colonna centrale di 897px come nel Figma. */
.hp-page--chat .prelogin-overlay__body {
  background: #fff;
  padding: 16px max(24px, calc((100% - 897px) / 2));
  gap: 16px;
}
.hp-page--chat .prelogin-overlay__footer {
  border-top: 0;
  padding: 0 24px 16px;
  background: #fff;
}
.hp-page--chat .prelogin-overlay__form {
  max-width: 898px;
  margin: 0 auto;
  padding: 8px 8px 8px 24px;
  background: #fff;
  border: 1px solid var(--hp-divider);
  border-radius: 56px;
}
.hp-page--chat .prelogin-overlay__input { font-size: 18px; padding: 2px 0; color: var(--hp-body); }
.hp-page--chat .prelogin-overlay__input::placeholder { color: var(--hp-secondary); }
.hp-page--chat .prelogin-overlay__send { width: 32px; height: 32px; }
.hp-page--chat .prelogin-overlay__send:disabled { background: var(--hp-secondary); }
.hp-page--chat .prelogin-overlay__disclaimer {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--hp-secondary);
}

/* Messaggi: niente avatar, fumetto grigio per AppLI, blu per la persona. */
.hp-page--chat .prelogin-msg { max-width: min(696px, 90%); }
.hp-page--chat .prelogin-msg__avatar { display: none; }
.hp-page--chat .prelogin-msg__bubble { padding: 12px; font-size: 16px; }
.hp-page--chat .prelogin-msg--bot .prelogin-msg__bubble {
  background: var(--hp-gray-200);
  border: 1px solid var(--hp-border);
  border-radius: 4px 16px 16px 16px;
  color: var(--hp-ink-chat);
}
.hp-page--chat .prelogin-msg--user .prelogin-msg__bubble {
  border-radius: 16px 4px 16px 16px;
}
.hp-page--chat .prelogin-quick,
.hp-page--chat .prelogin-cards,
.hp-page--chat .prelogin-schede,
.hp-page--chat .prelogin-cta,
.hp-page--chat .prelogin-percorso-scelto { margin-left: 0; }
.hp-page--chat .prelogin-quick__btn {
  padding: 8px 16px;
  border-width: 1px;
  border-radius: 32px;
  font-size: 16px;
  line-height: 1.5;
}
.hp-page--chat .prelogin-cta__btn { border-radius: 4px; }
.hp-page--chat .prelogin-typing { background: var(--hp-gray-200); border-color: var(--hp-border); border-radius: 4px 16px 16px 16px; }

/* ============================================================================
   Tablet e telefono (Figma «HP - Mobile» 390px)
   ============================================================================ */

@media (max-width: 1199.98px) {
  .hp-demo { flex-basis: 480px; transform: scale(.85); transform-origin: left center; }
}

@media (max-width: 991.98px) {
  .hp-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 24px;
  }
  .hp-hero__text { flex-basis: auto; }
  .hp-try { flex-basis: auto; }
  /* Sul telefono i tre check scendono sotto il pannello. */
  .hp-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hp-hero__text { display: contents; }
  .hp-hero__title { order: 1; }
  .hp-hero .hp-hero__lead { order: 2; margin-top: -8px; }
  .hp-hero__ctas { order: 3; }
  .hp-try { order: 4; }
  .hp-hero__checks { order: 5; }

  .hp-trust__list { flex-direction: column; }
  .hp-how__body { flex-direction: column; align-items: stretch; }
  .hp-steps { flex-basis: auto; }
  .hp-demo { display: none; }
  .hp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-project__inner { flex-direction: column; align-items: stretch; gap: 48px; }
  .hp-project__text { flex-basis: auto; }
  .hp-help__list { flex-direction: column; }
}

@media (max-width: 767.98px) {
  .hp-h1, .hp-hero__title, .hp-article__title { font-size: 32px; }
  .hp-h2 { font-size: 28px; }
  .hp-hero__ctas { flex-direction: column; gap: 16px; }
  .hp-hero__ctas .hp-btn { width: 100%; }
  .hp-try__panel { padding: 16px; border-radius: 16px; }
  .hp-try__path img { width: 16px; height: 16px; }
  .hp-cards { grid-template-columns: minmax(0, 1fr); }
  .hp-start__row { flex-direction: column; align-items: flex-start; }
  .hp-start__box { padding: 24px 8px; }
  .hp-project .hp-project__lead { font-size: 18px; }
  .hp-help__card { padding: 24px; }
  .hp-footer__top { flex-direction: column; }
  .hp-footer__links { flex-direction: column; gap: 24px; }
  .hp-article__bar { flex-direction: column; align-items: stretch; }
  .hp-article__bar .hp-btn { align-self: flex-start; white-space: normal; text-align: left; }
  .hp-badges { flex-direction: column; align-items: flex-start; }
  .hp-article__block h2 { font-size: 28px; }
  .hp-article__block .hp-btn { white-space: normal; }
  .hp-breadcrumb [aria-current] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
  }
  .hp-breadcrumb li:last-child { flex: 1; }

  .hp-chat__top .hp-btn--lg { padding: 6px 16px; font-size: 16px; }
  .hp-page--chat .prelogin-overlay__page { gap: 16px; padding-bottom: 40px; }
  .hp-page--chat .prelogin-overlay__window { height: calc(100dvh - 180px); min-height: 440px; }
  .hp-page--chat .prelogin-overlay__header { margin: 0 16px; }
  .hp-page--chat .prelogin-overlay__body { padding: 16px; }
  .hp-page--chat .prelogin-overlay__footer { padding: 0 12px 12px; }
  .hp-page--chat .prelogin-overlay__form { padding-left: 16px; }
  .hp-page--chat .prelogin-overlay__input { font-size: 16px; }
  .hp-page--chat .prelogin-overlay__disclaimer { font-size: 12px; line-height: 16px; text-align: center; }
  .hp-page--chat .prelogin-quick__btn { white-space: normal; text-align: left; }
}

/* L'anello di focus va sulla barra intera, non sull'input dentro la barra. */
.hp-page .prelogin-overlay__input:focus-visible,
.hp-page .hp-try__input:focus-visible { outline: none; }
.hp-page--chat .prelogin-overlay__form:focus-within {
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Telefono: il testo di «Nuova chat» resta (prelogin.css lo nascondeva: il
   bottone restava senza nome per i lettori di schermo); il breadcrumb tronca
   l'ultima voce con i puntini senza perdere la freccia. */
.hp-page--chat .prelogin-overlay__restart span { display: inline; }
@media (max-width: 767.98px) {
  .hp-breadcrumb li + li::before {
    display: inline-block;
    width: 20px;
    margin-right: 8px;
    vertical-align: -4px;
  }
}
