/* Opzioni fiscali (29/10/2026, mockup approvato): identità della Vetrina (blu notte + oro), un solo foglio per le pagine del modulo. */
.op, .op-modulo {
    --notte: #17233A; --blu: #2D3F55; --oro: #C5A059; --oro-scuro: #8E6A26; --oro-chiaro: #F4EBDA; --oro-velo: #FAF6EE;
    --su-notte: #E9EEF5; --su-notte-2: #A9B6C8;
    --carta: #FFFFFF; --fondo: #EEF0F3; --inchiostro: #1B2533; --tenue: #66727F; --linea: #DDE2E8; --riga: #EEF0F3;
    --ok: #2E7D5B; --ok-f: #E7F1EC; --ko: #C8443F; --ko-f: #FBE5E3; --ko-scuro: #8F2F2B;
    --display: "Bodoni Moda", "Bodoni 72", "Didot", "Book Antiqua", Georgia, serif;
    color: var(--inchiostro); font-size: 15px;
}
.op { display: flex; flex-direction: column; gap: 18px; }
.op svg, .op-modulo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- testata ---------- */
.op-testa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 6px; }
.op-etichetta { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-scuro); }
.op-etichetta a { color: inherit; text-decoration: none; }
.op-etichetta a:hover { text-decoration: underline; }
.op-etichetta.oro { color: var(--oro); }
.op-h1 { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; margin: 6px 0 0; letter-spacing: -.01em; }
.op-h1 em { color: var(--oro-scuro); }
.op-sotto { color: var(--tenue); margin: 6px 0 0; max-width: 72ch; }
.op-azioni { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- pulsanti, campi, avvisi ---------- */
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14px;
    font-family: inherit; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 40px; box-sizing: border-box;
    transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.op-btn:hover:not(:disabled) { transform: translateY(-1px); }
.op-btn:disabled { opacity: .5; cursor: default; }
.op-btn.notte { background: var(--notte); color: #fff; }
.op-btn.notte:hover:not(:disabled) { background: var(--blu); }
.op-btn.oro { background: var(--oro); color: var(--notte); font-weight: 700; box-shadow: 0 6px 18px rgba(197,160,89,.32); }
.op-btn.chiaro { background: var(--carta); border-color: var(--linea); color: var(--inchiostro); }
.op-btn.chiaro:hover:not(:disabled) { border-color: var(--oro); }
.op-btn.rosso { background: var(--ko); color: #fff; }
.op-btn.mini { padding: 4px 12px; font-size: 12.5px; min-height: 30px; }
.op-btn:focus-visible, .op-filtro:focus-visible, .op-cella:focus-visible, .op-tipo:focus-visible, .op-link:focus-visible, .op-x:focus-visible,
.op-req-chip:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.op-link { background: none; border: 0; padding: 0; font: inherit; color: var(--oro-scuro); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.op-link.forte { color: var(--inchiostro); font-weight: 700; text-decoration: none; text-align: left; }
.op-link.forte:hover { color: var(--oro-scuro); text-decoration: underline; }
.op-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--linea); background: var(--carta); color: var(--tenue); display: inline-flex;
    align-items: center; justify-content: center; cursor: pointer; flex: none; }
.op-x:hover { color: var(--ko); border-color: var(--ko); }
.op-x.mini { width: 28px; height: 28px; border-radius: 8px; }
.op-x.mini svg { width: 13px; height: 13px; }
.op-input { font: inherit; font-size: 14px; color: var(--inchiostro); background: var(--carta); border: 1px solid var(--linea); border-radius: 10px;
    padding: 8px 11px; min-height: 40px; box-sizing: border-box; width: 100%; }
.op-input:focus { outline: 2px solid var(--oro); outline-offset: 0; border-color: var(--oro); }
.op-input.tondo { border-radius: 999px; width: auto; padding: 0 14px; height: 40px; }
.op-input.mini { min-height: 32px; padding: 4px 8px; font-size: 13px; width: auto; border-radius: 8px; }
textarea.op-input { resize: vertical; min-height: 64px; }
.op-avviso { padding: 10px 14px; border-radius: 12px; font-size: 14px; animation: op-entra .25s ease-out; }
.op-avviso.ko { background: var(--ko-f); color: var(--ko-scuro); }
.op-avviso.ok { background: var(--ok-f); color: var(--ok); }
@keyframes op-entra { from { opacity: 0; transform: translateY(-4px); } }
.op-nota { color: var(--tenue); font-size: 13px; margin: 0; }
.op-tenue { color: var(--tenue); }
.op-rosso { color: var(--ko); font-weight: 700; }
.op-spazio { flex: 1; }
.op-nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.op-spunta { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #4A5666; cursor: pointer; }
.op-spunta input { width: 16px; height: 16px; accent-color: var(--notte); }
.op-conferma { font-size: 13px; font-weight: 600; color: var(--ko-scuro); }
.op-cestino:hover { background: var(--ko-f); }
.op-fine .op-conferma { display: inline-block; margin-right: 6px; white-space: normal; max-width: 220px; text-align: right; vertical-align: middle; }
.op-elimina { color: var(--ko-scuro); border-color: #F1C4C0 !important; }
.op-elimina:hover:not(:disabled) { background: var(--ko-f); border-color: var(--ko) !important; }
.op-matita { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--oro-scuro);
    border: 1px solid #E8D6B0; border-radius: 999px; padding: 1px 7px; vertical-align: 2px; }
.op-link.forte:hover .op-matita { background: var(--oro-chiaro); }

/* ---------- pannelli ---------- */
.op-pannello { background: var(--carta); border: 1px solid var(--linea); border-radius: 16px; position: relative; }
.op-card { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.op-card-testa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.op-card-testa h2 { margin: 0; font-size: 16px; color: var(--notte); }
.op-card-testa > span { font-size: 12.5px; color: var(--tenue); }
.op-vuoto { padding: 42px 24px; text-align: center; color: var(--tenue); display: grid; justify-items: center; gap: 10px; }
.op-vuoto svg { width: 34px; height: 34px; color: var(--oro); }
.op-vuoto h2 { font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--inchiostro); margin: 4px 0 0; }
.op-vuoto p { margin: 0; max-width: 60ch; }
.op-rotella { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--oro); animation: op-gira .8s linear infinite; }
@keyframes op-gira { to { transform: rotate(360deg); } }
/* position: relative tiene dentro il riquadro i testi nascosti per lo screen reader (niente scorrimento orizzontale su telefono) */
.op-scorri { overflow-x: auto; position: relative; }

/* ---------- cruscotto: prossima finestra ---------- */
.op-finestra { background: var(--notte); color: var(--su-notte); border-radius: 20px; padding: 24px 28px; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; position: relative; overflow: hidden; animation: op-entra .35s ease-out; }
.op-finestra::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(197,160,89,.22), transparent 70%); pointer-events: none; }
.op-finestra h2 { margin: 8px 0 4px; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); color: #fff; }
.op-finestra p { margin: 14px 0 0; color: var(--su-notte-2); font-size: 14px; line-height: 1.5; }
.op-finestra p b { color: var(--su-notte); }
.op-chip-notte { display: inline-flex; margin-top: 6px; background: rgba(197,160,89,.18); color: var(--oro-chiaro); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.op-fin-numeri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: center; position: relative; z-index: 1; }
.op-fin-numeri button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px; color: inherit;
    display: grid; gap: 2px; transition: background .15s, transform .15s, border-color .15s; font: inherit; text-align: left; cursor: pointer; }
.op-fin-numeri button:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.op-fin-numeri button.on { border-color: var(--oro); background: rgba(197,160,89,.16); }
.op-fin-numeri button:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }
.op-fin-numeri small { font-size: 12px; color: var(--su-notte-2); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.op-fin-numeri b { font-family: var(--display); font-size: 40px; font-weight: 500; color: #fff; line-height: 1.1; }
.op-fin-numeri span { font-size: 13px; }

/* ---------- cruscotto: linea delle finestre ---------- */
.op-linea { padding: 18px 22px; }
.op-linea ol { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.op-linea li { position: relative; padding: 24px 16px 0 0; border-top: 3px solid var(--linea); font-size: 13px; color: #4A5666; }
.op-linea li b { display: block; font-size: 14.5px; color: var(--inchiostro); margin-bottom: 3px; }
.op-linea li.prima { border-top-color: var(--oro); }
.op-punto { position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--carta); border: 2px solid var(--notte); box-sizing: border-box; }
.op-linea li.prima .op-punto { background: var(--oro); border-color: var(--oro); box-shadow: 0 0 0 4px var(--oro-chiaro); }

/* ---------- cruscotto: famiglie ---------- */
.op-famiglie { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.op-fam { background: var(--carta); border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px 16px; position: relative; overflow: hidden;
    text-decoration: none; color: inherit; display: grid; gap: 2px; transition: transform .15s, box-shadow .15s; }
.op-fam:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,35,58,.08); }
.op-fam::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c, var(--blu)); }
.op-fam small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--tenue); }
.op-fam b { font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.15; }
.op-fam span { font-size: 12.5px; color: #4A5666; }
.op-fam.tra, .op-pill.tra { --c: #2D3F55; --cf: #E9EDF2; }
.op-fam.con, .op-pill.con { --c: #5B4A9C; --cf: #ECE8F7; }
.op-fam.cpb, .op-pill.cpb { --c: #A06A0A; --cf: #F4EBDA; }
.op-fam.iva, .op-pill.iva { --c: #3D6FA8; --cf: #E6EEF7; }
.op-fam.irap, .op-pill.irap { --c: #1F6B42; --cf: #E3F3EA; }
.op-fam.forf, .op-pill.forf { --c: #8F2F2B; --cf: #FBE5E3; }
.op-pill { display: inline-block; background: var(--cf); color: var(--c); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* ---------- filtri e tabelle ---------- */
.op-dg { overflow: hidden; }
.op-dg > .op-card-testa { padding: 14px 22px; border-bottom: 1px solid var(--riga); }
.op-filtri { display: flex; flex-wrap: wrap; gap: 6px; }
.op-filtro { border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; background: var(--carta); color: var(--inchiostro); border: 1px solid var(--linea);
    cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-family: inherit; }
.op-filtro span { color: var(--tenue); font-weight: 700; }
.op-filtro.on { background: var(--notte); color: var(--su-notte); border-color: var(--notte); }
.op-filtro.on span { color: var(--oro); }
.op-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.op-tab th { text-align: left; color: var(--tenue); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; padding: 10px; white-space: nowrap; }
.op-tab th:first-child, .op-tab td:first-child { padding-left: 22px; }
.op-tab td { padding: 11px 10px; border-top: 1px solid var(--riga); vertical-align: middle; }
.op-tab tbody tr { transition: background .12s; }
.op-tab tbody tr:hover { background: var(--oro-velo); }
.op-cliente { font-weight: 700; color: var(--inchiostro); text-decoration: none; }
.op-cliente:hover { color: var(--oro-scuro); text-decoration: underline; }
.op-tab td small { display: block; color: var(--tenue); font-size: 12px; }
/* intestazioni ordinabili di «Da guardare» (come l'elenco della to-do) */
.op-ord { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; }
.op-ord span { font-size: 10px; color: #A3ADB8; letter-spacing: 0; }
.op-ord:hover, .op-ord.on { color: var(--inchiostro); }
.op-ord.on span { color: var(--oro-scuro); }
.op-ord:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

/* ---------- matrice ---------- */
.op-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.op-cerca { display: inline-flex; align-items: center; gap: 8px; background: var(--carta); border: 1px solid var(--linea); border-radius: 999px; padding: 0 14px;
    height: 40px; min-width: 280px; box-sizing: border-box; color: var(--tenue); }
.op-cerca input { border: 0; outline: 0; font: inherit; font-size: 14px; flex: 1; min-width: 0; background: transparent; }
.op-cerca:focus-within { border-color: var(--oro); }
.op-mat { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.op-mat thead th { background: var(--notte); color: var(--su-notte); padding: 10px 4px; font-size: 11.5px; font-weight: 700; line-height: 1.25; text-align: center;
    position: sticky; top: 0; z-index: 1; }
.op-mat thead th span { display: block; color: var(--oro); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.op-mat thead th.op-mat-cl { text-align: left; padding-left: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.op-mat thead th.op-mat-cl span { display: inline; margin-left: 6px; }
.op-mat tbody th.op-mat-cl { text-align: left; padding: 10px 16px; font-weight: 600; min-width: 210px; position: sticky; left: 0; background: var(--carta); }
.op-mat tbody th.op-mat-cl a { color: var(--inchiostro); text-decoration: none; }
.op-mat tbody th.op-mat-cl a:hover { color: var(--oro-scuro); text-decoration: underline; }
.op-mat tbody th small { display: block; font-size: 12px; color: var(--tenue); font-weight: 400; }
.op-mat tbody tr { border-top: 1px solid var(--riga); }
.op-mat tbody tr:hover th, .op-mat tbody tr:hover td { background: var(--oro-velo); }
.op-mat td { padding: 7px 4px; text-align: center; }
.op-mat td.evid { background: var(--oro-velo); }
.op-mat thead th.evid { box-shadow: inset 0 -3px 0 var(--oro); }
.op-cella { display: inline-block; min-width: 58px; border-radius: 8px; padding: 4px 6px; font-size: 12px; font-weight: 700; font-family: inherit; font-style: normal;
    border: 1px solid transparent; background: none; line-height: 1.3; white-space: nowrap; }
button.op-cella { cursor: pointer; transition: transform .12s, box-shadow .12s; }
button.op-cella:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(23,35,58,.12); }
.op-cella.on { background: var(--notte); color: var(--oro-chiaro); }
.op-cella.dec { background: var(--oro-chiaro); color: #5E4718; }
.op-cella.att { background: var(--ko-f); color: var(--ko-scuro); }
.op-cella.pos { border: 1.5px dashed #C9D0D9; color: var(--tenue); font-weight: 500; }
.op-cella.pos:hover { border-color: var(--oro); color: var(--oro-scuro); }
.op-cella.rev { color: #A3ADB8; text-decoration: line-through; font-weight: 500; }
.op-cella.na { color: #C9D0D9; font-weight: 400; }
.op-legenda { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: #4A5666; align-items: center; }
.op-legenda span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- scheda: linea del tempo ---------- */
.op-tempo { --anni: 7; display: grid; grid-template-columns: 220px repeat(var(--anni), minmax(84px, 1fr)); position: relative; font-size: 13px; min-width: 820px; }
.op-tempo-anni, .op-tempo-riga { display: contents; }
.op-tempo-anni > div { text-align: center; color: var(--tenue); font-weight: 700; padding-bottom: 8px; }
.op-tempo-anni > div.oggi { color: var(--notte); font-weight: 800; }
.op-tempo-nome { padding: 10px 8px 10px 0; border-top: 1px solid var(--riga); grid-column: 1; display: grid; gap: 2px; }
.op-tempo-nome small { font-size: 12px; color: var(--tenue); }
.op-tratto { border-top: 1px solid var(--riga); padding: 12px 3px; display: flex; align-items: center; min-width: 0; }
.op-tratto span { flex: 1; min-width: 0; height: 30px; border-radius: 9px; display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; animation: op-cresce .4s ease-out both; transform-origin: left; }
@keyframes op-cresce { from { transform: scaleX(.6); opacity: 0; } }
.op-tratto.vin span { background: var(--notte); color: var(--oro-chiaro); }
.op-tratto.tac span { border: 2px dashed var(--blu); color: var(--blu); font-weight: 600; }
.op-tratto.app span { background: #E6EEF7; color: #2D4F78; font-weight: 600; }
.op-tratto.dec span { background: var(--oro-chiaro); color: #5E4718; border: 1.5px solid var(--oro); }
.op-tratto.nos span { color: #8892A0; text-decoration: line-through; border: 1px solid var(--linea); font-weight: 500; }
.op-tratto.pos span { border: 1.5px dashed #C9D0D9; color: var(--tenue); font-weight: 400; white-space: normal; height: auto; min-height: 28px; padding: 4px 12px; gap: 6px; flex-wrap: wrap; }
.op-tempo-oggi { position: absolute; top: 26px; bottom: 0; width: 2px; background: var(--ko); opacity: .5; pointer-events: none;
    left: calc(220px + (100% - 220px) * (var(--col) + var(--gg) / 366) / var(--anni)); }

/* ---------- scheda: requisiti e comunicazioni ---------- */
.op-colonne { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.op-req { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.op-req li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.op-req-ico { width: 24px; height: 24px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
    font-weight: 700; background: #B8C0CA; }
.op-req li.ok .op-req-ico { background: var(--ok); }
.op-req li.ko .op-req-ico { background: var(--ko); }
.op-req li.scaduto .op-req-ico { background: #C98A12; }
.op-req-testo small { display: block; font-size: 12px; color: var(--tenue); }
.op-req li.ko .op-req-testo small { color: var(--ko-scuro); font-weight: 600; }
.op-req-btn { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.op-ev-nuovo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; }
.op-ev-nuovo textarea { grid-column: 1 / -1; }
.op-ev-nuovo .op-btn { grid-column: 2; justify-self: end; }
.op-ev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.op-ev li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--riga); font-size: 13.5px; }
.op-ev li.nuovo { animation: op-luce 1.6s ease-out; }
@keyframes op-luce { from { background: var(--oro-chiaro); } }
.op-ev li > b { color: var(--oro-scuro); }
.op-ev li > div { display: grid; gap: 4px; min-width: 0; }
.op-ev li small { color: var(--tenue); font-size: 12px; }
.op-file { display: inline-flex; gap: 6px; align-items: baseline; color: var(--inchiostro); font-weight: 600; text-decoration: none; background: var(--fondo);
    border-radius: 8px; padding: 4px 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; justify-self: start; }
.op-file:hover { color: var(--oro-scuro); text-decoration: underline; }
.op-file i { font-style: normal; color: var(--tenue); font-size: 11.5px; font-weight: 400; }
.op-ev-az { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.op-allega { position: relative; display: inline-flex; align-items: center; border: 1px dashed var(--oro); color: var(--oro-scuro); border-radius: 999px; padding: 3px 12px;
    font-size: 12.5px; font-weight: 600; cursor: pointer; overflow: hidden; }
.op-allega:hover { background: var(--oro-velo); }
.op-allega.carico { opacity: .6; }
.op-allega input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ---------- campagna del concordato ---------- */
.op-conto { display: flex; align-items: center; gap: 12px; background: var(--notte); color: var(--su-notte); border-radius: 16px; padding: 12px 18px; }
.op-conto b { font-family: var(--display); font-size: 40px; font-weight: 500; color: #fff; line-height: 1; }
.op-conto span { font-size: 13px; line-height: 1.35; }
.op-conto.vicino b { color: #F3B9A6; }
.op-conto.passato { background: var(--fondo); color: var(--tenue); border: 1px solid var(--linea); }
.op-conto.passato b { color: var(--tenue); }
.op-crea-campi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.op-crea-campi .largo { grid-column: span 2; }
.op-crea .op-piede-btn { justify-content: flex-end; }
.op-avanz { padding: 18px 22px; display: grid; gap: 12px; }
.op-avanz-testa { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.op-avanz-testa b { font-size: 16px; color: var(--notte); }
.op-avanz-testa span { font-size: 13px; color: var(--tenue); }
.op-avanz-barra { height: 10px; border-radius: 999px; background: var(--fondo); display: flex; overflow: hidden; }
.op-avanz-barra span { height: 100%; transition: width .5s ease-out; }
.op-avanz-barra .si { background: var(--ok); }
.op-avanz-barra .no { background: #A3ADB8; }
.op-passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.op-passi li { background: var(--oro-velo); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #4A5666; }
.op-passi small { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--oro-scuro); }
.op-passi b { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--notte); margin-right: 4px; }
.op-aggiungi { padding: 12px 22px; border-bottom: 1px solid var(--riga); display: grid; gap: 8px; }
.op-camp td { padding: 8px 8px; }
.op-reqs { white-space: nowrap; }
.op-req-chip { border: 1px solid var(--linea); background: var(--carta); color: var(--tenue); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600;
    cursor: pointer; margin-right: 4px; font-family: inherit; }
.op-req-chip.ok { background: var(--ok-f); color: var(--ok); border-color: #BFDCCD; }
.op-req-chip.ok::before { content: "✓ "; }
.op-req-chip.ko { background: var(--ko-f); color: var(--ko-scuro); border-color: #F1C4C0; }
.op-req-chip.ko::before { content: "✕ "; }
select.val-Conviene, select.dec-Aderisce { background: var(--ok-f); color: #1E4D38; border-color: #BFDCCD; }
select.val-NonConviene, select.dec-NonAderisce { background: var(--fondo); color: #4A5666; }
select.dec-AttendeCliente, select.dec-DaDecidere { background: var(--oro-chiaro); color: #5E4718; border-color: #E8D6B0; }
.op-fine { text-align: right; white-space: nowrap; }

/* ---------- ricerca clienti (nuova opzione, campagna) ---------- */
.op-trovati { display: grid; gap: 4px; }
.op-trovati button { display: flex; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid var(--linea); background: var(--carta); border-radius: 10px;
    padding: 8px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.op-trovati button:hover { border-color: var(--oro); background: var(--oro-velo); }
.op-trovati span { color: var(--tenue); font-size: 12.5px; white-space: nowrap; }

/* ---------- modulo «Nuova opzione» al centro ---------- */
/* sopra le fasce TEST/impersonazione (z-index 9998-9999), come il menu su telefono */
.op-velo { position: fixed; inset: 0; background: rgba(15,22,36,.45); z-index: 10000; animation: op-velo .2s ease-out; }
@keyframes op-velo { from { opacity: 0; } }
.op-modulo { position: fixed; z-index: 10001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 40px);
    background: var(--carta); border-radius: 20px; box-shadow: 0 30px 80px rgba(15,22,36,.35); display: flex; flex-direction: column; overflow: hidden;
    animation: op-sale .25s ease-out; }
@keyframes op-sale { from { opacity: 0; transform: translate(-50%, -46%); } }
.op-modulo-testa { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 26px 14px; border-bottom: 1px solid var(--riga); }
.op-modulo-testa h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--notte); }
.op-modulo-corpo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); overflow: auto; flex: 1; }
.op-modulo-sx { padding: 18px 26px; display: flex; flex-direction: column; gap: 14px; }
.op-modulo-dx { padding: 18px 24px; background: var(--fondo); display: flex; flex-direction: column; gap: 10px; }
.op-campo { display: grid; gap: 6px; }
.op-lab { font-size: 12.5px; font-weight: 700; color: #4A5666; }
.op-lab small { font-weight: 400; color: var(--tenue); }
.op-due { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.op-scelto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--oro-velo); border: 1px solid #EADFC8; border-radius: 12px; padding: 10px 14px; }
.op-scelto b { font-size: 15px; }
.op-scelto span { font-size: 12.5px; color: var(--tenue); }
.op-tipi { display: flex; flex-wrap: wrap; gap: 6px; }
.op-tipo { border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; background: var(--carta); color: var(--inchiostro);
    border: 1px solid var(--linea); transition: background .15s, box-shadow .15s; }
.op-tipo:hover:not(:disabled) { border-color: var(--oro); }
.op-tipo.on { background: var(--notte); color: var(--oro-chiaro); border-color: var(--notte); box-shadow: 0 4px 12px rgba(23,35,58,.22); }
.op-tipo:disabled:not(.on) { background: #F7F8FA; color: #A3ADB8; border-style: dashed; cursor: not-allowed; }
.op-ant-t { font-family: var(--display); font-size: 22px; color: var(--notte); }
.op-ant-chi { font-size: 13px; color: var(--tenue); margin-top: -6px; }
.op-ant-anni { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.op-ant-anni div { display: grid; gap: 4px; text-align: center; font-size: 11.5px; color: var(--tenue); font-weight: 700; }
.op-ant-anni i { height: 26px; border-radius: 7px; background: #E2E6EB; display: block; }
.op-ant-anni i.vin { background: var(--notte); }
.op-ant-anni i.tac { background: transparent; border: 2px dashed var(--blu); box-sizing: border-box; }
.op-ant-anni i.app { background: #C9D9EC; }
.op-ant-anni i.dec { background: var(--oro-chiaro); border: 1.5px solid var(--oro); box-sizing: border-box; }
.op-ant-anni i.nos { background: transparent; border: 1px solid var(--linea); }
.op-ant-dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 10px; margin: 4px 0; font-size: 13px; }
.op-ant-dl dt { color: var(--tenue); font-weight: 700; }
.op-ant-dl dd { margin: 0; }
.op-ant-req { margin: 0; padding-left: 18px; font-size: 13px; display: grid; gap: 4px; }
.op-nota.chiara { font-size: 12px; }
.op-modulo-piede { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 26px; border-top: 1px solid var(--riga); }
.op-err { color: var(--ko-scuro); font-weight: 600; font-size: 13.5px; }
.op-piede-btn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-left: auto; }

/* ---------- schermi stretti e telefono ---------- */
@media (max-width: 1100px) {
    .op-famiglie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .op-finestra { grid-template-columns: 1fr; }
    .op-colonne { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .op-linea ol { grid-template-columns: 1fr 1fr; row-gap: 18px; }
    .op-modulo-corpo { grid-template-columns: 1fr; }
    .op-passi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .op-famiglie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .op-fin-numeri { grid-template-columns: 1fr; }
    .op-finestra { padding: 20px; }
    .op-cerca { min-width: 0; width: 100%; }
    .op-due { grid-template-columns: 1fr; }
    .op-ev-nuovo { grid-template-columns: 1fr; }
    .op-ev-nuovo .op-btn { grid-column: 1; }
    .op-crea-campi .largo { grid-column: auto; }
    .op-modulo { width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
    .op-tab th:first-child, .op-tab td:first-child { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .op *, .op-modulo, .op-velo { animation: none !important; transition: none !important; }
}
