.aiaudata-editor{margin:26px 0 32px;padding:26px;border:1px solid #dbe3ec;border-radius:22px;background:linear-gradient(145deg,#fff,#f6f9fc);box-shadow:0 16px 42px rgba(5,44,92,.08)}
.aiaudata-editor h3{margin:0 0 20px;color:#052c5c;font-size:1.45rem}
.aiaudata-editor form>label{display:grid;gap:8px;margin:0 0 18px;color:#052c5c;font-weight:900}
.aiaudata-editor input:not([type=checkbox]),.aiaudata-editor textarea,.aiaudata-editor select{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid #c9d5e2;border-radius:12px;background:#fff;color:#17202a;font:inherit;outline:0}
.aiaudata-editor input:focus,.aiaudata-editor textarea:focus,.aiaudata-editor select:focus{border-color:#07549a;box-shadow:0 0 0 3px rgba(7,84,154,.12)}
.aiaudata-editor textarea{min-height:180px;resize:vertical}.aiaudata-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.aiaudata-editor fieldset{margin:20px 0;padding:20px;border:1px solid #dbe3ec;border-radius:16px;background:#fff}.aiaudata-editor legend{padding:0 8px;color:#052c5c;font-weight:900}.aiaudata-editor fieldset>p{margin:0 0 14px;color:#657486}
.aiaudata-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.aiaudata-groups label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e0e7ef;border-radius:10px;background:#f8fafc}
.aiaudata-editor button[name=mode]{min-height:46px;padding:0 18px;border:0;border-radius:12px;font-weight:900;cursor:pointer}.aiaudata-editor button[value=publish]{background:#052c5c;color:#fff}.aiaudata-editor button[value=draft]{margin-left:8px;background:#eaf0f6;color:#052c5c}
.aiaudata-admin-list{display:grid;gap:16px}.aiaudata-admin-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;padding:22px;border:1px solid #dbe3ec;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(5,44,92,.06)}
.aiaudata-admin-card h3{margin:8px 0;color:#052c5c}.aiaudata-status{display:inline-flex;padding:5px 10px;border-radius:999px;background:#e9f1fb;color:#052c5c;font-weight:900}.aiaudata-admin-actions{display:flex;align-items:flex-start;gap:8px}.aiaudata-admin-actions form{margin:0}
.aiaudata-edit,.aiaudata-delete{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border:0;border-radius:10px;text-decoration:none!important;font-weight:900;cursor:pointer}.aiaudata-edit{background:#e9f1fb;color:#052c5c!important}.aiaudata-delete{background:#fdecea;color:#a92518}
.aiaudata-readers{margin-top:16px;border:1px solid #dbe3ec;border-radius:12px;overflow:hidden}.aiaudata-readers summary{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#f5f8fb;color:#052c5c;font-weight:900;cursor:pointer;list-style:none}.aiaudata-readers summary::-webkit-details-marker{display:none}.aiaudata-readers summary i{font-style:normal;transition:transform .2s}.aiaudata-readers[open] summary i{transform:rotate(180deg)}.aiaudata-readers>div{padding:12px 16px}.aiaudata-readers ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.aiaudata-readers li{padding:8px 10px;border-radius:9px;background:#f8fafc}.aiaudata-readers p{margin:0;color:#657486}
@media(max-width:800px){.aiaudata-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.aiaudata-admin-card{grid-template-columns:1fr}.aiaudata-admin-actions{justify-content:flex-start}}
@media(max-width:560px){.aiaudata-editor{padding:18px}.aiaudata-grid,.aiaudata-groups,.aiaudata-readers ul{grid-template-columns:1fr}.aiaudata-editor button[name=mode]{width:100%;margin:8px 0 0!important}.aiaudata-admin-actions{display:grid;grid-template-columns:1fr 1fr}.aiaudata-edit,.aiaudata-delete{width:100%;box-sizing:border-box}}
/* 1.2.0: destinatari per Qualifica, OT e Responsabilita. */
.aiaudata-editor fieldset h4{margin:18px 0 9px;color:#052c5c;font-size:.82rem;text-transform:uppercase;letter-spacing:.06em}.aiaudata-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.aiaudata-targets label{display:flex;align-items:flex-start;gap:9px;padding:10px 12px;border:1px solid #e0e7ef;border-radius:10px;background:#f8fafc;color:#263544;font-size:.83rem;line-height:1.3}.aiaudata-targets input{width:18px!important;height:18px!important;min-height:18px!important;margin:1px 0 0!important;flex:0 0 18px}.aiaudata-targets b{color:#052c5c}@media(max-width:700px){.aiaudata-targets{grid-template-columns:1fr}}


/* 1.3.3: editor comunicazioni richiudibile e accessibile. */
.aiaudata-editor-toggle{margin:24px 0 30px;border:1px solid #dbe3ec;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(5,44,92,.08);overflow:hidden}.aiaudata-editor-toggle>summary{display:flex;align-items:center;gap:13px;box-sizing:border-box;min-height:66px;padding:11px 15px;list-style:none;cursor:pointer;background:#052c5c;color:#fff;user-select:none}.aiaudata-editor-toggle>summary::-webkit-details-marker{display:none}.aiaudata-editor-toggle>summary:focus-visible{outline:3px solid rgba(7,84,154,.28);outline-offset:3px}.aiaudata-editor-toggle-icon{display:grid!important;place-items:center!important;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#fff;color:#052c5c;line-height:0}.aiaudata-editor-toggle-icon svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}.aiaudata-editor-toggle-copy{display:grid!important;gap:3px;min-width:0;flex:1;color:#fff!important;text-transform:none!important;letter-spacing:0!important}.aiaudata-editor-toggle-copy b{display:block;color:#fff!important;font-size:1rem;line-height:1.15;text-transform:none!important;letter-spacing:0!important}.aiaudata-editor-toggle-copy small{display:block;color:rgba(255,255,255,.78)!important;font-size:.78rem;line-height:1.2;text-transform:none!important;letter-spacing:0!important}.aiaudata-editor-toggle-chevron{display:grid!important;place-items:center!important;flex:0 0 32px;width:32px;height:32px;color:#fff;transition:transform .18s ease}.aiaudata-editor-toggle-chevron svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.aiaudata-editor-toggle[open] .aiaudata-editor-toggle-chevron{transform:rotate(180deg)}.aiaudata-editor-toggle[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0}.aiaudata-editor-toggle>.aiaudata-editor{margin:0;padding:25px;border:0;border-radius:0;background:linear-gradient(145deg,#fff,#f6f9fc);box-shadow:none}@media(max-width:560px){.aiaudata-editor-toggle{margin:18px 0 24px;border-radius:15px}.aiaudata-editor-toggle>summary{padding:10px 12px}.aiaudata-editor-toggle-copy small{display:none}.aiaudata-editor-toggle>.aiaudata-editor{padding:17px}}


/* 1.5.4: ripristino completo interfaccia Gestione comunicazioni. */
body:has(.aiaudata-head) main,
body:has(.aiaudata-head) .site-main,
body:has(.aiaudata-head) .entry-content,
body:has(.aiaudata-head) .wp-block-post-content{
  box-sizing:border-box!important;
  zoom:1!important;
  transform:none!important;
}
body:has(.aiaudata-head) .entry-content,
body:has(.aiaudata-head) .wp-block-post-content{
  width:min(1180px,calc(100% - 32px))!important;
  max-width:1180px!important;
  min-width:0!important;
  margin-inline:auto!important;
  padding:28px 0 56px!important;
  font-size:16px!important;
  line-height:1.5!important;
}
.aiaudata-head,.aiaudata-editor-toggle,.aiaudata-filters,.aiaudata-count,.aiaudata-admin-list,.aiaudata-pager{box-sizing:border-box!important;width:100%!important;max-width:100%!important;transform:none!important;zoom:1!important}
.aiaudata-head{margin:0 0 20px!important;padding:0!important}
.aiaudata-head>span{display:block!important;margin:0 0 5px!important;color:#c8102e!important;font-size:.76rem!important;font-weight:900!important;letter-spacing:.11em!important;text-transform:uppercase!important}
.aiaudata-head h2{margin:0!important;color:#052c5c!important;font-size:clamp(1.9rem,4vw,2.55rem)!important;line-height:1.1!important}
.aiaudata-head p{max-width:760px!important;margin:9px 0 0!important;color:#5d6d7e!important;font-size:1rem!important}
.aiaudata-editor-toggle{display:block!important;margin:20px 0 26px!important;border:1px solid #cbd8e5!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 30px rgba(5,44,92,.08)!important;overflow:hidden!important}
.aiaudata-editor-toggle>summary{display:flex!important;position:relative!important;align-items:center!important;gap:13px!important;box-sizing:border-box!important;width:100%!important;min-height:68px!important;margin:0!important;padding:12px 16px!important;border:0!important;background:#052c5c!important;color:#fff!important;cursor:pointer!important;list-style:none!important}
.aiaudata-editor-toggle>summary::before,.aiaudata-editor-toggle>summary::after{content:none!important;display:none!important}
.aiaudata-editor-toggle>summary::-webkit-details-marker{display:none!important}
.aiaudata-editor-toggle-icon{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;border-radius:50%!important;background:#fff!important;color:#052c5c!important;overflow:hidden!important}
.aiaudata-editor-toggle-icon svg{display:block!important;width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;fill:none!important;stroke:currentColor!important}
.aiaudata-editor-toggle-copy{display:grid!important;flex:1 1 auto!important;gap:2px!important;min-width:0!important;color:#fff!important}
.aiaudata-editor-toggle-copy b{color:#fff!important;font-size:1rem!important;line-height:1.25!important}
.aiaudata-editor-toggle-copy small{color:rgba(255,255,255,.78)!important;font-size:.79rem!important;line-height:1.3!important}
.aiaudata-editor-toggle-chevron{display:grid!important;place-items:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;overflow:hidden!important;color:#fff!important}
.aiaudata-editor-toggle-chevron svg{display:block!important;width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;fill:none!important;stroke:currentColor!important}
.aiaudata-editor-toggle-chevron svg path{fill:none!important;stroke:currentColor!important;stroke-width:2.2!important}
.aiaudata-editor-toggle>.aiaudata-editor{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin:0!important;padding:24px!important;transform:none!important;zoom:1!important}
.aiaudata-editor h3{font-size:1.35rem!important}
.aiaudata-editor form,.aiaudata-editor fieldset{box-sizing:border-box!important;width:100%!important;max-width:100%!important}
.aiaudata-targets{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.aiaudata-targets label{min-width:0!important}
.aiaudata-filters{grid-template-columns:minmax(220px,1.5fr) minmax(170px,.7fr) auto auto!important;gap:12px!important;margin:20px 0 10px!important;padding:16px!important}
.aiaudata-filters label{min-width:0!important}
.aiaudata-filters input,.aiaudata-filters select{min-width:0!important}
.aiaudata-count{margin:12px 2px 18px!important;font-size:.95rem!important}
.aiaudata-admin-list{display:grid!important;gap:14px!important}
.aiaudata-admin-card{box-sizing:border-box!important;width:100%!important;max-width:100%!important;grid-template-columns:minmax(0,1fr) auto!important;gap:18px!important;padding:20px!important}
.aiaudata-admin-main{min-width:0!important}
.aiaudata-admin-card h3{font-size:1.18rem!important;line-height:1.3!important}
.aiaudata-admin-card p{font-size:.94rem!important;line-height:1.5!important}
.aiaudata-admin-actions{flex-wrap:wrap!important;justify-content:flex-end!important}
.aiaudata-readers summary{font-size:.9rem!important}
.aiaudata-readers summary::before,.aiaudata-readers summary::after{content:none!important;display:none!important}
.aiaudata-readers summary i{display:inline-block!important;font-size:1rem!important;line-height:1!important}
.aiaudata-pager{margin:22px 0!important}
@media(max-width:800px){
 body:has(.aiaudata-head) .entry-content,body:has(.aiaudata-head) .wp-block-post-content{width:min(100% - 24px,1180px)!important;padding-top:20px!important}
 .aiaudata-filters{grid-template-columns:1fr 1fr!important}
 .aiaudata-filters label:first-child{grid-column:1/-1!important}
 .aiaudata-admin-card{grid-template-columns:1fr!important}
 .aiaudata-admin-actions{justify-content:flex-start!important}
}
@media(max-width:560px){
 body:has(.aiaudata-head) .entry-content,body:has(.aiaudata-head) .wp-block-post-content{width:calc(100% - 20px)!important;padding:16px 0 40px!important;font-size:16px!important}
 .aiaudata-head h2{font-size:1.8rem!important}
 .aiaudata-editor-toggle>summary{min-height:60px!important;padding:10px 12px!important}
 .aiaudata-editor-toggle-copy small{display:none!important}
 .aiaudata-editor-toggle>.aiaudata-editor{padding:16px!important}
 .aiaudata-grid,.aiaudata-targets,.aiaudata-groups{grid-template-columns:1fr!important}
 .aiaudata-filters{grid-template-columns:1fr!important;padding:14px!important}
 .aiaudata-filters label:first-child{grid-column:auto!important}
 .aiaudata-admin-card{padding:16px!important}
 .aiaudata-admin-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}
 .aiaudata-edit,.aiaudata-delete{box-sizing:border-box!important;width:100%!important}
}
