/* HERO CONDIVISA — riferimento: Servizi.
   Modificare qui per aggiornare tutte le pagine.
   I testi restano negli HTML: hpi-hero-payoff e hpi-hero-intro.
   Gli slot vuoti conservano lo spazio per i testi futuri. */
.hpi-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 156px 0 104px;
  text-align: center;
  color: #fff;
  background: var(--gradient-hero);
}
.hpi-hero::before, .hpi-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.hpi-hero::before {
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 62px 62px;
}
.hpi-hero::after {
  opacity: .35;
  background: radial-gradient(circle at 10% 23%, #bdffe6 0 1px, transparent 2px), radial-gradient(circle at 77% 18%, #bdffe6 0 1.5px, transparent 2.5px), radial-gradient(circle at 92% 62%, #bdffe6 0 1px, transparent 2px), radial-gradient(circle at 26% 84%, #bdffe6 0 1.5px, transparent 2.5px), radial-gradient(circle at 68% 83%, #bdffe6 0 1px, transparent 2px);
}
.hpi-hero > .hpi-hero-content {
  position: relative;
  width: min(950px, calc(100% - 64px));
  max-width: 950px;
  margin: 0 auto;
}
.hpi-hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.hpi-hero h1 span { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
.hpi-hero .hpi-hero-payoff {
  min-height: 1.35em;
  max-width: 950px;
  margin: 0 auto 41px;
  color: #f4fbf8;
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 600;
  line-height: 1.35;
}
.hpi-hero-payoff span { color: var(--violet-light); }
.hpi-hero-payoff svg { display: inline-block; width: 22px; height: 22px; vertical-align: middle; }
.hpi-hero .hpi-hero-intro {
  width: min(100%, 870px);
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.2);
  min-height: calc(36px + 3.7em + 1px);
  color: rgba(255,255,255,.85);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.85;
}
.hpi-hero .hpi-hero-intro p {
  max-width: none;
  margin: 0 0 20px;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}
.hpi-hero .hpi-hero-intro p:last-child { margin-bottom: 0; }
.hpi-hero .hero-actions { justify-content: center; margin-top: 32px; }
.hpi-hero .hero-stats { justify-content: center; }
.hpi-hero-meta { margin-top: 24px; color: rgba(255,255,255,.85); }
.hpi-hero-meta .article-date { color: inherit; }
/* La presentazione illustrata dei prodotti resta sotto la hero. */
.hpi-product-story.products-intro { padding: 60px 0 75px; }
/* La landing grafica resta intatta e segue la nuova hero testuale. */
.hpi-hero + .tr-landing { margin-top: 0; padding-top: 0; }
@media (max-width: 720px) {
  .hpi-hero { padding: 125px 0 72px; }
  .hpi-hero > .hpi-hero-content { width: calc(100% - 72px); max-width: 390px; }
  .hpi-hero h1 { font-size: 43px; margin-bottom: 13px; }
  .hpi-hero .hpi-hero-payoff { font-size: 20px; margin-bottom: 30px; }
  .hpi-hero .hpi-hero-intro { padding-top: 25px; font-size: 15.5px; line-height: 1.75; min-height: calc(25px + 3.5em + 1px); }
  .hpi-hero .hpi-hero-intro p { margin-bottom: 17px; }
  .hpi-hero .hero-stats { flex-wrap: wrap; }
}

/* Sottotitoli condivisi: gradiente su tutte le sezioni principali. */
.hpi-hero-payoff .hpi-payoff-gradient {
  color: var(--violet-light);
  background: linear-gradient(135deg, var(--blue-light), var(--violet-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hpi-product-story .agent-story-title {
  margin: 0 0 32px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
}
