/* Demo "Ordini e documenti in ingresso": un banco notturno su cui stanno il documento e la proposta dell'agente.
   Colori e caratteri del sito; i documenti hanno un aspetto da ufficio. */
.od-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.od-page {
  --od-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --od-paper: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --od-on: #f0f3ed;
  --od-soft: #c3cdc0;
  --od-rule: #a4b69a3d;
  --od-tile: #1c2d23;
  --od-out: cubic-bezier(.16, 1, .3, 1);
}
.od-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* Introduzione, sul bianco del sito */
.od-hero { padding-bottom: 56px; }
.od-hero .eyebrow { margin-bottom: 22px; color: var(--muted); }
.od-page h1 { font-size: clamp(50px, 6.4vw, 104px); line-height: 1.02; }
.od-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 8%; margin-top: 34px; align-items: start; }
.od-intro p { margin: 0; font-size: 18px; line-height: 1.75; max-width: 68ch; }
.od-intro .od-disclaimer { font-size: 14px; line-height: 1.7; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; }

/* Il banco: fascia verde notte a tutta larghezza (il fondo esce dalla colonna senza creare scorrimento orizzontale) */
.od-demo { position: relative; isolation: isolate; scroll-margin-top: 88px; color: var(--od-on); padding-block: clamp(52px, 6vw, 96px); background: var(--night); box-shadow: 0 0 0 100vmax var(--night); clip-path: inset(0 -100vmax); overflow-x: clip; }
.od-demo-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: 28px 6%; }
.od-demo-head h2 { margin: 0; font-size: clamp(42px, 5.2vw, 84px); line-height: 1; letter-spacing: -.015em; color: var(--od-on); }
.od-demo-head h2 mark { color: var(--ink); background: linear-gradient(transparent 12%, var(--lime) 12%, var(--lime) 94%, transparent 94%); padding-inline: .04em; margin-inline: -.04em; }
.od-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.od-steps li { display: grid; gap: 6px; padding-top: 12px; border-top: 2px solid var(--od-rule); color: #8d9c90; transition: border-color .5s var(--od-out), color .5s var(--od-out); }
.od-step-n { font: 400 clamp(34px, 3.4vw, 54px)/.9 Anton, Impact, sans-serif; color: transparent; -webkit-text-stroke: 1px #8d9c90; transition: color .5s var(--od-out), -webkit-text-stroke-color .5s; }
.od-step-name { font: 400 11px/1.3 var(--od-mono); text-transform: uppercase; letter-spacing: .05em; }
.od-steps li.is-done { border-top-color: var(--od-soft); color: var(--od-soft); }
.od-steps li.is-done .od-step-n { color: var(--od-soft); -webkit-text-stroke-color: transparent; }
.od-steps li[aria-current="step"] { border-top-color: var(--lime); color: var(--od-on); }
.od-steps li[aria-current="step"] .od-step-n { color: var(--lime); -webkit-text-stroke-color: transparent; }

.od-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(40px, 4.5vw, 64px); align-items: start; }
.od-demo[data-step="4"] .od-stage { display: none; }
.od-doc-col { position: sticky; top: 104px; min-width: 0; }
/* Una sola luce morbida dietro il foglio, come una lampada sul banco */
.od-doc-col::before { content: ""; position: absolute; z-index: -1; inset: -12% -14% -6%; background: radial-gradient(closest-side, #deed981f, transparent); pointer-events: none; }
.od-doc-label { margin: 0 0 12px; font: 400 11px/1.5 var(--od-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--od-soft); }
.od-doc:empty, .od-doc-col:has(.od-doc:empty) { display: none; }

/* Documenti */
.od-doc { container-type: inline-size; }
.od-file { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; background: #25372c; color: var(--od-soft); font: 400 11px/1.4 var(--od-mono); letter-spacing: .02em; overflow-wrap: anywhere; }
.od-file h4 { margin: 0; font: inherit; text-transform: uppercase; letter-spacing: .05em; color: var(--od-on); }
.od-paper { position: relative; overflow: hidden; background: #fff; color: #222; font-family: var(--od-paper); font-size: clamp(10.5px, 2.35cqi, 13.5px); line-height: 1.5; padding: 7cqi 7cqi 6cqi; box-shadow: 0 34px 60px -24px #000000a6, 0 3px 8px #00000040; }
.od-paper p { margin: 0; }
.od-paper strong { font-weight: 700; }
.od-pdf-head, .od-ddt-head { display: flex; justify-content: space-between; gap: 6cqi; align-items: start; padding-bottom: 1.4em; border-bottom: 2px solid #222; }
.od-pdf-title, .od-ddt-title { text-align: right; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 1.05em; }
.od-pdf-title span, .od-ddt-title span { text-transform: none; letter-spacing: 0; font-weight: 400; }
.od-pdf-to { margin: 1.6em 0 1.8em auto !important; width: max-content; max-width: 45%; }
.od-pdf-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.od-pdf-table th { text-align: left; font-weight: 700; padding: .5em .4em; border-bottom: 1px solid #222; background: #f2f2f2; }
.od-pdf-table td { padding: .55em .4em; border-bottom: 1px solid #ddd; vertical-align: top; }
.od-pdf-table :is(th, td):nth-child(n+3) { text-align: right; white-space: nowrap; }
.od-pdf-table tfoot td { border-bottom: 0; font-weight: 700; padding-top: .8em; }
.od-pdf-terms { margin-top: 1.8em !important; }
.od-pdf-sign { margin: 2.2em 0 0 auto !important; width: max-content; font-style: italic; text-align: right; }
.od-mail { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; padding: 5cqi 6cqi; }
.od-mail-head { margin: 0 0 1.4em; padding-bottom: 1em; border-bottom: 1px solid #ddd; }
.od-mail-head div { display: grid; grid-template-columns: 5.5em 1fr; gap: .8em; padding: .15em 0; }
.od-mail-head dt { color: #6b6b6b; }
.od-mail-head dd { margin: 0; }
.od-mail-body { font-size: 1.08em; line-height: 1.65; }
.od-mail-body p + p { margin-top: .9em; }
.od-mail-sign { color: #6b6b6b; font-size: .9em; }
.od-ddt { background: #fbfbf8; color: #2b2b2b; }
.od-ddt-tag { display: block; font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: #666; }
.od-ddt-boxes { display: grid; grid-template-columns: 1fr 1fr; margin: 1.4em 0; border: 1px solid #999; }
.od-ddt-boxes p { padding: .7em .8em; }
.od-ddt-boxes p + p { border-left: 1px solid #999; }
.od-ddt-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4em 2em; margin-top: 1.4em !important; }
.od-ddt-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; margin-top: 2.6em !important; }
.od-ddt-sign span { border-top: 1px solid #999; padding-top: .4em; font-size: .85em; color: #666; }

/* Lettura: la linea lime scende sul foglio e si ferma su ogni campo che l'agente riconosce */
.od-scan { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 2px; background: var(--lime); opacity: 0; pointer-events: none; transition: transform .26s var(--od-out), opacity .4s; }
.od-scan::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 64px; background: linear-gradient(#deed9800, #deed9859); }
.od-paper.is-scanning .od-scan { opacity: 1; }
.od-x { position: relative; z-index: 3; border-radius: 1px; transition: background-color .3s, box-shadow .3s; }
.od-x.is-reading { background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }
.od-x.is-read { background: #deed98b8; box-shadow: inset 0 -2px 0 var(--ink); }
.od-x.is-linked { background: var(--lime); box-shadow: 0 0 0 2px var(--ink); }

/* Pannello sul banco (scelta e lettura) */
.od-panel { min-width: 0; }
.od-panel-head h3 { margin: 0; font: 400 clamp(30px, 3vw, 46px)/1.05 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: -.01em; color: var(--od-on); text-wrap: balance; }
.od-panel-head h3:focus { outline: none; }
.od-panel-head h3:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; }
.od-panel-head p { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--od-soft); max-width: 52ch; }
.od-noscript { margin: 0; font-size: 16px; line-height: 1.7; }

.od-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 22px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; text-align: left; transition: background-color .25s var(--od-out), color .25s var(--od-out), border-color .25s var(--od-out), transform .25s var(--od-out); }
.od-btn:hover { background: var(--lime); }
.od-btn:active { transform: translateY(1px); }
.od-btn:focus-visible, .od-edit:focus-visible, .od-link-btn:focus-visible, .od-erp-scroll:focus-visible, .od-flag:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.od-btn--primary { margin-top: 26px; min-height: 56px; padding-inline: 26px; background: var(--lime); border-color: var(--lime); color: var(--ink); font-size: 16px; }
.od-btn--primary::after { content: ""; width: 18px; height: 2px; background: currentColor; transition: width .3s var(--od-out); }
.od-btn--primary:hover { background: var(--od-on); border-color: var(--od-on); }
.od-btn--primary:hover::after { width: 26px; }
.od-demo .od-btn--primary:focus-visible, .od-demo .od-link-btn:focus-visible, .od-erp-scroll:focus-visible { outline-color: var(--lime); }
.od-btn--small { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.od-btn--quiet { border-width: 1px; border-color: #8c988f; font-weight: 600; }
.od-link-btn { background: none; border: 0; padding: 6px 0; min-height: 44px; font-size: 14px; color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.od-link-btn:hover { opacity: 1; }

/* 01 — scelta: tre documenti sul banco */
.od-choices { border: 0; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.od-choice { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 16px; align-items: start; padding: 18px 20px; background: var(--od-tile); border: 1px solid var(--od-rule); cursor: pointer; transition: border-color .3s var(--od-out), background-color .3s var(--od-out), transform .3s var(--od-out); }
.od-choice-icon { grid-row: 1 / 4; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--od-rule); color: var(--od-soft); transition: color .3s, background-color .3s, border-color .3s; }
.od-choice-icon .od-icon { width: 28px; height: 28px; }
.od-choice-format { font: 400 11px/1.5 var(--od-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--od-soft); }
.od-choice-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.od-choice-note { font-size: 14px; line-height: 1.55; color: var(--od-soft); }
.od-choice:hover { border-color: #a4b69a99; transform: translateX(3px); }
.od-choice:has(input:checked) { background: #24382c; border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime); }
.od-choice:has(input:checked) .od-choice-icon { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.od-choice:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 4px; }
.od-choice.is-done { cursor: default; opacity: .55; transform: none; }

/* 02 — lettura: contatore grande, campi che arrivano, controlli */
.od-count { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 6px; }
.od-count strong { font: 400 clamp(72px, 8vw, 120px)/.85 Anton, Impact, sans-serif; color: var(--lime); font-variant-numeric: tabular-nums; min-width: 1.1ch; }
.od-count span { font: 400 12px/1.4 var(--od-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--od-soft); }
.od-readlog { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--od-rule); columns: 2; column-gap: 28px; }
.od-readlog li { break-inside: avoid; display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--od-rule); animation: od-in .4s var(--od-out) both; }
.od-readlog-label { font: 400 10.5px/1.6 var(--od-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--od-soft); }
.od-readlog-value { width: fit-content; font-size: 15px; font-weight: 600; line-height: 1.4; animation: od-flash 1.2s var(--od-out) both; }
.od-checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 6px; }
.od-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; background: var(--od-tile); font-size: 14px; animation: od-in .4s var(--od-out) both; }
.od-checks .od-icon { width: 20px; height: 20px; color: var(--lime); stroke-width: 2.2; }
.od-checks strong { font-weight: 600; color: var(--od-soft); text-align: right; }
.od-read-done { margin-top: 26px; animation: od-in .45s var(--od-out) both; }
.od-read-done p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--od-soft); }
.od-read-done p strong { color: var(--od-on); }
.od-read-done .od-btn { margin-top: 18px; }
@keyframes od-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
@keyframes od-flash { from { background: #deed98; color: var(--ink); } to { background: transparent; } }

/* 03 — controllo: la proposta è un secondo foglio sul banco */
.od-demo[data-step="3"] .od-panel { background: #fff; color: var(--ink); box-shadow: 0 34px 60px -24px #000000a6, 0 3px 8px #00000040; animation: od-sheet .6s var(--od-out) both; }
@keyframes od-sheet { from { opacity: 0; transform: translateY(18px); } }
.od-file--proposal { background: var(--ink); color: var(--od-soft); }
.od-file--proposal span:last-child { color: var(--lime); text-transform: uppercase; letter-spacing: .05em; }
.od-sheet-body { padding: clamp(22px, 2.6vw, 34px); }
.od-sheet-body .od-panel-head h3 { color: var(--ink); }
.od-sheet-body .od-panel-head h3:focus-visible { outline-color: var(--ink); }
.od-sheet-body .od-panel-head p { color: #334038; }
.od-sheet-body .od-link-btn { color: var(--muted); }
.od-sheet-body .od-link-btn:focus-visible { outline-color: var(--ink); }

.od-flags { display: grid; gap: 12px; margin-top: 24px; }
.od-flag { padding: 18px 20px; border: 1px solid var(--ink); background: #fff; scroll-margin: 120px; transition: background-color .4s var(--od-out), border-color .4s var(--od-out); }
.od-flag-kind { margin: 0; font: 400 11px/1.5 var(--od-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.od-flag h4 { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 19px; line-height: 1.3; }
.od-flag-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: none; background: var(--ink); color: #fff; transition: background-color .3s, color .3s; }
.od-flag-mark .od-icon { width: 20px; height: 20px; stroke-width: 2.6; }
.od-flag > p { margin: 0; font-size: 14px; line-height: 1.65; color: #334038; max-width: 60ch; }
.od-flag-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.od-flag-edit { margin-top: 16px; }
.od-flag-edit-label { margin: 0; font-size: 13px; font-weight: 700; }
.od-flag.is-decided { background: #f1f7d4; border-color: #c4d47e; }
.od-flag.is-decided .od-flag-mark { background: var(--lime); color: var(--ink); }
.od-flag-outcome { margin: 12px 0 0 !important; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 14px !important; color: var(--ink) !important; }
.od-flag-outcome .od-link-btn { min-height: 32px; padding: 0; }

.od-fields { margin-top: 30px; }
.od-fields-title { margin: 24px 0 6px; font: 400 11px/1.5 var(--od-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.od-fields-title:first-child { margin-top: 0; }
.od-field { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; padding: 11px 0; border-top: 1px solid var(--rule); }
.od-field-main { display: grid; gap: 2px; min-width: 0; }
.od-field-label { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.od-field-value { font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.od-field-note { font-size: 13px; line-height: 1.5; color: #4c5b51; }
.od-was { font-size: 13px; color: #5f6d63; text-decoration: line-through; }
.od-flag-ref, .od-changed-tag { font: 400 10px/1 var(--od-mono); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; }
.od-flag-ref { background: var(--ink); color: #fff; }
.od-changed-tag { background: var(--lime); color: var(--ink); }
.od-field.is-changed .od-field-value { background: linear-gradient(transparent 55%, #deed98 55%); width: fit-content; }
.od-edit { min-height: 44px; min-width: 44px; padding: 0 12px; background: none; border: 1px solid var(--rule); color: var(--ink); font-size: 13px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.od-edit:hover { border-color: var(--ink); background: var(--mist); }
.od-conf { display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1.3 var(--od-mono); text-transform: uppercase; letter-spacing: .02em; color: #4c5b51; white-space: nowrap; }
.od-conf-bars { display: inline-flex; align-items: end; gap: 2px; }
.od-conf-bars i { width: 5px; background: var(--ink); }
.od-conf-bars i:nth-child(1) { height: 6px; }
.od-conf-bars i:nth-child(2) { height: 9px; }
.od-conf-bars i:nth-child(3) { height: 12px; }
.od-conf--media .od-conf-bars i:nth-child(3), .od-conf--bassa .od-conf-bars i:nth-child(n+2) { background: #c7cfc6; }
.od-line { margin-top: 10px; padding: 4px 14px 12px; background: var(--mist); }
.od-line .od-field { border-top-color: #d6ddd4; }
.od-line > .od-field-note { margin: 8px 0 0; display: block; }
.od-line-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font: 400 11px/1.5 var(--od-mono); text-transform: uppercase; letter-spacing: .04em; }
.od-line .od-field:first-of-type { border-top: 0; }
.od-edit-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.od-edit-form input { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 2px solid var(--ink); font: 600 15px Manrope, Arial, sans-serif; color: var(--ink); background: #fff; caret-color: var(--ink); }
.od-edit-form input:focus-visible { outline: 3px solid var(--lime); outline-offset: 0; }
.od-edit-form input[aria-invalid="true"] { border-color: #8a2f12; }
.od-edit-error { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: #8a2f12; font-weight: 700; }

/* Il gesto che conta: approvare. Il timbro si posa sulla proposta, poi la riga entra nel gestionale. */
.od-approve { position: relative; margin-top: 30px; padding-top: 24px; border-top: 2px solid var(--ink); }
.od-approve-note { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #334038; }
.od-approve-note.is-alert { color: var(--ink); font-weight: 700; }
.od-btn--approve { width: 100%; min-height: 64px; background: var(--lime); border-color: var(--ink); font: 400 24px/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.od-btn--approve:hover { background: var(--ink); color: var(--lime); }
.od-btn--approve[aria-disabled="true"] { background: #eef1ea; border-style: dashed; border-color: #8c988f; color: #59675d; }
.od-btn--approve[aria-disabled="true"]:hover { background: #e6eae1; color: #59675d; }
.od-principle { margin: 14px 0 4px; font-size: 14px; line-height: 1.6; font-weight: 700; }
.od-stamp { position: absolute; z-index: 4; left: 50%; top: 46%; display: grid; justify-items: center; gap: 4px; margin: 0; padding: 12px 30px 10px; border: 3px solid var(--ink); background: var(--lime); color: var(--ink); transform: translate(-50%, -50%) rotate(-5deg); box-shadow: 0 22px 40px -14px #0b17108c; animation: od-stamp .5s cubic-bezier(.2, .9, .3, 1.15) both; pointer-events: none; }
.od-stamp b { font: 400 clamp(40px, 4.4vw, 60px)/1 Anton, Impact, sans-serif; text-transform: uppercase; }
.od-stamp small { font: 400 12px/1.2 var(--od-mono); text-transform: uppercase; letter-spacing: .06em; }
@keyframes od-stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-11deg) scale(1.7); filter: blur(4px); } }

/* 04 — gestionale */
.od-erp-area { margin-top: clamp(40px, 4.5vw, 64px); }
.od-erp-head { max-width: 780px; margin-bottom: 28px; }
.od-erp { background: #fff; color: var(--ink); box-shadow: 0 34px 60px -24px #000000a6, 0 3px 8px #00000040; }
.od-erp .od-file { background: #0b1710; }
.od-erp-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9aa69d transparent; }
.od-erp table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.od-erp th, .od-erp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.od-erp thead th { font: 400 10.5px/1.4 var(--od-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f7f9f5; }
.od-erp tbody th { font: 400 13px/1.4 var(--od-mono); }
.od-erp td:nth-child(5), .od-erp td:nth-child(6) { text-align: right; font-variant-numeric: tabular-nums; }
.od-erp thead th:nth-child(5), .od-erp thead th:nth-child(6) { text-align: right; }
.od-erp tr.is-new > * { background: #eef6c8; animation: od-drop .8s var(--od-out) both; }
.od-new-tag { margin-left: 6px; padding: 3px 6px; background: var(--ink); color: var(--lime); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.od-state { font-size: 12px; padding: 3px 8px; border: 1px solid #b9c3b8; }
.od-erp tr.is-new .od-state { background: var(--ink); color: #fff; border-color: var(--ink); }
@keyframes od-drop { from { opacity: 0; transform: translateY(-22px); background: var(--lime); } 60% { opacity: 1; } }

.od-after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 32px; align-items: start; }
.od-log { background: #fff; color: var(--ink); box-shadow: 0 34px 60px -24px #000000a6, 0 3px 8px #00000040; }
.od-log ol { list-style: none; margin: 0; padding: 4px clamp(20px, 2.4vw, 28px) 10px; }
.od-log-entry { padding: 16px 0; }
.od-log-entry + .od-log-entry { border-top: 1px solid var(--rule); }
.od-log-entry.is-new { animation: od-in .5s var(--od-out) .25s both; }
.od-log-time { margin: 0 0 12px; font-weight: 700; font-size: 16px; }
.od-log dl { margin: 0; display: grid; gap: 8px; }
.od-log dl div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 12px; }
.od-log dt { font: 400 11px/1.9 var(--od-mono); text-transform: uppercase; color: var(--muted); }
.od-log dd { margin: 0; font-size: 14px; line-height: 1.6; }
.od-log dd ul { margin: 0; padding-left: 18px; }

/* Il risultato: un blocco lime pieno, con i numeri grandi */
.od-closing { background: var(--lime); color: var(--ink); padding: clamp(26px, 3vw, 40px); animation: od-in .6s var(--od-out) .4s both; }
.od-closing h4 { margin: 0; font: 400 clamp(30px, 2.8vw, 42px)/1.05 Anton, Impact, sans-serif; text-transform: uppercase; text-wrap: balance; }
.od-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; padding: 22px 0; border-block: 1px solid #0b171033; }
.od-figures div { display: flex; flex-direction: column-reverse; justify-content: start; gap: 8px; }
.od-figures dt { font-size: 13px; line-height: 1.45; color: #2c3a30; }
.od-figures dd { margin: 0; font: 400 clamp(56px, 6vw, 92px)/.9 Anton, Impact, sans-serif; letter-spacing: -.01em; }
.od-figures dd small { margin-left: .12em; font-size: .42em; }
.od-figures div + div dd { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.od-closing > p { margin: 0; font-size: 15px; line-height: 1.75; max-width: 60ch; }
.od-closing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.od-closing .od-btn--primary { margin-top: 0; background: var(--ink); border-color: var(--ink); color: #fff; }
.od-closing .od-btn--primary:hover { background: #fff; color: var(--ink); border-color: #fff; }
.od-closing .od-btn--quiet { min-height: 56px; background: transparent; border-color: var(--ink); }
.od-closing .od-btn--quiet:hover { background: var(--ink); color: var(--lime); }
.od-closing .od-btn:focus-visible { outline-color: var(--ink); }

.od-real { border-bottom: 1px solid var(--rule); }
.od-faq { border-bottom: 0; }

@media (max-width: 1100px) {
  .od-demo-head { grid-template-columns: 1fr; }
  .od-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .od-after { grid-template-columns: 1fr; }
  .od-readlog { columns: 1; }
}

@media (max-width: 860px) {
  .od-intro { grid-template-columns: 1fr; gap: 22px; }
  .od-stage { grid-template-columns: 1fr; }
  .od-doc-col { position: static; }
  /* Su telefono prima si sceglie e si controlla, poi si guarda il documento; durante la lettura il documento sta sopra. */
  .od-demo:is([data-step="1"], [data-step="3"]) .od-panel { order: -1; }
  .od-readlog { columns: 2; }
}

@media (max-width: 760px) {
  .od-page h1 { font-size: clamp(40px, 12vw, 64px); }
  .od-hero { padding-bottom: 36px; }
  .od-intro { margin-top: 22px; }
  .od-intro p { font-size: 16px; }
  .od-demo { padding-block: 44px 52px; }
  .od-demo-head h2 { font-size: clamp(38px, 11vw, 54px); }
  .od-steps { gap: 6px; }
  .od-step-n { font-size: 30px; }
  .od-steps li:not([aria-current]) .od-step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .od-stage { margin-top: 30px; gap: 30px; }
  .od-demo[data-step="3"] .od-panel { margin-inline: -8px; }
  .od-sheet-body { padding: 22px 16px; }
  .od-paper { padding: 6cqi 5.5cqi; }
  .od-choice { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; }
  .od-choice-icon { width: 44px; height: 44px; }
  .od-count strong { font-size: 76px; }
  .od-readlog { columns: 1; }
  .od-field { grid-template-columns: minmax(0, 1fr) auto; }
  .od-field-main { grid-column: 1 / -1; }
  .od-field .od-conf { grid-column: 1; }
  .od-field .od-edit { grid-column: 2; justify-self: end; }
  .od-field:not(:has(.od-conf)) .od-field-main { grid-column: 1; }
  .od-field:not(:has(.od-conf)) .od-edit { grid-column: 2; grid-row: 1; }
  .od-line { padding-inline: 12px; }
  .od-log dl div { grid-template-columns: 1fr; gap: 0; }
  .od-figures dd { font-size: 54px; }
  .od-btn--primary, .od-closing-actions .od-btn { width: 100%; justify-content: center; }
  .od-flag-actions .od-btn { flex: 1 1 100%; justify-content: flex-start; }
  .od-btn--approve { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .od-scan { display: none; }
}
