 


  /* ===== Base (tuo stile) ===== */
  .akweb-form-wrap,.akweb-form-wrap *{box-sizing:border-box;}
  .akweb-form-wrap{
    width:100%;max-width:920px;margin:40px auto;padding:0 14px;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#222;
    --akweb-accent:#1f6feb;          /* blu affidabilità */
    --akweb-accent-2:#1a7f37;        /* verde conferma */
    --akweb-danger:#d1242f;          /* rosso errore */
    --akweb-soft:#f6f8fa;
    --akweb-text:#1f2328;
    --akweb-muted:#57606a;
  }
  .akweb-form-card{
    background:#fff;border:1px solid rgba(0,0,0,.10);border-radius:16px;
    padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.06);
    border-top:4px solid var(--akweb-accent);
  }
  .akweb-form-title{margin:0 0 10px 0;font-size:18px;font-weight:800;letter-spacing:.2px;color:var(--akweb-text);}
  .akweb-form-sub{margin:0 0 18px 0;font-size:13px;opacity:.82;line-height:1.35;color:var(--akweb-text);}
  .akweb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
  .akweb-form-row{display:flex;flex-direction:column;gap:6px;}
  .akweb-form-row-full{grid-column:1/-1;}
  .akweb-form-label{font-size:12px;font-weight:800;letter-spacing:.2px;color:var(--akweb-text);}
  .akweb-req{font-weight:900;margin-left:4px;color:inherit;}
  .akweb-form-input,.akweb-form-textarea,.akweb-form-select{
    width:100%;border:1px solid rgba(0,0,0,.18);border-radius:12px;
    padding:10px 12px;font-size:14px;background:#fff;outline:none;color:var(--akweb-text);
  }
  .akweb-form-textarea{min-height:110px;resize:vertical;}
  .akweb-form-input:focus,.akweb-form-textarea:focus,.akweb-form-select:focus{
    border-color:rgba(31,111,235,.65);box-shadow:0 0 0 3px rgba(31,111,235,.12);
  }
  .akweb-form-section{margin-top:14px;padding-top:14px;border-top:1px dashed rgba(0,0,0,.18);}
  .akweb-form-section-title{
    margin:0 0 10px 0;font-size:12px;font-weight:900;letter-spacing:.25px;
    text-transform:uppercase;opacity:.95;color:var(--akweb-accent);
  }
  .akweb-form-checkgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;}
  .akweb-form-check{
    display:flex;align-items:flex-start;gap:8px;padding:10px 10px;
    border:1px solid rgba(0,0,0,.12);border-radius:12px;background:rgba(31,111,235,.04);
    color:var(--akweb-text);
  }
  .akweb-form-check input{margin-top:2px;}
  .akweb-form-check span{font-size:13px;line-height:1.25;}
  .akweb-form-inline{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
  .akweb-form-inline .akweb-form-row{flex:1 1 220px;}
  .akweb-form-hr{height:1px;background:rgba(0,0,0,.10);margin:14px 0;}
  .akweb-qmark{display:none;}
  .akweb-qmark.akweb-show{display:block;}

  /* ===== Hints & errors (sobri) ===== */
  .akweb-fieldhint{font-size:12px;line-height:1.25;opacity:.9;color:var(--akweb-muted);}
  .akweb-fieldhint.akweb-ok{color:var(--akweb-accent-2);opacity:1;}
  .akweb-fieldhint.akweb-bad{color:var(--akweb-danger);opacity:1;}
  .akweb-error{
    display:none;
    font-size:12px;line-height:1.25;
    color:var(--akweb-danger);
    margin-top:2px;
  }
  .akweb-error.akweb-show{display:block;}
  .akweb-form-input.akweb-invalid,
  .akweb-form-textarea.akweb-invalid{
    border-color:rgba(209,36,47,.65);
    box-shadow:0 0 0 3px rgba(209,36,47,.10);
  }
  .akweb-form-input.akweb-valid{
    border-color:rgba(26,127,55,.65);
    box-shadow:0 0 0 3px rgba(26,127,55,.10);
  }

  @media (max-width:680px){
    .akweb-form-grid{grid-template-columns:1fr;}
    .akweb-form-checkgrid{grid-template-columns:1fr;}
    .akweb-form-card{padding:16px;}
  }

  /* ===== Category MultiSelect (scoped) ===== */
  .akweb-catwrap{position:relative;}
  .akweb-catbox{
    width:100%;
    border:1px solid rgba(0,0,0,.18);
    border-radius:12px;
    padding:8px 10px;
    background:#fff;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    min-height:44px;
    cursor:pointer;
  }
  .akweb-catbox:focus-within{border-color:rgba(31,111,235,.65);box-shadow:0 0 0 3px rgba(31,111,235,.12);}
  .akweb-catph{font-size:14px;opacity:.65;color:var(--akweb-muted);}

  .akweb-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    border:1px solid rgba(31,111,235,.22);
    background:rgba(31,111,235,.08);
    border-radius:999px;
    padding:6px 10px;
    font-size:13px;
    line-height:1;
    color:var(--akweb-text);
  }
  .akweb-chip button{
    border:0;background:transparent;cursor:pointer;font-weight:900;line-height:1;padding:0;opacity:.65;color:inherit;
  }
  .akweb-chip button:hover{opacity:1;}

  .akweb-catact{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    color:var(--akweb-accent);
    opacity:.9;
  }
  .akweb-chipclear{
    border:1px solid rgba(31,111,235,.25);
    background:rgba(31,111,235,.06);
    color:var(--akweb-accent);
    width:28px;height:28px;
    border-radius:10px;
    cursor:pointer;
    font-weight:900;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .akweb-chipclear:hover{background:rgba(31,111,235,.10);box-shadow:0 10px 20px rgba(0,0,0,.06);}

  /* ===== Overlay “modal-like” per dropdown ===== */
  .akweb-select-overlay{
    position:fixed;
    inset:0;
    background:rgba(13,17,23,.38);
    display:none;
    z-index:9998;
  }
  .akweb-select-overlay.akweb-open{display:block;}

  .akweb-catdrop{
    position:absolute;
    z-index:9999;
    top:calc(100% + 8px);
    left:0; right:0;
    border:1px solid rgba(0,0,0,.14);
    border-radius:14px;
    background:#fff;
    box-shadow:0 16px 40px rgba(0,0,0,.12);
    padding:10px;
    display:none;
  }
  .akweb-catdrop.akweb-open{display:block;}

  /* Search bar + close X */
  .akweb-catsearchbar{display:flex;gap:8px;align-items:center;}
  .akweb-catsearch{
    flex:1;
    border:1px solid rgba(0,0,0,.18);
    border-radius:12px;
    padding:10px 12px;
    font-size:14px;
    outline:none;
    color:var(--akweb-text);
  }
  .akweb-catsearch:focus{border-color:rgba(31,111,235,.65);box-shadow:0 0 0 3px rgba(31,111,235,.12);}
  .akweb-catclose{
    width:42px;height:42px;
    border:1px solid rgba(0,0,0,.14);
    border-radius:12px;
    background:#fff;
    cursor:pointer;
    font-weight:900;
    font-size:18px;
    line-height:1;
    opacity:.78;
    color:var(--akweb-text);
  }
  .akweb-catclose:hover{opacity:1;box-shadow:0 10px 20px rgba(0,0,0,.06);}

  .akweb-catlist{margin-top:10px;max-height:320px;overflow:auto;padding-right:4px;}

  .akweb-catgroup{margin:10px 0 0 0;}
  .akweb-catgroup-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px 0 8px 0;
    padding:8px 10px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:12px;
    background:rgba(0,0,0,.01);
    color:var(--akweb-text);
  }
  .akweb-catgroup-head input{margin:0;}
  .akweb-catgroup-title{
    font-size:12px;
    font-weight:900;
    letter-spacing:.2px;
    opacity:.9;
    text-transform:uppercase;
    flex:1;
    color:var(--akweb-text);
  }
  .akweb-catgroup-hint{font-size:12px;opacity:.75;white-space:nowrap;color:var(--akweb-accent);font-weight:800;}

  .akweb-catitem{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:10px;
    border:1px solid rgba(0,0,0,.10);
    border-radius:12px;
    background:rgba(31,111,235,.04);
    margin-bottom:8px;
    color:var(--akweb-text);
  }
  .akweb-catitem input{margin-top:2px;}
  .akweb-catitem span{font-size:13px;line-height:1.25;}
  .akweb-catempty{font-size:13px;opacity:.7;padding:10px;border:1px dashed rgba(0,0,0,.18);border-radius:12px;background:rgba(0,0,0,.01);color:var(--akweb-text);}

  .akweb-altblock{margin-top:12px;padding-top:12px;border-top:1px dashed rgba(0,0,0,.18);}
  .akweb-altrow{display:flex;gap:10px;align-items:center;margin-top:8px;}
  .akweb-altrow .akweb-form-input{flex:1;}
  .akweb-altbtn{
    border:1px solid rgba(31,111,235,.28);
    border-radius:12px;
    padding:10px 12px;
    background:rgba(31,111,235,.06);
    cursor:pointer;
    font-weight:900;
    font-size:13px;
    color:var(--akweb-accent);
  }
  .akweb-altbtn:hover{box-shadow:0 10px 20px rgba(0,0,0,.06);background:rgba(31,111,235,.10);}
  .akweb-altremove{border:0;background:transparent;cursor:pointer;font-weight:900;opacity:.65;font-size:16px;line-height:1;color:var(--akweb-text);}
  .akweb-altremove:hover{opacity:1;}

  /* ===== CTA button ===== */
  .akweb-btn-primary{
    width:100%;
    border:0;
    border-radius:12px;
    padding:12px 14px;
    cursor:pointer;
    font-weight:900;
    font-size:14px;
    color:#fff;
    background:linear-gradient(90deg, var(--akweb-accent), #0b4db3);
    box-shadow:0 12px 28px rgba(31,111,235,.18);
  }
  .akweb-btn-primary:hover{filter:brightness(1.03);}
  .akweb-btn-primary:active{transform:translateY(1px);}

  /* ===== Modal ===== */
  .akweb-modal-overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    z-index:10000;
    padding:18px;
  }
  .akweb-modal-overlay.akweb-open{display:flex;align-items:center;justify-content:center;}
  .akweb-modal{
    width:100%;
    max-width:520px;
    background:#fff;
    border-radius:16px;
    border:1px solid rgba(0,0,0,.12);
    box-shadow:0 22px 60px rgba(0,0,0,.20);
    overflow:hidden;
  }
  .akweb-modal-head{
    padding:14px 16px;
    border-bottom:1px solid rgba(0,0,0,.08);
    display:flex;align-items:center;justify-content:space-between;gap:10px;
  }
  .akweb-modal-title{font-size:14px;font-weight:900;color:var(--akweb-text);margin:0;}
  .akweb-modal-close{
    border:0;background:transparent;cursor:pointer;font-size:20px;line-height:1;
    font-weight:900;opacity:.65;padding:4px 8px;border-radius:10px;color:var(--akweb-text);
  }
  .akweb-modal-close:hover{opacity:1;background:rgba(0,0,0,.04);}
  .akweb-modal-body{padding:14px 16px;}
  .akweb-modal-body p{margin:0;font-size:13px;line-height:1.45;opacity:.9;color:var(--akweb-text);}
  .akweb-modal-actions{
    padding:14px 16px;
    border-top:1px solid rgba(0,0,0,.08);
    display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;
  }

  /* ===== Modal buttons ===== */
  .akweb-btn{
    border:1px solid rgba(0,0,0,.18);
    border-radius:12px;
    padding:10px 12px;
    background:var(--akweb-soft);
    cursor:pointer;
    font-weight:900;
    font-size:13px;
    color:var(--akweb-text);
  }
  .akweb-btn:hover{box-shadow:0 10px 20px rgba(0,0,0,.06);background:#eef2f6;}
  .akweb-btn-confirm{
    border:0;
    color:#fff;
    background:linear-gradient(90deg, var(--akweb-accent-2), #0f6d2c);
    box-shadow:0 12px 28px rgba(26,127,55,.16);
  }
  .akweb-btn-confirm:hover{filter:brightness(1.03);}
  .akweb-btn-confirm:active{transform:translateY(1px);}

