/* Calcolatore U.S. estate tax ([bfg_calcolatore_estate_tax]) — colori e font del sito (navy #02142B, taupe #9A8D7D, Inter / Abhaya Libre). */
.bfg-calc{--navy:#02142B;--taupe:#9A8D7D;--ink:#02142B;--muted:#52667b;--line:#dcdfe4;font-family:Inter,sans-serif;color:var(--ink)}
.bfg-calc *{box-sizing:border-box}
.bfg-calc-grid{display:grid;grid-template-columns:1fr 1fr;background:#fff;box-shadow:0 13px 38px rgba(2,20,43,.06)}
.bfg-calc:not(.is-unlocked) .bfg-calc-grid{grid-template-columns:1fr}
.bfg-calc:not(.is-unlocked) .bfg-calc-result{display:none}
.bfg-calc-form,.bfg-calc-result{padding:40px;min-width:0}
.bfg-calc-step{display:flex;align-items:center;gap:11px;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.bfg-calc-step>span{color:var(--taupe)}
.bfg-calc-label{display:block;font-size:16px;font-weight:600;margin:28px 0 6px}
.bfg-calc-help{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 16px}
.bfg-calc-money{display:flex;align-items:center;gap:10px;border:1px solid #b9bec6;background:#fcfcfd;padding:10px 18px}
.bfg-calc-money:focus-within{outline:2px solid var(--taupe);outline-offset:2px}
.bfg-calc-money>span:first-child{font:400 26px/1 "Abhaya Libre",serif;color:#7d8590}
.bfg-calc .bfg-calc-money input{flex:1;width:100%;min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;outline:none;padding:4px 0!important;font:600 30px/1.2 "Abhaya Libre",serif!important;color:var(--ink)!important}
.bfg-calc-currency{font-size:11px;letter-spacing:.06em;color:#7d8590}
.bfg-calc-presets{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:13px}
.bfg-calc-presets>span{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#7d8590;margin-right:4px}
.bfg-calc .bfg-calc-presets button{min-height:34px;padding:5px 13px;border:1px solid var(--line);border-radius:0;background:#fff;color:#52667b;font:400 12px/1 Inter,sans-serif;cursor:pointer;transition:background .2s,border-color .2s}
.bfg-calc .bfg-calc-presets button:hover,.bfg-calc .bfg-calc-presets button.active{background:#f3eee5;border-color:var(--taupe);color:var(--ink)}
.bfg-calc-scope{display:flex;align-items:flex-start;gap:12px;margin-top:26px}
.bfg-calc-scope-icon{flex-shrink:0;width:18px;height:18px;margin-top:3px;border:1px solid var(--taupe);border-radius:50%;text-align:center;font:italic 12px/16px Georgia,serif;color:var(--taupe)}
.bfg-calc-scope p{margin:0;font-size:14px;line-height:1.75;color:#44545e}
.bfg-calc-scope strong{font-weight:600;color:var(--ink)}
.bfg-calc-error{margin:15px 0 0;font-size:13px;color:#9e302d}
.bfg-calc .bfg-calc-submit{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:26px;padding:18px 26px;border:0;border-radius:0;background:var(--navy);color:#fff;font:600 12px/1.4 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;cursor:pointer;transition:background .2s}
.bfg-calc .bfg-calc-submit:hover,.bfg-calc .bfg-calc-submit:focus{background:#29475d;color:#fff}
.bfg-calc .bfg-calc-submit span{font-size:18px;font-weight:400}
.bfg-calc-privacy{margin:13px 0 0;text-align:center;font-size:12px;color:#6c7682}

.bfg-calc-result{background:var(--navy);color:#fff;outline:none}
.bfg-calc-result-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.bfg-calc-result .bfg-calc-step>span{color:#E7DDD1}
.bfg-calc-tag{padding:4px 8px;border:1px solid rgba(255,255,255,.2);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#c4cdd8;white-space:nowrap}
.bfg-calc-context{margin:22px 0 16px;font-size:14px;line-height:1.6;color:#D0D9E8}
.bfg-calc-result.is-stale .bfg-calc-values{opacity:.45}
.bfg-calc-result.is-stale .bfg-calc-context{color:#f3c882}
.bfg-calc-values{transition:opacity .2s}
.bfg-calc-result-label{margin:0;font-size:14px;color:#e3e7ec}
.bfg-calc-tax{margin:6px 0;font:800 clamp(40px,4.2vw,58px)/1.15 "Abhaya Libre",serif;letter-spacing:-.02em;overflow-wrap:anywhere}
.bfg-calc-effective{margin:0 0 20px;font-size:14px;color:#D0D9E8}
.bfg-calc-effective strong{font-weight:600;color:#E7DDD1}
.bfg-calc-bar{display:flex;width:100%;height:7px;background:#52667b}
.bfg-calc-bar span{height:7px;background:#c0ac8d;transition:width .3s}
.bfg-calc-legend{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:8px;font-size:12px;color:#c4cdd8}
.bfg-calc-legend i{display:inline-block;width:8px;height:8px;margin-right:6px;background:#c0ac8d}
.bfg-calc-legend span:last-child i{background:#52667b}
.bfg-calc-breakdown{margin:24px 0 16px;font-size:14px}
.bfg-calc-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin:11px 0}
.bfg-calc-breakdown dt{color:#D0D9E8;font-weight:400}
.bfg-calc-breakdown dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}
.bfg-calc-breakdown .bfg-calc-remaining{margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.15)}
.bfg-calc-breakdown .bfg-calc-remaining dt{color:#fff}
.bfg-calc-breakdown .bfg-calc-remaining dd{font-weight:600;color:#E7DDD1}
.bfg-calc-footnote{margin:18px 0 0;font-size:12px;line-height:1.7;color:#b7c3d2}
.bfg-calc-call{display:flex;justify-content:space-between;margin-top:16px;padding:10px 0;border-bottom:1px solid var(--taupe);font-size:13px;color:#E7DDD1!important;text-decoration:none}
.bfg-calc-call:hover{color:#fff!important}

.bfg-calc-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:42px 34px 32px;border:1px solid var(--taupe);background:var(--navy);color:#fff;font-family:Inter,sans-serif;box-shadow:0 24px 80px rgba(0,0,0,.45)}
.bfg-calc-dialog::backdrop{background:rgba(2,20,43,.72)}
.bfg-calc-dialog h2{margin:0 30px 20px 0;font:800 32px/1.1 "Abhaya Libre",serif;color:#fff;text-transform:none;letter-spacing:-.01em}
.bfg-calc-dialog label{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:#fff}
.bfg-calc .bfg-calc-dialog input[type=email]{width:100%;padding:13px 16px;border:1px solid #b9bec6;border-radius:0;background:#fcfcfd;font:400 16px Inter,sans-serif;color:var(--ink)}
.bfg-calc .bfg-calc-mc-submit{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:18px;padding:16px 22px;border:0;border-radius:0;background:var(--taupe);color:#fff;font:600 12px/1.4 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;cursor:pointer}
.bfg-calc .bfg-calc-mc-submit:hover{background:#807263}
.bfg-calc .bfg-calc-mc-submit:disabled{opacity:.65;cursor:wait}
.bfg-calc .bfg-calc-dialog-close{position:absolute;top:10px;right:12px;width:36px;height:36px;padding:0;border:0;background:none;color:#E7DDD1;font:300 30px/1 Inter,sans-serif;cursor:pointer}
.bfg-calc .bfg-calc-dialog-close:hover{background:none;color:#fff}
.bfg-calc-mc-error{margin:10px 0 0;font-size:13px;line-height:1.6;color:#ffd0c7}
.bfg-calc-dialog-note{margin:14px 0 0;font-size:12px;line-height:1.6;color:#D0D9E8}
.bfg-calc :focus-visible,.bfg-calc-dialog :focus-visible{outline:2px solid var(--taupe);outline-offset:3px}

@media (max-width:1024px){.bfg-calc-grid,.bfg-calc.is-unlocked .bfg-calc-grid{grid-template-columns:1fr}}
@media (max-width:767px){
	.bfg-calc-form,.bfg-calc-result{padding:28px 22px}
	.bfg-calc-money input{font-size:26px!important}
	.bfg-calc-presets>span{width:100%}
	.bfg-calc-scope p{font-size:13px}
	.bfg-calc-breakdown{font-size:13px}
	.bfg-calc-dialog{padding:40px 22px 26px}
	.bfg-calc-dialog h2{font-size:28px}
}
@media (prefers-reduced-motion:reduce){.bfg-calc *{transition:none!important}}

/* Pagina /estate-tax-calculator/ (classi bfgc-* dei widget Elementor) */
.bfgc-arrow-down .elementor-button-text::after{content:"↓";margin-left:14px}
.bfgc-calc-intro{flex-shrink:0;min-width:300px}
.bfgc-calc-intro p,.bfgc-before p,.bfgc-step p,.bfgc-outcome p,.bfgc-disclaimer p{margin:0}
.bfgc-before .elementor-widget-heading{margin-bottom:0!important}
.bfgc-before .elementor-heading-title{margin:0!important;white-space:nowrap}
.bfgc-before a{color:#02142B;font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.bfgc-howhelp p{display:flex;justify-content:space-between;align-items:center}
.bfgc-arrow{color:#9A8D7D;font-size:26px;line-height:1}
.bfgc-step:last-child{margin-bottom:0!important}
.bfgc-outcome .elementor-button,.bfgc-solution~.bfgn-closing .elementor-button{white-space:nowrap}
@media (max-width:767px){.bfgc-calc-intro{min-width:0}.bfgc-howhelp .bfgc-arrow{transform:rotate(90deg)}.bfgc-outcome .elementor-button{white-space:normal}}
