/* Geologica (OFL), self-hosted: nessuna chiamata a Google prima del consenso */
@font-face { font-family: "Geologica"; src: url("../media/fonts/geologica-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  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; }
@font-face { font-family: "Geologica"; src: url("../media/fonts/geologica-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue-900: #071f4d;
  --blue-800: #0a2c6b;
  --blue-700: #0b3a8c;
  --blue-600: #1a4fae;
  --blue-100: #e3ebf8;
  --blue-50: #f2f6fc;
  --terra: #b8482c;
  --terra-hover: #a33e25;
  --terra-600: #923520;
  --terra-100: #f6e2da;
  --ink: #0e1a2e;
  --ink-2: #44526a;
  --line: #d7dfeb;
  --white: #ffffff;
  --ok: #157a4a;
  --mist: #c4d3ee;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(7, 31, 77, .06), 0 12px 32px -12px rgba(7, 31, 77, .18);
  --font: "Geologica", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--terra-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--terra); color: var(--white); box-shadow: 0 1px 0 var(--terra-600) inset, 0 6px 16px -8px rgba(184, 72, 44, .55); }
.btn--primary:hover { background: var(--terra-hover); transform: translateY(-1px); }
.btn--primary:active { transform: none; }
.btn--primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none; color: var(--blue-700);
}
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--blue-800); text-decoration: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav__links a:hover { color: var(--blue-700); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 96px); background: var(--blue-50); }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 700; letter-spacing: -.03em; color: var(--blue-900); }
.lead { margin-top: 22px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }

/* Product shot: the platform, Shipping manager area */
.app {
  position: relative; margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 2px 4px rgba(7, 31, 77, .05), 0 40px 80px -32px rgba(7, 31, 77, .28);
  overflow: hidden; font-size: 14px; line-height: 1.45;
}
.app__side { display: flex; flex-direction: column; padding: 22px 12px 16px; background: #eef2f8; border-right: 1px solid var(--line); }
.app__brand { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 0 10px; font-weight: 700; font-size: 16px; color: var(--blue-800); }
.app__brand small { grid-column: 2; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.app__menu { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 2px; color: var(--ink-2); }
.app__menu li { padding: 8px 12px; border-radius: 8px; }
.app__menu .is-active { background: var(--white); color: var(--blue-900); font-weight: 600; box-shadow: 0 1px 2px rgba(7, 31, 77, .08); }
.app__user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 24px 6px 0; font-weight: 600; font-size: 13px; color: var(--ink); }
.app__user small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }

.app__main { padding: 22px 24px 24px; background: var(--white); min-width: 0; }
.app__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--blue-900); }
.app__card { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.app__head { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; }
.app__who { display: grid; }
.app__who strong { font-size: 16px; color: var(--ink); }
.online { color: var(--ok); font-size: 13px; font-weight: 500; }
.online::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ok); vertical-align: 1px; }
.app__btns { display: flex; gap: 8px; margin-left: auto; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; }
.mini-btn--dark { background: var(--blue-900); border-color: var(--blue-900); color: var(--white); }
.mini-btn svg, .app__cardtitle svg, .chat__send svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--blue-50); color: var(--blue-800); font-weight: 600; font-size: 14px; }
.avatar--dark { width: 34px; height: 34px; border: 0; background: var(--blue-900); color: var(--white); font-size: 13px; }
.avatar--xs { width: 22px; height: 22px; font-size: 9px; }

.app__grid { display: grid; grid-template-columns: 1fr 280px; gap: 14px; margin-top: 14px; }
.app__col { display: grid; gap: 14px; align-content: start; }
.app__cardtitle { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 600; color: var(--ink); }
.chat { display: flex; flex-direction: column; }
.chat .app__cardtitle { border-bottom: 1px solid var(--line); }
.chat__body { display: grid; gap: 14px; padding: 16px 18px; }
.msg { display: grid; justify-items: start; gap: 4px; max-width: 86%; }
.msg--me { justify-self: end; justify-items: end; }
.msg__from { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.msg__time { font-size: 13px; color: var(--ink-2); }
.bubble { padding: 10px 14px; border-radius: 12px; background: #edf1f7; color: var(--ink); }
.bubble--me { background: var(--blue-900); color: var(--white); }
.chat__input { display: flex; gap: 10px; margin-top: auto; padding: 12px 18px 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.chat__input span:first-child { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; }
.chat__send { display: grid; place-items: center; width: 38px; border-radius: 8px; background: var(--blue-900); color: var(--white); }

.next { margin: 0 14px 14px; padding: 12px 14px; border-radius: 10px; background: #edf1f7; display: grid; }
.next strong { color: var(--ink); }
.next .is-ok { color: var(--ok); font-weight: 500; animation: rise .4s cubic-bezier(.16, 1, .3, 1); }
.files { list-style: none; margin: 0; padding: 0 10px 12px; display: grid; gap: 2px; }
.files li { display: flex; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 8px; }
.files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li span:last-child { flex: none; font-size: 13px; color: var(--ink-2); }
.files .is-new { background: var(--terra-100); font-weight: 600; }

/* Quotes inside the chat */
.quotes { margin: 10px 0 0; padding: 0; border: 0; display: grid; gap: 6px; min-width: 300px; }
.quote {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.quote:hover { border-color: var(--blue-600); }
.quote input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue-700); }
.quote__who { font-weight: 600; font-size: 14px; }
.quote__who small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.quote__price { font-weight: 700; color: var(--blue-900); }
.quote:has(input:checked) { border-color: var(--blue-700); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-700) inset; }
.quote:has(input:focus-visible) { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.msg__time.is-new { color: var(--ok); font-weight: 500; animation: rise .4s cubic-bezier(.16, 1, .3, 1); }

/* Generic panel */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; }
.panel__id { font-weight: 600; }
.panel__foot { margin-top: 14px; font-size: 13px; }
.tag { padding: 3px 8px; border-radius: 6px; background: var(--blue-100); color: var(--blue-800); font-size: 13px; font-weight: 600; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--blue-50); }
.section--blue { background: var(--blue-800); color: var(--white); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 700; letter-spacing: -.025em; color: var(--blue-900); }
.section--blue .h2 { color: var(--white); }
.section__lead { margin-top: 16px; color: var(--ink-2); font-size: 18px; max-width: 60ch; }
.section--blue .section__lead { color: var(--mist); }
.big { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 500; color: var(--blue-900); letter-spacing: -.01em; }

/* Route: from the customer's request to arrival */
.route { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.route li { position: relative; padding: 28px 16px 0 0; display: grid; gap: 2px; }
.route li::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; border-top: 2px dashed var(--line); }
.route li::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue-700); }
.route li:first-child::after, .route li:last-child::after { background: var(--terra); border-color: var(--terra); }
.route li:last-child::before { right: auto; width: 0; }
.route strong { color: var(--blue-900); }
.route span { font-size: 14px; color: var(--ink-2); }

/* Steps: the sequence is the content, so numbers stay */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--terra); color: var(--white); font-weight: 700;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -16px; border-top: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; color: var(--blue-900); }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }

/* Rules */
.rules { display: grid; gap: 20px; }
.rules__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rules__tabs button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 500 15px var(--font); cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.rules__tabs img { width: 24px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(7, 31, 77, .12); }
.rules__tabs button:hover { border-color: var(--blue-600); }
.rules__tabs button[aria-selected="true"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.rules__panels { padding: 24px 28px; max-width: 860px; }
.rulelist { list-style: none; margin: 16px 0 0; padding: 0; animation: rise .35s cubic-bezier(.16, 1, .3, 1); }
.rulelist li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.rulelist strong { display: block; color: var(--blue-900); margin-bottom: 2px; }
@keyframes rise { from { opacity: .3; transform: translateY(6px); } }

/* People */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.2 3.1L13 4.6' fill='none' stroke='%23b8482c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks--dark li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.2 3.1L13 4.6' fill='none' stroke='%23923520' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; color: var(--blue-900);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; flex: none; width: 18px; height: 18px; transition: transform .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' fill='none' stroke='%231a4fae' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* Form */
.split--form { align-items: center; }
.form { padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 15px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #b9c5d8; border-radius: var(--radius);
  font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--white); caret-color: var(--blue-700);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(26, 79, 174, .2); }
.field input[aria-invalid="true"] { border-color: #b42318; }
.check { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue-700); }
.hp { position: absolute; left: -9999px; }
.form__msg { font-size: 15px; min-height: 1.5em; }
.form__msg.is-error { color: #b42318; }
.form__msg.is-ok { color: var(--ok); font-weight: 500; }

/* Footer */
.footer { background: var(--blue-900); color: var(--mist); padding: 40px 0; font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.logo--light { color: var(--white); }
.footer__meta { margin-left: auto; }
.footer a { color: var(--mist); }

/* Responsive */
@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
  .app__grid { grid-template-columns: 1fr 240px; }
}
@media (max-width: 960px) {
  .split, .faq, .people { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route li { padding: 0 0 22px 32px; }
  .route li::before { top: 14px; bottom: 0; left: 6px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
  .route li:last-child::before { display: none; }
  .app__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }

  .app__head { flex-wrap: wrap; }
  .app__btns { margin-left: 0; width: 100%; }
  .app__main { padding: 18px 14px; }
  .msg { max-width: 100%; }
  .quotes { min-width: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 60px; min-height: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .rules__panels { padding: 20px; }
  .footer__meta { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Nav: login + CTA */
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__links + .nav__cta { margin-left: 4px; }
.nav__login { color: var(--blue-800); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav__login:hover { color: var(--blue-600); text-decoration: underline; }
.nav.is-scrolled { box-shadow: 0 6px 20px -14px rgba(7, 31, 77, .35); }

/* Documents: news-ticker bands */
.section--docs { overflow: hidden; }
.ticker { display: flex; align-items: stretch; margin-top: 14px; font-size: 16px; }
.ticker__label {
  flex: none; display: flex; align-items: center; padding: 0 22px;
  background: var(--terra); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  position: relative; z-index: 1;
}
.ticker__viewport { flex: 1; display: flex; overflow: hidden; }
.ticker__track { flex: none; display: flex; margin: 0; padding: 0; list-style: none; animation: ticker 48s linear infinite; }
.ticker__track li { padding: 16px 28px; white-space: nowrap; }
.ticker__track li::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 28px; border-radius: 50%; background: var(--terra); vertical-align: middle; }
.ticker__track strong { margin-right: 8px; }
.ticker--blue .ticker__viewport { background: var(--blue-900); color: var(--mist); }
.ticker--blue strong { color: var(--white); }
.ticker--light .ticker__viewport { background: var(--white); color: var(--ink-2); border-block: 1px solid var(--line); }
.ticker--light .ticker__label { background: var(--blue-700); color: var(--white); }
.ticker--light strong { color: var(--blue-900); }
.ticker--reverse .ticker__track { animation-direction: reverse; animation-duration: 56s; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* Rules: the long tail */
.rules__more { justify-self: start; font-weight: 600; color: var(--blue-700); }

/* Scroll reveal: content stays visible without JS */
.js .reveal, .js .reveal-group > * { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in, .js .reveal-group.is-in > * { opacity: 1; transform: none; }
.js .app.reveal { transform: translateY(48px) scale(.98); }
.js .app.reveal.is-in { transform: none; }

/* Hero chat plays out */
.js .chat .msg { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.js .chat .msg.is-in { opacity: 1; transform: none; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #edf1f7; justify-self: start; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.files .is-new { animation: glow 2.4s ease-out 3.2s both; }
@keyframes glow { from { background: transparent; } 30% { background: #efc3b3; } }
.online::before { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(21, 122, 74, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(21, 122, 74, 0); } }
.route li::after { transition: transform .4s; }
.route li:hover::after { transform: scale(1.25); }

@media (max-width: 720px) {
  .nav__cta { margin-left: auto; gap: 12px; }
  .ticker__label { padding: 0 14px; font-size: 13px; }
  .ticker__track li { padding: 13px 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-group > *, .js .chat .msg { opacity: 1; transform: none; }
  .ticker__viewport { overflow-x: auto; }
  .ticker__track[aria-hidden] { display: none; }
}

/* Accedi */
.login { background: var(--blue-50); }
.login__main { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 32px var(--gutter); }
.login__card { width: min(440px, 100%); padding: 32px; display: grid; gap: 20px; }
.login__card .section__lead { margin-top: 0; font-size: 16px; }
.login__back { text-align: center; font-size: 15px; }
.section--docs > .section__head { max-width: var(--wrap); }
.section--docs .h2 { max-width: 16ch; }
.btn { white-space: nowrap; }
@media (max-width: 420px) {
  .nav .btn--sm { padding: 0 12px; font-size: 14px; }
  .nav__inner { gap: 12px; }
  .nav__cta { gap: 10px; }
  .logo { font-size: 17px; }
  .app__btns { flex-wrap: wrap; }
}

/* v4 — Hero with photo */
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; box-shadow: 0 40px 80px -36px rgba(7, 31, 77, .45); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.hero__photo.is-in img { transform: none; }
.hero__photo figcaption { position: absolute; right: 12px; bottom: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(7, 31, 77, .55); color: var(--white); font-size: 13px; }

/* Platform section */
.section--platform { background: var(--white); }
.section--platform .app { margin-top: 0; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #d92d20; color: var(--white); font-size: 13px; font-weight: 700; vertical-align: 1px; animation: pulse-red 2s infinite; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(217, 45, 32, .5); } 70%, 100% { box-shadow: 0 0 0 6px rgba(217, 45, 32, 0); } }
.avatar--photo { object-fit: cover; padding: 0; }
img.avatar--xs { object-fit: cover; }

/* People: photo cards, grey by default, colour and lift on hover */
.person { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s; }
.person__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform .8s cubic-bezier(.16, 1, .3, 1); }
.person h3 { padding: 22px 24px 0; font-size: 21px; color: var(--blue-900); }
.person p { padding: 10px 24px 0; color: var(--ink-2); }
.person .ticks { padding: 0 24px 26px; }
.person .ticks li { color: var(--ink); }
.person:hover, .person:focus-within { transform: translateY(-10px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); }
.person:hover .person__photo, .person:focus-within .person__photo { filter: none; transform: scale(1.03); }
.js .people.is-in > .person:hover { transform: translateY(-10px); }
@media (hover: none) { .person__photo { filter: none; } }

/* Documents: bigger bands */
.section--docs .h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 18ch; }
.section--docs .section__lead { font-size: clamp(18px, 1.6vw, 21px); }
.ticker { font-size: clamp(18px, 1.7vw, 22px); margin-top: 18px; }
.ticker__label { padding: 0 30px; font-size: 15px; }
.ticker__track li { padding: 24px 36px; }
.ticker__track li::after { width: 8px; height: 8px; margin-left: 36px; }

/* Footer */
.footer { padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 14px; max-width: 30ch; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__title { color: var(--white); font-weight: 600; margin-bottom: 4px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.social { list-style: none; display: flex; gap: 10px; margin: 22px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--white); transition: background-color .2s, transform .2s; }
.social a:hover { background: var(--terra); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .ticker__label { padding: 0 16px; font-size: 13px; }
  .ticker__track li { padding: 18px 24px; }
}
.js .people.is-in > .person { transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s, opacity .8s; transition-delay: 0s; }

/* Login */
.login__form { display: grid; gap: 16px; }
.login__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

/* Chi siamo */
.about-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 72px); background: var(--blue-50); }
.about-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; letter-spacing: -.03em; color: var(--blue-900); max-width: 16ch; }
.about-hero h1 em, .about em { font-style: italic; font-weight: 500; color: var(--terra); }
.about { padding: clamp(56px, 8vw, 104px) 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__body { display: grid; gap: 22px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.about__body h2 { margin-top: 18px; font-size: 24px; color: var(--blue-900); letter-spacing: -.015em; }
.quote-big { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; font-style: italic; color: var(--blue-900); border: 0; position: sticky; top: 110px; }
.quote-big::before { content: ""; display: block; width: 48px; height: 4px; margin-bottom: 22px; border-radius: 2px; background: var(--terra); }
.about__facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about__facts li { padding: 20px; border-radius: var(--radius-lg); background: var(--blue-50); color: var(--ink-2); font-size: 15px; }
.about__facts strong { display: block; font-size: 30px; color: var(--blue-900); letter-spacing: -.02em; }
.about-cta { padding: clamp(48px, 7vw, 88px) 0; background: var(--blue-800); color: var(--white); text-align: center; }
.about-cta h2 { color: var(--white); }
.about-cta p { margin: 14px auto 28px; color: var(--mist); max-width: 52ch; }
@media (max-width: 960px) { .about__grid { grid-template-columns: 1fr; } .quote-big { position: static; } }
@media (max-width: 640px) { .about__facts { grid-template-columns: 1fr; } }

/* v5 — Wordmark */
.logo__word { font-weight: 500; letter-spacing: -.025em; }
.logo__word strong { font-weight: 700; }

/* Scrollytelling: Come funziona */
.story__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); }
.story__steps { list-style: none; margin: 0; padding: 0; }
.story__step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-left: 64px; position: relative; opacity: .35; transition: opacity .5s; }
.story__step:last-child { min-height: 52vh; }
.story__step.is-active { opacity: 1; }
.story__num { position: absolute; left: 0; top: calc(50% - 60px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); color: var(--blue-900); font-weight: 700; transition: background-color .4s, border-color .4s, color .4s; }
.story__step.is-active .story__num { background: var(--terra); border-color: var(--terra); color: var(--white); }
.story__step h3 { font-size: clamp(22px, 2.4vw, 30px); color: var(--blue-900); letter-spacing: -.02em; }
.story__step p { margin-top: 12px; color: var(--ink-2); font-size: 18px; max-width: 40ch; }

.story__stage { position: relative; }
.stage { position: sticky; top: calc(50vh - 210px); height: 420px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -34px rgba(7, 31, 77, .35); overflow: hidden; font-size: 14px; }
.stage__bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #f7f9fc; }
.stage__dots { display: flex; gap: 6px; }
.stage__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.stage__title { font-weight: 600; color: var(--ink); }
.stage__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 18px 0; }
.stage__progress span { height: 4px; border-radius: 2px; background: var(--line); transition: background-color .4s; }
.stage[data-at="0"] .stage__progress span:nth-child(-n+1),
.stage[data-at="1"] .stage__progress span:nth-child(-n+2),
.stage[data-at="2"] .stage__progress span:nth-child(-n+3),
.stage[data-at="3"] .stage__progress span { background: var(--terra); }

.scene { position: absolute; inset: 86px 22px 22px; opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.scene.is-active { opacity: 1; transform: none; }
.scene__label { font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.scene li, .scene .drop, .scene .who, .scene .offers__ok, .scene .decl > * { opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s cubic-bezier(.16, 1, .3, 1); }
.scene.is-active li, .scene.is-active .drop, .scene.is-active .who, .scene.is-active .offers__ok, .scene.is-active .decl > * { opacity: 1; transform: none; }
.scene.is-active li:nth-child(1) { transition-delay: .25s; }
.scene.is-active li:nth-child(2) { transition-delay: .55s; }
.scene.is-active li:nth-child(3) { transition-delay: .85s; }
.scene.is-active li:nth-child(4) { transition-delay: 1.15s; }

.drop { display: flex; align-items: center; gap: 12px; padding: 22px; border: 2px dashed #b9c5d8; border-radius: 14px; color: var(--ink-2); font-weight: 500; }
.drop svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.scene.is-active .drop { border-color: var(--blue-600); background: var(--blue-50); }
.uploads { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.uploads li { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.uploads b { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.uploads i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 1s cubic-bezier(.16, 1, .3, 1); }
.scene.is-active .uploads li:nth-child(1) i { width: 100%; transition-delay: .5s; }
.scene.is-active .uploads li:nth-child(2) i { width: 100%; transition-delay: .9s; }
.scene.is-active .uploads li:nth-child(3) i { width: 100%; transition-delay: 1.3s; }

.who { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.who div { display: grid; }
.who span { color: var(--ink-2); font-size: 13px; }
.who__state { margin-left: auto; font-size: 13px; color: var(--ok); }
.checks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding: 11px 14px 11px 44px; border-radius: 10px; background: #f3f6fa; font-weight: 500; }
.checks li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offers li { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; transition: opacity .45s, transform .45s cubic-bezier(.16, 1, .3, 1), border-color .4s, background-color .4s, box-shadow .4s; }
.offers small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.offers b { color: var(--blue-900); }
.scene.is-active .offers .is-pick { border-color: var(--blue-700); background: var(--blue-50); box-shadow: 0 0 0 1px var(--blue-700) inset; transition-delay: .55s, .55s, 1.4s, 1.4s, 1.4s; }
.offers__ok { margin-top: 14px; color: var(--ok); font-weight: 600; }
.scene.is-active .offers__ok { transition-delay: 1.6s; }

.decl { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.decl__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.decl__head span { font-size: 13px; color: var(--ink-2); }
.decl__rows { display: grid; gap: 10px; margin-top: 18px; }
.decl__rows i { height: 8px; border-radius: 4px; background: #e6ebf3; }
.decl__rows i:nth-child(2) { width: 80%; }
.decl__rows i:nth-child(4) { width: 60%; }
.decl__sign { display: flex; align-items: flex-end; gap: 12px; margin-top: 26px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 13px; }
.decl__sign svg { width: 140px; height: 36px; fill: none; stroke: var(--blue-900); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.4s ease-out .6s; }
.scene.is-active .decl__sign svg { stroke-dashoffset: 0; }
.decl__stamp { position: absolute; right: 18px; bottom: 54px; padding: 6px 12px; border: 2px solid var(--terra); border-radius: 8px; color: var(--terra); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; rotate: -8deg; }
.scene .decl > .decl__stamp { transform: scale(1.6); }
.scene.is-active .decl > .decl__stamp { transform: scale(1); transition: opacity .3s 1.9s, transform .35s cubic-bezier(.3, 1.6, .5, 1) 1.9s; }

@media (max-width: 960px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__stage { order: -1; position: sticky; top: 76px; z-index: 2; height: 330px; }
  .stage { position: relative; top: 0; height: 330px; }
  .scene { inset: 80px 14px 14px; }
  .story__step { min-height: 70vh; padding-left: 58px; justify-content: flex-start; padding-top: 40px; }
  .story__num { top: 36px; }
  .decl__rows { display: none; }
}

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal__wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--blue-900); letter-spacing: -.03em; }
.legal__meta { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.legal h2 { margin-top: 44px; font-size: 22px; color: var(--blue-900); letter-spacing: -.015em; }
.legal h3 { margin-top: 24px; font-size: 18px; color: var(--blue-900); }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.legal__toc { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--blue-50); }
.legal__toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.legal th { color: var(--blue-900); background: var(--blue-50); }
.legal__table { overflow-x: auto; }
.stage__title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .who__state { display: none; } .stage__bar { padding: 12px 14px; } .stage { font-size: 13px; } }

/* v6 — taste pass: flat surfaces, no rules, one dominant headline */

/* Hero: the headline leads across the full width, copy and photo below */
.hero__grid { grid-template-columns: .85fr 1.15fr; row-gap: clamp(28px, 4vw, 56px); align-items: end; }
.hero__title { grid-column: 1 / -1; font-size: clamp(2.3rem, 5.4vw, 5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; color: var(--blue-900); }
.hero__copy .lead { margin-top: 0; }
.hero__photo { aspect-ratio: 3 / 2; max-height: none; box-shadow: none; border-radius: 18px; }

/* Flat: no shadows at rest */
.btn--primary { box-shadow: none; }
.btn--primary:hover { box-shadow: none; }
.panel, .app, .stage, .person, .social a { box-shadow: none; }
.panel { border: 0; background: var(--white); }
.section--tint .panel, .section--tint .form { background: var(--white); }

/* Interface fragments keep their own lines (data-ui); the page itself has none */
.app { border: 0; background: #eef2f8; padding: 10px; }
.app__main { border-radius: 14px; }
.app__side { border-right: 0; background: transparent; }
.stage { border: 0; background: var(--white); }
.section--tint .stage { background: var(--white); }

/* Rules list, FAQ, footer: space and tone instead of lines */
.rulelist li { border-bottom: 0; padding: 14px 0; }
.rulelist li + li { margin-top: 2px; }
.faq__list details, .faq__list details:first-child { border: 0; background: var(--blue-50); border-radius: 12px; padding: 0 20px; }
.faq__list details + details { margin-top: 10px; }
.footer__bottom { border-top: 0; margin-top: 56px; padding-top: 0; }
.rules__tabs button { border: 0; background: var(--white); }
.rules__tabs button:hover { background: var(--blue-100); }
.ticker--light .ticker__viewport { border-block: 0; background: var(--blue-50); }
.route li::before { border-top-style: solid; border-top-color: var(--blue-100); border-top-width: 3px; top: 5px; }
.steps li::after { display: none; }

/* Labels in sentence case, readable size */
.ticker__label { text-transform: none; letter-spacing: 0; font-size: 17px; }
.decl__stamp { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* Nav: links only where they fit on one line */
@media (max-width: 1080px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* Come funziona on phone: every step carries its own panel, no sticky stage */
.story__step > .stage { display: none; }
@media (max-width: 960px) {
  .story__stage { display: none; }
  .story__step { min-height: 0; opacity: 1; padding: 0 0 0 56px; justify-content: flex-start; }
  .story__step + .story__step { margin-top: 56px; }
  .story__num { top: 0; }
  .story__step > .stage { display: block; position: relative; top: 0; height: 320px; margin: 22px 0 0 -56px; }
}
@media (max-width: 560px) {
  .story__step > .stage { height: 300px; }
}
@media (max-width: 560px) { .app__col { display: none; } }

/* Prezzo: sfondo ShaderGradient animato (js/gradient.js) su fondo statico blu */
.section--grad { position: relative; overflow: hidden; isolation: isolate; background: var(--blue-900); color: var(--white); }
.grad { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 85% 100%, rgba(184, 72, 44, .55), transparent 60%), radial-gradient(90% 80% at 0% 0%, var(--blue-700), transparent 70%); } /* taste-skill-ignore: richiesto dal proprietario */
.grad canvas { opacity: 0; transition: opacity 1.2s ease; }
.grad.is-live canvas { opacity: 1; }
.section--grad .h2 { color: var(--white); }
.section--grad .section__lead, .section--grad .ticks li { color: #dbe5f5; }
.section--grad .ticks--dark li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4l3.2 3.1L13 4.6' fill='none' stroke='%23f0a58c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.section--grad .form { color: var(--ink); }
@media (max-width: 960px) { .story__step > .stage { height: 360px; } .story__num { background: var(--terra); border-color: var(--terra); color: var(--white); } }
.hero__grid { align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } .hero__photo { aspect-ratio: 4 / 3; } }
