/* LavoroFisco - Calcolatore quote ereditarie | CSS isolato, senza librerie */
.lfqe,.lfqe *{box-sizing:border-box}.lfqe{--lfqe-a:#174ea6;--lfqe-b:#1f6feb;--lfqe-c:#245fc6;--lfqe-ink:#182235;--lfqe-text:#304560;--lfqe-muted:#667085;--lfqe-line:#d9e3ef;--lfqe-soft:#f5f8fc;display:block;width:100%;max-width:1200px;min-width:0;margin:28px auto;overflow:hidden;color:var(--lfqe-ink);background:#f5f8fc;border:1px solid var(--lfqe-line);border-radius:24px;box-shadow:0 24px 65px #0f17231a;font-family:inherit;font-size:15px;line-height:1.55;isolation:isolate;text-align:left}.lfqe [hidden]{display:none!important}.lfqe h2,.lfqe h3,.lfqe h4,.lfqe p{margin:0;padding:0;line-height:1.4}.lfqe button,.lfqe input,.lfqe select{font:inherit}.lfqe button{cursor:pointer;text-transform:none!important;letter-spacing:normal!important;-webkit-tap-highlight-color:transparent}.lfqe button::before,.lfqe button::after,.lfqe h2::before,.lfqe h3::before,.lfqe h4::before,.lfqe h2::after,.lfqe h3::after,.lfqe h4::after{content:none!important;display:none!important}.lfqe button:focus-visible,.lfqe input:focus-visible,.lfqe select:focus-visible{outline:3px solid #83b4ff;outline-offset:2px}.lfqe .lfqe-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:center;gap:30px;overflow:hidden;padding:38px 40px;color:#fff;background:radial-gradient(circle at 80% 12%,#ffffff2e,transparent 27%),radial-gradient(circle at 4% 112%,#93c5fd3d,transparent 34%),linear-gradient(128deg,var(--lfqe-a),var(--lfqe-b) 56%,var(--lfqe-c))}.lfqe .lfqe-hero:before{content:"";position:absolute;inset:-140px auto auto -130px;width:440px;height:240px;transform:rotate(30deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.13),transparent);pointer-events:none}/* Riflesso satinato della card blu: solo CSS, nessuna dipendenza o listener. */
.lfqe .lfqe-hero::after{content:"";position:absolute;z-index:0;top:-45%;bottom:-45%;left:-50%;width:45%;pointer-events:none;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.035) 24%,rgba(255,255,255,.17) 48%,rgba(255,255,255,.07) 68%,transparent 100%);transform:translate3d(0,0,0) skewX(-20deg);animation:lfqe-hero-shine 8.5s ease-in-out infinite}
@keyframes lfqe-hero-shine{0%,12%{transform:translate3d(0,0,0) skewX(-20deg)}42%,100%{transform:translate3d(400%,0,0) skewX(-20deg)}}
@media(prefers-reduced-motion:reduce){.lfqe .lfqe-hero::after{animation:none;display:none}}
.lfqe-hero-content{position:relative;z-index:2;flex:1 1 auto;min-width:0;padding-right:0}.lfqe .lfqe-hero h2{color:#fff;font-family:inherit!important;font-size:clamp(29px,3.5vw,44px)!important;line-height:1.12;letter-spacing:-.035em;font-weight:850;margin:0 0 10px}.lfqe .lfqe-hero p{font-family:inherit!important;font-weight:400!important;letter-spacing:normal!important;color:#e6efff!important;font-size:16px!important;line-height:1.65!important;max-width:none!important;width:100%!important;margin:0!important;display:block!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;-webkit-line-clamp:unset!important;-webkit-box-orient:initial!important}.lfqe-hero-art{position:relative;z-index:1;display:block;width:210px;height:auto;max-width:100%;filter:drop-shadow(0 15px 20px #082b6045);animation:none}.lfqe-body{padding:30px;min-width:0}.lfqe-form{display:grid;gap:18px;padding:26px;background:#fff;border:1px solid var(--lfqe-line);border-radius:18px;box-shadow:0 10px 26px #133a5f0a}.lfqe-panel{padding:20px 21px 21px;border:1px solid #e3eaf3;border-radius:14px;background:#fff;min-width:0}.lfqe-section-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}.lfqe .lfqe-section-head h3{font-family:inherit!important;font-size:17px!important;font-weight:750!important;line-height:1.3!important;letter-spacing:-.014em!important;color:var(--lfqe-ink);margin:0!important}.lfqe .lfqe-section-head p{font-family:inherit!important;font-size:12.5px!important;font-weight:400!important;line-height:1.45!important;letter-spacing:normal!important;color:var(--lfqe-muted);margin:4px 0 0!important}.lfqe-step{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:10px;background:#eaf2ff;color:var(--lfqe-a);font-weight:800;font-size:14px}.lfqe-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lfqe-choice{display:flex;align-items:center;gap:11px;border:1.5px solid #dbe5f2;border-radius:11px;padding:15px 14px;background:#fff;cursor:pointer;transition:border-color .16s,background .16s}.lfqe-choice:has(input:checked){border-color:var(--lfqe-b);background:#f0f6ff;box-shadow:inset 0 0 0 .5px var(--lfqe-b)}.lfqe-choice input{accent-color:var(--lfqe-a);width:18px;height:18px;flex:0 0 auto;margin:0}.lfqe-choice span{display:grid;gap:1px}.lfqe-choice strong{font-size:14px;color:#1a3452;font-weight:700}.lfqe-choice small{font-size:12px;color:var(--lfqe-muted);line-height:1.45}.lfqe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.lfqe-field{position:relative;min-width:0;display:flex;flex-direction:column;gap:7px}.lfqe .lfqe-field>label,.lfqe-dynamic-field>label{font-weight:780;color:var(--lfqe-ink);font-size:14px;line-height:1.4}.lfqe .lfqe-field select,.lfqe .lfqe-field input,.lfqe-dynamic-field select{width:100%;background:#fff;color:var(--lfqe-ink);border:1px solid #c9d5e3;border-radius:10px;min-height:49px;padding:10px 12px;outline:none;transition:border-color .18s,box-shadow .18s;appearance:auto;margin:0!important;font-size:16px;line-height:1.35}.lfqe .lfqe-field select:hover,.lfqe .lfqe-field input:hover,.lfqe-dynamic-field select:hover{border-color:#9cbde9}.lfqe .lfqe-field select:focus,.lfqe .lfqe-field input:focus,.lfqe-dynamic-field select:focus{border-color:var(--lfqe-b);box-shadow:0 0 0 3px rgba(31,111,235,.13)}.lfqe .lfqe-field:has(.lfqe-help)>label{padding-right:36px}/* Info: ripristino del piccolo pulsante circolare e del riquadro originario. */
.lfqe-branches{display:grid;gap:10px;margin-top:15px}.lfqe-branch{border:1px solid #e0e9f5;border-radius:11px;padding:14px;background:#f8fbff}.lfqe-branch-title{font-size:13.5px;font-weight:750;color:#1d548f;margin-bottom:10px}.lfqe-branch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.lfqe-dynamic-field{display:flex;flex-direction:column;gap:7px;min-width:0}.lfqe-later{margin-top:18px;padding-top:17px;border-top:1px solid #ecf0f7}.lfqe-subhead{font-size:12px;letter-spacing:.02em;font-weight:750;color:#67809b;margin-bottom:13px}.lfqe-other{margin-top:14px;max-width:480px}.lfqe-optional{font-size:11px;font-weight:600;color:#6e819a;background:#f1f4f9;padding:4px 8px;border-radius:20px;vertical-align:middle;margin-left:5px}/* Toggle allineati alla card avanzata del Calcolatore pensione netta. */
.lfqe .lfqe-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px;padding:12px 15px;color:var(--lfqe-ink);background:linear-gradient(135deg,#f7fbff,#eef5ff);border:1px solid #d5e2f0;border-radius:14px;cursor:pointer;list-style:none;user-select:none;transition:border-color .18s,box-shadow .18s}
.lfqe .lfqe-toggle:has(input:checked){border-color:#b9d1f0;box-shadow:0 8px 22px #174ea60d}
.lfqe .lfqe-toggle input[type="checkbox"]{position:absolute;width:1px;height:1px;margin:0;opacity:0;overflow:hidden;clip-path:inset(50%)}
.lfqe .lfqe-toggle-content{display:flex;align-items:center;gap:12px;min-width:0}
.lfqe .lfqe-toggle-icon{display:grid;flex:0 0 40px;width:40px;height:40px;place-items:center;color:var(--lfqe-b);background:#fff;border:1px solid #d5e2f0;border-radius:12px;box-shadow:0 5px 12px #174ea60d}
.lfqe .lfqe-toggle-icon svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.lfqe .lfqe-toggle-copy{display:block;min-width:0;color:var(--lfqe-ink);font-size:14px;font-weight:850;line-height:1.25}
.lfqe .lfqe-switch{position:relative;display:block;flex:0 0 46px;width:46px;height:26px;background:#cbd5e1;border:1px solid #bcc8d7;border-radius:999px;box-shadow:inset 0 1px 2px #0f17231a;transition:background .18s,border-color .18s,box-shadow .18s}
.lfqe .lfqe-switch>span{position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;box-shadow:0 2px 5px #0f172333;transition:transform .18s}
.lfqe .lfqe-toggle input:checked~.lfqe-switch{background:var(--lfqe-b);border-color:var(--lfqe-b);box-shadow:0 0 0 3px #1f6feb12}
.lfqe .lfqe-toggle input:checked~.lfqe-switch>span{transform:translateX(20px)}
.lfqe .lfqe-toggle input:checked~.lfqe-toggle-content .lfqe-toggle-icon{color:#fff;background:linear-gradient(135deg,var(--lfqe-a),var(--lfqe-b));border-color:transparent}
.lfqe .lfqe-toggle:has(input:focus-visible){outline:3px solid #1f6feb2b;outline-offset:2px}
.lfqe-money-panel{margin-top:16px;padding:16px;border-radius:12px;background:var(--lfqe-soft)}.lfqe-donations-toggle{margin-top:18px;margin-bottom:12px}.lfqe-money-panel [data-donations-field]{max-width:440px}/* Pulsanti come nel plugin pensione: solo testo, nessuna icona decorativa. */
.lfqe .lfqe-actions,.lfqe .lfqe-result-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.lfqe .lfqe-button,.lfqe .lfqe-print,.lfqe .lfqe-tools-button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;max-height:none!important;padding:10px 16px!important;border-radius:10px!important;font-family:inherit!important;font-size:inherit!important;line-height:1.35!important;font-weight:820!important;font-style:normal!important;letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;box-shadow:none!important;transition:transform .18s,box-shadow .18s,background .18s;white-space:normal}
.lfqe .lfqe-primary{color:#fff!important;background:linear-gradient(135deg,var(--lfqe-a),var(--lfqe-b))!important;border:1px solid var(--lfqe-b)!important;box-shadow:0 6px 15px #1f6feb26!important}
.lfqe .lfqe-primary:hover{color:#fff!important;transform:translateY(-1px);box-shadow:0 9px 20px #1f6feb33!important}
.lfqe .lfqe-secondary,.lfqe .lfqe-print,.lfqe .lfqe-tools-button{color:#34465d!important;background:#eef3f8!important;border:1px solid #d5e0eb!important}
.lfqe .lfqe-secondary:hover,.lfqe .lfqe-print:hover,.lfqe .lfqe-tools-button:hover{color:#34465d!important;background:#e6edf5!important}
.lfqe .lfqe-button:focus-visible,.lfqe .lfqe-print:focus-visible,.lfqe .lfqe-tools-button:focus-visible{outline:3px solid #1f6feb2b!important;outline-offset:2px}
/* Pulsanti sempre testuali: nessun glifo decorativo aggiunto dal tema Jannah. */
.lfqe .lfqe-actions button,.lfqe .lfqe-result-actions button{position:relative;gap:0!important;text-indent:0!important;text-shadow:none!important;vertical-align:middle!important;min-width:0;overflow:visible}
.lfqe .lfqe-actions button::before,.lfqe .lfqe-actions button::after,.lfqe .lfqe-result-actions button::before,.lfqe .lfqe-result-actions button::after,.lfqe .lfqe-tools-button::before,.lfqe .lfqe-tools-button::after{content:none!important;display:none!important;visibility:hidden!important}
.lfqe .lfqe-actions button svg,.lfqe .lfqe-actions button i{display:none!important}

.lfqe-error{border-radius:10px;background:#fff5f5;border:1px solid #eeb5bd;color:#932932;padding:14px 16px;font-size:14px;margin-top:17px}.lfqe-result{scroll-margin-top:28px;margin-top:20px;padding:26px;border:1px solid #cfe0f3;border-radius:18px;background:#fff;box-shadow:0 10px 26px #133a5f0c}.lfqe-result-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}.lfqe-overline{text-transform:uppercase;font-weight:800;letter-spacing:.08em;color:#2b65a8;font-size:11px}.lfqe-result-heading h3{color:var(--lfqe-ink);font-size:20px;letter-spacing:-.02em;margin-top:4px;font-weight:790}.lfqe-total{background:#edf5ff;border-radius:11px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;margin-bottom:20px;color:#30577f;font-size:13px}.lfqe-total strong{font-size:20px;color:#174ea6;white-space:nowrap}.lfqe-table-wrap{overflow-x:auto;max-width:100%}.lfqe-result-table{margin:0!important;max-width:none;border:0!important;width:100%;border-collapse:collapse;color:var(--lfqe-ink);font-variant-numeric:tabular-nums;font-size:14px;background:transparent}.lfqe-result-table thead{background:#f4f7fc}.lfqe-result-table th,.lfqe-result-table td{border:0;border-bottom:1px solid #e6edf6;text-align:left;padding:12px 12px;vertical-align:middle}.lfqe-result-table th{color:#546b87;font-size:12px;font-weight:700}.lfqe-result-table th:not(:first-child),.lfqe-result-table td:not(:first-child){text-align:right;white-space:nowrap}.lfqe-result-table tr:last-child td{border-bottom:0}.lfqe-row-dot{display:inline-block;vertical-align:middle;width:9px;height:9px;border-radius:50%;margin-right:9px;flex:0 0 auto}.lfqe-explanation{margin-top:18px;padding:16px;display:flex;gap:12px;border-radius:12px;background:#eef5ff}.lfqe-explanation-icon{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#1f6feb;color:#fff;font:700 14px Georgia,serif}.lfqe-explanation h4{font-size:14px;font-weight:750;margin:0 0 4px;color:#204b81}.lfqe-explanation p{color:#375976;font-size:13.5px;line-height:1.6}.lfqe-notes{display:grid;gap:7px;margin-top:15px}.lfqe-notes p{font-size:12.5px;line-height:1.5;color:#60718a;padding-left:14px;position:relative}.lfqe-notes p:before{position:absolute;content:"";left:0;top:.6em;width:5px;height:5px;border-radius:50%;background:#b0c1d5}
@media(max-width:760px){.lfqe{margin:18px auto;border-radius:18px}.lfqe .lfqe-hero{grid-template-columns:minmax(0,1fr) 160px;gap:20px;padding:30px 24px}.lfqe .lfqe-hero-art{display:block;width:160px;height:auto}.lfqe .lfqe-hero h2{font-size:26px}.lfqe-hero-content{max-width:none;padding-right:0}.lfqe-body{padding:20px}.lfqe-form{padding:20px}.lfqe-panel{padding:18px 15px}.lfqe-fields,.lfqe-branch-grid{grid-template-columns:1fr;gap:14px}.lfqe-choice-grid{grid-template-columns:1fr;gap:8px}.lfqe-choice{padding:12px}.lfqe-result{padding:16px 12px}.lfqe-result-heading h3{font-size:18px}.lfqe-result-table th,.lfqe-result-table td{padding:11px 7px}.lfqe-result-table{font-size:12.5px}.lfqe-tooltip{max-width:min(350px,92vw)}}@media(max-width:600px){.lfqe .lfqe-hero{display:block;padding:27px 20px}.lfqe .lfqe-hero-art{display:none}.lfqe .lfqe-hero h2{font-size:30px!important}.lfqe .lfqe-hero p{font-size:14px!important}.lfqe-body{padding:14px}.lfqe-form{padding:16px}.lfqe-panel{padding:16px 14px}.lfqe-fields,.lfqe-branch-grid,.lfqe-choice-grid{grid-template-columns:1fr}.lfqe-toggle{padding:12px 13px;gap:12px}.lfqe-toggle-content{gap:10px}}
@media(max-width:390px){.lfqe .lfqe-hero{padding:23px 18px}.lfqe .lfqe-hero h2{font-size:22px}.lfqe .lfqe-hero p{font-size:14px}.lfqe-body{padding:11px}.lfqe-form{padding:12px}.lfqe-panel{padding:14px 11px}.lfqe-result-heading{align-items:center}.lfqe-total{align-items:flex-start;flex-direction:column}.lfqe-button{flex:1;padding:10px}.lfqe-primary{flex:1.4}}
@media(prefers-reduced-motion:reduce){.lfqe *{transition:none!important;scroll-behavior:auto!important}}

/* Opzioni particolari, espanse solo su richiesta */
.lfqe-special-wrap{border-top:1px solid #ecf0f7;margin-top:19px;padding-top:17px}.lfqe-special-field{max-width:100%;margin-top:14px;margin-bottom:0;gap:9px}.lfqe-special-field select{max-width:100%}

/* Percorso di compilazione: un solo avviso quando servono valutazioni speciali. */
.lfqe .lfqe-guided-warning{margin:18px 0 0!important;padding:12px 14px;border:1px solid #f1d0a4;border-radius:10px;background:#fff9ef;color:#765020;font-size:13px;line-height:1.55}
.lfqe [data-money-panel]{animation:lfqe-reveal .18s ease-out both}
@keyframes lfqe-reveal{from{opacity:.7;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.lfqe [data-money-panel]{animation:none}}

.lfqe .lfqe-rounding{color:#6b7e98;font-size:11.5px;line-height:1.45;margin-top:8px}

/* Testi opzionali e navigazione configurabili dal pannello amministrazione. */
.lfqe .lfqe-custom-note{margin-top:16px;padding:10px 13px;border-left:3px solid #97b8e8;color:#546b86;background:#f7faff;border-radius:0 8px 8px 0;font-size:12.5px;line-height:1.6}
.lfqe .lfqe-tools-nav{display:flex;justify-content:center;padding:18px 0 0}


/* Tipografia coerente anche con gli stili globali del tema Jannah. */
.lfqe .lfqe-section-head>div{min-width:0;flex:1}
.lfqe .lfqe-section-head,.lfqe .lfqe-fields,.lfqe .lfqe-panel{min-width:0}
.lfqe .lfqe-panel p,.lfqe .lfqe-panel small{overflow-wrap:break-word}
.lfqe .lfqe-special-field select{width:100%;margin:0!important}
@media(max-width:760px){.lfqe{margin:0 0 20px}.lfqe .lfqe-section-head h3{font-size:16px!important}.lfqe .lfqe-section-head p{font-size:12px!important}}


/* SVG genealogico: colorazione progressiva lungo i rami, senza JavaScript. */
.lfqe .lfqe-art-draw{stroke-dasharray:1;stroke-dashoffset:1;animation:lfqe-branch-ink 9.6s ease-in-out infinite}
.lfqe .lfqe-art-trunk{animation-delay:0s}
.lfqe .lfqe-art-branch-one{animation-delay:.65s}
.lfqe .lfqe-art-branch-two{animation-delay:1.25s}
.lfqe .lfqe-art-branch-three{animation-delay:1.85s}
@keyframes lfqe-branch-ink{0%,3%{stroke-dashoffset:1;opacity:.15}19%,85%{stroke-dashoffset:0;opacity:1}96%,100%{stroke-dashoffset:1;opacity:.15}}
.lfqe .lfqe-art-heir-highlight{opacity:.05;animation:lfqe-heir-light 9.6s ease-in-out infinite}
.lfqe .lfqe-art-heir-one .lfqe-art-heir-highlight{animation-delay:2.3s}
.lfqe .lfqe-art-heir-two .lfqe-art-heir-highlight{animation-delay:2.85s}
.lfqe .lfqe-art-heir-three .lfqe-art-heir-highlight{animation-delay:3.45s}
@keyframes lfqe-heir-light{0%,5%{opacity:.05}19%,85%{opacity:.36}96%,100%{opacity:.05}}
@media(prefers-reduced-motion:reduce){.lfqe .lfqe-hero-art{animation:none}.lfqe .lfqe-art-draw{animation:none;stroke-dashoffset:0;opacity:1}.lfqe .lfqe-art-heir-highlight{animation:none;opacity:.25}}


/* Coerenza responsive con il Calcolatore pensione netta. */
.lfqe .lfqe-body,.lfqe .lfqe-hero,.lfqe .lfqe-form{min-width:0;width:100%}
.lfqe .lfqe-toggle{width:100%}


/* Comportamento responsive dei pulsanti identico alla pensione. */
@media(max-width:600px){.lfqe .lfqe-actions>*{flex:1 1 145px}.lfqe .lfqe-result-actions>*{flex:1 1 120px}}
@media(prefers-reduced-motion:reduce){.lfqe .lfqe-button,.lfqe .lfqe-print,.lfqe .lfqe-tools-button,.lfqe .lfqe-toggle,.lfqe .lfqe-switch,.lfqe .lfqe-switch>span,.lfqe .lfqe-help{transition:none!important}}

/* Titoli dei risultati isolati dagli stili tipografici generali del tema. */
.lfqe .lfqe-result-heading h3{font-family:inherit!important;font-size:20px!important;font-weight:790!important;line-height:1.25!important;margin:4px 0 0!important;color:var(--lfqe-ink)!important}
.lfqe .lfqe-explanation h4{font-family:inherit!important;font-size:14px!important;line-height:1.35!important;font-weight:750!important;margin:0 0 4px!important;color:#204b81!important}

/* Dimensioni delle icone dei toggle in mobile come nel calcolatore pensione. */
@media(max-width:600px){.lfqe .lfqe-toggle-icon{flex-basis:38px;width:38px;height:38px}}

/* Stampa indipendente dalla struttura del tema WordPress/Jannah.
   Un clone del solo risultato viene inserito direttamente nel body, senza
   limiti di altezza o overflow e può proseguire su più fogli. */
@media screen {
  body > .lfqe-print-portal { display:none!important; }
}
@media print {
  @page { margin:14mm 12mm; }
  html:has(body.lfqe-print-mode), body.lfqe-print-mode {
    height:auto!important;max-height:none!important;
    overflow:visible!important;
  }
  body.lfqe-print-mode {
    margin:0!important;padding:0!important;
    background:#fff!important;
  }
  body.lfqe-print-mode > :not(.lfqe-print-portal) {
    display:none!important;
  }
  body.lfqe-print-mode > .lfqe-print-portal {
    position:static!important;display:block!important;float:none!important;
    width:100%!important;max-width:none!important;min-width:0!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:0!important;overflow:visible!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:#fff!important;isolation:auto!important;
    font-size:12px!important;line-height:1.45!important;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-result {
    display:block!important;position:static!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    margin:0!important;padding:0!important;overflow:visible!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:#fff!important;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-result-actions {display:none!important;}
  body.lfqe-print-mode .lfqe-print-portal .lfqe-table-wrap {
    overflow:visible!important;max-width:none!important;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-result-table {
    width:100%!important;table-layout:auto;
    break-inside:auto;page-break-inside:auto;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-result-table thead {
    display:table-header-group;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-result-table tr {
    break-inside:avoid;page-break-inside:avoid;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-result-heading,
  body.lfqe-print-mode .lfqe-print-portal .lfqe-total,
  body.lfqe-print-mode .lfqe-print-portal .lfqe-chart {
    break-inside:avoid;page-break-inside:avoid;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-explanation,
  body.lfqe-print-mode .lfqe-print-portal .lfqe-advisories,
  body.lfqe-print-mode .lfqe-print-portal .lfqe-notes,
  body.lfqe-print-mode .lfqe-print-portal .lfqe-custom-note {
    break-inside:auto;page-break-inside:auto;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-explanation {
    display:block;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-explanation-icon {
    display:none!important;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-chart,
  body.lfqe-print-mode .lfqe-print-portal .lfqe-row-dot {
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }
  body.lfqe-print-mode .lfqe-print-portal .lfqe-notes p {
    break-inside:avoid;page-break-inside:avoid;
  }
}


/* v1.4.9 - interfaccia coerente con gli strumenti LavoroFisco */
.lfqe .lfqe-hero{grid-template-columns:minmax(0,1fr) minmax(170px,210px);gap:16px}
.lfqe-hero-content{width:100%;max-width:none!important;min-width:0}
.lfqe .lfqe-hero h2{font-size:clamp(28px,3.1vw,40px)!important;overflow-wrap:normal;word-break:normal}
.lfqe .lfqe-hero p{width:100%;max-width:none;font-size:16px!important;font-weight:400!important}
.lfqe .lfqe-hero-art{animation:none!important}
/* Le tre sezioni usano icone contestuali, evitando i numeri decorativi. */
.lfqe-step{width:38px;height:38px;flex:0 0 38px;border-radius:12px}
.lfqe-step svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lfqe-section-head{align-items:center}
/* Icone e nomi dei campi sono affiancati nella stessa riga senza restringimenti. */
.lfqe .lfqe-field{min-width:0}
.lfqe .lfqe-label-row{display:flex;justify-content:flex-start;align-items:center;gap:8px;min-width:0;max-width:100%;margin-bottom:0}
.lfqe .lfqe-label-row>label{margin:0!important;padding:0!important;min-width:0;flex:0 1 auto;color:var(--lfqe-ink);font-weight:780;font-size:14px;line-height:1.4}
/* Icona informativa NASpI: cerchio piccolo, senza influenza sul layout. */
.lfqe .lfqe-help{appearance:none!important;position:static!important;display:inline-grid!important;place-items:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;margin:0!important;padding:0!important;border:1px solid #b9cde5!important;border-radius:50%!important;background:#f0f5fb!important;color:#507396!important;font:750 12px/1 system-ui,sans-serif!important;text-align:center!important;box-shadow:none!important;transform:none!important;cursor:help;transition:background-color .15s,color .15s,border-color .15s}
.lfqe .lfqe-help:hover,.lfqe .lfqe-help[aria-expanded="true"]{background:#e4f0ff!important;border-color:#7da6d6!important;color:#174ea6!important}
.lfqe .lfqe-help:focus-visible{outline:2px solid #1f6feb!important;outline-offset:2px}
.lfqe .lfqe-tooltip{display:none!important}
.lfqe-floating-help{position:fixed;z-index:2147480000;box-sizing:border-box;width:min(300px,calc(100vw - 20px));max-height:calc(100dvh - 20px);overflow:auto;padding:12px 14px;border:1px solid #b9cfe8;border-radius:11px;background:#fff;color:#294563;box-shadow:0 12px 30px #163d6640;font:400 12px/1.5 system-ui,sans-serif;text-align:left;pointer-events:none}
.lfqe-floating-help[hidden]{display:none!important}
/* Il menu non si estende eccessivamente; il titolo conserva la larghezza del campo. */
.lfqe .lfqe-field select,.lfqe .lfqe-field input,.lfqe .lfqe-dynamic-field select{width:100%;max-width:560px}
.lfqe .lfqe-money-panel{max-width:100%}
.lfqe .lfqe-field input[data-money]{font-variant-numeric:tabular-nums}
.lfqe .lfqe-field input[data-money]::placeholder{color:#8a97a8;opacity:1}
.lfqe .lfqe-choice{transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.lfqe .lfqe-choice:focus-within{outline:2px solid #6c9ff0;outline-offset:2px}
/* Riepilogo: titolo leggibile ed etichette significative. */
.lfqe .lfqe-result{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);overflow:hidden}
.lfqe .lfqe-result-heading{align-items:center;gap:12px}
.lfqe .lfqe-result-heading h3{font-size:clamp(21px,2.7vw,28px)!important;line-height:1.22!important;font-weight:840!important;overflow-wrap:anywhere}
.lfqe-result-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.lfqe-result-badges>span{display:inline-flex;align-items:center;border:1px solid #d0e1f2;border-radius:999px;padding:7px 11px;background:#edf5ff;color:#255b8e;font-size:12px;font-weight:780;line-height:1.2;white-space:nowrap}

.lfqe .lfqe-total{padding:16px 18px;border:1px solid #d5e6f9;border-radius:14px;background:linear-gradient(110deg,#edf5ff,#f7fbff);box-shadow:0 6px 20px #245fc60a}
.lfqe .lfqe-total strong{font-size:clamp(18px,2.6vw,23px);font-variant-numeric:tabular-nums}
.lfqe-chart-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.lfqe .lfqe-chart-head h4{color:#173555!important;font-size:15px!important;font-weight:830!important;margin:0!important}
.lfqe-chart-head span{font-size:12px;color:#63788d}
.lfqe .lfqe-table-wrap{border:1px solid #e0eaf4;border-radius:13px;background:#fff}
.lfqe .lfqe-result-table{margin:0!important}
.lfqe .lfqe-result-table thead{background:#f2f7ff}
.lfqe .lfqe-result-table th{font-weight:800;font-size:12px;color:#365775}
.lfqe .lfqe-result-table tbody tr:nth-child(even){background:#fafcff}
.lfqe .lfqe-result-table tbody tr:hover{background:#f1f7ff}
.lfqe .lfqe-result-table td:first-child{font-weight:650;overflow-wrap:anywhere}
.lfqe .lfqe-result-table td:not(:first-child){font-weight:750}
/* Nota esplicativa successoria: albero a tre rami. */
.lfqe .lfqe-explanation{display:flex;gap:14px;margin-top:20px;padding:18px;border:1px solid #d6e4f2;border-radius:16px;background:linear-gradient(150deg,#f4f9ff 0%,#fff 93%);box-shadow:0 10px 24px #1d4f7d0a}
.lfqe .lfqe-explanation-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#1f6feb,#245fc6);box-shadow:0 9px 22px #1f6feb29}
.lfqe .lfqe-explanation-icon svg{display:block;width:26px;height:26px;fill:none;stroke:#eaf6ff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lfqe .lfqe-explanation-icon svg circle{fill:#eaf6ff;stroke:none}
.lfqe .lfqe-explanation-content{flex:1 1 auto;min-width:0}
.lfqe .lfqe-explanation h4{margin:0!important;font-size:16px!important;line-height:1.3!important;color:#173555!important;font-weight:840!important}
.lfqe-explanation-subtitle{display:block;margin:3px 0 9px;font-size:12px;color:#667c93;line-height:1.45}
.lfqe .lfqe-explanation p{margin:0!important;color:#435a75!important;font-size:14px!important;line-height:1.65!important}
.lfqe .lfqe-notes{margin-top:12px;gap:7px}
.lfqe .lfqe-notes:empty{display:none}
.lfqe .lfqe-notes p{font-size:12.5px;line-height:1.5;color:#62738a}



.lfqe .lfqe-actions .lfqe-button{flex:1 1 190px;min-height:48px;text-align:center;justify-content:center}
@media(max-width:760px){
 .lfqe .lfqe-hero{grid-template-columns:minmax(0,1fr) 160px;gap:14px}
 .lfqe .lfqe-hero-art{width:160px}
 .lfqe .lfqe-hero h2{font-size:clamp(25px,3.2vw,34px)!important}
 .lfqe .lfqe-result-heading{flex-wrap:wrap;align-items:flex-start}
 .lfqe-result-badges{justify-content:flex-start}
}
@media(max-width:600px){
 .lfqe .lfqe-hero{display:block;padding:27px 21px}
 .lfqe .lfqe-hero h2{font-size:clamp(25px,6vw,30px)!important}
 .lfqe .lfqe-hero p{font-size:14px!important}
 .lfqe-body{padding:14px}
 .lfqe .lfqe-form{padding:15px}
 .lfqe .lfqe-panel{padding:15px 13px}
 .lfqe-step{width:36px;height:36px;flex-basis:36px}
 .lfqe .lfqe-result{padding:17px 13px}
 .lfqe .lfqe-result-heading h3{font-size:22px!important}
 .lfqe .lfqe-total{align-items:flex-start;flex-direction:column;gap:5px}
 .lfqe .lfqe-total strong{overflow-wrap:anywhere;white-space:normal}
 .lfqe .lfqe-explanation{padding:14px 12px;gap:10px}
 .lfqe .lfqe-explanation-icon{flex-basis:40px;width:40px;height:40px;border-radius:12px}
 .lfqe .lfqe-explanation-icon svg{width:23px;height:23px}


 .lfqe .lfqe-actions{gap:12px}
 .lfqe .lfqe-actions>*{flex:1 1 100%;width:100%;min-width:0}
 .lfqe .lfqe-result-table{font-size:12.5px}
 .lfqe .lfqe-result-table th,.lfqe .lfqe-result-table td{padding:11px 7px}
}
@media(prefers-reduced-motion:reduce){
  .lfqe .lfqe-help,.lfqe .lfqe-choice{transition:none!important}
}
@media print{
 .lfqe-print-portal .lfqe-explanation,.lfqe-print-portal .lfqe-result-badges{break-inside:avoid;page-break-inside:avoid}
}

/* Tabella in card leggibili su telefono: importo sempre visibile, niente scorrimento laterale. */
@media(max-width:600px){
 .lfqe .lfqe-table-wrap{overflow:visible;border:none;background:transparent}
 .lfqe .lfqe-result-table,.lfqe .lfqe-result-table tbody{display:block;width:100%}
 .lfqe .lfqe-result-table thead{display:none}
 .lfqe .lfqe-result-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:8px 12px;margin-bottom:10px;padding:12px;border:1px solid #dfe9f3;border-radius:12px;background:#fff!important;box-shadow:0 2px 10px #16406a08}
 .lfqe .lfqe-result-table tbody tr:last-child{margin-bottom:0}
 .lfqe .lfqe-result-table td,.lfqe .lfqe-result-table td:not(:first-child){display:block;min-width:0;margin:0;padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:13px}
 .lfqe .lfqe-result-table td:first-child{grid-column:1/-1;border-bottom:1px solid #edf1f7;padding-bottom:8px;font-size:14px;font-weight:800}
 .lfqe .lfqe-result-table td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:4px;color:#6d7f93;font-size:11px;font-weight:650}
 .lfqe .lfqe-result-table td:last-child:not(:nth-child(2)){text-align:right}
 .lfqe .lfqe-result-table tbody tr:has(td:nth-child(2):last-child) td:nth-child(2){grid-column:1/-1}
}
@media print{
 .lfqe-print-portal .lfqe-result-table,.lfqe-print-portal .lfqe-result-table tbody{display:table-row-group}
 .lfqe-print-portal .lfqe-result-table{display:table!important}
 .lfqe-print-portal .lfqe-result-table tbody tr{display:table-row!important;box-shadow:none!important;padding:0!important}
 .lfqe-print-portal .lfqe-result-table tbody td{display:table-cell!important;padding:9px!important;border-bottom:1px solid #e0e9f2!important}
 .lfqe-print-portal .lfqe-result-table tbody td::before{display:none!important;content:none!important}
 .lfqe-print-portal .lfqe-result-table thead{display:table-header-group!important}
}




/* v1.5.0 - anello quote, euro automatici e avvertenze riunite */
.lfqe .lfqe-money-panel{margin-top:12px;padding:16px 17px;background:linear-gradient(180deg,#f7faff,#fff);border:1px solid #e1eaf4;border-radius:14px}
.lfqe .lfqe-money-panel [data-money]{font-variant-numeric:tabular-nums;letter-spacing:.01em}
.lfqe .lfqe-money-panel input[data-money]:focus{box-shadow:0 0 0 3px #1f6feb1f!important}
/* Grafico ad anello, con etichette visibili anche senza distinguere i colori. */
.lfqe .lfqe-chart{margin:16px 0 19px;padding:17px;border:1px solid #dce8f4;border-radius:17px;background:linear-gradient(145deg,#f5faff,#fff 76%)}
.lfqe .lfqe-chart-head{margin-bottom:14px}
.lfqe .lfqe-chart-layout{display:grid;grid-template-columns:minmax(175px,230px) minmax(0,1fr);gap:23px;align-items:center;min-width:0}
.lfqe .lfqe-donut{position:relative;width:min(100%,230px);aspect-ratio:1;margin:0 auto;display:grid;place-items:center}
.lfqe .lfqe-donut svg{display:block;width:100%;height:100%;transform:rotate(-90deg);filter:drop-shadow(0 9px 14px #27547e16)}
.lfqe .lfqe-ring-track{fill:none;stroke:#e7eff8;stroke-width:25}
.lfqe .lfqe-ring-segment{fill:none;stroke-width:25;stroke-linecap:butt;animation:lfqe-ring-draw 1s cubic-bezier(.16,.75,.27,1) both;animation-delay:var(--lfqe-delay,0s)}
@keyframes lfqe-ring-draw{from{stroke-dasharray:0 100}to{stroke-dasharray:var(--lfqe-segment) 100}}
.lfqe .lfqe-donut-center{position:absolute;inset:27%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.lfqe .lfqe-donut-center strong{display:block;font-size:clamp(22px,2.4vw,30px);line-height:1.05;color:#1e4672;font-weight:850;white-space:nowrap;font-variant-numeric:tabular-nums}
.lfqe .lfqe-donut-center span{display:block;margin-top:6px;font-size:11px;line-height:1.3;color:#6b7e95;font-weight:650}
.lfqe .lfqe-chart-legend{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0}
.lfqe .lfqe-legend-item{display:grid;grid-template-columns:11px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 11px;border:1px solid #e3ebf5;border-radius:10px;background:#fff;min-width:0}
.lfqe .lfqe-legend-dot{display:block;width:11px;height:11px;border-radius:4px}
.lfqe .lfqe-legend-name{color:#38546f;min-width:0;font-size:12.5px;line-height:1.4;overflow-wrap:break-word}
.lfqe .lfqe-legend-item strong{color:#173c66;font-size:13px;font-weight:830;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Le note fanno parte di un solo riquadro successivo alla spiegazione. */
.lfqe .lfqe-advisories:not([hidden]){display:flex;gap:14px;align-items:flex-start;margin-top:14px;padding:18px;border:1px solid #e5dcc8;border-radius:16px;background:linear-gradient(145deg,#fffaf0,#fffefd 88%);box-shadow:0 8px 22px #8c68320a}
.lfqe .lfqe-advisories-icon{flex:0 0 46px;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#bb873c,#d39c4e);box-shadow:0 9px 20px #ae76271e}
.lfqe .lfqe-advisories-icon svg{display:block;width:24px;height:24px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.lfqe .lfqe-advisories-content{min-width:0;flex:1}
.lfqe .lfqe-advisories-content h4{margin:0!important;color:#77501e!important;font-size:16px!important;font-weight:830!important;line-height:1.35!important}
.lfqe .lfqe-advisories-subtitle{display:block;margin:3px 0 11px;color:#96764d;font-size:12px;line-height:1.45}
.lfqe .lfqe-advisories .lfqe-notes{display:grid;gap:7px;margin:0}
.lfqe .lfqe-advisories .lfqe-notes p,.lfqe .lfqe-advisories .lfqe-rounding,.lfqe .lfqe-advisories .lfqe-custom-note{position:relative;margin:0!important;padding:0 0 0 14px!important;color:#70583c!important;font-size:12.5px!important;line-height:1.6!important;border:0!important;background:transparent!important;border-radius:0!important;overflow-wrap:anywhere}
.lfqe .lfqe-advisories .lfqe-notes p::before,.lfqe .lfqe-advisories .lfqe-rounding::before,.lfqe .lfqe-advisories .lfqe-custom-note::before{content:"";position:absolute;top:.65em;left:0;width:5px;height:5px;border-radius:50%;background:#d39c4e}
.lfqe .lfqe-advisories .lfqe-rounding{margin-bottom:7px!important}
.lfqe .lfqe-advisories .lfqe-custom-note{margin-top:8px!important}
@media(max-width:760px){.lfqe .lfqe-chart-layout{grid-template-columns:minmax(150px,200px) minmax(0,1fr);gap:14px}}
@media(max-width:600px){
 .lfqe .lfqe-money-panel{padding:13px 12px}
 .lfqe .lfqe-chart{padding:14px 11px;border-radius:14px}
 .lfqe .lfqe-chart-layout{grid-template-columns:minmax(0,1fr);gap:13px}
 .lfqe .lfqe-donut{max-width:205px}
 .lfqe .lfqe-chart-legend{grid-template-columns:minmax(0,1fr)}
 .lfqe .lfqe-advisories{padding:14px 12px;gap:11px}
 .lfqe .lfqe-advisories-icon{width:39px;height:39px;flex-basis:39px;border-radius:12px}
 .lfqe .lfqe-advisories-icon svg{width:21px;height:21px}
}
@media(prefers-reduced-motion:reduce){.lfqe .lfqe-ring-segment{animation:none!important}}
@media print{
 .lfqe-print-portal .lfqe-ring-segment{animation:none!important;stroke-dasharray:var(--lfqe-segment) 100!important}
 .lfqe-print-portal .lfqe-chart,.lfqe-print-portal .lfqe-advisories{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .lfqe-print-portal .lfqe-chart{break-inside:avoid;page-break-inside:avoid}
 .lfqe-print-portal .lfqe-advisories:not([hidden]){break-inside:avoid;page-break-inside:avoid;display:flex!important}
}

/* v1.5.1 - azioni del prospetto: icone dedicate, colori distinti, griglia elastica. */
.lfqe .lfqe-result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:21px;align-items:stretch}
.lfqe .lfqe-result-actions .lfqe-result-action{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:10px!important;width:100%;min-width:0;min-height:49px!important;height:100%;padding:11px 12px!important;border-radius:12px!important;font-family:inherit!important;font-size:14px!important;font-weight:800!important;line-height:1.35!important;text-align:center;white-space:normal;box-shadow:none!important;transition:background-color .18s ease,border-color .18s ease,transform .18s ease!important}
.lfqe .lfqe-result-actions .lfqe-result-action>span{min-width:0;overflow-wrap:normal}
.lfqe .lfqe-result-actions .lfqe-result-action svg{display:block!important;visibility:visible!important;width:19px;height:19px;min-width:19px;flex:0 0 19px;fill:none!important;stroke:currentColor!important;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.lfqe .lfqe-result-actions .lfqe-print{color:#174ea6!important;background:#eaf3ff!important;border:1px solid #bbd6f7!important}
.lfqe .lfqe-result-actions .lfqe-print:hover{color:#12458f!important;background:#dfeeff!important;border-color:#92bdf0!important}
.lfqe .lfqe-result-actions .lfqe-edit{color:#087367!important;background:#e9f8f3!important;border:1px solid #a5daca!important}
.lfqe .lfqe-result-actions .lfqe-edit:hover{color:#07594e!important;background:#d8f3e8!important;border-color:#75c8ad!important}
.lfqe .lfqe-result-actions .lfqe-new{color:#965816!important;background:#fff4e8!important;border:1px solid #f1cea5!important}
.lfqe .lfqe-result-actions .lfqe-new:hover{color:#7f4510!important;background:#ffe9d1!important;border-color:#e7b77f!important}
.lfqe .lfqe-result-actions .lfqe-result-action:hover{transform:translateY(-1px)}
.lfqe .lfqe-result-actions .lfqe-result-action:focus-visible{outline:3px solid #1f6feb5c!important;outline-offset:3px}
.lfqe .lfqe-form{scroll-margin-top:22px}
@media(max-width:760px){
 .lfqe .lfqe-result-actions{grid-template-columns:1fr;gap:10px;margin-top:18px}
 .lfqe .lfqe-result-actions .lfqe-result-action{min-height:48px!important}
}
@media(prefers-reduced-motion:reduce){.lfqe .lfqe-result-actions .lfqe-result-action{transition:none!important;transform:none!important}}
