:root{--navy:#041e42;--navy2:#0b3258;--green:#97d700;--green-dark:#466d00;--blue:#0576b9;--bg:#f5f7fa;--line:#e0e7ef;--muted:#596d83;--red:#b02c43;--shadow:0 4px 18px #041e4205}*{box-sizing:border-box}body{margin:0;font:14px/1.5 Arial,Helvetica,sans-serif;background:var(--bg);color:var(--navy)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #5d9500;outline-offset:3px}svg.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app{display:flex;min-height:100vh}.sidebar{width:236px;flex-shrink:0;background:linear-gradient(160deg,#0b3258,var(--navy));color:#fff;display:flex;flex-direction:column;padding:24px 18px;position:sticky;top:0;height:100vh}.brand{display:block;background:#fff;border-radius:10px;padding:2px 6px}.brand img{display:block;width:100%;height:65px;object-fit:contain}.side-caption{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#acbfd2;margin:36px 12px 14px}.sidebar nav{display:grid;gap:6px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:14px;border-radius:9px;color:#e2eaf3;text-decoration:none;font-weight:600}.sidebar nav a.active{background:var(--green);color:var(--navy)}.sidebar nav a:hover:not(.active){background:#ffffff10}.side-bottom{margin-top:auto;padding:20px 10px 0;color:#c5d4e2;font-size:11px}.side-bottom small{font-size:10px;color:#9fb6cc}.live-dot{display:inline-block;background:var(--green);width:6px;height:6px;border-radius:100%;margin-right:4px}.side-owner{border-top:1px solid #ffffff20;margin-top:20px;padding-top:18px}.main{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:82px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:16px}.topnote{font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:18px}.demo-badge{font-size:11px;border:1px solid #d9e7bd;border-radius:30px;color:#416400;background:#f5faec;padding:5px 10px}.icon-button{background:#fff;border:1px solid var(--line);color:var(--navy);border-radius:50%;width:30px;height:30px;font-weight:700}.account{display:flex;gap:10px;align-items:center;font-size:12px;font-weight:700}.account small{display:block;color:var(--muted);font-size:10px;font-weight:400}.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#edf3fa;border:1px solid var(--line);font-size:11px}main{padding:34px 38px 30px;max-width:1530px;margin:auto;width:100%;flex:1}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:27px}.heading h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;margin:0 0 8px}.heading p{color:var(--muted);margin:0;font-size:13px}.eyebrow{display:block;text-transform:uppercase;color:var(--muted);font-size:10px;letter-spacing:1.5px;font-weight:700;margin-bottom:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;min-height:44px;border-radius:8px;border:1px solid #cfdbe7;background:#fff;color:var(--navy);font-weight:700;font-size:12px;text-decoration:none;white-space:nowrap}.btn.primary{background:var(--green);border-color:var(--green);box-shadow:0 4px 10px #97d70020}.btn.primary:hover{background:#89c500}.btn:hover{border-color:#7993ad}.btn.danger{color:var(--red);border-color:#e8b8c1}.btn svg{width:17px;height:17px}.smallbtn{border:1px solid transparent;background:transparent;border-radius:6px;color:var(--navy);padding:7px;min-width:34px;min-height:34px}.smallbtn:hover{background:#eef4f9;border-color:var(--line)}.smallbtn svg{width:18px;height:18px}.stats-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.overview{padding:18px 20px;display:flex;align-items:center;gap:14px}.overview-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#edf5e2;color:#507800}.overview-icon.blue{background:#e9f3fb;color:var(--blue)}.overview-icon.gray{background:#eef1f6;color:#58718c}.overview strong{font-size:23px;line-height:1.15;display:block}.overview small{color:var(--muted);font-size:11px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.toolbar label{display:grid;gap:5px;flex:1;min-width:150px;font-size:11px;font-weight:700;color:var(--muted)}.toolbar .search{flex:2;min-width:200px}.field,input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%;min-height:43px;padding:10px 12px;border:1px solid #cfdbe7;border-radius:7px;background:#fff;color:var(--navy)}textarea{resize:vertical;line-height:1.55}input[type=checkbox]{accent-color:#679b00;width:17px;height:17px;flex-shrink:0}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;min-width:780px}.table th{text-align:left;background:#f9fbfd;padding:15px 18px;color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap}.table th button{padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:700}.table td{padding:18px;border-top:1px solid #edf1f5;font-size:12px;vertical-align:middle}.table tbody tr:hover{background:#fcfef8}.subject-cell{min-width:240px;max-width:330px}.subject-title{font-weight:700;display:flex;gap:10px;align-items:flex-start}.subject-title .envelope{padding:6px;border-radius:6px;background:#f0f7e6;color:#639100;display:flex;margin-top:1px}.subject-title .envelope svg{width:17px;height:17px}.subject-title small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}.actions{display:flex;gap:2px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:5px;padding:5px 9px;font-size:10px;font-weight:700;white-space:nowrap;background:#eaf5d5;color:#3b6400}.status:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.status.draft{background:#edf1f7;color:#50647b}.status.scheduled{background:#edf5fd;color:#12638f}.status.error{background:#fcedf0;color:#a92b41}.status.ready{background:#fff3d8;color:#7a5700}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);gap:15px}.pager{display:flex;align-items:center;gap:9px}.pager button{min-height:32px;min-width:32px;padding:5px 9px}.caption{font-size:11px;color:var(--muted);margin:12px 0 0}.muted{color:var(--muted)}.app-footer{display:flex;justify-content:space-between;gap:15px;padding:20px 38px;color:var(--muted);font-size:10px;border-top:1px solid var(--line);margin-top:10px}.empty{text-align:center;padding:55px 24px}.empty .icon{width:38px;height:38px;color:#8ca0b3}.empty h2{font-size:18px;margin:14px 0 8px}.empty p{color:var(--muted);font-size:13px}.empty .btn{margin-top:12px}.back-link{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;text-decoration:none;margin-bottom:20px}.back-link svg{width:15px;height:15px}.report-meta{display:flex;flex-wrap:wrap;gap:8px 26px;color:var(--muted);font-size:12px;margin-bottom:22px}.report-meta strong{color:var(--navy)}.run-select{padding:17px 20px;margin-bottom:22px;display:flex;align-items:center;gap:18px}.run-select label{font-weight:700;font-size:12px}.run-select select{max-width:390px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric{padding:20px}.metric-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.metric-top .icon{color:#639300}.metric strong{display:block;font-size:30px;letter-spacing:-1px;margin:15px 0 4px}.metric small{font-size:11px;color:var(--muted)}.metric.error .metric-top .icon{color:var(--red)}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}.chart-card{padding:22px}.chart-card h2{font-size:15px;margin:0}.chart-card p{color:var(--muted);font-size:11px;margin:6px 0 0}.chart-body{display:flex;align-items:center;gap:35px;padding:25px 0 12px}.donut{width:155px;height:155px;border-radius:50%;background:conic-gradient(var(--chart-color,var(--green)) var(--pct),#e9eef4 0);display:grid;place-items:center;flex-shrink:0}.donut span{width:115px;height:115px;border-radius:50%;display:grid;place-items:center;background:white;font-size:25px;font-weight:700;letter-spacing:-1px}.legend{display:grid;gap:15px;flex:1;font-size:11px}.legend div{display:flex;align-items:center;justify-content:space-between;gap:15px}.legend i{display:inline-block;width:8px;height:8px;border-radius:2px;background:var(--green);margin-right:6px}.legend .gray{background:#c6d2df}.legend .blue{background:var(--blue)}.report-table{min-width:360px}.report-table td,.report-table th{padding:12px 18px}.section-card{padding:24px}.section-card h2{font-size:16px;margin:0 0 14px}.note{border:1px solid #dce8c9;background:#f6faef;border-radius:8px;padding:13px 16px;font-size:12px;color:#426126;margin-top:20px;line-height:1.6}.info-note{color:#536981;background:#f3f7fb;border-color:#dce5ef}.stepper{display:flex;max-width:850px;margin:0 auto 26px;padding:0;list-style:none}.stepper li{flex:1;text-align:center;position:relative;font-size:11px;font-weight:700;color:var(--muted)}.stepper li:not(:last-child):after{content:'';position:absolute;top:17px;left:calc(50% + 23px);right:calc(-50% + 23px);height:2px;background:#d7e0eb}.stepper span{display:grid;place-items:center;border:1.5px solid #b8c8d8;border-radius:50%;width:35px;height:35px;margin:0 auto 8px;background:white;color:var(--navy)}.stepper .current span,.stepper .done span{background:var(--green);border-color:var(--green)}.stepper .current{color:var(--navy)}.wizard{max-width:900px;margin:auto;padding:28px 30px}.wizard h2{font-size:19px;letter-spacing:-.4px;margin:0 0 8px}.wizard-intro{color:var(--muted);font-size:12px;margin:0 0 24px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.choice{border:1px solid var(--line);background:#fff;padding:20px 12px;border-radius:9px;text-align:center;position:relative;color:var(--navy)}.choice .icon{width:27px;height:27px;color:#5b8500}.choice strong{display:block;font-size:12px;margin-top:10px}.choice small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.choice.selected{border:2px solid #80b900;background:#f9fdf2;padding:19px 11px}.choice.selected:after{content:'✓';position:absolute;right:8px;top:7px;background:var(--green);border-radius:50%;font-size:10px;width:16px;height:16px;color:var(--navy)}.form-group{display:grid;gap:7px;margin-top:22px}.form-group label,.form-group legend{font-size:12px;font-weight:700}.form-group small,.hint{font-size:11px;color:var(--muted)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-row .form-group{min-width:0}.recipient-summary{display:flex;justify-content:space-between;align-items:center;border:1px solid #dfebcf;background:#f6faef;border-radius:8px;padding:14px 18px;margin-top:18px;font-size:12px}.recipient-summary strong{font-size:24px;color:#4b7200}.recipient-summary small{display:block;color:var(--muted);font-size:10px}.contact-options{display:grid;gap:10px;margin-top:20px}.check-row{display:flex;gap:10px;align-items:flex-start;font-size:12px}.check-row small{display:block;font-size:10px;color:var(--muted)}.check-row label{flex:1;cursor:pointer}.contact-options .check-row{border:1px solid var(--line);border-radius:7px;padding:12px}.wizard-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:22px;margin-top:28px}.wizard-actions .right{display:flex;gap:8px}.save-state{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px;justify-content:flex-end;margin-top:12px}.save-state .icon{width:13px;height:13px}.mode-tabs{display:flex;gap:7px;flex-wrap:wrap}.mode-tabs button{padding:8px 11px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:11px;color:var(--muted)}.mode-tabs button.selected{color:var(--navy);border-color:#7fa44d;background:#f7fbea}.preview-box{border:1px solid var(--line);border-radius:8px;background:#f6f8fb;padding:15px;min-height:130px}.preview-box iframe{border:0;width:100%;height:300px;background:#fff;border-radius:5px}.preview-box h3{font-size:12px;margin:0 0 12px}.summary-list{display:grid;grid-template-columns:150px 1fr;font-size:12px;margin:20px 0}.summary-list dt,.summary-list dd{border-bottom:1px solid #edf1f6;padding:12px 0;margin:0;overflow-wrap:anywhere}.summary-list dt{color:var(--muted)}.summary-list dd{font-weight:700}.error-box{padding:13px 16px;border:1px solid #e9bbc4;border-radius:8px;background:#fff5f7;color:#9d2136;font-size:12px;margin-bottom:20px}.error-box p{margin:0 0 5px;font-weight:700}.error-box ul{margin:0;padding-left:18px}.field-error{color:#a6243c!important;font-size:11px}[aria-invalid=true]{border-color:#be3b51!important}.toast{position:fixed;z-index:20;bottom:24px;right:24px;max-width:420px;border-radius:9px;background:var(--navy);color:white;padding:15px 20px;box-shadow:0 8px 30px #041e4230;font-size:12px}dialog{width:min(520px,calc(100% - 32px));border:1px solid var(--line);border-radius:13px;padding:28px;color:var(--navy);box-shadow:0 20px 70px #041e4230}dialog::backdrop{background:#041e4260}dialog h2{margin:0 0 14px;font-size:21px}dialog p{font-size:13px;color:var(--muted)}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.skip{position:absolute;left:20px;top:-100px;background:white;color:var(--navy);padding:12px;z-index:30}.skip:focus{top:12px}.settings-grid{display:grid;gap:20px;max-width:800px}.settings-grid .section-card p{font-size:12px;color:var(--muted)}.fixture-label{font-size:10px;color:var(--muted);margin-top:8px}.data-list{display:grid;gap:14px}.data-list article{padding:20px;display:flex;justify-content:space-between;align-items:center;gap:15px}.data-list h2{font-size:15px;margin:0 0 4px}.data-list p{font-size:11px;color:var(--muted);margin:0}.file-result{font-size:11px;color:var(--muted);margin-top:8px}.inline-link{border:0;padding:0;background:none;color:#496d00;font-weight:700;text-decoration:underline;font-size:12px}.test-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:end}.test-controls label{font-size:11px;display:grid;gap:6px}.success-mark{display:grid;place-items:center;width:65px;height:65px;background:#ecf7dc;color:#517c00;border-radius:50%;margin:0 auto 20px}.success-mark svg{width:30px;height:30px}[hidden]{display:none!important}
@media(min-width:1450px){main{padding-top:42px}.table td{padding-top:22px;padding-bottom:22px}}
@media(max-width:1150px){.sidebar{width:204px;padding:22px 14px}main{padding:28px 24px}.topbar{padding:0 24px}.topnote{display:none}.top-actions{margin-left:auto}.stats-overview{gap:10px}.overview{padding:15px 12px;gap:10px}.overview-icon{width:30px;height:30px}.overview strong{font-size:21px}.chart-body{gap:18px}.donut{width:130px;height:130px}.donut span{width:94px;height:94px;font-size:22px}.app-footer{padding:20px 24px}}
@media(max-width:850px){.sidebar{width:182px;padding:20px 12px}.sidebar nav a{font-size:12px;padding:12px 10px}.brand img{height:52px}.side-caption{font-size:9px;letter-spacing:1px;margin-left:6px}.stats-overview,.metrics{grid-template-columns:repeat(2,1fr)}.two{grid-template-columns:1fr}.heading{align-items:flex-start}.heading h1{font-size:25px}.heading .btn{padding:11px}.wizard{padding:24px 20px}.wizard-actions .right{flex-wrap:wrap;justify-content:flex-end}.top-actions{gap:10px}.demo-badge{font-size:10px}.app-footer{flex-direction:column;gap:5px}.run-select{align-items:flex-start;flex-direction:column;gap:8px}.overview small{font-size:10px}}
@media(max-width:620px){.app{display:block}.sidebar{width:100%;height:auto;position:static;padding:12px 16px}.brand{width:146px;background:white;margin-bottom:12px;padding:0 4px}.brand img{height:42px}.side-caption,.side-bottom{display:none}.sidebar nav{display:flex;overflow:auto;gap:6px;padding-bottom:3px}.sidebar nav a{white-space:nowrap;font-size:11px;padding:10px}.sidebar nav a svg{width:16px;height:16px}.topbar{height:65px;padding:0 18px}.top-actions{width:100%;justify-content:space-between}.account{font-size:11px}.avatar{width:31px;height:31px}.demo-badge{margin-right:auto}.icon-button{width:28px;height:28px}main{padding:25px 18px}.heading{flex-direction:column;gap:17px;margin-bottom:22px}.heading h1{font-size:26px}.heading p{font-size:12px}.stats-overview{gap:9px;margin-bottom:22px}.overview{padding:14px 11px;gap:9px}.overview-icon{width:30px;height:30px;flex-shrink:0}.overview strong{font-size:20px}.overview small{font-size:9px}.toolbar{gap:10px}.toolbar label{min-width:120px}.toolbar .search{flex-basis:100%}.table{min-width:760px}.table-footer{padding:12px;align-items:flex-start;flex-direction:column}.table td{padding:15px 14px}.metrics{gap:10px}.metric{padding:15px}.metric strong{font-size:27px}.metric small{font-size:10px}.chart-card{padding:20px}.chart-body{justify-content:center;gap:25px}.legend{max-width:180px}.choices{gap:8px}.choice{padding:16px 7px}.choice.selected{padding:15px 6px}.choice .icon{width:23px;height:23px}.choice strong{font-size:10px}.choice small{font-size:9px}.wizard{padding:22px 16px}.wizard h2{font-size:18px}.form-row{grid-template-columns:1fr;gap:0}.stepper{margin:5px 0 25px}.stepper li{font-size:9px}.stepper span{width:30px;height:30px;font-size:11px}.stepper li:not(:last-child):after{top:15px;left:calc(50% + 19px);right:calc(-50% + 19px)}.wizard-actions{flex-wrap:wrap;gap:10px}.wizard-actions .right{margin-left:auto}.wizard-actions .btn{font-size:10px;padding:10px 12px}.summary-list{grid-template-columns:100px 1fr;font-size:11px}.app-footer{padding:20px 18px;font-size:9px}.toast{left:16px;right:16px;bottom:16px}.recipient-summary{padding:12px;font-size:11px}.recipient-summary strong{font-size:22px}.data-list article{align-items:flex-start}.settings-grid .section-card{padding:20px}.test-controls{display:grid}.dialog-actions{flex-wrap:wrap}.report-meta{font-size:11px;gap:7px}.run-select select{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* I punti di arrivo della navigazione non sono controlli interattivi. */
#view:focus,#step-title:focus{outline:none}
.access-page{background:#f5f8fb;min-height:100vh}.access-header{max-width:1200px;margin:auto;padding:22px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.access-header img{display:block;max-width:100%;height:auto}.access-header>a:last-child{font-size:12px}.access-main{display:grid;grid-template-columns:1fr 1fr;gap:95px;align-items:center;max-width:1080px;padding:65px 32px 85px}.access-intro h1{font-size:44px;line-height:1.15;letter-spacing:-1.7px;margin:20px 0}.access-intro p{font-size:17px;color:var(--muted);max-width:400px}.access-intro small{display:block;margin-top:40px;color:var(--muted)}.access-card{padding:32px}.access-card h2{font-size:25px;margin:0 0 8px}.access-card>.muted{font-size:12px;margin:0 0 25px}.access-kind{border:1px solid var(--line);border-radius:8px;display:flex;gap:20px;padding:14px;font-size:12px}.access-kind legend{font-size:11px;color:var(--muted);padding:0 5px}.access-kind label{display:flex;align-items:center;gap:7px}.access-kind input[type=radio]{width:auto;min-height:0;accent-color:#689900}.access-submit{width:100%;margin-top:26px}.access-footer{padding:25px;text-align:center;font-size:11px;color:var(--muted)}.editor-heading{display:flex;justify-content:space-between;gap:15px}.content-actions{display:flex;gap:8px;flex-wrap:wrap}.server-status{font-size:11px;color:var(--muted);margin-top:12px}.recipient-detail{font-size:11px;color:var(--muted)}.client-code{font-size:10px;color:var(--muted)}.draft-banner{padding:12px 16px;border-radius:8px;background:#edf4fc;color:#3a5575;font-size:12px;margin-bottom:22px}
@media(max-width:800px){.access-main{grid-template-columns:1fr;gap:30px;padding-top:30px;max-width:580px}.access-intro h1{font-size:33px}.access-intro small{display:none}.access-intro p{font-size:15px}.access-header{padding:18px 22px}.access-header img{width:165px}.access-header>a:last-child{font-size:11px}.access-card{padding:24px}.access-kind{gap:15px}}
.credit-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#f1f8e7;border:1px solid #d3e5b9;border-radius:10px;padding:20px 24px;margin-bottom:26px}.credit-panel>div>span,.credit-balance>div>span{display:block;font-size:11px;color:var(--muted)}.credit-panel strong{display:block;font-size:26px;line-height:1.3;margin:5px 0}.credit-panel small{display:block;font-size:10px;color:var(--muted)}.credit-panel-action{margin-left:auto;text-align:right}.credit-panel-action p{margin:0 0 8px}.credit-panel-action small{margin-top:8px}.credit-balance{display:flex;gap:40px;justify-content:space-between;align-items:center}.credit-balance strong{font-size:38px;line-height:1.4;display:block;color:#466d00}.credit-balance small{display:block;color:var(--muted);font-size:11px}.credit-balance p{font-size:13px;margin:0 0 5px}.credit-load{margin-top:24px;max-width:900px}.credit-history{margin-top:30px}.credit-history>h2{font-size:19px}.credit-history .table{min-width:1100px}.credit-history .table td{padding:14px 18px}
@media(max-width:620px){.credit-panel{flex-wrap:wrap;gap:15px;padding:16px}.credit-panel strong{font-size:23px}.credit-panel-action{width:100%;margin:0;text-align:left}.credit-balance{flex-direction:column;align-items:flex-start;gap:20px}.credit-balance strong{font-size:33px}}
.credit-packages{margin-top:28px;border-top:1px solid var(--line);padding-top:22px}.credit-packages h2{font-size:20px;margin:0 0 6px}.credit-packages>p{font-size:12px;color:var(--muted)}.package-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:13px;margin:20px 0}.package-card{border:1px solid var(--line);border-radius:9px;padding:18px;background:#fff}.package-card>span{font-size:10px;color:var(--muted)}.package-card h3{font-size:18px;margin:10px 0}.package-card>strong{display:block;font-size:24px;color:#466d00;margin-bottom:8px}.package-card small{display:block;min-height:38px;font-size:10px;color:var(--muted)}.package-card button{width:100%;margin-top:12px}.checkout-card{max-width:550px;margin:50px auto;padding:32px}.checkout-card>p{font-size:14px;line-height:1.7}@media(max-width:620px){.checkout-card{margin:25px 18px}.package-grid{grid-template-columns:1fr 1fr}.package-card{padding:14px}.package-card h3{font-size:16px}.package-card>strong{font-size:22px}.package-card .btn{font-size:10px;padding:10px}}
/* Composizione visuale e raccolta template */
.composer-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 18px}.wizard .tox-tinymce{border:1px solid #b8c8d8;border-radius:10px;max-width:100%}.template-dialog{box-sizing:border-box;width:min(1040px,calc(100% - 32px));max-height:90vh;border:0;border-radius:18px;padding:28px;color:#041e42;box-shadow:0 24px 100px #041e4240}.template-dialog::backdrop{background:#041e4280}.template-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.template-heading h2{font-size:26px;margin:8px 0}.template-heading p{color:#607087}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.template-card{border:1px solid #dce5ee;border-radius:12px;padding:18px;background:#fff}.template-card h3{margin:16px 0 8px;font-size:18px}.template-card p{font-size:14px;color:#607087;min-height:64px;line-height:1.5}.template-card .btn{margin:4px 0}.template-swatch{height:120px;background:#edf3f8;padding:14px 20px;border-radius:8px;overflow:hidden}.template-swatch span{display:block;height:18px;background:#041e42;margin:-14px -20px 12px}.template-swatch b{display:block;font-size:12px;background:#fff;padding:8px}.template-swatch i{display:block;height:4px;background:#b9cbdc;margin-top:9px;width:90%}.template-swatch i:last-child{width:60%}.template-import{padding:18px;background:#f4f7fa;border-radius:12px}.template-import label{display:block;font-weight:700;margin-bottom:12px}.template-import input{max-width:100%}.template-dialog iframe{width:100%;height:400px;border:1px solid #dce5ee;border-radius:8px}.template-dialog h3{margin-top:20px}
@media(max-width:700px){.template-dialog{padding:18px;width:calc(100% - 20px)}.template-grid{grid-template-columns:1fr}.template-card p{min-height:0}.template-heading{gap:10px}.template-heading h2{font-size:22px}.composer-actions{align-items:flex-start;flex-direction:column}}
.template-replace{padding:14px 16px;background:#fff5df;border:1px solid #f0d494;border-radius:10px;margin-top:18px}.template-replace .check-row{margin:0}.template-replace .field-error:empty{display:none}
.cta-manager{margin:28px 0;padding:22px;border:1px solid #dce5ee;border-radius:12px;background:#f7f9fc}.cta-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.cta-heading h3{margin:0 0 8px}.cta-heading p{font-size:14px;color:#526479;line-height:1.5;margin:0}.cta-limit{white-space:nowrap;background:#e6f2ca;color:#294704;padding:6px 10px;border-radius:20px;font-size:12px;font-weight:700}.cta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.cta-card{min-width:0;margin:0;padding:16px;background:#fff;border:1px solid #d5e0eb;border-radius:10px}.cta-card legend{padding:0 7px;font-weight:700;color:#041e42}.cta-card label{display:block;margin:5px 0 6px;font-size:14px;font-weight:600}.cta-card input{box-sizing:border-box;width:100%;margin-bottom:12px}.cta-card .btn{max-width:100%;white-space:normal}.cta-card .field-error{display:block;margin-top:8px}.cta-card .field-error:empty{display:none}@media(max-width:700px){.cta-manager{padding:16px}.cta-grid{grid-template-columns:1fr}.cta-heading{gap:10px}}
.cta-appearance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 18px}.cta-appearance label{font-size:12px}.cta-appearance input[type=color]{height:38px;padding:3px;margin:5px 0}.cta-appearance input[type=number],.cta-appearance select{width:100%;box-sizing:border-box;margin:5px 0 0}.cta-card.selected{border-color:#1686d9;box-shadow:0 0 0 2px #1686d92b}.cta-card-actions{display:flex;flex-wrap:wrap;gap:8px}.cta-card-actions .btn{font-size:12px}@media(max-width:700px){.cta-appearance{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cta-card[hidden],#cta-add[hidden]{display:none}.cta-add{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 18px}.cta-manager[data-visible-ctas="1"] .cta-card[data-cta-card="0"]{grid-column:1/-1}
.logo-dialog{width:min(800px,90vw);border:0;border-radius:18px;padding:28px;color:#20334b}.logo-dialog::backdrop{background:#041e4280}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.logo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.logo-card{border:1px solid #dce5ef;border-radius:12px;padding:18px}.logo-card img{display:block;width:100%;height:110px;object-fit:contain}.logo-card h3{font-size:15px}
.send-checks{margin:24px 0;padding:20px;border:1px solid #dce5ef;border-radius:12px;background:#f8fbfe}.send-checks h3{margin-top:0}.send-checks li{margin:8px 0}
.test-send-panel{margin:24px 0;padding:22px;border:1px solid #a9c5e0;border-radius:12px;background:#f3f8fd}.test-send-panel h3{margin-top:0}.test-send-panel input[type=email]{display:block;width:min(100%,560px);margin:8px 0}.test-send-panel .check-row{margin:18px 0}.test-send-panel .summary-list{margin-top:20px}.test-send-panel .btn{margin:8px 8px 8px 0}
/* Report per campagna */
.statistics-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;color:var(--navy,#041e42);font-size:13px;font-weight:700;text-decoration:none}.statistics-heading p{font-size:18px}.statistics-client{display:block;margin-top:10px;color:#5e7189}.statistics-actions,.statistics-row-actions{display:flex;gap:10px;flex-wrap:wrap}.statistics-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:24px;margin-bottom:24px}.statistics-meta span,.statistics-meta small{display:block;font-size:12px;color:#60758e;margin-bottom:8px}.statistics-meta strong{font-size:15px;overflow-wrap:anywhere}.statistics-meta small{margin:6px 0 0;font-weight:400}.statistics-notice{display:flex;gap:16px;background:#f1f7ff;border:1px solid #cbdcf0;border-radius:12px;padding:20px;margin-bottom:24px;font-size:14px}.statistics-notice .icon{flex-shrink:0}.statistics-notice p{line-height:1.6;margin:7px 0 0;color:#526b87}.statistics-metric span:not(.overview-icon){display:block;font-size:12px;margin:5px 0}.statistics-metric small{line-height:1.5}.overview-icon.red{background:#fff0f0;color:#cb3346}.statistics-charts{display:grid;grid-template-columns:1fr 1fr;gap:24px}.statistics-explanation{font-size:12px;line-height:1.7;color:#63778e;margin:18px 0 28px}.statistics-empty-chart{text-align:center}.donut.no-data{background:#e9eef4}.statistics-trials,.statistics-detail{padding:24px;margin-top:24px}.statistics-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.statistics-section-heading h2,.statistics-detail h2{font-size:18px;margin:0 0 10px}.statistics-section-heading p{font-size:13px;color:#63778e;line-height:1.7;max-width:680px}.statistics-private{font-size:10px;font-weight:700;letter-spacing:.06em;white-space:nowrap;background:#edf3fa;padding:8px;border-radius:6px}.statistics-trial-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:22px 0}.statistics-trial-summary strong{display:block;font-size:24px;margin-bottom:7px}.statistics-trial-summary span{font-size:12px;color:#63778e}.statistics-trial-status{font-size:12px;white-space:nowrap}.statistics-trial-status.confirmed{color:#3c7100}.statistics-trial-status.rejected{color:#bc283b}.statistics-no-trials{font-size:14px;padding:20px 0;color:#63778e}.statistics-detail p{overflow-wrap:anywhere}.statistics-trials .table{min-width:720px}.statistics-charts .chart-body{gap:24px}.statistics-charts .legend{min-width:110px}
@media(max-width:1150px){.statistics-charts .chart-body{flex-direction:column}.statistics-charts .legend{width:100%}.statistics-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.statistics-heading{align-items:flex-start}.statistics-charts{grid-template-columns:1fr}.statistics-charts .chart-body{flex-direction:row;justify-content:center}.statistics-charts .legend{width:auto}.statistics-section-heading{flex-direction:column;gap:0}.statistics-trial-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.statistics-meta{padding:18px;gap:18px}.statistics-charts .chart-body{flex-direction:column}.statistics-charts .legend{width:100%}.statistics-actions .btn{font-size:12px}.statistics-trials{padding:18px}.statistics-metric{padding:15px 12px;gap:8px}.statistics-metric strong{font-size:21px}.statistics-metric .overview-icon{width:28px;height:28px;flex-shrink:0}.statistics-metric .overview-icon .icon{width:19px;height:19px}}
/* Navigazione diretta dei passaggi della bozza */
.stepper button{display:block;width:100%;border:0;padding:3px 0;background:transparent;color:inherit;font:inherit;text-align:center;cursor:pointer;border-radius:8px}.stepper li:not(:last-child):after{pointer-events:none}.stepper button:hover{color:var(--navy);background:#eaf1f8}.stepper button:hover span{border-color:var(--navy)}.stepper button:focus-visible{outline:3px solid #2877bd;outline-offset:4px}.stepper button:disabled{cursor:wait}
/* Pannello oggetti dell'editor visuale */
.layout-tools{margin:18px 0 12px;padding:18px;background:#f5f8fc;border:1px solid #cbd8e5;border-radius:12px}.layout-insert,.layout-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.layout-insert>strong{color:#041e42;margin-right:8px}.layout-insert label{font-size:12px}.layout-insert select{margin-left:8px}.layout-upload{position:relative;cursor:pointer;overflow:hidden}.layout-upload input{position:absolute;width:1px;height:1px;opacity:0}.layout-upload:focus-within{outline:3px solid #2877bd;outline-offset:3px}.layout-properties{border:0;border-top:1px solid #d3dfea;padding:15px 0 0;margin:14px 0 0;min-width:0}.layout-properties legend{font-size:13px;font-weight:bold;padding-right:12px}.layout-properties:disabled{opacity:.55}.layout-fields{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.layout-fields>label{display:flex;flex-direction:column;gap:6px;font-size:11px;min-width:95px;flex:1}.layout-fields input:not([type=checkbox]),.layout-fields select{width:100%;min-height:36px;max-width:100%;padding:6px;border:1px solid #b6c7d8;border-radius:5px;background:#fff;color:#041e42}.layout-fields input[type=color]{height:36px;min-width:60px;padding:3px}.layout-fields .check-row{flex-direction:row;align-items:center;min-width:135px}.layout-text-fields>label,.layout-image-fields>label{font-size:12px;display:grid;gap:6px}.layout-text-fields textarea,.layout-image-fields input{width:100%;padding:10px;border:1px solid #b6c7d8;border-radius:6px}.layout-message{font-size:12px;line-height:1.5;color:#36516e}.layout-actions .danger{color:#a6243c}.layout-tools .hint{margin:10px 0 0}.layout-insert input:focus+span{outline:3px solid #2877bd}@media(max-width:620px){.layout-tools{padding:12px}.layout-fields>label{flex-basis:40%;min-width:90px}.layout-insert .btn,.layout-actions .btn{font-size:11px;padding:10px}.layout-insert>strong{width:100%}}
.layout-inspector{padding:0 18px;background:#f5f8fc;border-radius:0 0 12px 12px}.layout-inspector:has(fieldset[hidden]){display:none}.layout-inspector .layout-properties{padding:18px 0;margin:0}
.layout-insert{align-items:flex-end}.layout-insert>strong{align-self:center}.layout-insert .btn{min-height:42px}.layout-insert .layout-shape-choice{display:flex;flex-direction:column;gap:6px;min-width:155px}.layout-insert .layout-shape-choice select{display:block;margin:0;min-height:42px;padding:9px 12px;border:1px solid #b6c7d8;border-radius:7px;background:#fff;color:#041e42;font:inherit}.layout-inspector{scroll-margin-top:24px}
.layout-inspector{border:1px solid #b6c7d8;border-radius:12px;padding:0 16px 16px}.layout-inspector[hidden]{display:none}.layout-inspector.is-floating{position:fixed;right:18px;top:16px;width:370px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 32px);overflow:auto;z-index:1200;box-shadow:0 12px 40px #041e4233}.layout-inspector-heading{display:flex;align-items:center;gap:6px;position:sticky;top:0;background:#f5f8fc;padding:12px 0;z-index:1;border-bottom:1px solid #cbd8e5}.is-floating .layout-inspector-heading{cursor:move;touch-action:none}.layout-inspector-heading strong{flex:1;font-size:13px}.layout-inspector-heading .btn{font-size:11px;padding:6px 8px;min-height:32px}.layout-inspector .layout-properties{border:0;padding-top:6px}.layout-inspector .layout-properties legend{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.layout-inspector .layout-live-status{font-size:11px;line-height:1.5;margin:10px 0;color:#36516e}.layout-inspector .layout-fields{gap:10px}.layout-inspector .layout-fields>label{flex-basis:40%}.layout-inspector [hidden]{display:none!important}.layout-button-fields>label{display:grid;gap:6px;font-size:12px}.layout-button-fields input{width:100%;padding:10px;border:1px solid #b6c7d8;border-radius:6px}.layout-inspector .layout-actions .btn{padding:8px;font-size:12px}.layout-inspector .layout-fields label:has(#layout-ratio){flex-basis:100%}@media(max-width:620px){.layout-inspector.is-floating{top:8px;right:8px;width:320px}}
.template-library{width:min(1100px,calc(100vw - 32px));max-height:92dvh;padding:28px}.template-library .template-heading{margin-bottom:16px}.template-library .template-heading p{margin:0;font-size:13px}.template-library .template-replace{padding:12px;margin:12px 0}.template-library .template-heading h2{margin:6px 0;font-size:28px}.template-library-controls{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:16px}.template-library label{display:grid;gap:7px;font-size:12px;font-weight:600}.template-library input:not([type=checkbox]),.template-library select{width:100%;padding:11px 12px;border:1px solid #bacbdb;border-radius:8px;color:#041e42;background:#fff;font:inherit;min-height:42px}.template-library .check-row{display:flex;align-items:flex-start;line-height:1.6}.template-library-status{font-size:13px;color:#526479;margin:16px 0}.template-library .template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.template-library .template-card{padding:0;overflow:hidden;border:1px solid #d4dfea;border-radius:12px;background:#fff}.template-thumb{height:180px;background:#edf2f7;border-bottom:1px solid #dce6ef;overflow:hidden;pointer-events:none;position:relative}.template-thumb iframe{width:840px;height:1050px;transform:scale(.36);transform-origin:top left;border:0;pointer-events:none}.template-card-body{padding:18px}.template-library .template-card h3{font-size:17px;margin:10px 0}.template-library .template-card p{font-size:12px;line-height:1.6;min-height:40px}.template-source{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#526479}.template-card-buttons{display:flex;gap:8px;flex-wrap:wrap}.template-card-buttons .btn{font-size:12px;padding:9px 12px}.template-library-pages{display:flex;justify-content:center;align-items:center;gap:16px;margin:24px 0;font-size:12px}.template-preview-detail{border:1px solid #d4dfea;background:#f4f7fb;border-radius:12px;padding:18px;margin-top:20px;scroll-margin-top:12px}.template-preview-detail>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.template-preview-detail iframe{width:100%;height:600px;border:0;background:#fff}.template-preview-detail[hidden],.template-library [hidden]{display:none!important}.template-library .template-import{margin-top:24px;border-top:1px solid #d4dfea;padding-top:20px}.template-save-dialog{width:min(560px,calc(100vw - 24px))}.template-save-dialog form>label{margin:18px 0}.template-save-dialog .hint,.template-scope-note{font-size:12px;line-height:1.6;color:#526479}.template-save-dialog form>button{margin-top:14px}.template-library::backdrop{background:#031d3bb3}.template-library .eyebrow{font-size:10px;color:#55728b;letter-spacing:2px}@media(max-width:900px){.template-library .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.template-library{padding:18px}.template-library-controls,.template-library .template-grid{grid-template-columns:1fr}.template-library .template-heading{align-items:flex-start}.template-library .template-heading h2{font-size:23px}.template-library .template-grid{max-width:360px;margin:auto}.template-preview-detail{padding:10px}.template-preview-detail iframe{height:480px}}
.dispatch-card{padding:28px;max-width:1000px}.dispatch-state{padding:18px;background:#f0f6fd;border:1px solid #ccdeef;border-radius:10px;line-height:1.6}.dispatch-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.dispatch-confirm{border:1px solid #c6dda1;background:#f6fbea;border-radius:10px;padding:24px;margin:24px 0}.dispatch-confirm h2{font-size:20px;margin-top:0}.dispatch-confirm .check-row{font-size:14px;line-height:1.7;margin:20px 0}.dispatch-progress{display:grid;gap:10px;font-size:14px;margin:20px 0}.dispatch-progress progress{width:100%;height:16px;accent-color:#79bd00}@media(max-width:620px){.dispatch-card{padding:18px}.dispatch-confirm{padding:16px}}
