/* Componenti della suite; i selettori restano confinati a .lfc. */
.lfc{--lfc-a:#174ea6;--lfc-b:#1f6feb;--lfc-c:#245fc6;--lfc-ink:#223e5b;--lfc-muted:#60758b;--lfc-border:#dae5f0;max-width:1100px;margin:12px auto 30px;color:var(--lfc-ink);font-size:15px;line-height:1.5;font-family:inherit;isolation:isolate}
.lfc,.lfc *,.lfc *::before,.lfc *::after{box-sizing:border-box}
.lfc [hidden]{display:none!important}
.lfc h2,.lfc h3,.lfc h4,.lfc p{margin:0}
.lfc button,.lfc input,.lfc select{font:inherit}
.lfc .lfc-hero{position:relative;min-height:195px;display:flex;align-items:center;overflow:hidden;border-radius:18px;padding:28px 32px;background:linear-gradient(117deg,var(--lfc-a),var(--lfc-b) 60%,var(--lfc-c));color:#fff;box-shadow:0 14px 30px rgba(17,66,139,.15)}
.lfc .lfc-hero::after{content:"";position:absolute;left:-100%;top:0;width:55%;height:100%;transform:skew(-19deg);background:linear-gradient(105deg,transparent,rgba(255,255,255,.17),transparent);animation:lfc-shimmer 8s ease-in-out infinite;pointer-events:none}
@keyframes lfc-shimmer{0%,25%{left:-100%}60%,100%{left:160%}}
.lfc .lfc-hero-copy{position:relative;z-index:1;max-width:65%}
.lfc .lfc-hero h2{font-size:clamp(23px,3vw,34px)!important;font-weight:800!important;color:#fff!important;line-height:1.2!important;letter-spacing:-.5px;margin:0 0 10px!important}
.lfc .lfc-hero p{color:#eef6ff!important;font-size:14px!important;line-height:1.55!important;max-width:500px}
.lfc .lfc-hero-svg{position:absolute;width:235px;height:auto;right:16px;bottom:0;max-width:31%;pointer-events:none}
.lfc .lfc-art-baby{animation:lfc-baby-cradle 4.2s ease-in-out infinite;transform-box:fill-box;transform-origin:48% 72%}.lfc .lfc-art-heart{animation:lfc-heart 4.7s ease-in-out infinite;transform-box:fill-box;transform-origin:center}.lfc .lfc-art-sparkle{animation:lfc-sparkle 5.2s ease-in-out infinite}
@keyframes lfc-baby-cradle{0%,100%{transform:rotate(-2deg) translateY(0)}50%{transform:rotate(2deg) translateY(-1.5px)}}@keyframes lfc-heart{50%{transform:scale(1.06)}}@keyframes lfc-sparkle{50%{opacity:.42;transform:translateY(-2px)}}
.lfc .lfc-progress{margin-top:16px;padding:12px 15px;background:#fff;border:1px solid var(--lfc-border);border-radius:13px}
.lfc .lfc-progress-title{display:none;gap:2px;flex-direction:column;padding:1px 2px 9px}.lfc .lfc-progress-title span{font-size:11px;color:var(--lfc-muted)}.lfc .lfc-progress-title strong{font-size:14px;color:#214d86}
.lfc .lfc-progress ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none!important;margin:0!important;padding:0!important;gap:8px;counter-reset:none!important}
.lfc.lfc-short-flow .lfc-progress ol{grid-template-columns:repeat(3,minmax(0,1fr))}
.lfc .lfc-progress li{margin:0!important;padding:0!important;min-width:0;list-style:none!important;counter-increment:none!important}.lfc .lfc-progress li::before{display:none!important;content:none!important}
.lfc .lfc-progress button{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#687f95;text-align:center;font-size:12px;font-weight:680;cursor:pointer;min-height:46px}
.lfc .lfc-progress button span{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:8px;background:#edf1f6;color:#526b83;font-weight:800}
.lfc .lfc-progress button small{font-size:12px;line-height:1.3}.lfc .lfc-progress button:disabled{cursor:default;opacity:.65}
.lfc .lfc-progress button[aria-current="step"]{border-color:#bad5f5;background:#eaf3ff;color:var(--lfc-a)}.lfc .lfc-progress button[aria-current="step"] span{background:var(--lfc-b);color:#fff}.lfc .lfc-progress button[data-complete="true"] span{background:#def0e9;color:#137656}
.lfc .lfc-panel{margin-top:16px;background:#fff;border:1px solid var(--lfc-border);border-radius:15px;padding:23px 25px;box-shadow:0 6px 18px rgba(30,65,105,.045)}
.lfc .lfc-section-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.lfc .lfc-section-head>b{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;background:#e8f1ff;color:#1858ae;font-size:13px}.lfc .lfc-section-head h3{font-size:18px!important;color:#18437b!important;font-weight:800!important}.lfc .lfc-section-head p{font-size:12.5px!important;color:var(--lfc-muted)!important;margin-top:3px}
.lfc .lfc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 16px}.lfc .lfc-field{position:relative;min-width:0}.lfc .lfc-label-row{display:flex;align-items:flex-start;gap:7px;min-height:21px;margin-bottom:6px;position:relative}.lfc .lfc-label-row label{font-size:13px!important;line-height:1.4!important;color:#243f5d!important;font-weight:720!important;margin:0!important}.lfc .lfc-field input,.lfc .lfc-field select{display:block;width:100%;min-width:0;height:45px!important;min-height:45px!important;padding:9px 12px!important;margin:0!important;color:#26435f!important;background:#fff!important;border:1px solid #cbd9e9!important;border-radius:9px!important;box-shadow:none!important;font-size:14px!important;outline:0!important}
.lfc .lfc-field input:focus,.lfc .lfc-field select:focus{border-color:var(--lfc-b)!important;box-shadow:0 0 0 3px rgba(31,111,235,.12)!important}.lfc .lfc-field [aria-invalid="true"]{border-color:#b73b44!important;background:#fff7f8!important;box-shadow:0 0 0 3px rgba(183,59,68,.12)!important}.lfc .lfc-field input::placeholder{color:#98a6b7;opacity:1}
.lfc .lfc-help-btn{all:unset;box-sizing:border-box;flex:0 0 18px;width:18px;height:18px;display:grid;place-items:center;border:1px solid #a0bfdf;border-radius:50%;background:#eff6ff;color:var(--lfc-a);font:bold 11px Arial,sans-serif;cursor:pointer}.lfc .lfc-help-btn:hover,.lfc .lfc-help-btn[aria-expanded="true"]{background:#d9ebff}
.lfc .lfc-help-pop{position:absolute;z-index:12;left:0;top:calc(100% + 7px);width:max-content;max-width:min(330px,calc(100vw - 56px));min-width:200px;background:#fff;border:1px solid #cadceb;color:#34516f;box-shadow:0 12px 22px #1a46712e;border-radius:10px;padding:12px;font-size:12px!important;font-weight:400!important;line-height:1.55}
.lfc button:focus-visible{outline:3px solid #81beff;outline-offset:2px}
.lfc .lfc-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:19px}.lfc .lfc-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:9px;padding:11px 18px;border:1px solid transparent;font-size:13.5px!important;font-weight:750!important;line-height:1.2!important;cursor:pointer;text-decoration:none!important}.lfc .lfc-btn-primary{background:linear-gradient(120deg,var(--lfc-a),var(--lfc-b));color:#fff!important;box-shadow:0 5px 13px #1f6feb30}.lfc .lfc-btn-primary:hover{filter:brightness(1.08)}.lfc .lfc-btn-secondary{background:#eef2f7;color:#405e79;border-color:#d4e1ed}.lfc .lfc-btn-secondary:hover{background:#e3edf6}.lfc .lfc-reset{margin-left:auto}
.lfc .lfc-error{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 13px;margin-top:13px!important;border:1px solid #ebcdd1;background:#fff6f6;border-radius:9px;font-size:13px!important;color:#943742}
.lfc .lfc-result-panel{scroll-margin-top:24px}.lfc .lfc-result{margin-top:16px;background:#fff;border-radius:15px;overflow:hidden;border:1px solid var(--lfc-border);box-shadow:0 8px 22px #19456c12}
.lfc .lfc-result-lead{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 25px;background:linear-gradient(125deg,#f1f8ff,#e8f3ff);border-bottom:1px solid #dce8f6}.lfc .lfc-result-lead h3{font-size:19px!important;color:#164886!important;font-weight:800!important}.lfc .lfc-result-eyebrow{display:block;margin-bottom:6px;font-size:11px;color:#587ca5;font-weight:700}.lfc .lfc-result-lead p{color:var(--lfc-muted)!important;font-size:12.5px!important;margin-top:5px}.lfc .lfc-amount{white-space:nowrap;border-radius:11px;background:#fff;color:var(--lfc-a);border:1px solid #d3e6fa;padding:11px 15px;font-size:clamp(23px,2.8vw,31px);font-weight:850;letter-spacing:-.4px;font-variant-numeric:tabular-nums}
.lfc .lfc-result-body{padding:21px 25px}.lfc .lfc-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}.lfc .lfc-summary>div{border:1px solid #e0e8f1;background:#fafcff;border-radius:10px;padding:13px 15px;display:flex;flex-direction:column;gap:5px}.lfc .lfc-summary span{font-size:12px;color:var(--lfc-muted)}.lfc .lfc-summary strong{font-size:18px;color:#214d83;font-variant-numeric:tabular-nums}
.lfc .lfc-result-body h4{font-size:15px!important;font-weight:800!important;color:#224d7c!important;margin:0 0 11px!important}.lfc .lfc-breakdown{border:1px solid #dfebf4;border-radius:10px;overflow:hidden}.lfc .lfc-breakdown-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px}.lfc .lfc-breakdown-row+div{border-top:1px solid #e5edf5}.lfc .lfc-breakdown-row:nth-child(even){background:#f8fbfe}.lfc .lfc-breakdown-row div{display:flex;align-items:center;gap:12px}.lfc .lfc-breakdown-row strong{padding:4px 9px;background:#e8f2ff;border-radius:7px;color:#1d57a0}.lfc .lfc-breakdown-row span{color:#586f88;font-size:13px}.lfc .lfc-breakdown-row>b{font-size:14px;color:#234e78;font-variant-numeric:tabular-nums;white-space:nowrap}
.lfc .lfc-result-line{display:flex;justify-content:space-between;gap:12px;margin-top:14px;padding:0 1px;font-size:13px;color:#627890}.lfc .lfc-result-line strong{color:#284b6d;white-space:nowrap}.lfc .lfc-method{border-top:1px solid #e5edf5;padding-top:13px;margin-top:16px!important;color:#677d92!important;font-size:12px!important;line-height:1.6!important}
@media(max-width:810px){.lfc .lfc-hero{min-height:170px;padding:25px}.lfc .lfc-panel{padding:19px}}
@media(max-width:620px){.lfc{font-size:14px}.lfc .lfc-hero{min-height:154px;padding:21px}.lfc .lfc-hero-copy{max-width:100%}.lfc .lfc-hero-svg{display:none}.lfc .lfc-hero h2{font-size:24px!important}.lfc .lfc-hero p{font-size:12.5px!important}.lfc .lfc-grid{grid-template-columns:minmax(0,1fr);gap:14px}.lfc .lfc-panel{padding:17px 15px}.lfc .lfc-progress{padding:11px 15px}.lfc .lfc-progress-title{display:flex}.lfc .lfc-progress ol{position:relative;gap:0}.lfc .lfc-progress ol:before{content:"";position:absolute;height:2px;background:#dce6f2;left:12.5%;right:12.5%;top:15px}.lfc.lfc-short-flow .lfc-progress ol:before{left:16.67%;right:16.67%}.lfc .lfc-progress button{position:relative;display:flex;flex-direction:column;gap:0;min-height:34px;padding:2px 0;border:0!important;background:none!important}.lfc .lfc-progress button span{border-radius:50%;width:28px;height:28px;flex:0 0 28px;border:2px solid #fff;box-shadow:0 0 0 1px #d6e4f3}.lfc .lfc-progress button small{display:none}.lfc .lfc-result-lead{padding:17px 15px;flex-direction:column;align-items:flex-start;gap:10px}.lfc .lfc-amount{font-size:29px;padding:8px 12px}.lfc .lfc-result-body{padding:17px 15px}.lfc .lfc-summary{grid-template-columns:minmax(0,1fr);gap:9px}.lfc .lfc-breakdown-row{padding:11px 10px}.lfc .lfc-breakdown-row div{gap:8px}.lfc .lfc-btn{flex:1;padding:10px 11px}.lfc .lfc-reset{margin-left:0}.lfc .lfc-help-pop{max-width:calc(100vw - 55px)}}
@media(prefers-reduced-motion:reduce){.lfc *, .lfc *::before,.lfc *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.lfc .lfc-hero::after,.lfc .lfc-progress,.lfc .lfc-form,.lfc .lfc-result-panel>.lfc-actions{display:none!important}.lfc .lfc-result{box-shadow:none}}

.lfc .lfc-unpaid-note{margin:12px 0 0!important;padding:10px 12px;border:1px solid #eddfc9;border-radius:9px;background:#fffbf3;color:#85622c;font-size:12.5px!important;line-height:1.5!important}

/* Errore contestuale: collegato al controllo e raggiungibile anche da tastiera. */
.lfc .lfc-field-error{margin:6px 0 0!important;color:#a02f3d!important;font-size:12px!important;line-height:1.4!important;font-weight:500!important}
.lfc .lfc-error-jump{border:0;background:transparent;color:#8b2933;text-decoration:underline;font-size:12px;font-weight:750;cursor:pointer;padding:4px 0}
.lfc .lfc-field optgroup{font-weight:800;color:#26496f}
.lfc .lfc-field option{font-weight:400;color:#26435f}

/* Risultato: spiegazione sintetica del calcolo e quote leggibili su qualsiasi schermo. */
.lfc .lfc-result-section{margin-top:20px}
.lfc .lfc-result-intro{color:#576e87!important;font-size:13px!important;line-height:1.6!important;margin:0 0 12px!important}
.lfc .lfc-result-intro strong{color:#244f7b}
.lfc .lfc-shares{display:flex;height:8px;width:100%;background:#e9eff6;border-radius:8px;overflow:hidden;margin:0 0 13px}
.lfc .lfc-share{display:block;height:100%;min-width:0}
.lfc .lfc-share-100{background:#198770}.lfc .lfc-share-80{background:#2b79d0}.lfc .lfc-share-30{background:#e6a246}.lfc .lfc-share-0{background:#bcc7d4}
.lfc .lfc-breakdown-row .lfc-breakdown-label{display:flex;gap:12px;align-items:center;min-width:0}
.lfc .lfc-breakdown-label>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.lfc .lfc-breakdown-label b{color:#274b72;font-size:13px;font-weight:750}
.lfc .lfc-breakdown-label span{font-size:12px;color:#728399;line-height:1.45}
.lfc .lfc-breakdown-row .lfc-rate{min-width:53px;text-align:center;white-space:nowrap}
.lfc .lfc-rate-100{background:#e1f4ee!important;color:#167d65!important}
.lfc .lfc-rate-80{background:#e8f2ff!important;color:#1d57a0!important}
.lfc .lfc-rate-30{background:#fff3df!important;color:#916216!important}
.lfc .lfc-rate-0{background:#edf1f5!important;color:#5c7086!important}
.lfc .lfc-breakdown-total{flex-shrink:0}
@media(max-width:620px){.lfc .lfc-result-section{margin-top:17px}.lfc .lfc-breakdown-row{align-items:flex-start}.lfc .lfc-breakdown-row .lfc-breakdown-label{gap:9px}.lfc .lfc-breakdown-total{font-size:13px;white-space:normal;text-align:right}.lfc .lfc-breakdown-label span{font-size:11.5px}}

/* Massimali contestuali, discreti e sempre aggiornati. */
.lfc .lfc-limit-hint{margin:6px 0 0!important;font-size:12px!important;line-height:1.5!important;color:#526c85!important}
.lfc .lfc-btn:disabled{opacity:.54;cursor:not-allowed!important;filter:none!important;box-shadow:none!important}
