/* ==========================================================================
   Jilpy · pagina investitori (investitori/index.html)
   Si carica DOPO css/style.css e ne usa token e componenti: colori, tema chiaro e scuro,
   raggi, ombre, tipografia, .section, .section-head, .eyebrow, .h2, .lead, .btn, .guarantee,
   .health-note, .link-arrow, header e footer.
   - Classi nuove solo con il prefisso .inv-: la home e le pagine legali non le hanno e non cambiano.
   - Nessun colore nuovo. Fanno eccezione i bianchi trasparenti sulla scheda scura dei contatti,
     come nella fascia «Jilpy traccia, tu vedi la strada» della home.
   - Animazioni: l'ingresso dell'hero (keyframes «rise» e «phone-in» di style.css) e la comparsa
     .reveal di js/main.js. Con «Riduci movimento» tutto è visibile subito (regole di style.css).
   - Nessuno scroll orizzontale da 320 px in su.
   ========================================================================== */

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

.inv-hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px clamp(64px, 7vw, 104px);
  background: var(--hero-bg);
}
/* Con JavaScript l'header è fisso (position: fixed): il contenuto parte sotto */
.js .inv-hero { padding-top: calc(var(--header-h) + 44px); }

.inv-hero__grid { display: grid; gap: 40px; align-items: center; }

.inv-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.inv-hero__copy .eyebrow { margin-bottom: 16px; }
.inv-hero__title {
  font-size: clamp(34px, 2.4vw + 24px, 62px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.036em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.inv-hero__lead {
  margin-top: 22px;
  max-width: 660px;
  font-size: clamp(18px, .5vw + 15px, 21px);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.inv-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Il telefono si vede solo sugli schermi larghi (con loading="lazy", sui telefoni l'immagine non si scarica) */
.inv-hero__visual { display: none; }

/* Quattro numeri in un pannello: 2 colonne sul telefono, 4 da 900 px */
.inv-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--border);
  box-shadow: var(--shadow-card);
}
.inv-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 24px 14px 22px;
  background: var(--surface);
  text-align: center;
}
.inv-stat__value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(32px, 1.2vw + 26px, 44px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.inv-stat__star { width: .62em; height: .62em; color: var(--star); }
.inv-stat__label {
  max-width: 24ch;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-2);
  overflow-wrap: break-word;
}

/* Nota con fonti e data, sotto ogni gruppo di numeri */
.inv-source {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-3);
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 479px) {
  .inv-hero__ctas { flex-direction: column; width: 100%; }
  .inv-hero__ctas .btn { width: 100%; }
}
@media (max-width: 359px) {
  .inv-stat { padding-inline: 10px; }
  .inv-stat__value { font-size: 28px; }
}
@media (min-width: 900px) {
  .inv-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inv-stat { padding: 30px 20px 26px; }
}
@media (min-width: 1100px) {
  .inv-hero__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
  .inv-hero__copy { align-items: flex-start; margin: 0; text-align: left; }
  .inv-hero__ctas { justify-content: flex-start; }
  .inv-hero__visual { display: block; width: 270px; justify-self: center; }
}

/* ---------- Perché ora ---------- */

.inv-cards { display: grid; gap: 16px; }
.inv-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 28px 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-card);
}
.inv-card__num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--chip-bg);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}
.inv-card__title { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; text-wrap: balance; }
.inv-card > p { font-size: 16px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* Il dato AIFA dentro la prima scheda */
.inv-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}
.inv-fact__value {
  font-size: clamp(26px, .8vw + 22px, 32px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.inv-fact__label { font-size: 15px; line-height: 1.45; font-weight: 700; color: var(--text); }
.inv-fact__source { font-size: 13px; line-height: 1.5; color: var(--text-3); }

@media (min-width: 900px) {
  .inv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Trazione ---------- */

.inv-metrics { display: grid; gap: 16px; }
.inv-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 28px 26px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-card);
}
.inv-metric__value {
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: clamp(42px, 1.2vw + 34px, 54px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.inv-metric__title { font-size: 17px; line-height: 1.35; font-weight: 800; color: var(--text); }
.inv-metric__desc { font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* Il richiamo al deck usa la nota con la barra a gradiente della home (.health-note) */
.inv-deck { margin-top: 20px; }
.inv-deck p { font-weight: 650; }

@media (min-width: 600px) {
  .inv-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .inv-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- Modello di business e percorso ---------- */

.inv-split { display: grid; gap: 72px; }
.inv-split__col { min-width: 0; }
.inv-h2 {
  font-size: clamp(28px, 1.4vw + 22px, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.inv-model { display: grid; gap: 12px; margin-top: 32px; }
.inv-model__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-card);
}
.inv-model__text { flex: 1 1 220px; min-width: 0; }
.inv-model__title { font-size: 17px; line-height: 1.35; font-weight: 800; }
.inv-model__desc { margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--text-2); }

.inv-status {
  flex: none;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.5;
  white-space: nowrap;
}
.inv-status--live { background: var(--grad); color: #fff; }
.inv-status--dev  { background: var(--chip-bg); color: var(--accent-ink); }
.inv-status--next { color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--ghost-border); }

/* Sul telefono lo stato va sopra il titolo, uguale per le tre voci */
@media (max-width: 599px) {
  .inv-model__item { flex-direction: column; align-items: flex-start; }
  .inv-model__text { flex: none; width: 100%; }
  .inv-status { order: -1; }
}

/* Percorso: pallino e linea che lega le fasi */
.inv-path { margin-top: 32px; }
.inv-path__step {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0 18px;
  padding-bottom: 28px;
}
.inv-path__step:last-child { padding-bottom: 0; }
.inv-path__step::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 0;
  left: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.inv-path__step:last-child::before { display: none; }

.inv-path__dot {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--bg-alt);
}
.inv-path__dot--done { background: var(--accent); }
.inv-path__dot--now { background: var(--grad); box-shadow: 0 0 0 5px var(--chip-bg); }
.inv-path__dot--next { box-shadow: inset 0 0 0 2.5px var(--accent); }
.inv-path__dot--vision { box-shadow: inset 0 0 0 2.5px var(--ghost-border); }

.inv-path__when {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.6;
  text-transform: uppercase;
}
.inv-path__when--done,
.inv-path__when--next { color: var(--accent); }
.inv-path__when--vision { color: var(--text-3); }
.inv-path__title { margin-top: 2px; font-size: 17px; line-height: 1.35; font-weight: 800; text-wrap: pretty; }
.inv-path__desc { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--text-2); }

@media (min-width: 1000px) {
  .inv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
}

/* ---------- Team ---------- */

.inv-team { display: grid; gap: 16px; }
.inv-person {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 30px 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-card);
}
.inv-person__photo,
.inv-person__placeholder {
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--chip-bg);
}
.inv-person__photo { object-fit: cover; }
.inv-person__placeholder {
  display: grid;
  place-items: center;
  background: var(--chip-bg);
  color: var(--accent);
}
.inv-person__placeholder .icon { width: 40px; height: 40px; }
.inv-person__name { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.inv-person__role { font-size: 15.5px; line-height: 1.4; font-weight: 700; color: var(--accent); }
.inv-person > p:not(.inv-person__role) { margin-top: 4px; font-size: 16px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.inv-person .link-arrow { align-self: flex-start; margin-top: auto; padding-top: 10px; }

/* Il posto per l'advisor: scheda tratteggiata, senza ombra */
.inv-person--open {
  background: var(--surface-2);
  box-shadow: none;
  border: 2px dashed var(--ghost-border);
}

@media (min-width: 700px) {
  .inv-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-person--open { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .inv-team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .inv-person--open { grid-column: auto; }
}

/* ---------- Il prossimo passo ---------- */

.inv-contact { padding-bottom: clamp(88px, 9vw, 150px); }

.inv-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(109, 40, 217, .45), transparent 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(194, 41, 140, .28), transparent 70%),
    var(--night);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-card);
  color: #fff;
}
.inv-cta__copy { min-width: 0; }
.inv-cta__title {
  font-size: clamp(30px, 1.6vw + 22px, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
  color: #fff;
}
.inv-cta__lead {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(17px, .4vw + 15px, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  text-wrap: pretty;
}
.inv-cta__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Bottone secondario sulla scheda scura: il .btn--ghost della home è pensato per gli sfondi chiari */
.inv-btn-on-dark { color: #fff; background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.inv-btn-on-dark:hover { box-shadow: inset 0 0 0 2px #fff; }

.inv-cta__box {
  min-width: 0;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.inv-cta__box-title { font-size: 17px; line-height: 1.35; font-weight: 800; color: #fff; }
.inv-cta__list { display: grid; gap: 10px; margin-top: 16px; }
.inv-cta__list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .84);
}
.inv-cta__list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: .55em;
  border-radius: 50%;
  background: #f3a0d8;
}
.inv-cta__mail { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .7); overflow-wrap: anywhere; }
.inv-cta :focus-visible { outline-color: #c4a7ff; }

@media (max-width: 479px) {
  .inv-cta__ctas { flex-direction: column; }
  .inv-cta__ctas .btn { width: 100%; }
}
@media (min-width: 900px) {
  .inv-cta { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
}

/* ---------- Footer: dati della società e disclaimer ---------- */

.inv-company { max-width: 820px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .68); }
.inv-company__name { display: block; font-weight: 700; color: rgba(255, 255, 255, .88); }
.inv-disclaimers { display: grid; gap: 8px; }

/* ---------- Animazioni (solo transform e opacity) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .inv-hero__copy > * { animation: rise 1s var(--ease-out) both; }
  .js .inv-hero__copy > :nth-child(2) { animation-delay: .08s; }
  .js .inv-hero__copy > :nth-child(3) { animation-delay: .2s; }
  .js .inv-hero__copy > :nth-child(4) { animation-delay: .3s; }
  .js .inv-hero__visual .phone-enter { animation-delay: .25s; }
}

/* ---------- Stampa e «Salva come PDF» ----------
   Nero su bianco anche col tema scuro: i browser non stampano gli sfondi, quindi testo a gradiente,
   bottoni, pallini, scheda scura e piè di pagina tornano leggibili. Restano i dati della società e i disclaimer.
   Tutti i token che la pagina usa per testo e contorni sono rimessi a nero o grigio (anche quelli del tema scuro).
   Dove serviva uno sfondo (bottone pieno, stato «Attivo», pallini, linea del percorso) c'è un bordo, che si stampa sempre. */
@media print {
  body.inv-page {
    --bg: #fff;
    --bg-alt: #fff;
    --text: #000;
    --text-2: #1a1a1a;
    --text-3: #444;
    --accent: #000;
    --accent-ink: #000;
    --link: #000;
    --ghost-border: #000;
    --chip-bg: #ddd;
    --star: #000;
    --border: #bbb;
    --border-strong: #bbb;
    --surface: #fff;
    --surface-2: #fff;
    background: #fff;
    color: #000;
  }
  .inv-page .site-header::before,
  .inv-page .header__actions,
  .inv-page .nav,
  .inv-page .skip-link,
  .inv-hero__visual { display: none !important; }
  .inv-hero, .js .inv-hero { padding-top: 16px; background: none; }
  .js .inv-hero__copy > * { animation: none; }  /* il titolo si stampa anche se si stampa prima della fine dell'ingresso */
  .inv-page .grad-text,
  .inv-page .eyebrow { background: none; color: #000; }
  .inv-stats { background: #bbb; box-shadow: none; }
  .inv-stat { outline: 1px solid #bbb; }
  .inv-card, .inv-metric, .inv-person, .inv-model__item, .guarantee { box-shadow: inset 0 0 0 1px #bbb; break-inside: avoid; }
  .inv-page .btn--primary,
  .inv-btn-on-dark { background: none; color: #000; box-shadow: none; border: 2px solid #000; }
  .inv-status--live { background: none; color: #000; border: 1.5px solid #000; }
  .inv-path__dot--done,
  .inv-path__dot--now { background: none; border: 9px solid #000; }
  .inv-path__dot--next,
  .inv-path__dot--vision { box-shadow: none; border: 2px solid #000; }
  .inv-path__step::before { background: none; border-left: 2px solid #bbb; }
  .inv-cta { background: none; color: #000; box-shadow: inset 0 0 0 1px #bbb; }
  .inv-cta, .inv-cta__box { break-inside: avoid; }
  .inv-cta__title, .inv-cta__lead, .inv-cta__box-title, .inv-cta__list li, .inv-cta__mail { color: #000; }
  .inv-cta__box { background: none; box-shadow: inset 0 0 0 1px #bbb; }
  .inv-cta__list li::before { background: none; border: 3.5px solid #000; }
  .inv-page .site-footer { padding-top: 24px; background: none; color: #000; }
  .inv-page .site-footer a,
  .inv-page .footer__disclaimer,
  .inv-company,
  .inv-company__name { color: #000; }
  .inv-page .footer__top { box-shadow: none; border-bottom: 1px solid #bbb; break-inside: avoid; }
}
