/* SF Pro Display è il carattere di sistema di Apple: su Mac, iPhone e iPad il
   browser usa quello installato sul dispositivo (la licenza Apple non consente
   di pubblicarlo sul web). Altrove si usa Inter (SIL Open Font License),
   ospitato qui e scaricato solo se serve. */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ink: #23212a;
  --muted: #77747f;
  --purple: #7053ce;
  --line: #e8e6eb;
  --surface: #f5f4f6;
  --peach: #f4ded0;
  --mint: #e4eadd;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: white;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 5px;
}
.wrap {
  width: min(1120px, calc(100% - 80px));
  margin: auto;
}
.skip {
  position: absolute;
  top: -70px;
  left: 15px;
  background: var(--ink);
  color: white;
  padding: 15px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.hero-shell {
  background:
    radial-gradient(ellipse at 4% 93%, #f2d7c666, transparent 50%),
    radial-gradient(ellipse at 88% 84%, #8d7d9759, transparent 45%),
    radial-gradient(ellipse at 80% 0%, #d8dfcb88, transparent 48%), #f0eef0;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}
header {
  height: 98px;
  display: flex;
  align-items: center;
  gap: 38px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  margin-left: auto;
}
nav a:hover {
  color: var(--purple);
}
.button {
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  border: 0;
  border-radius: 30px;
  padding: 16px 23px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 5px 10px #19132616;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #4c3c69;
  transform: translateY(-2px);
}
.nav-cta {
  padding: 11px 19px;
  font-size: 12px;
  gap: 20px;
}
.menu {
  display: none;
}
.hero {
  text-align: center;
  padding: 44px 0 38px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 550;
  color: #68616f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero h1 {
  font-size: clamp(44px, 5.5vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 23px 0;
}
.gradient-text {
  background: linear-gradient(110deg, #7150b3 12%, #ac6d9c 60%, #c88965);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero > p {
  color: #68616d;
  line-height: 1.6;
  font-size: 17px;
  margin: 22px 0 25px;
}

.peach {
  background: #f4e4db;
  color: #b68167;
}
.violet {
  background: #ebe4fa;
  color: #8564b9;
}
.mint {
  background: #e9efdf;
  color: #779164;
}

.section {
  padding-top: 80px;
  padding-bottom: 65px;
}
.section-heading {
  text-align: center;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-size: 43px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 17px 0;
}
.section-heading p {
  font-size: 15px;
  color: #89828e;
  line-height: 1.6;
  margin-top: 16px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit-grid article {
  background: #f6f5f7;
  border: 1px solid #f0eef3;
  border-radius: 12px;
  padding: 25px;
  position: relative;
}
.benefit-icon {
  display: grid;
  place-items: center;
  border-radius: 12px;
  width: 47px;
  height: 47px;
  font-size: 30px;
}
.benefit-grid h3 {
  font-size: 24px;
  line-height: 1.17;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 24px 0 12px;
}
.benefit-grid p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 265px;
  color: #81798a;
  min-height: 67px;
  margin: 0 0 20px;
}
.benefit-outcome {
  font-size: 12px;
  color: #6c5a87;
  border-top: 1px solid #e3dfea;
  display: block;
  padding-top: 17px;
}
.examples {
  padding-top: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-top: 13px;
  font-size: 12px;
  color: #584469;
}
.text-link:hover {
  text-decoration: underline;
}
.method {
  padding-top: 75px;
  padding-bottom: 75px;
}
.method .section-heading h2 {
  font-size: 37px;
}
.contact-section {
  background:
    radial-gradient(ellipse at 3% 20%, #e7def283, transparent 50%),
    radial-gradient(ellipse at 95% 100%, #f2dfd382, transparent 50%), #f6f5f6;
  padding: 65px 0;
  border-radius: 28px 28px 0 0;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 85px;
  align-items: start;
}
.contact h2 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 22px 0;
}
.contact-copy > p {
  font-size: 15px;
  line-height: 1.65;
  color: #7a7082;
}
.contact-form {
  background: #ffffffd9;
  padding: 28px;
  border: 1px solid #fff;
  border-radius: 13px;
  box-shadow: 0 12px 40px #4a32510b;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 12px;
  color: #6b5b78;
}
.field label span {
  color: #b29dbd;
}
.field input,
.field textarea {
  width: 100%;
  font-size: 16px;
  border: 1px solid #e7e0ed;
  border-radius: 7px;
  background: #fcfbfd;
  padding: 12px 13px;
  color: #36243e;
  resize: vertical;
  min-width: 0;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid #b396d0;
  outline-offset: 2px;
}
.field input::placeholder,
.field textarea::placeholder {
  font-size: 12px;
  color: #aa9cb5;
}
.submit {
  width: 100%;
  font-size: 13px;
  gap: 25px;
}
.submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
#form-status {
  font-size: 13px;
  line-height: 1.6;
  color: #4a7854;
}
#form-status:empty {
  display: none;
}
#form-status.error {
  color: #ad4037;
}
.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.faq {
  margin-top: 27px;
  max-width: 370px;
}
.faq details {
  border-bottom: 1px solid #dfd8e4;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  color: #75647f;
  padding: 13px 0;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary span[aria-hidden="true"] {
  font-size: 18px;
  color: #a691b5;
}
.faq details[open] summary span[aria-hidden="true"] {
  transform: rotate(45deg);
}
.faq details p {
  font-size: 12px;
  color: #94809f;
  line-height: 1.6;
  margin: 0 0 13px;
}
footer {
  padding-top: 35px;
  padding-bottom: 25px;
}

@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 56px);
  }
  header {
    gap: 25px;
  }
  nav {
    gap: 20px;
  }
  .hero h1 {
    font-size: 62px;
  }
  .benefit-grid article {
    padding: 22px;
  }
  .benefit-grid h3 {
    font-size: 23px;
  }
  
  .contact {
    gap: 40px;
  }
  .contact h2 {
    font-size: 43px;
  }
  .contact-form {
    padding: 23px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  header {
    height: 78px;
    justify-content: space-between;
    gap: 16px;
  }
  .logo {
    font-size: 28px;
  }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    z-index: 5;
    background: #fff;
    border: 1px solid #e7dfec;
    box-shadow: 0 10px 30px #33203b15;
    border-radius: 12px;
    padding: 22px;
    flex-direction: column;
    align-items: start;
  }
  nav.open {
    display: flex;
  }
  .nav-cta {
    margin-left: auto;
    padding: 9px 14px;
    font-size: 12px;
    gap: 10px;
  }
  .menu {
    display: block;
    background: transparent;
    border: 1px solid #cfc5d7;
    border-radius: 7px;
    font-size: 18px;
    width: 34px;
    height: 34px;
    color: #6b5878;
  }
  .hero {
    padding-top: 34px;
    padding-bottom: 27px;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 1.15px;
  }
  .hero h1 {
    font-size: clamp(34px, 8.2vw, 55px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-top: 20px;
  }
  .hero > p {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 20px;
  }
  .hero-cta {
    font-size: 13px;
    padding: 14px 21px;
  }
  
  
  .section {
    padding-top: 55px;
    padding-bottom: 40px;
  }
  .section-heading {
    margin-bottom: 27px;
  }
  .section-heading h2 {
    font-size: 34px;
    letter-spacing: -0.03em;
  }
  .section-heading p {
    font-size: 13px;
  }
  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .benefit-grid article {
    padding: 23px 23px 20px;
  }
  .benefit-icon {
    width: 38px;
    height: 38px;
    font-size: 26px;
    float: right;
    margin-right: 30px;
  }
  .benefit-grid h3 {
    font-size: 23px;
    margin: 0 0 12px;
  }
  .benefit-grid p {
    font-size: 14px;
    min-height: 0;
    max-width: 290px;
    margin-bottom: 18px;
  }
  .benefit-outcome {
    font-size: 12px;
    padding-top: 14px;
  }
  .examples {
    width: calc(100% - 24px);
    padding-top: 8px;
  }
  
  .text-link {
    font-size: 12px;
    margin-top: 3px;
  }
  .method {
    padding-top: 50px;
    padding-bottom: 45px;
  }
  .method .section-heading h2 {
    font-size: 31px;
  }
  .contact-section {
    padding: 45px 0;
    border-radius: 20px 20px 0 0;
  }
  .contact {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .contact-copy {
    width: 100%;
  }
  .contact h2 {
    font-size: 39px;
    letter-spacing: -0.03em;
    margin: 20px 0;
  }
  .contact-copy > p {
    font-size: 14px;
  }
  .faq {
    margin-top: 20px;
    max-width: 100%;
  }
  .faq summary {
    font-size: 13px;
  }
  .faq details p {
    font-size: 13px;
  }
  .contact-form {
    width: 100%;
    padding: 24px;
  }
  .field label {
    font-size: 14px;
  }
  .field input,
  .field textarea {
    padding: 13px;
    font-size: 16px;
  }
  .field input::placeholder,
  .field textarea::placeholder {
    font-size: 13px;
  }
  .hero-shell {
    border-radius: 0 0 22px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  
  
}
/* Leggibilità dei contenuti principali. */
.benefit-grid p,
.contact-copy > p {
  font-size: 16px;
}
.field label,
.text-link,
.faq summary {
  font-size: 14px;
}
.faq details p {
  font-size: 14px;
}
/* Processi reali, esempi con eccezioni e integrazioni possibili. */
.hero-shell {
  background:
    radial-gradient(ellipse at 2% 88%, #eccab8a6, transparent 50%),
    radial-gradient(ellipse at 93% 82%, #9780b78a, transparent 49%),
    radial-gradient(ellipse at 76% 0%, #d8dfcbaf, transparent 49%), #f0edf2;
}
.hero h1 {
  font-size: clamp(42px, 5.15vw, 69px);
}
.hero > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.integrations {
  padding-top: 35px;
  padding-bottom: 0;
  text-align: center;
}
.integrations h2 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 12px 0 24px;
}
.integrations > p {
  font-size: 12px;
  color: #8a7b94;
  line-height: 1.6;
  margin: 18px auto 0;
  max-width: 690px;
}
.benefits {
  padding-top: 65px;
}
.benefit-grid article:nth-child(1) {
  background:
    radial-gradient(ellipse at 100% 0%, #dcd0f0c9, transparent 70%), #f6f4f8;
}
.benefit-grid article:nth-child(2) {
  background:
    radial-gradient(ellipse at 100% 0%, #f0d6c5d9, transparent 70%), #f8f4f2;
}
.benefit-grid article:nth-child(3) {
  background:
    radial-gradient(ellipse at 100% 0%, #d6dfcbdf, transparent 70%), #f4f6f2;
}
.benefit-grid p {
  min-height: 103px;
}

.method {
  background: radial-gradient(ellipse at 50% 65%, #ede2f786, transparent 70%);
  border-radius: 30px;
}
.contact-section {
  background:
    radial-gradient(ellipse at 5% 15%, #d8c2ecc2, transparent 58%),
    radial-gradient(ellipse at 90% 100%, #efcdbdb5, transparent 60%),
    radial-gradient(ellipse at 95% 0%, #dce3d0a8, transparent 48%), #f4f1f5;
}
.contact-form {
  background: #ffffffbb;
  backdrop-filter: blur(15px);
  box-shadow: 0 15px 40px #59355e12;
}
.button {
  background: linear-gradient(120deg, #302737, #211e28);
}
.button:hover {
  background: linear-gradient(120deg, #735684, #3b304d);
}
@media (max-width: 1050px) {
  
  .benefit-grid p {
    min-height: 155px;
  }
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(32px, 7.7vw, 50px);
    line-height: 1.12;
  }
  .integrations {
    padding-top: 30px;
  }
  .integrations h2 {
    font-size: 22px;
  }
  .integrations > p {
    font-size: 12px;
  }
  .benefits {
    padding-top: 45px;
  }
  .benefit-grid p {
    min-height: 0;
  }
  
  
  .contact h2 {
    font-size: 38px;
  }
}
/* Parole con sfumatura in movimento e CTA su una nuvola di colore. */
.gradient-text {
  background-image: linear-gradient(
    100deg,
    #6d4fc0 0%,
    #a064b8 22%,
    #d0789a 44%,
    #e0a071 62%,
    #a064b8 80%,
    #6d4fc0 100%
  );
  background-size: 250% 100%;
  background-position: 0% 50%;
  animation: gradientFlow 3.5s ease-in-out infinite alternate;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.06em;
}
@keyframes gradientFlow {
  to {
    background-position: 100% 50%;
  }
}
.cta-blob {
  position: relative;
  display: inline-block;
  isolation: isolate;
  margin: 8px 0 4px;
}
.cta-blob::before,
.cta-blob::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(34px);
}
.cta-blob::before {
  inset: -40px -80px;
  background:
    radial-gradient(40% 70% at 22% 55%, #c3a6f7 0%, transparent 100%),
    radial-gradient(38% 65% at 50% 32%, #f5b8d3 0%, transparent 100%),
    radial-gradient(40% 70% at 78% 58%, #f8c9a4 0%, transparent 100%),
    radial-gradient(45% 55% at 50% 85%, #bccdf8 0%, transparent 100%);
  opacity: 0.72;
  animation: blobDrift 9s ease-in-out infinite alternate;
}
.cta-blob::after {
  inset: -14px -30px;
  background: radial-gradient(closest-side, #fff9 0%, transparent 100%);
  filter: blur(14px);
}
.cta-blob .button {
  position: relative;
  box-shadow:
    0 10px 30px #6a3f9a33,
    0 2px 6px #19132622;
}
@keyframes blobDrift {
  0% {
    transform: translate(-6px, 2px) rotate(-4deg) scale(1);
  }
  50% {
    transform: translate(4px, -4px) rotate(3deg) scale(1.08);
  }
  100% {
    transform: translate(8px, 3px) rotate(-2deg) scale(0.96);
  }
}
/* Prima dell'animazione i passaggi restano attenuati, senza scatti. */
@media (max-width: 700px) {
  .cta-blob::before {
    inset: -30px -44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text,
  .cta-blob::before {
    animation: none;
  }
}
/* Hero senza esempio, integrazioni ampliate e modulo più invitante. */
.hero {
  padding: 70px 0 96px;
}
.hero h1 {
  margin-top: 0;
}
.integrations h2 {
  margin: 0 0 10px;
}
.field label em {
  font-style: normal;
  color: #a99bb4;
}
.field-hint {
  margin: -2px 0 2px;
  font-size: 13px;
  line-height: 1.5;
  color: #8a7b94;
}
.submit-note {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #8a7b94;
  margin-top: 12px;
}
@media (max-width: 700px) {
  .hero {
    padding: 44px 0 64px;
  }
  .benefit-icon {
    margin-right: 0;
  }
}
/* Struttura compatta: carosello esempi,
striscia modelli AI,
integrazioni in movimento. */
.arrow path,
.menu path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow {
  flex-shrink: 0;
  overflow: visible;
}
.arrow path {
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.arrow .arrow-line {
  opacity: 0;
}
a:hover .arrow .arrow-line,
button:hover .arrow .arrow-line {
  opacity: 1;
}
a:hover .arrow path:not(.arrow-line),
button:hover .arrow path:not(.arrow-line) {
  transform: translateX(2px);
}
.button {
  gap: 12px;
}
.nav-cta {
  gap: 10px;
}
.menu svg {
  display: block;
  margin: auto;
}
.section {
  padding-top: 64px;
  padding-bottom: 48px;
}
.benefits {
  padding-top: 64px;
}
.hero {
  padding: 60px 0 36px;
}
.models {
  text-align: center;
  padding-bottom: 40px;
}
.models p {
  font-size: 13px;
  color: #7d7386;
  margin: 0 0 16px;
}
.models ul,
.faq-models {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.models li,
.faq-models li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 550;
  color: #5f5868;
}

.integrations {
  padding-top: 56px;
  text-align: left;
}
.integrations-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}
.integrations-head h2 {
  font-size: 30px;
  letter-spacing: -0.03em;
  margin: 0;
}
.integrations-head p {
  font-size: 14px;
  line-height: 1.6;
  color: #7a7082;
  max-width: 420px;
  margin: 0;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 4px 10px 8px 0;
}
.marquee-track li {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #ede6ef;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 5px 20px #38214406;
}
.marquee-track img {
  object-fit: contain;
}
.marquee-track .more-tools {
  background: linear-gradient(115deg, #eee4fb, #f9ece3);
  border-color: #e4d7ef;
  color: #6c4a80;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.method {
  padding-top: 56px;
  padding-bottom: 56px;
}
.contact-section {
  padding: 56px 0;
}
.faq-models {
  justify-content: flex-start;
  gap: 8px 18px;
  margin: -4px 0 14px;
}
.faq-models li {
  font-size: 13px;
  gap: 6px;
}
@media (max-width: 700px) {
  .hero {
    padding: 36px 0 28px;
  }
  .models {
    padding-bottom: 30px;
  }
  .models ul {
    gap: 12px 20px;
  }
  .models li {
    font-size: 13px;
  }
  .models li img {
    width: 17px;
    height: 17px;
  }
  
  .integrations {
    padding-top: 40px;
  }
  .integrations-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .integrations-head h2 {
    font-size: 26px;
  }
  .marquee-track li {
    padding: 9px 12px;
    font-size: 13px;
  }
  .method {
    padding-top: 44px;
    padding-bottom: 40px;
  }
  .contact-section {
    padding: 44px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    animation: none;
    width: auto;
  }
  .marquee-track ul {
    flex-wrap: wrap;
  }
  .marquee-track ul[aria-hidden="true"] {
    display: none;
  }
}
@media (max-width: 700px) {
  .benefit-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 0 18px 4px;
    scroll-padding: 0 18px;
  }
  .benefit-grid::-webkit-scrollbar {
    display: none;
  }
  .benefit-grid article {
    scroll-snap-align: start;
  }
}
/* FAQ in una sezione a sé, contatto essenziale, conferma d'invio, mobile. */
:root {
  interpolate-size: allow-keywords;
}
.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  padding-top: 8px;
  padding-bottom: 56px;
}
.faq-head h2 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.faq-section .faq {
  margin: 0;
  max-width: none;
}
.faq summary {
  min-height: 48px;
  font-size: 15px;
  color: #4d4058;
}
.faq summary span[aria-hidden="true"] {
  transition: transform 0.2s ease;
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.25s ease,
    content-visibility 0.25s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}
.faq details p {
  font-size: 14px;
}
.contact {
  align-items: center;
}
.contact h2 {
  max-width: 420px;
}
.contact-copy > p {
  max-width: 380px;
}
.form-fields[hidden],
.form-success[hidden] {
  display: none;
}
.form-success {
  text-align: center;
  padding: 36px 10px;
  outline: none;
  animation: successIn 0.35s ease both;
}
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ddd0f5, #f7dcc9);
  color: #5b3f86;
}
.success-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 16px 0 8px;
}
.form-success p {
  font-size: 15px;
  line-height: 1.6;
  color: #6f6479;
  margin: 0 auto 18px;
  max-width: 340px;
}
.form-success strong {
  color: #3c2f48;
  font-weight: 550;
  word-break: break-all;
}
.form-again {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.mobile-cta {
  display: none;
}
.menu path {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  transform-origin: 9px 9px;
}
.menu[aria-expanded="true"] .bar-top {
  transform: translateY(4px) rotate(45deg);
}
.menu[aria-expanded="true"] .bar-mid {
  opacity: 0;
}
.menu[aria-expanded="true"] .bar-bot {
  transform: translateY(-4px) rotate(-45deg);
}
@media (max-width: 1050px) {
  .faq-section {
    gap: 30px;
  }
}
@media (max-width: 700px) {
  .nav-cta,
  .menu {
    min-height: 44px;
  }
  .menu {
    width: 44px;
    height: 44px;
  }
  nav {
    top: 70px;
    padding: 8px;
    gap: 0;
    animation: menuIn 0.18s ease both;
  }
  nav a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    font-size: 16px;
    border-radius: 8px;
  }
  nav a:active {
    background: #f3eef8;
  }
  .text-link {
    padding: 12px 0;
    margin-top: 0;
  }
  
  .faq-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 40px;
  }
  .faq-head h2 {
    font-size: 26px;
  }
  .contact h2 {
    font-size: 34px;
    margin: 14px 0 12px;
  }
  .contact-copy > p {
    margin: 0;
  }
  .contact {
    gap: 24px;
  }
  .contact-form {
    padding: 20px;
  }
  .mobile-cta {
    display: inline-flex;
    position: fixed;
    z-index: 20;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 15px 20px;
    font-size: 15px;
    box-shadow: 0 12px 30px #2a1d3a40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
  }
  .mobile-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  footer {
    padding-bottom: calc(25px + env(safe-area-inset-bottom));
  }
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  nav,
  .form-success {
    animation: none !important;
  }
}
@media (max-width: 700px) {
  .method .section-heading h2 {
    font-size: 26px;
    letter-spacing: -0.02em;
  }
  .method .section-heading {
    margin-bottom: 20px;
  }
}
/* Consenso privacy, promessa 48 ore, ricevuta dell'invio, pagina informativa. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #6f6479;
  margin: 2px 0 18px;
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #6b4fb0;
  cursor: pointer;
}
.consent a {
  color: #5b3f86;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent em {
  font-style: normal;
  color: #b29dbd;
}
.submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 0;
}
.submit-note svg {
  flex-shrink: 0;
  fill: none;
  stroke: #7a5bb8;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.submit-note strong {
  color: #4a3a5c;
  font-weight: 600;
}
.form-success h3 {
  margin-top: 14px;
}
.success-lead strong {
  color: #3c2f48;
  font-weight: 600;
}
.success-receipt {
  margin: 0 auto 16px;
  max-width: 360px;
  border: 1px solid #ebe3f1;
  border-radius: 10px;
  background: #faf8fc;
  padding: 4px 14px;
  text-align: left;
  font-size: 14px;
}
.success-receipt > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}
.success-receipt > div + div {
  border-top: 1px solid #efe8f4;
}
.success-receipt dt {
  color: #8a7b94;
}
.success-receipt dd {
  margin: 0;
  color: #3c2f48;
  font-weight: 550;
  text-align: right;
  word-break: break-word;
}
.form-success .success-note {
  font-size: 13px;
  color: #9a8ca5;
  margin-bottom: 6px;
}
.legal-page header {
  justify-content: space-between;
}
.legal-back {
  font-size: 14px;
}
.legal {
  max-width: 720px;
  padding: 30px 0 60px;
}
.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 14px 0 12px;
}
.legal-lead {
  font-size: 17px;
  color: #6f6479;
}
.legal h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 34px 0 10px;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: #4d4458;
}
.legal ul {
  padding-left: 20px;
}
.legal li + li {
  margin-top: 8px;
}
@media (max-width: 700px) {
  .consent {
    font-size: 14px;
  }
  .consent input {
    width: 22px;
    height: 22px;
  }
  .submit-note {
    font-size: 13px;
    text-align: left;
  }
}
/* Footer essenziale. */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: #8a7f93;
}
.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer a:hover {
  color: var(--purple);
}
/* Selettore lingua a bandiere e cambio lingua con dissolvenza. */
.lang-switch {
  --i: 0;
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: #ffffffa6;
  border: 1px solid #e6ddee;
  box-shadow: 0 2px 8px #2a1d3a0d;
}
.lang-switch button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch svg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #0000001f;
  opacity: 0.55;
  filter: saturate(0.6);
  transition:
    opacity 0.2s,
    filter 0.2s,
    transform 0.2s;
}
.lang-switch button:hover svg {
  opacity: 0.9;
  filter: none;
}
.lang-switch button[aria-pressed="true"] svg {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}
.legal-page header {
  gap: 16px;
}
.legal-page .lang-switch {
  margin-left: auto;
}
main,
footer,
.legal {
  transition: opacity 0.16s ease;
}
.lang-fading main,
.lang-fading footer {
  opacity: 0;
}
/* Finché i testi tradotti non sono pronti la pagina resta nascosta
   (al massimo 1,2 s, poi compare comunque). */
.i18n-pending body {
  visibility: hidden;
  animation: i18nReveal 0s 1.2s forwards;
}
@keyframes i18nReveal {
  to {
    visibility: visible;
  }
}
@media (max-width: 700px) {
  /* In alto restano logo, lingua e menu: la CTA è subito sotto e in basso. */
  header .nav-cta {
    display: none;
  }
  header .lang-switch {
    margin-left: auto;
  }
  .lang-switch button {
    width: 38px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  main,
  footer {
    transition: none;
  }
}
.legal .legal-back {
  display: inline-flex;
  margin-bottom: 18px;
}
/* Titoli piccoli più decisi,
come i titoli "s"/"xs" di 7taps. */
.benefit-grid h3,
.form-success h3 {
  font-weight: 500;
}
/* ==== Scala e proporzioni di 7taps (misurate a 1440×790, MacBook Pro 13") ====
   xxl 72/72 · xl 56/60 · l 40/44 · m 32/36 · s 24/28 · testo 24/32 e 18/28 ·
   spaziatura -0.03em / -0.02em · pulsanti 17px alti 52px · contenitore 1240px. */
.wrap {
  width: min(1240px, calc(100% - 80px));
}
header {
  height: 92px;
}
.logo {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
nav {
  font-size: 17px;
  font-weight: 500;
  gap: 32px;
}
.button,
.nav-cta,
.submit {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
  font-weight: 500;
  gap: 12px;
}
.nav-cta {
  padding: 0 24px;
  gap: 10px;
}
/* Prima schermata: riempie la finestra, i modelli AI chiudono il bordo
   inferiore come i loghi clienti di 7taps. */
.hero-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 0 32px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0 0 22px;
}
.hero > p {
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.34;
  max-width: 780px;
  color: #3d3744;
  margin: 0 auto 36px;
}
.models {
  padding-bottom: 44px;
}
.models p {
  font-size: 14px;
}
/* Titoli */
.section-heading h2,
.method .section-heading h2,
.contact h2 {
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.contact h2 {
  max-width: 560px;
}
.integrations-head h2,
.faq-head h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.benefit-grid h3,
.form-success h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.faq summary {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.eyebrow {
  font-size: 13px;
}
/* Testo */
.benefit-grid p,
.contact-copy > p,
.faq details p,
.integrations-head p {
  font-size: 18px;
  line-height: 28px;
  max-width: none;
}
.benefit-grid p {
  min-height: 0;
}
.integrations-head p {
  max-width: 460px;
}
.benefit-outcome {
  font-size: 14px;
}
.field label {
  font-size: 15px;
}
/* Tra tablet e laptop piccolo il menu completo deve stare su una riga. */
@media (max-width: 1050px) {
  nav {
    font-size: 15px;
    gap: 20px;
  }
  header .nav-cta {
    display: none;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }
  header {
    height: 76px;
  }
  .logo {
    font-size: 22px;
  }
  nav {
    font-size: 16px;
  }
  .hero {
    padding: 8px 0 24px;
  }
  .hero h1 {
    line-height: 1.05;
  }
  .hero > p {
    margin-bottom: 28px;
  }
  .models {
    padding-bottom: 28px;
  }
  .faq summary {
    font-size: 17px;
  }
  .benefit-grid p,
  .contact-copy > p,
  .faq details p,
  .integrations-head p {
    font-size: 16px;
    line-height: 25px;
  }
}
/* Striscia dei modelli AI alla scala dei loghi clienti di 7taps. */
.models p {
  margin-bottom: 18px;
}
.models ul {
  gap: 14px 56px;
}
.models li {
  font-size: 19px;
  gap: 10px;
}
.models li img {
  width: 26px;
  height: 26px;
}
@media (max-width: 700px) {
  .models ul {
    gap: 12px 22px;
  }
  .models li {
    font-size: 15px;
  }
  .models li img {
    width: 19px;
    height: 19px;
  }
}
.field input::placeholder,
.field textarea::placeholder {
  font-size: 15px;
}
.field-hint {
  font-size: 14px;
}
/* ==== V2: più essenziale e sobrio ==== */
:root {
  --quiet: #a39dab;
  --soft: #7d7686;
}
/* Titoli in peso leggero e spaziatura appena stretta. */
.hero h1,
.section-heading h2,
.method .section-heading h2,
.contact h2 {
  font-weight: 300;
  letter-spacing: -0.035em;
}
.integrations-head h2,
.faq-head h2,
.benefit-grid h3,
.form-success h3,
.legal h1 {
  font-weight: 300;
  letter-spacing: -0.025em;
}
.faq summary {
  font-weight: 400;
  letter-spacing: -0.015em;
}
.logo {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
/* Selettore lingua: tre sigle discrete, la lingua attiva è sottolineata. */
.lang-switch {
  gap: 2px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.lang-switch button,
.lang-switch button:hover {
  width: auto;
  height: 44px;
  padding: 0 7px;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--quiet);
  transition: color 0.2s;
}
.lang-switch button:hover {
  color: var(--soft);
}
.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
}
.lang-switch button::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 12px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.lang-switch button[aria-pressed="true"]::after {
  transform: scaleX(1);
}
/* Pulsante in alto discreto: il pulsante principale resta quello della hero. */
.nav-cta,
.nav-cta:hover {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  color: var(--ink);
  background: #ffffff80;
  border: 1px solid #ddd5e3;
  box-shadow: none;
  transform: none;
}
.nav-cta:hover {
  background: #fff;
}
/* Testi di servizio in grigio chiaro */
.eyebrow,
.models p {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
}
.models p {
  letter-spacing: 0.02em;
  font-size: 13px;
}
.models li {
  color: var(--soft);
  font-weight: 400;
}
.models li img {
  opacity: 0.7;
}
.submit-note {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 300;
}
.consent {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 300;
}
.consent a {
  color: inherit;
  text-decoration-color: #d4ccda;
}
.consent em,
.field label span,
.field label em {
  color: #c4bccb;
}
.field-hint {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 300;
}
.field label {
  color: #5d5466;
  font-weight: 400;
}
.site-footer {
  color: var(--quiet);
  font-size: 12px;
}
.site-footer a {
  text-decoration-color: #d4ccda;
}
.benefit-outcome,
.success-note,
.success-receipt dt {
  color: var(--quiet);
}
/* Testo corrente in grigio. */
.benefit-grid p,
.contact-copy > p,
.faq details p,
.integrations-head p {
  color: #7a7283;
  font-weight: 300;
}
.hero > p {
  font-weight: 300;
}
/* Superfici più tenui */
.benefit-grid article:nth-child(1) {
  background: radial-gradient(ellipse at 100% 0%, #e7defa80, transparent 70%), #f8f7fa;
}
.benefit-grid article:nth-child(2) {
  background: radial-gradient(ellipse at 100% 0%, #f5e3d780, transparent 70%), #faf8f7;
}
.benefit-grid article:nth-child(3) {
  background: radial-gradient(ellipse at 100% 0%, #e2e9da80, transparent 70%), #f8f9f7;
}
.benefit-grid article {
  border-color: #f1eef3;
}
.mobile-cta {
  font-size: 15px;
  padding: 0 22px;
  min-height: 48px;
}
@media (max-width: 700px) {
  .lang-switch button,
  .lang-switch button:hover {
    width: auto;
    height: 44px;
    padding: 0 6px;
  }
  .lang-switch button::after {
    left: 6px;
    right: 6px;
  }
  .logo {
    font-size: 22px;
  }
}
nav {
  font-size: 16px;
  font-weight: 400;
}
.hero > p {
  max-width: 880px;
}
@media (max-width: 1050px) {
  nav {
    font-size: 15px;
  }
}
@media (max-width: 700px) {
  .menu {
    border: 0;
    color: var(--ink);
  }
}
@media (max-width: 700px) {
  .lang-switch button,
  .lang-switch button:hover {
    padding: 0 10px;
    min-width: 40px;
  }
  .lang-switch button::after {
    left: 10px;
    right: 10px;
  }
  .lang-switch {
    gap: 0;
  }
}
/* ==== V3: SF Pro Display con la tipografia di Stripe ====
   Titoli leggeri (300) e appena stretti, testo blu notte, testo secondario
   grigio ardesia. Misurato su stripe.com a 1440×790. */
:root {
  --ink: #061b31;
  --slate: #50617a;
  --soft: #64748d;
  --quiet: #8792a8;
}
body {
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.hero h1 {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.section-heading h2,
.method .section-heading h2,
.contact h2 {
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.integrations-head h2,
.faq-head h2,
.legal h1 {
  font-weight: 300;
  letter-spacing: -0.02em;
}
.benefit-grid h3,
.form-success h3 {
  font-weight: 300;
  letter-spacing: -0.015em;
}
.faq summary {
  font-weight: 400;
  letter-spacing: -0.01em;
}
.logo {
  font-weight: 600;
  letter-spacing: -0.03em;
}
nav {
  font-size: 15px;
  font-weight: 400;
}
nav a {
  color: var(--ink);
}
.button,
.submit,
.nav-cta,
.mobile-cta {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.hero > p {
  color: var(--slate);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.benefit-grid p,
.contact-copy > p,
.faq details p,
.integrations-head p {
  color: var(--soft);
  font-weight: 400;
}
.field label {
  color: var(--slate);
}
.field input,
.field textarea {
  color: var(--ink);
}
.submit-note,
.consent,
.field-hint {
  font-weight: 400;
}
.eyebrow {
  font-weight: 500;
  letter-spacing: 0.1em;
}
/* Titoli in SF Pro Display Medium (500): il tono di Stripe con un peso
   più deciso. Il peso si cambia da --heading-weight. */
:root {
  --heading-weight: 500;
}
.hero h1,
.section-heading h2,
.method .section-heading h2,
.contact h2,
.integrations-head h2,
.faq-head h2,
.benefit-grid h3,
.form-success h3,
.legal h1 {
  font-weight: var(--heading-weight);
}
.hero h1 {
  letter-spacing: -0.028em;
}
.section-heading h2,
.method .section-heading h2,
.contact h2 {
  letter-spacing: -0.026em;
}
.integrations-head h2,
.faq-head h2,
.legal h1 {
  letter-spacing: -0.021em;
}
.benefit-grid h3,
.form-success h3 {
  letter-spacing: -0.016em;
}
.faq summary {
  font-weight: 500;
}
/* ==== V4: sfumatura legata allo scorrimento ====
   La posizione del colore dipende da dove si trova la parola nella finestra
   (--g da 0 a 1, aggiornata da script.js): scorrendo, i colori scivolano
   dentro le lettere. Più colori e più contrasto rispetto alla versione lenta. */
.gradient-text {
  background-image: linear-gradient(
    100deg,
    #5546d6 0%,
    #8a4cc6 16%,
    #c9529a 32%,
    #ee8660 48%,
    #c9529a 64%,
    #8a4cc6 80%,
    #5546d6 100%
  );
  background-size: 320% 100%;
  background-position: calc(var(--g, 0.55) * 100%) 50%;
  animation: none;
  transition: background-position 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.g-intro .gradient-text {
  transition-duration: 1.6s;
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text {
    transition: none;
  }
}
/* ==== V4: dati e sicurezza ==== */
.trust {
  padding-bottom: 56px;
}
.trust-panel {
  border-radius: 22px;
  padding: 48px 44px;
  background:
    radial-gradient(ellipse at 0% 0%, #e9e2fb 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, #fbe7dd 0%, transparent 55%),
    #f7f7fa;
}
.trust-head {
  max-width: 640px;
  margin-bottom: 32px;
}
.trust-head h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.026em;
  font-weight: var(--heading-weight, 500);
  margin: 12px 0 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-grid svg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.trust-grid h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.trust-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  color: var(--soft);
}
/* ==== V4: footer ==== */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 32px;
  padding-top: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}
.footer-links a {
  color: var(--soft);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid #eceef3;
}
.legal-page .site-footer {
  grid-template-columns: 1fr auto;
}
.legal-page .footer-legal {
  grid-column: auto;
  border: 0;
  padding: 0;
}
.not-found {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.not-found .button {
  margin-top: 12px;
}
@media (max-width: 1050px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .trust-panel {
    padding: 32px 20px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
}
/* Pagine legali: link "indietro" su una riga a sé, link nel testo riconoscibili. */
.legal .legal-back {
  display: flex;
  width: max-content;
}
.legal p a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: #c9cfdb;
  text-underline-offset: 3px;
}
/* ==== Metodo: tre colonne semplici ==== */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.step {
  position: relative;
  border-top: 1px solid #e6e3ec;
  padding-top: 20px;
}
.step-num {
  display: block;
  font-size: 13px;
  color: #8f7bc4;
  margin-bottom: 16px;
}
.step h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 28px;
  font-weight: var(--heading-weight, 500);
  letter-spacing: -0.02em;
}
.step p {
  margin: 0;
  max-width: 320px;
  font-size: 18px;
  line-height: 28px;
  color: var(--soft);
}
@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .step {
    padding: 16px 0 0 42px;
  }
  .step-num {
    position: absolute;
    left: 0;
    top: 19px;
  }
  .step h3 {
    font-size: 19px;
    line-height: 24px;
    margin-bottom: 6px;
  }
  .step p {
    font-size: 16px;
    line-height: 25px;
    max-width: none;
  }
}
/* ==== Esempi: quattro flussi brevi ====
   Tre passaggi per esempio; si illuminano in sequenza quando entrano nella
   pagina (stessa animazione dei flussi precedenti). L'ultimo è il risultato. */

/* ==== Integrazioni: titolo e sottotitolo centrati ==== */
.integrations-head {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}
.integrations-head h2 {
  margin: 0 0 12px;
}
.integrations-head p {
  max-width: none;
  margin: 0 auto;
  text-wrap: balance;
}
@media (min-width: 1100px) {
  .integrations-head p {
    font-size: 17px;
  }
}
/* ==== Esempio: il caos si ricompone in un flusso (scorrimento) ==== */
.chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mess {
  position: absolute;
  inset: 0;
}
.chip {
  position: absolute;
  left: calc(var(--x0) * 1%);
  top: calc(var(--y0) * 1%);
  transform: translate(-50%, -50%) rotate(calc(var(--r0) * 1deg));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e7e3ec;
  box-shadow: 0 6px 16px #2a1d3a14;
  font-size: 13px;
  line-height: 1.3;
  color: #3d3a48;
  white-space: nowrap;
}
.chip.bad {
  color: #a3482f;
  border-color: #f2c9b9;
  background: #fff6f2;
}
.tangle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tangle path {
  fill: none;
  stroke: #e0a48c;
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}
/* ==== B2 · compatta, stile prodotto (Stripe / 7taps) ==== */
.pro-scroll {
  height: calc(560px + 90vh);
  position: relative;
}
.pro-sticky {
  position: sticky;
  top: max(24px, calc(50vh - 280px));
}
.pro {
  --q: 0;
  --e: 0;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6e3ee;
  box-shadow:
    0 1px 1px #0a0f1f0a,
    0 30px 60px -20px #32235a33,
    0 18px 36px -18px #00000014;
  overflow: hidden;
}
.pro-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #eeecf3;
  background: #fbfbfd;
  font-size: 13px;
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e6e3ea;
}
.pro-title {
  font-weight: 600;
  color: var(--ink);
}
.pro-state {
  margin-left: auto;
  position: relative;
  height: 24px;
  min-width: 140px;
  text-align: right;
}
.pro-state b {
  position: absolute;
  right: 0;
  top: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.3s;
}
.st-bad {
  color: #a3482f;
  background: #fbe7de;
  opacity: calc(1 - var(--e) * 2);
}
.st-good {
  color: #2f7a4f;
  background: #e2f4e9;
  opacity: calc(var(--e) * 2 - 1);
}
.pro-body {
  display: grid;
  grid-template-columns: 1fr 230px;
  height: 480px;
}
.pro-canvas {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#eef0f5 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, #eef0f5 1px, transparent 1px) 0 0 / 24px 24px,
    #fcfcfe;
}
.pro-canvas .mess,
.pro-canvas .tangle {
  position: absolute;
  inset: 26px 24px 26px;
  width: auto;
  height: auto;
}
.pro-canvas .tangle {
  width: calc(100% - 48px);
  height: calc(100% - 52px);
  left: 24px;
  top: 26px;
  opacity: calc(1 - var(--q) * 1.6);
}
.pro-canvas .chip {
  font-size: 12px;
  padding: 7px 10px;
  transform: translate(-50%, -50%) rotate(calc(var(--r0) * (1 - var(--q)) * 1deg)) scale(calc(1 - 0.35 * var(--q)));
  left: calc((var(--x0) + (50 - var(--x0)) * var(--q) * 0.6) * 1%);
  top: calc((var(--y0) + (50 - var(--y0)) * var(--q) * 0.6) * 1%);
  opacity: calc(1 - var(--q) * 1.5);
}
.pipe {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 28px 24px;
  align-items: start;
}
.pipe-col {
  opacity: clamp(0, calc((var(--e) - var(--i) * 0.22 - 0.1) * 4), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--e) - var(--i) * 0.22 - 0.1) * 4), 1)) * 14px));
}
.pipe-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7389;
}
.pipe-head i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-style: normal;
  font-size: 11px;
  color: #5a3fbf;
  background: #efeafd;
}
.pcard {
  background: #fff;
  border: 1px solid #e7e5ee;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 20px -10px #2a1d3a26;
  font-size: 13px;
  color: var(--ink);
}
.pcard-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pcard-row.between {
  justify-content: space-between;
}
.pcard-row small,
.pcard-note,
.kv span,
.attach small {
  display: block;
  font-size: 11.5px;
  color: #7a8399;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #5546d6, #c9529a);
}
.pcard-sub {
  margin: 12px 0 10px;
  font-weight: 600;
}
.attach {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: #f6f5fa;
  font-size: 12.5px;
}
.attach small {
  margin-left: auto;
}
.pdf {
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  background: #d2533e;
  border-radius: 4px;
  padding: 3px 4px;
}
.lines-table {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 1fr;
  gap: 8px 6px;
  font-size: 12.5px;
}
.lines-table span {
  font-size: 11px;
  color: #7a8399;
}
.lines-table b {
  font-weight: 500;
}
.lines-table em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  justify-self: start;
}
.lines-table .ok {
  color: #2f7a4f;
  background: #e2f4e9;
}
.lines-table .warn {
  color: #9a5a12;
  background: #fdf0d8;
}
.pcard-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8e6ef;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  color: #6a4fc8;
  background: #efeafd;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
}
.kv b {
  font-weight: 500;
  text-align: right;
}
.approve {
  display: block;
  margin-top: 14px;
  padding: 9px;
  border-radius: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #5546d6, #c9529a 60%, #ee8660);
  box-shadow: 0 6px 16px -6px #8a4cc6aa;
}
.done .approve {
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 6px 22px -2px #8a4cc6cc;
  }
}
.pipe-link {
  position: absolute;
  top: 128px;
  height: 2px;
  width: 22px;
  border-radius: 2px;
  background: #c8b8f0;
  transform-origin: left;
  transform: scaleX(clamp(0, calc((var(--e) - 0.3) * 4), 1));
}
.pipe-link.l1 {
  left: calc(24px + (100% - 48px - 52px) / 3 + 2px);
}
.pipe-link.l2 {
  left: calc(24px + 2 * (100% - 48px - 52px) / 3 + 28px);
  transform: scaleX(clamp(0, calc((var(--e) - 0.52) * 4), 1));
}
.pro-metrics {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border-left: 1px solid #eeecf3;
  background: #fbfbfd;
}
.metric {
  padding: 12px 4px;
  border-bottom: 1px solid #efedf3;
}
.metric span {
  display: block;
  font-size: 12px;
  color: #7a8399;
}
.metric b {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric.strong {
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(120deg, #eee4fb, #f9ece3);
}
.metric.strong b {
  font-size: 26px;
}
.metric small {
  font-size: 12px;
  color: var(--slate);
}
.bar {
  position: relative;
  height: 6px;
  margin-top: 8px;
  border-radius: 6px;
  background: #efedf3;
  overflow: hidden;
}
.bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 6px;
}
.bar-before {
  width: 100%;
  background: #f1c8b8;
  opacity: 0.6;
}
.bar-now {
  width: calc((38 - 34 * var(--e)) / 38 * 100%);
  background: linear-gradient(90deg, #5546d6, #c9529a);
}
@media (max-width: 860px) {
  .pro-scroll {
    height: 170vh;
  }
  .pro-sticky {
    top: 12px;
  }
  .pro-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pro-canvas {
    height: 470px;
  }
  .pipe {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }
  .pipe-head {
    margin-bottom: 6px;
  }
  .pcard {
    padding: 10px 12px;
  }
  .pcard-sub,
  .pcard-note,
  .kv + .kv {
    display: none;
  }
  .pcard-row small {
    display: none;
  }
  .lines-table {
    gap: 4px 6px;
  }
  .approve {
    margin-top: 8px;
    padding: 6px;
  }
  .pipe-link {
    display: none;
  }
  .pro-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 6px 12px 12px;
    border-left: 0;
    border-top: 1px solid #eeecf3;
  }
  .metric {
    padding: 8px 4px;
  }
  .metric b {
    font-size: 20px;
  }
  .metric:nth-child(3),
  .bar {
    display: none;
  }
  .metric.strong {
    grid-column: 1 / -1;
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 10px;
    padding: 10px 12px;
  }
  .metric.strong span {
    width: 100%;
  }
  .metric.strong b {
    font-size: 22px;
  }
}
/* B2 · registro attività e rifiniture */
.pro-body {
  height: 430px;
}
.activity {
  grid-column: 1 / -1;
  align-self: end;
  padding: 12px 14px;
  border: 1px solid #e7e5ee;
  border-radius: 12px;
  background: #ffffffee;
  opacity: clamp(0, calc((var(--e) - 0.55) * 5), 1);
}
.activity-head {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a91a5;
}
.activity ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.activity li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink);
  opacity: clamp(0, calc((var(--e) - 0.6 - var(--k) * 0.07) * 8), 1);
}
.activity time {
  flex-shrink: 0;
  width: 58px;
  font-size: 11.5px;
  color: #8a91a5;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ev-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fa36b;
}
.ev-dot.warn {
  background: #e0a02b;
}
.ev-dot.live {
  background: #7a5bd8;
  box-shadow: 0 0 0 0 #7a5bd866;
}
.done .ev-dot.live {
  animation: live 1.8s ease-out infinite;
}
@keyframes live {
  70% {
    box-shadow: 0 0 0 7px #7a5bd800;
  }
}
.pipe {
  grid-template-rows: auto 1fr;
  height: 100%;
  box-sizing: border-box;
}
.metric small span {
  display: inline;
  font-size: inherit;
  color: inherit;
}
@media (max-width: 860px) {
  .pro-canvas {
    height: 560px;
  }
  .activity li:nth-child(1),
  .activity li:nth-child(4) {
    display: none;
  }
  .activity li {
    font-size: 12px;
  }
}
@media (max-width: 860px) {
  .pro-body {
    height: auto;
  }
  .pro-canvas {
    height: 590px;
  }
  .pipe {
    grid-template-rows: none;
    align-content: start;
  }
  .activity {
    margin-top: 4px;
  }
  .pro-title {
    font-size: 12px;
  }
  .pro-state {
    min-width: 112px;
  }
}
.pro-state b {
  white-space: nowrap;
}
@media (max-width: 860px) {
  .chip.m-hide {
    display: none;
  }
  .pro-canvas .chip {
    white-space: normal;
    max-width: 150px;
    left: calc((clamp(24, var(--x0), 76) + (50 - clamp(24, var(--x0), 76)) * var(--q) * 0.6) * 1%);
  }
}
.pro-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--quiet);
}
.examples .section-heading {
  margin-bottom: 36px;
}
@media (prefers-reduced-motion: reduce) {
  .done .approve,
  .done .ev-dot.live {
    animation: none;
  }
}
.pro-title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==== V5: titolo che dice subito chi siamo ==== */
.hero h1 {
  font-size: clamp(36px, 4.3vw, 62px);
  line-height: 1.06;
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero > p {
  max-width: 640px;
  text-wrap: balance;
}

/* ==== V5: AI Workflow Engineering ==== */
.workflow .section-heading p {
  max-width: 680px;
  margin: 14px auto 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--slate);
  font-style: italic;
}
.wf-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 2.28fr);
  gap: 20px;
  align-items: stretch;
}
.wf-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7f93;
  background: #f1eff4;
}
.wf-label.good {
  color: #5a3fbf;
  background: #efeafd;
}
.wf-naive {
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed #d9d4e0;
  background: #fafafb;
}
.wf-naive-box {
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ebe8ef;
  font-size: 17px;
  line-height: 1.4;
  color: #6b6475;
}
.wf-naive-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--quiet);
}
.wf-ours {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid #e8e4f0;
  background:
    radial-gradient(ellipse at 100% 0%, #efe9fb 0%, transparent 55%),
    #fff;
  box-shadow: 0 24px 50px -28px #32235a40;
}
.wf-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 22px;
}
.wf-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ebe7f2;
  background: #fff;
  min-height: 92px;
}
.wf-node + .wf-node:not(:nth-child(5n + 1))::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 30px;
  width: 14px;
  height: 1.5px;
  background: #c9bbe9;
}
.wf-node + .wf-node:not(:nth-child(5n + 1))::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 28px;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #c9bbe9;
  border-right: 1.5px solid #c9bbe9;
  transform: rotate(45deg);
}
.wf-num {
  font-size: 11px;
  color: #9a93a8;
  font-variant-numeric: tabular-nums;
}
.wf-name {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.wf-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.t-ai {
  color: #5a3fbf;
  background: #efeafd;
}
.t-sw {
  color: #36506f;
  background: #e8eef6;
}
.t-hu {
  color: #a3482f;
  background: #fbe7de;
}
.t-api {
  color: #2f7a4f;
  background: #e2f4e9;
}
.wf-node:has(.t-hu) {
  border-color: #f2cbbb;
  background: #fffaf8;
}
.wf-branch {
  list-style: none;
  margin: 4px 0 0;
  padding: 6px 0 0;
  border-top: 1px dashed #e6e1ee;
  display: grid;
  gap: 3px;
  width: 100%;
}
.wf-branch li {
  font-size: 11.5px;
  line-height: 1.35;
  color: #7a7286;
}
.wf-branch b {
  font-weight: 600;
  color: #4d4459;
}
.wf-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f0edf4;
  font-size: 12.5px;
  color: var(--quiet);
}
.wf-legend > span:nth-child(even) {
  margin-right: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .js .wf-flow .wf-node {
    opacity: 0.25;
    transform: translateY(6px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease;
    transition-delay: calc(var(--n) * 110ms);
  }
  .js .wf-flow.in-view .wf-node {
    opacity: 1;
    transform: none;
  }
}

/* ==== V5: Nessa Automation Stack ==== */
.stack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: center;
}
.stack-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #5a3fbf;
  background: #efeafd;
}
.stack-copy h2 {
  margin: 14px 0 14px;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: var(--heading-weight, 500);
}
.stack-copy > p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 28px;
  color: var(--soft);
}
.stack-points {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.stack-points li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--soft);
}
.stack-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, #5546d6, #ee8660);
}
.stack-points b {
  color: var(--ink);
  font-weight: 600;
}
.stack-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--quiet);
}
.stack-tools b {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #e7e4ee;
  background: #fff;
  font-weight: 500;
  color: var(--ink);
}
.term {
  border-radius: 16px;
  overflow: hidden;
  background: #0e1022;
  box-shadow:
    0 30px 60px -24px #0e102266,
    0 0 0 1px #ffffff10 inset;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid #ffffff12;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #8f93b3;
}
.term-bar .dots i {
  background: #ffffff26;
}
.term-body {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font: 13.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #6b7096;
}
.term-body .d {
  color: #e6e7f5;
}
.term-body .d.hl {
  color: #f6a982;
}
.term-body .c {
  color: #9c8cf0;
}

/* ==== V5: process discovery ==== */
.method .section-heading p {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--soft);
}
.steps.discovery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.discovery .step p {
  font-size: 16px;
  line-height: 25px;
  margin-bottom: 14px;
}
.discovery .step h3 {
  font-size: 22px;
}
.d-chain,
.d-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.d-chain li,
.d-tags li {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #e6e2ee;
  background: #fff;
  font-size: 12.5px;
  color: #4d4459;
}
.d-chain li:not(:last-child)::after {
  content: " →";
  color: #b3a6d6;
}
.d-map {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}
.d-map dt {
  color: var(--soft);
}
.d-map dd {
  margin: 0;
  font-weight: 600;
  color: #5a3fbf;
}
.d-map dd::before {
  content: "→ ";
  color: #b3a6d6;
  font-weight: 400;
}
.method-note {
  margin: 32px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--quiet);
}

@media (max-width: 1050px) {
  .wf-compare {
    grid-template-columns: 1fr;
  }
  .stack-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps.discovery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wf-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wf-node {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .wf-type {
    margin-left: auto;
  }
  .wf-node + .wf-node::before,
  .wf-node + .wf-node:not(:nth-child(5n + 1))::before {
    content: "";
    position: absolute;
    background: #c9bbe9;
    left: 24px;
    top: -12px;
    width: 1.5px;
    height: 10px;
  }
  .wf-node + .wf-node::after,
  .wf-node + .wf-node:not(:nth-child(5n + 1))::after {
    content: none;
  }
  .wf-ours,
  .wf-naive {
    padding: 18px;
  }
  .term-body {
    font-size: 12px;
    padding: 14px;
  }
  .steps.discovery {
    grid-template-columns: 1fr;
  }
  .workflow .section-heading p {
    font-size: 17px;
  }
}
.wf-naive {
  align-self: start;
}
@media (max-width: 560px) {
  .term-body .c {
    display: none;
  }
  .term-body {
    font-size: 13px;
    overflow-x: hidden;
  }
}

/* ==== V6: flusso semplice in sei passaggi ==== */
.wf-card {
  padding: 22px 24px 26px;
  border-radius: 20px;
  border: 1px solid #e8e4f0;
  background:
    radial-gradient(ellipse at 100% 0%, #efe9fb 0%, transparent 55%),
    #fff;
  box-shadow: 0 24px 50px -30px #32235a40;
}
.wf-simple {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.wf-simple .wf-node {
  min-height: 0;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.45s ease,
    transform 0.45s ease;
}
.wf-simple .wf-node + .wf-node::before,
.wf-simple .wf-node + .wf-node::after {
  content: "";
  position: absolute;
}
.wf-simple .wf-node + .wf-node::before {
  left: -18px;
  top: 30px;
  width: 14px;
  height: 1.5px;
  background: #c9bbe9;
}
.wf-simple .wf-node + .wf-node::after {
  left: -9px;
  top: 28px;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #c9bbe9;
  border-right: 1.5px solid #c9bbe9;
  transform: rotate(45deg);
}
.wf-simple .wf-node.active {
  border-color: #b9a3f0;
  box-shadow: 0 0 0 4px #efe9fd, 0 10px 24px -12px #6a4fc866;
}
.wf-simple .wf-node.active .wf-num {
  color: #6a4fc8;
}

/* ==== V6: stack più asciutto, terminale che si compone ==== */
.stack-facts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stack-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid #e6e2ee;
}
.stack-facts b {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.stack-facts span {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--soft);
}
.term-body {
  white-space: normal;
}
.t-line {
  white-space: pre;
}
.stack-copy h2 {
  font-size: clamp(30px, 3.2vw, 46px);
}
.t-line {
  margin: 0 -10px;
  padding: 0 10px;
  border-radius: 6px;
  transition:
    background 0.3s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}
.t-line.active {
  background: #ffffff12;
}
.t-line.active .d {
  color: #fff;
}
.t-line.active .c {
  color: #c9bdfd;
}
.term-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7f86ad;
}
.term-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3fcf8e;
  box-shadow: 0 0 0 3px #3fcf8e22;
}
.term-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-top: 1px solid #ffffff12;
  font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #d9dcf2;
}
.term-prompt {
  color: #f6a982;
}
.term-msg {
  transition: opacity 0.25s ease;
}
.term-msg.swap {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .js .term .t-line {
    opacity: 0;
    transform: translateX(-6px);
  }
  .js .term.in-view .t-line {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--l) * 80ms);
  }
  .js .term.in-view.ready .t-line {
    transition-delay: 0s;
  }
}
@media (max-width: 1050px) {
  .wf-simple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wf-simple .wf-node:nth-child(4)::before,
  .wf-simple .wf-node:nth-child(4)::after {
    content: none;
  }
}
@media (max-width: 760px) {
  .wf-simple {
    grid-template-columns: 1fr;
  }
  .wf-simple .wf-node + .wf-node::before,
  .wf-simple .wf-node:nth-child(4)::before {
    content: "";
    left: 24px;
    top: -12px;
    width: 1.5px;
    height: 10px;
  }
  .wf-simple .wf-node + .wf-node::after {
    content: none;
  }
  .stack-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .wf-card {
    padding: 18px;
  }
}
/* ==== V7: contatto chiuso, domande frequenti in fondo ==== */
.contact-section {
  border-radius: 28px;
}
.contact-section + .faq-section {
  padding-top: 72px;
}
@media (max-width: 700px) {
  .contact-section {
    border-radius: 20px;
  }
  .contact-section + .faq-section {
    padding-top: 48px;
  }
}

/* ==== V7: "il caos si scioglie" in versione compatta ==== */
.untangle {
  position: relative;
  height: calc(440px + 80vh);
}
.untangle-stage {
  position: sticky;
  top: max(24px, calc(50vh - 220px));
}
.ubox {
  position: relative;
  height: 440px;
  border-radius: 22px;
  border: 1px solid #ebe7f1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 0%, #ece6fb, transparent 60%),
    radial-gradient(ellipse at 5% 100%, #fbece2, transparent 55%),
    #fcfbfe;
  box-shadow: 0 24px 50px -30px #32235a40;
}
.ubox-label {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a7f93;
  background: #ffffffcc;
}
.ubox .mess {
  inset: 58px 24px 108px;
}
.ubox .tangle {
  left: 24px;
  top: 58px;
  width: calc(100% - 48px);
  height: calc(100% - 166px);
  opacity: calc(1 - var(--q) * 1.4);
}
.ubox .chip {
  left: calc((var(--x0) + (50 - var(--x0)) * var(--q)) * 1%);
  top: calc((var(--y0) + (45 - var(--y0)) * var(--q)) * 1%);
  transform: translate(-50%, -50%) rotate(calc(var(--r0) * (1 - var(--q)) * 1deg)) scale(calc(1 - 0.45 * var(--q)));
  opacity: calc(1 - max(0, var(--q) - 0.55) * 2.3);
}
.clean-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.clean-flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4dcf6;
  font-size: 15px;
  color: var(--ink);
  box-shadow: 0 8px 22px #4931560f;
}
.clean-flow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.clean-flow li.last {
  color: #fff;
  border: 0;
  background: linear-gradient(120deg, #5546d6, #c9529a 60%, #ee8660);
}
.clean-flow li + li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 50%;
  width: 24px;
  height: 1.5px;
  background: #b9a6ea;
}
.clean-flow li + li::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-top: 1.5px solid #b9a6ea;
  border-right: 1.5px solid #b9a6ea;
  transform: rotate(45deg);
}
.ubox .clean-flow {
  position: absolute;
  left: 0;
  right: 0;
  top: 40%;
  opacity: var(--reveal);
  transform: translateY(calc((1 - var(--reveal)) * 18px));
}
.counters {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
}
.counters div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 150px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #ffffffe6;
  border: 1px solid #ebe7f1;
}
.counters span {
  font-size: 12px;
  color: var(--quiet);
}
.counters b {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scroll-hint {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 13px;
  color: var(--quiet);
  opacity: calc(1 - var(--p) * 6);
}
@media (max-width: 760px) {
  .untangle {
    height: calc(520px + 80vh);
  }
  .untangle-stage {
    top: max(12px, calc(50vh - 260px));
  }
  .ubox {
    height: 520px;
  }
  .ubox .mess {
    inset: 56px 12px 110px;
  }
  .ubox .tangle {
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 166px);
  }
  .ubox .chip {
    left: calc((clamp(26, var(--x0), 74) + (50 - clamp(26, var(--x0), 74)) * var(--q)) * 1%);
    white-space: normal;
    max-width: 150px;
    font-size: 12px;
    padding: 7px 9px;
  }
  .chip.m-hide {
    display: none;
  }
  .clean-flow {
    flex-direction: column;
    gap: 26px;
  }
  .ubox .clean-flow {
    top: 22%;
  }
  .clean-flow li + li::before {
    left: 50%;
    top: -20px;
    width: 1.5px;
    height: 14px;
  }
  .clean-flow li + li::after {
    left: 50%;
    top: -10px;
    margin: 0 0 0 -3px;
    transform: rotate(135deg);
  }
  .counters {
    gap: 8px;
  }
  .counters div {
    min-width: 0;
    flex: 1;
    padding: 8px 6px;
  }
  .counters span {
    font-size: 11px;
    text-align: center;
  }
  .counters b {
    font-size: 18px;
  }
  .scroll-hint {
    display: none;
  }
}
@media (max-width: 760px) {
  .ubox .chip {
    max-width: 132px;
    font-size: 11px;
    padding: 6px 8px;
    gap: 6px;
  }
  .ubox .chip svg {
    width: 14px;
    height: 14px;
  }
  .ubox .pro-note {
    font-size: 12px;
  }
}
/* ==== V7: titolo "Non serve ricominciare da zero" sopra l'esempio ==== */
.workflow .section-heading p {
  font-style: normal;
  font-size: 18px;
  color: var(--soft);
  max-width: 640px;
  text-wrap: balance;
}
.example-logos {
  margin-top: 36px;
}
/* Terminale più lento: le righe scendono con calma. */
@media (prefers-reduced-motion: no-preference) {
  .js .term .t-line {
    transition:
      background 0.4s ease,
      opacity 0.7s ease,
      transform 0.7s ease;
  }
  .js .term.in-view .t-line {
    transition-delay: calc(var(--l) * 200ms);
  }
}

/* ==== V8: esempio con sei passaggi, senza contatori ==== */
.ubox {
  height: 400px;
}
.ubox .mess {
  inset: 34px 24px 70px;
}
.ubox .tangle {
  top: 34px;
  height: calc(100% - 104px);
}
.clean-flow.six {
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
  row-gap: 26px;
}
.ubox .clean-flow.six {
  top: 26%;
}
.clean-flow.six li:nth-child(4)::before,
.clean-flow.six li:nth-child(4)::after {
  content: none;
}
.clean-flow.six li {
  min-width: 220px;
  justify-content: flex-start;
}
.ubox-saving {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #e4dcf6;
  background: #ffffffe6;
  font-size: 14px;
  color: var(--slate);
  text-align: center;
  opacity: var(--reveal);
}

/* ==== V8: strumenti che usi già (statici, su due righe) ==== */
.tools .section-heading {
  margin-bottom: 28px;
}
.tool-cloud {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tool-cloud li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid #ede6ef;
  background: #fff;
  box-shadow: 0 5px 20px #38214406;
  font-size: 14px;
  font-weight: 500;
}
.tool-cloud img {
  object-fit: contain;
}
.tool-cloud .more-tools {
  background: linear-gradient(115deg, #eee4fb, #f9ece3);
  border-color: #e4d7ef;
  color: #6c4a80;
}

/* ==== V8: terminale che scende piano ==== */
@media (prefers-reduced-motion: no-preference) {
  .js .term .t-line {
    transition:
      background 0.25s ease,
      opacity 1s ease,
      transform 1s ease;
  }
  .js .term.in-view .t-line {
    transition-delay: calc(var(--l) * 450ms);
  }
  .js .term.in-view.ready .t-line {
    transition-delay: 0s;
  }
}

@media (max-width: 760px) {
  .ubox {
    height: 540px;
  }
  .ubox .mess {
    inset: 20px 12px 80px;
  }
  .ubox .tangle {
    top: 20px;
    height: calc(100% - 100px);
  }
  .ubox .clean-flow.six {
    top: 28px;
    gap: 16px;
  }
  .clean-flow.six li {
    min-width: 0;
    width: 240px;
    padding: 10px 14px;
    font-size: 13.5px;
  }
  .clean-flow.six li + li::before,
  .clean-flow.six li:nth-child(4)::before {
    content: "";
    top: -14px;
    height: 10px;
  }
  .clean-flow.six li + li::after,
  .clean-flow.six li:nth-child(4)::after {
    content: none;
  }
  .ubox-saving {
    bottom: 18px;
    font-size: 12.5px;
    width: auto;
    border-radius: 14px;
  }
  .tool-cloud {
    gap: 8px;
  }
  .tool-cloud li {
    padding: 9px 12px;
    font-size: 13px;
  }
}

/* ==== V9: risultati in stile dashboard (tempo e denaro) ==== */
.ubox {
  height: 500px;
}
.ubox .clean-flow.six {
  top: 13%;
}
.ubox .mess {
  inset: 30px 24px 40px;
}
.ubox .tangle {
  top: 30px;
  height: calc(100% - 70px);
}
.results {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(820px, calc(100% - 48px));
  transform: translate(-50%, calc((1 - var(--res, 0)) * 14px));
  opacity: var(--res, 0);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.rcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #ebe7f2;
  background: #ffffffeb;
  box-shadow:
    0 1px 1px #0a0f1f08,
    0 16px 34px -18px #32235a33;
}
.rlabel {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a91a5;
}
.rbars {
  display: grid;
  gap: 10px;
}
.rbar {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--soft);
}
.rbar i {
  height: 8px;
  border-radius: 8px;
  background: #ece8f2;
  position: relative;
  overflow: hidden;
}
.rbar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
}
.rbar.before i::after {
  width: 100%;
  background: #e9b7a3;
}
.rbar.after i::after {
  width: calc((32 - 28 * var(--res, 0)) / 32 * 100%);
  background: linear-gradient(90deg, #5546d6, #c9529a);
}
.rbar b {
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rbar.before b {
  color: #a79fb2;
  text-decoration: line-through;
  font-weight: 500;
}
.rvalue {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rvalue b {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rvalue span {
  font-size: 14px;
  color: var(--soft);
}
.rchart {
  width: 100%;
  height: 44px;
  margin-top: -4px;
}
.rline {
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--res, 0) * 100);
  stroke-linecap: round;
}
.rarea {
  opacity: var(--res, 0);
}
.rnote {
  font-size: 12px;
  color: var(--quiet);
}
@media (max-width: 760px) {
  .ubox {
    height: 640px;
  }
  .ubox .clean-flow.six {
    top: 20px;
    gap: 12px;
  }
  .clean-flow.six li {
    width: 230px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .clean-flow.six li + li::before,
  .clean-flow.six li:nth-child(4)::before {
    top: -11px;
    height: 8px;
  }
  .results {
    grid-template-columns: 1fr;
    gap: 10px;
    bottom: 14px;
    width: calc(100% - 24px);
  }
  .rcard {
    padding: 12px 14px;
    gap: 8px;
  }
  .rbar {
    grid-template-columns: 54px 1fr 54px;
    gap: 8px;
    font-size: 12px;
  }
  .rvalue b {
    font-size: 24px;
  }
  .rchart {
    height: 30px;
  }
  .rnote {
    font-size: 11px;
  }
}
.rcard .rnote:last-child {
  margin-top: auto;
}

/* ==== V9: passaggi uniti da un filo sottile, senza frecce ==== */
.ubox .clean-flow.six {
  --gap: 34px;
  column-gap: var(--gap);
}
.ubox .clean-flow.six li {
  box-shadow: 0 1px 2px #2a1d3a0a, 0 8px 20px -12px #4931562e;
  border-color: #e9e3f5;
}
.ubox .clean-flow.six li + li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--gap) - 1px);
  top: 50%;
  width: calc(var(--gap) + 2px);
  height: 1px;
  margin: 0;
  transform: none;
  border: 0;
  background:
    linear-gradient(90deg, transparent 0 35%, #a77bf0 46%, #ee8660 54%, transparent 65% 100%) 100% 0 / 300% 100% no-repeat,
    #ddd3f3;
}
.ubox .clean-flow.six li + li::after {
  content: "";
  position: absolute;
  left: calc(-0.5 * var(--gap) - 3px);
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border: 0;
  border-radius: 50%;
  transform: none;
  background: #c9b8f1;
}
.ubox .clean-flow.six li:nth-child(4)::before,
.ubox .clean-flow.six li:nth-child(4)::after {
  content: none;
}
@keyframes threadFlow {
  from {
    background-position: 100% 0, 0 0;
  }
  to {
    background-position: 0% 0, 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ubox.settled .clean-flow.six li + li::before {
    animation: threadFlow 1.6s linear infinite;
  }
  .ubox.settled .clean-flow.six li:nth-child(3)::before {
    animation-delay: 0.3s;
  }
  .ubox.settled .clean-flow.six li:nth-child(4)::before {
    animation-delay: 0.6s;
  }
  .ubox.settled .clean-flow.six li:nth-child(5)::before {
    animation-delay: 0.9s;
  }
  .ubox.settled .clean-flow.six li:nth-child(6)::before {
    animation-delay: 1.2s;
  }
}
/* Schermi larghi: una sola riga, un unico filo */
@media (min-width: 1280px) {
  .ubox .clean-flow.six {
    flex-wrap: nowrap;
    max-width: none;
    padding: 0 28px;
  }
  .ubox .clean-flow.six li {
    min-width: 0;
    white-space: nowrap;
    padding: 12px 15px;
    font-size: 14px;
  }
  .ubox .clean-flow.six li:nth-child(4)::before,
  .ubox .clean-flow.six li:nth-child(4)::after {
    content: "";
  }
  .ubox .clean-flow.six {
    top: 27%;
  }
}
/* Telefono: filo verticale */
@media (max-width: 760px) {
  .ubox .clean-flow.six {
    --gap: 14px;
    row-gap: var(--gap);
  }
  .ubox .clean-flow.six li + li::before,
  .ubox .clean-flow.six li:nth-child(4)::before {
    content: "";
    left: 50%;
    top: calc(-1 * var(--gap) - 1px);
    width: 1px;
    height: calc(var(--gap) + 2px);
    background:
      linear-gradient(180deg, transparent 0 35%, #a77bf0 46%, #ee8660 54%, transparent 65% 100%) 0 100% / 100% 300% no-repeat,
      #ddd3f3;
  }
  .ubox .clean-flow.six li + li::after,
  .ubox .clean-flow.six li:nth-child(4)::after {
    content: none;
  }
  @keyframes threadFlowY {
    from {
      background-position: 0 100%, 0 0;
    }
    to {
      background-position: 0 0%, 0 0;
    }
  }
  .ubox.settled .clean-flow.six li + li::before {
    animation-name: threadFlowY;
  }
}

/* ==== V9: grafico con punto che scorre ==== */
.rchart-wrap {
  position: relative;
  margin-top: -4px;
}
.rchart-wrap .rchart {
  display: block;
  margin: 0;
}
.rdot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #c9529a;
  box-shadow: 0 0 0 4px #c9529a22;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.rtip {
  position: absolute;
  transform: translate(10px, -130%);
  padding: 3px 8px;
  border-radius: 7px;
  background: #0f1222;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.rtip.flip {
  transform: translate(calc(-100% - 10px), -130%);
}
.ubox.settled .rdot,
.ubox.settled .rtip {
  opacity: 1;
}

/* ==== V9: sfumature della prima schermata che si muovono piano ==== */
.hero-shell {
  position: relative;
  isolation: isolate;
}
.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}
.hero-shell::before {
  width: 58vw;
  height: 58vw;
  right: -18vw;
  bottom: -30vw;
  background: radial-gradient(circle, #a88bd6aa 0%, #a88bd600 65%);
  animation: heroDriftA 24s ease-in-out infinite alternate;
}
.hero-shell::after {
  width: 50vw;
  height: 50vw;
  left: -16vw;
  bottom: -26vw;
  background: radial-gradient(circle, #f0c4adaa 0%, #f0c4ad00 65%);
  animation: heroDriftB 30s ease-in-out infinite alternate;
}
@keyframes heroDriftA {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-7vw, -5vw) scale(1.08);
  }
  100% {
    transform: translate(-2vw, -9vw) scale(0.96);
  }
}
@keyframes heroDriftB {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(6vw, -6vw) scale(1.1);
  }
  100% {
    transform: translate(10vw, -2vw) scale(0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shell::before,
  .hero-shell::after,
  .ubox.settled .clean-flow.six li + li::before {
    animation: none;
  }
}
/* Grafico: l'area si scopre insieme alla linea, da sinistra a destra. */
.rarea {
  opacity: 1;
  clip-path: inset(0 calc((1 - var(--res, 0)) * 100%) 0 0);
}
.rline {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  clip-path: inset(-4px calc((1 - var(--res, 0)) * 100%) -4px 0);
}
/* Il grafico segue il tempo (--chart, 0-1), non lo scorrimento. */
.rarea {
  clip-path: inset(0 calc((1 - var(--chart, 0)) * 100%) 0 0);
}
.rline {
  clip-path: inset(-4px calc((1 - var(--chart, 0)) * 100%) -4px 0);
}

/* ==== V10: il disordine senza linee — foglietti diversi, ammucchiati ==== */
.chip-in {
  display: contents;
}
.ubox .chip {
  filter: blur(calc(var(--q, 0) * 4px));
  box-shadow:
    0 1px 1px #0a0f1f0d,
    0 10px 24px -10px #2a1d3a40;
}
.chip-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.chip--pdf svg {
  color: #d2533e;
}
.chip--sheet svg {
  color: #1e8e4e;
}
.chip--note {
  background: #fff3b5;
  border-color: #f0dc7a;
  color: #6b5a10;
  border-radius: 4px 4px 14px 4px;
}
.chip--chat {
  background: #e7f8ec;
  border-color: #bfe6cb;
  color: #1f5f39;
  border-radius: 14px 14px 14px 4px;
}
.chip--call svg {
  color: #e5484d;
}
.chip--plain {
  background: #f6f5f8;
  color: #5d5466;
}
.chip--draft {
  border-style: dashed;
  color: #8a8396;
}
/* Il mucchio non sta mai fermo: piccoli scatti, ognuno col suo ritmo. */
@keyframes fidget {
  0%,
  100% {
    rotate: 0deg;
    translate: 0 0;
  }
  30% {
    rotate: 1.4deg;
    translate: 1px -2px;
  }
  65% {
    rotate: -1.2deg;
    translate: -1px 1px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ubox .chip {
    animation: fidget calc(2.6s + var(--k) * 0.35s) ease-in-out infinite;
    animation-delay: calc(var(--k) * -0.7s);
  }
}

/* ==== V10: i passaggi compaiono uno alla volta, da sfocati a nitidi ==== */
.ubox .clean-flow.six {
  opacity: 1;
  transform: none;
}
.ubox .clean-flow.six li {
  --li: clamp(0, calc(var(--reveal, 0) * 7 - var(--i)), 1);
  opacity: var(--li);
  filter: blur(calc((1 - var(--li)) * 10px));
  transform: translateY(calc((1 - var(--li)) * 10px)) scale(calc(0.96 + var(--li) * 0.04));
}
@media (prefers-reduced-motion: reduce) {
  .ubox .clean-flow.six li {
    filter: none;
    transform: none;
  }
}

.chip--bad {
  color: #a3482f;
  border-color: #f2c9b9;
  background: #fff6f2;
}
.chip--bad svg {
  color: #d2533e;
}
@media (max-width: 760px) {
  /* Telefono: il mucchio resta compatto al centro. */
  .ubox .chip {
    top: calc((46 + (var(--y0) - 46) * 0.55 * (1 - var(--q))) * 1%);
    left: calc((50 + (var(--x0) - 50) * 0.75 * (1 - var(--q))) * 1%);
    max-width: 150px;
  }
}

/* ==== V11: passaggi a tempo (classe .on), loghi ==== */
.ubox .clean-flow.six li {
  --li: 0;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 0.6s ease,
    filter 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ubox .clean-flow.six li.on {
  opacity: 1;
  filter: none;
  transform: none;
}
.clean-flow li img,
.chip img {
  flex-shrink: 0;
  object-fit: contain;
}
.clean-flow li img {
  width: 18px;
  height: 18px;
}
.chip img {
  width: 16px;
  height: 16px;
}
@media (prefers-reduced-motion: reduce) {
  .ubox .clean-flow.six li {
    transition: none;
  }
}
.clean-flow li img.logo-wide {
  width: 30px;
}
