@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#18352a;background:#f5f7f4}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{display:flex;min-height:100vh}.sidebar{width:248px;background:#0e2b21;color:#e8f0e9;padding:30px 16px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:11px;padding:0 15px 38px;font-family:'Plus Jakarta Sans',sans-serif;font-size:18px;line-height:1.03;letter-spacing:-.04em}.brand-mark{width:39px;height:39px;border-radius:12px;background:#b9e570;color:#183b24;display:grid;place-items:center;font-weight:800;letter-spacing:-.07em}.nav-label{font-size:10px;color:#78988a;letter-spacing:.16em;padding:0 16px;margin:13px 0}.sidebar nav{display:grid;gap:5px;margin-bottom:24px}.nav-item{border:0;background:transparent;color:#adc5b6;border-radius:10px;padding:12px 15px;text-align:left;font-weight:600;display:flex;align-items:center;gap:13px}.nav-item span{font-size:19px;width:20px;text-align:center}.nav-item:hover,.nav-item.active{background:#244536;color:white}.sidebar-bottom{margin-top:auto;border-top:1px solid #345044;padding:20px 7px 0;display:flex;align-items:center;gap:9px;font-size:12px}.sidebar-bottom small{display:block;color:#8da89a;margin-top:3px}.avatar{width:34px;height:34px;border-radius:50%;background:#cae3d0;color:#215237;display:grid;place-items:center;font-weight:800}.sidebar-bottom button{margin-left:auto;background:none;border:0;color:#aac6b6;font-size:22px}.main{flex:1;min-width:0}.topbar{height:76px;border-bottom:1px solid #e2e9e2;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{color:#8aa093;font-size:13px}.breadcrumb span{margin:0 11px;color:#c4d1c7}.breadcrumb b{color:#254637}.top-actions{display:flex;align-items:center;gap:12px;font-size:12px;color:#63836e}.live-dot{width:7px;height:7px;background:#4cbc76;border-radius:50%;box-shadow:0 0 0 4px #e5f7e8}.primary,.secondary,.danger{border:0;border-radius:10px;padding:11px 17px;font-weight:700;white-space:nowrap}.primary{background:#1c804b;color:#fff;box-shadow:0 4px 10px #1c804b22}.primary:hover{background:#176b3e}.secondary{background:#eef4ef;color:#28543b}.danger{background:#fce9e7;color:#a6342c}.icon-btn{background:none;border:0;font-size:25px;color:#73877b}#content{max-width:1480px;margin:auto;padding:38px}.page-kicker{color:#1f8a51;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.page-title{font-family:'Plus Jakarta Sans',sans-serif;font-size:30px;letter-spacing:-.05em;margin:5px 0 7px}.muted{color:#82958a}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}.page-head p{margin:0;font-size:14px}.range{background:#fff;border:1px solid #e2e9e2;padding:10px 12px;border-radius:9px;color:#466653}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat-card,.panel{background:#fff;border:1px solid #e6ece6;border-radius:16px;box-shadow:0 5px 25px #1d473009}.stat-card{padding:21px 23px;min-height:145px}.stat-icon{font-size:19px;color:#219351;background:#ecf8ed;border-radius:10px;width:35px;height:35px;display:grid;place-items:center}.stat-card label{display:block;color:#82958a;font-size:12px;margin-top:16px}.stat-card strong{font:800 27px 'Plus Jakarta Sans';letter-spacing:-.05em}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;margin-top:19px}.panel{padding:22px}.panel h3{font:700 16px 'Plus Jakarta Sans';margin:0 0 20px}.chart{height:206px;display:flex;align-items:end;gap:8px;padding:14px 0 0;border-bottom:1px solid #e9eee9}.bar-wrap{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:7px}.bar{width:100%;max-width:40px;min-height:2px;border-radius:6px 6px 0 0;background:linear-gradient(#43bd70,#1e8b4e)}.bar-wrap small{font-size:10px;color:#9aaba0}.source-row{display:flex;align-items:center;gap:10px;margin:15px 0;font-size:12px}.source-row span:first-child{width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-track{height:8px;background:#eef3ed;border-radius:9px;flex:1;overflow:hidden}.source-track i{display:block;height:100%;background:#47b97a;border-radius:9px}.source-row b{width:28px;text-align:right}.empty{color:#91a297;text-align:center;padding:45px 15px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;text-align:left}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#94a79b;background:#f8faf8}.table th,.table td{padding:15px 17px;border-bottom:1px solid #edf0eb;white-space:nowrap}.table td{font-size:13px}.table tr:last-child td{border-bottom:0}.table strong{font-size:13px}.pill{display:inline-flex;border-radius:30px;padding:5px 9px;font-size:11px;font-weight:700}.pill.published{background:#e4f5e8;color:#20814d}.pill.draft{background:#fff2dc;color:#a76b12}.row-action{border:0;background:none;color:#1b854c;font-weight:700}.landing-icon{display:inline-grid;place-items:center;width:31px;height:31px;border-radius:8px;background:#e5f4e8;color:#268453;margin-right:9px}.toolbar{display:flex;gap:9px;align-items:center}.search{border:1px solid #e0e8e1;background:#fff;padding:10px 12px;border-radius:9px;min-width:220px}.editor-head{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:24px}.editor-head h1{margin:0;font:800 25px 'Plus Jakarta Sans';letter-spacing:-.04em}.editor-head p{margin:5px 0;color:#8b9d90;font-size:12px}.editor-tabs{display:flex;gap:4px;background:#eaf0e9;padding:5px;border-radius:12px;max-width:max-content;margin-bottom:20px}.editor-tabs button{border:0;background:transparent;color:#6c8474;padding:9px 15px;border-radius:8px;font-weight:700}.editor-tabs button.active{background:white;color:#205d3a;box-shadow:0 2px 8px #25453311}.editor-grid{display:grid;grid-template-columns:minmax(380px,1fr) minmax(340px,.92fr);gap:20px}.form-panel{background:#fff;border:1px solid #e5ece5;border-radius:15px;padding:24px}.section-title{font:700 17px 'Plus Jakarta Sans';margin:0 0 6px}.section-note{font-size:12px;color:#91a196;margin:0 0 20px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field-grid .full{grid-column:1/-1}.field{display:block;font-size:12px;font-weight:700;color:#42614c;margin-bottom:14px}.field input,.field textarea,.field select,.auth-card input,.dialog-head+label input,.form-panel input,.form-panel textarea,.form-panel select{display:block;width:100%;margin-top:6px;padding:11px 12px;border:1px solid #dce7dc;border-radius:9px;outline:0;background:#fff;color:#234335}.field textarea,.form-panel textarea{min-height:72px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#42ad6a;box-shadow:0 0 0 3px #42ad6a22}.group{border:1px solid #e7eee7;border-radius:12px;margin-bottom:12px;padding:14px}.group-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:8px}.group-head button{border:0;background:none;color:#ac4d41}.mini-add{background:#ecf7ee;border:0;color:#27814a;border-radius:8px;padding:8px 11px;font-weight:700}.media-row{display:flex;align-items:center;gap:9px;margin:8px 0}.media-row input{flex:1;min-width:0}.media-row img{width:43px;height:43px;object-fit:cover;border-radius:7px;background:#f2f4f0}.media-row button{border:0;background:#e9f4eb;color:#23834b;border-radius:8px;padding:9px}.preview-box{position:sticky;top:20px;align-self:start;background:#fff;border:1px solid #e5ece5;border-radius:15px;overflow:hidden}.preview-head{padding:13px 17px;border-bottom:1px solid #e5ece5;display:flex;justify-content:space-between;font-size:12px;color:#708879}.preview-head button{border:0;background:none;font-weight:700;color:#288b53}.preview-box iframe{width:100%;height:610px;border:0}.status-line{font-size:12px;color:#809487;margin:0 0 13px}.settings-card{max-width:660px}.hint{font-size:12px;color:#8d9e91}.warning{padding:13px;background:#fff6e4;color:#9a661f;border-radius:9px;font-size:12px}.auth-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 10% 10%,#e9f6e8,transparent 40%),#f3f6f2;padding:20px}.auth-card{width:min(440px,100%);background:white;border:1px solid #e2ebe1;border-radius:20px;padding:34px;box-shadow:0 20px 70px #14452c15}.auth-card .brand-mark{margin-bottom:24px}.auth-card h1{font:800 25px 'Plus Jakarta Sans';letter-spacing:-.04em}.auth-card p{color:#819384;font-size:13px}.auth-card label{display:block;font-size:12px;font-weight:700;margin:20px 0}.auth-card button{width:100%}.error{color:#bc3e38!important;font-size:12px}.dialog-head{display:flex;justify-content:space-between}.dialog-head small,.field-caption{font-size:10px;color:#24844c;font-weight:800;letter-spacing:.16em}.dialog-head h2{font:800 24px 'Plus Jakarta Sans';letter-spacing:-.04em;margin:5px 0 20px}dialog{border:1px solid #e2e9e1;border-radius:18px;width:min(500px,calc(100% - 28px));padding:28px;box-shadow:0 25px 90px #082a1c44}dialog::backdrop{background:#0c261baa}dialog label{display:block;font-size:12px;font-weight:700}.template-choice{border:2px solid #4bad70;border-radius:12px;display:flex!important;align-items:center;gap:13px;padding:14px}.template-choice input{accent-color:#21894f}.template-icon{background:#e8f6e9;padding:13px;border-radius:9px;font-size:20px;color:#2e9959}.template-choice small{display:block;color:#8d9d90;font-weight:400;margin-top:4px}.selected-icon{margin-left:auto;color:#2a9c59}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.field-caption{margin:24px 0 9px}#toast{position:fixed;right:25px;bottom:25px;background:#153c2a;color:white;padding:12px 17px;border-radius:9px;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:10}#toast.show{opacity:1;transform:none}#mobile-nav{display:none}
@media(max-width:1050px){.cards{grid-template-columns:repeat(2,1fr)}.editor-grid{grid-template-columns:1fr}.preview-box{position:static}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:720px){.sidebar{position:fixed;z-index:5;inset:0 auto 0 0;transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.topbar{padding:0 17px;height:63px}.top-actions{font-size:0}.top-actions .live-dot{display:none}.top-actions .primary{font-size:12px;padding:9px}.breadcrumb{font-size:12px}#mobile-nav{display:block;border:0;background:none;margin-right:8px}.topbar{justify-content:flex-start}.top-actions{margin-left:auto}#content{padding:24px 15px}.page-title{font-size:25px}.page-head{align-items:flex-start;flex-direction:column}.cards{gap:10px}.stat-card{padding:15px;min-height:135px}.stat-card strong{font-size:23px}.editor-head{align-items:flex-start;flex-direction:column}.editor-head .toolbar{flex-wrap:wrap}.field-grid{grid-template-columns:1fr}.preview-box iframe{height:500px}}
[hidden]{display:none!important}
.form-panel[data-section]{margin-bottom:14px}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:19px}
.section-heading .section-note{margin-bottom:0}
.history-open{border:1px solid #dbe8dd;background:#f7faf7;color:#2c7449;border-radius:8px;padding:8px 10px;font-size:11px;font-weight:700;white-space:nowrap}
.history-open:hover{background:#eaf5eb}
.section-footer{display:flex;justify-content:flex-end;border-top:1px solid #e9eee8;margin-top:22px;padding-top:17px}
.field-input-wrap{display:flex;align-items:center;gap:7px;width:100%}
.field .field-input-wrap input,.field .field-input-wrap textarea,.field .field-input-wrap select{flex:1;min-width:0;width:auto}
.field .field-input-wrap input[type=checkbox]{flex:0 0 auto;width:16px;height:16px}
.media-row .field-input-wrap{flex:1;min-width:0}
.media-row .field-input-wrap input{flex:1;min-width:0}
.field-undo{flex:0 0 32px;height:32px;border:1px solid #dce9dd;border-radius:8px;background:#f3f8f3;color:#257647;font-size:20px;line-height:1;display:grid;place-items:center}
.field-undo:hover:not(:disabled){background:#e0f2e4}
.field-undo:disabled{color:#b9c8bc;background:#f9faf8;cursor:not-allowed}
.history-dialog{width:min(660px,calc(100% - 24px));max-height:85vh;border:1px solid #e2eae2;border-radius:16px;padding:25px;box-shadow:0 25px 90px #082a1c44}
.history-header{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.history-header small{font-size:10px;color:#24844c;font-weight:800;letter-spacing:.16em}
.history-header h2{font:800 22px 'Plus Jakarta Sans';letter-spacing:-.04em;margin:5px 0}
.history-help{color:#788d7d;font-size:12px;line-height:1.5}
.history-list{max-height:55vh;overflow:auto;margin-top:17px}
.history-item{padding:14px 0;border-top:1px solid #e8eee8}
.history-item>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}
.history-item small{color:#91a396}
.history-item p{display:flex;gap:10px;align-items:center;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin:9px 0}
.history-item del{color:#9baba0}
.history-item strong{color:#235c3c}
.history-remove{border:0;background:#fcece9;color:#a53c34;border-radius:7px;padding:7px 10px;font-size:11px;font-weight:700}
@media(max-width:600px){.section-heading{flex-direction:column}.history-item>div{flex-direction:column}}

.editor-tabs{flex-wrap:wrap}.cards{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}.order-dialog{width:min(760px,calc(100% - 24px));max-height:90vh;overflow:auto}.order-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:20px 0}.order-detail-grid div{padding:10px;background:#f5f8f4;border-radius:8px;overflow-wrap:anywhere}.order-detail-grid small{display:block;color:#82958a;font-size:11px}.order-detail-grid strong{font-size:13px}.order-dialog .toolbar{flex-wrap:wrap}@media(max-width:520px){.order-detail-grid{grid-template-columns:1fr}}

.info-guide{max-width:920px;padding:30px 34px;color:#284333;line-height:1.75;font-size:15px}.info-guide .info-intro{font-size:17px;margin-top:0}.info-guide ol{padding-left:23px}.info-guide li{padding-left:7px;margin:12px 0}.info-guide p{margin:22px 0}.info-guide code{background:#edf4ed;border-radius:5px;padding:2px 5px;overflow-wrap:anywhere}.info-guide strong{color:#164b2e}@media(max-width:720px){.info-guide{padding:20px;font-size:14px}}

/* Anteprima sempre accessibile durante la modifica. */
.editor-grid{grid-template-columns:minmax(0,1fr) minmax(290px,.82fr)}
#editor-fields{min-width:0}
.preview-box{position:sticky;top:16px;min-width:0}
@media(max-width:940px){.editor-grid{grid-template-columns:1fr}.preview-box{grid-row:1;position:sticky;top:0;z-index:3}.preview-box iframe{height:min(32vh,280px)}}

.landing-actions{display:flex;align-items:center;gap:12px}.translate-action{border:1px solid #cfe5d3;background:#edf8ef;color:#217847;border-radius:8px;padding:8px 10px;font-weight:700;white-space:nowrap}.translate-action:hover{background:#dff1e3}#translate-dialog select,#translate-dialog input{display:block;width:100%;margin:7px 0 14px;padding:11px 12px;border:1px solid #dce7dc;border-radius:9px;background:#fff;color:#234335}#translate-dialog .hint{line-height:1.5}#submit-translate:disabled{opacity:.65;cursor:wait}

#translate-dialog .dialog-actions{flex-wrap:wrap}
