:root {
  --sg-bordeaux: var(--sg-ui-brand, #7B1734);
  --sg-bordeaux-deep: var(--sg-ui-brand-deep, #561023);
  --sg-ivory: var(--sg-ui-surface-soft, #F8F5F1);
  --sg-charcoal: var(--sg-ui-text, #262326);
  --sg-champagne: #C8A66A;
  --sg-line: var(--sg-ui-border, #e6dfd9);
  --sg-muted: var(--sg-ui-muted, #716b6d);
  --sg-ui-brand: #7B1734;
  --sg-ui-brand-deep: #561023;
  --sg-ui-surface: #fff;
  --sg-ui-surface-soft: #F8F5F1;
  --sg-ui-text: #262326;
  --sg-ui-muted: #716b6d;
  --sg-ui-border: #e6dfd9;
  --sg-ui-radius: 18px;
  --sg-ui-radius-sm: 12px;
  --sg-ui-success: #2E7D5B;
  --sg-ui-info: #2F6687;
  --sg-ui-warning: #A6530A;
  --sg-ui-danger: #A63F46;
}
.sg-core-shell{max-width:1240px;margin:32px auto;padding:0 20px;color:var(--sg-charcoal)}
.sg-core-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:34px;border-radius:24px;background:linear-gradient(135deg,var(--sg-bordeaux-deep),var(--sg-bordeaux));color:#fff;box-shadow:0 18px 44px rgba(86,16,35,.16)}
.sg-core-hero h1{font-size:clamp(34px,5vw,62px);line-height:1;margin:6px 0 12px}.sg-core-hero p{max-width:760px;margin:0;font-size:18px;opacity:.9}
.sg-core-kicker{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.sg-core-version,.sg-core-readonly{white-space:nowrap;border:1px solid rgba(255,255,255,.35);padding:7px 10px;border-radius:999px;font-size:12px}
.sg-core-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.sg-core-card{border:1px solid var(--sg-line);border-radius:20px;padding:22px;background:#fff;box-shadow:0 8px 24px rgba(38,35,38,.04);display:flex;flex-direction:column;min-height:230px}.sg-core-card-top{display:flex;justify-content:space-between;gap:10px}.sg-core-card h2{font-size:24px;margin:18px 0 8px}.sg-core-card p{color:var(--sg-muted);line-height:1.6;flex:1}.sg-core-pill{display:inline-flex;border-radius:999px;background:var(--sg-ivory);padding:6px 9px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--sg-bordeaux-deep)}
.sg-core-status{font-size:11px;padding:6px 8px;border-radius:999px;background:#f3f3f3}.sg-core-status-available,.sg-core-status-integrated{background:#e8f5ec;color:#21683a}.sg-core-link{font-weight:800;color:var(--sg-bordeaux);text-decoration:none}.sg-core-link-disabled{color:#999}.sg-core-ask{margin:22px 0;padding:24px;border:1px solid var(--sg-line);border-radius:22px;background:var(--sg-ivory)}.sg-core-ask-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.sg-core-ask-heading h2{margin:4px 0 0;font-size:30px}.sg-core-readonly{border-color:var(--sg-line);color:var(--sg-muted);background:#fff}.sg-core-ask-form{display:grid;grid-template-columns:2fr 1fr auto;gap:12px;align-items:end;margin-top:18px}.sg-core-ask-form label{display:grid;gap:7px;font-size:12px;font-weight:800}.sg-core-ask-form textarea,.sg-core-ask-form input{width:100%;box-sizing:border-box;border:1px solid #d8cfca;border-radius:12px;padding:12px;background:#fff;font:inherit}.sg-core-ask-form button{border:0;border-radius:12px;padding:14px 18px;background:var(--sg-bordeaux);color:#fff;font-weight:800;cursor:pointer;min-height:48px}.sg-core-ask-form button:disabled{opacity:.6;cursor:wait}.sg-core-result{margin-top:18px;padding:20px;border-radius:16px;background:#fff;border:1px solid var(--sg-line)}.sg-core-result h3{margin:8px 0}.sg-core-result-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sg-core-clean-list{list-style:none;margin:0;padding:0}.sg-core-module-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eee}.sg-core-module-row strong{font-size:12px}.is-ready{color:#21683a}.is-waiting{color:#8a6418}.sg-core-finding{display:grid;gap:3px;padding:10px 0;border-bottom:1px solid #eee}.sg-core-finding-critical{border-left:4px solid #a51d35;padding-left:10px}.sg-core-finding-warning{border-left:4px solid #b57b12;padding-left:10px}.sg-core-finding-ok{border-left:4px solid #2d7b46;padding-left:10px}.sg-core-guardrail{font-size:12px;color:var(--sg-muted);margin-top:16px}.sg-core-client{padding:10px 12px;background:var(--sg-ivory);border-radius:10px}.sg-core-client.is-unresolved{color:#7a5c24}.sg-core-error{color:#9b1730;font-weight:700}.sg-core-denied{padding:18px;border:1px solid var(--sg-line);border-radius:14px;background:var(--sg-ivory)}
@media(max-width:980px){.sg-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sg-core-ask-form{grid-template-columns:1fr}.sg-core-result-columns{grid-template-columns:1fr}}
@media(max-width:640px){.sg-core-shell{padding:0 12px;margin:18px auto}.sg-core-hero{padding:24px;display:block}.sg-core-version{display:inline-block;margin-top:18px}.sg-core-grid{grid-template-columns:1fr}.sg-core-card{min-height:auto}.sg-core-ask{padding:18px}.sg-core-ask-heading{display:block}.sg-core-readonly{display:inline-block;margin-top:10px}.sg-core-module-row{align-items:flex-start;flex-direction:column}}

.sg-core-integration{display:block;margin:-2px 0 14px;color:var(--sg-muted);font-size:12px}


/* RC3.2 — menu compatto dei moduli professionali */
.sg-core-modules-menu{position:relative}.sg-core-modules-trigger{display:inline-flex!important;align-items:center;gap:6px}.sg-core-modules-trigger:after{content:"⌄";font-size:12px;line-height:1;opacity:.65;transform:translateY(-1px)}
.sg-core-modules-panel .sg-core-module-link{display:flex!important;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;padding:7px 9px!important;margin:0 -9px;text-decoration:none!important}.sg-core-modules-panel a.sg-core-module-link:hover{background:#F8F5F1}.sg-core-module-link small{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:9px!important;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}.sg-core-module-link.is-live small{color:#2d7b46}.sg-core-module-link.is-live span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#2d7b46;margin-right:8px;vertical-align:1px}.sg-core-module-link.is-soon{justify-content:space-between}.sg-core-module-link.is-soon span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#c9c1bd;margin-right:8px;vertical-align:1px}.sg-core-module-link.is-current{background:#F8F5F1;color:#7B1734!important}.sg-core-modules-feature p{line-height:1.45}
/* Fallback when a non-SG theme does not provide the existing mega-menu rules. */
.sg-core-modules-menu>.sg-core-modules-panel{z-index:1200}.sg-core-modules-menu:hover>.sg-core-modules-panel,.sg-core-modules-menu:focus-within>.sg-core-modules-panel{opacity:1;visibility:visible;pointer-events:auto}
@media(max-width:980px){.sg-core-modules-trigger:after{margin-left:auto}.sg-core-modules-panel .sg-core-module-link{padding:10px 8px!important}.sg-core-module-link small{font-size:10px!important}.sg-core-modules-feature{display:none!important}}

/* v0.2.13 — fonti verificabili e Action Engine */
.sg-core-sources{margin-top:18px;padding-top:16px;border-top:1px solid var(--sg-line)}
.sg-core-sources ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.sg-core-source-row{display:grid;gap:4px;padding:12px;border:1px solid #eee;border-radius:12px;background:#fff}
.sg-core-source-row a,.sg-core-source-row strong{font-weight:800;color:var(--sg-bordeaux-deep);text-decoration:none}
.sg-core-source-row small{color:var(--sg-muted);line-height:1.45}.sg-core-source-row p{margin:2px 0 0;color:var(--sg-muted);font-size:13px;line-height:1.45}
.sg-core-actions{margin-top:18px;padding:16px;border:1px solid #e4d8d2;border-radius:14px;background:#fffaf7}.sg-core-actions h4{margin:0 0 6px}.sg-core-actions>p{margin:0 0 12px;color:var(--sg-muted);font-size:13px}
.sg-core-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sg-core-action{display:grid;gap:3px;text-align:left;border:1px solid #d7cbc5;background:#fff;border-radius:12px;padding:12px;cursor:pointer}.sg-core-action:hover{border-color:var(--sg-bordeaux)}.sg-core-action:disabled{opacity:.65;cursor:wait}.sg-core-action strong{color:var(--sg-bordeaux);font-size:13px}.sg-core-action span{color:var(--sg-charcoal);font-size:12px}.sg-core-action-feedback{margin-top:10px;font-size:13px;font-weight:700;color:#21683a}.sg-core-action-feedback a{color:var(--sg-bordeaux)}
@media(max-width:640px){.sg-core-action-grid{grid-template-columns:1fr}}

/* v0.2.16-RC1 — Help Center, contextual onboarding and UX hardening */
.sg-core-mega-actions{display:grid;gap:8px}.sg-core-guide-link{font-size:12px!important;font-weight:800!important;color:var(--sg-bordeaux)!important;text-decoration:none}.sg-core-guide-link:hover{text-decoration:underline}
.sg-help-shell{max-width:1240px;margin:30px auto 70px;padding:0 20px;color:var(--sg-charcoal)}
.sg-help-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:34px;border-radius:24px;background:linear-gradient(135deg,var(--sg-bordeaux-deep),var(--sg-bordeaux));color:#fff;box-shadow:0 18px 44px rgba(86,16,35,.16)}
.sg-help-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.02;margin:5px 0 12px}.sg-help-hero p{max-width:780px;margin:0;opacity:.9;font-size:18px;line-height:1.55}.sg-help-version{white-space:nowrap;border:1px solid rgba(255,255,255,.35);padding:7px 10px;border-radius:999px;font-size:12px}
.sg-help-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin:22px 0}.sg-help-toolbar label{display:grid;gap:7px;font-size:12px;font-weight:800}.sg-help-toolbar input{width:100%;border:1px solid #d8cfca;border-radius:12px;padding:13px 14px;background:#fff;font:inherit}.sg-help-hub-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:11px 16px;border-radius:12px;background:var(--sg-bordeaux);color:#fff!important;text-decoration:none;font-weight:800}
.sg-help-index{display:flex;gap:8px;overflow-x:auto;padding:0 0 12px;scrollbar-width:thin}.sg-help-index a{flex:0 0 auto;border:1px solid var(--sg-line);border-radius:999px;padding:8px 12px;text-decoration:none;font-size:13px;font-weight:750;color:var(--sg-charcoal);background:#fff}.sg-help-index a:hover,.sg-help-index a.is-selected{background:var(--sg-ivory);border-color:#d3c6bf;color:var(--sg-bordeaux)}
.sg-help-grid{display:grid;gap:18px}.sg-help-card{border:1px solid var(--sg-line);border-radius:20px;padding:24px;background:#fff;box-shadow:0 8px 22px rgba(38,35,38,.04);scroll-margin-top:120px}.sg-help-card.is-selected{border-color:#c9a4af;box-shadow:0 10px 28px rgba(123,23,52,.08)}.sg-help-card-head{display:grid;gap:4px}.sg-help-card-head>span{font-family:Georgia,"Times New Roman",serif;font-size:29px;line-height:1.1}.sg-help-card-head small{font-size:14px;color:var(--sg-muted)}.sg-help-purpose{font-size:17px;line-height:1.6;color:#514b4d;max-width:980px}.sg-help-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:18px}.sg-help-columns h2,.sg-help-examples h2{font-size:19px;margin:0 0 10px}.sg-help-columns ul,.sg-help-columns ol{margin:0;padding-left:22px}.sg-help-columns li{margin:7px 0;line-height:1.45}.sg-help-examples{margin-top:18px;padding-top:16px;border-top:1px solid #eee}.sg-help-examples code{display:inline-flex;margin:4px 6px 4px 0;padding:7px 10px;border-radius:9px;background:var(--sg-ivory);font-family:inherit;font-size:12px;color:var(--sg-bordeaux-deep);white-space:normal}.sg-help-attention{margin:18px 0 0;padding:13px 14px;border-radius:12px;background:#fff8ed;border:1px solid #edd9b6;font-size:13px;line-height:1.5}.sg-help-empty{padding:28px;border:1px dashed var(--sg-line);border-radius:16px;text-align:center;color:var(--sg-muted)}
.sg-context-help{position:fixed;right:18px;bottom:20px;z-index:2500}.sg-context-help-button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:var(--sg-bordeaux);color:#fff;padding:11px 15px;font:inherit;font-size:13px;font-weight:800;box-shadow:0 12px 32px rgba(86,16,35,.24);cursor:pointer}.sg-context-help-button>span:first-child{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:rgba(255,255,255,.16);font-size:13px}.sg-context-help-panel{position:absolute;right:0;bottom:54px;width:min(380px,calc(100vw - 28px));max-height:min(620px,72vh);overflow:auto;background:#fff;border:1px solid var(--sg-line);border-radius:18px;padding:22px;box-shadow:0 24px 60px rgba(43,21,27,.18)}.sg-context-help-panel h2{font-size:26px;margin:4px 0 8px}.sg-context-help-panel p{color:var(--sg-muted);line-height:1.5}.sg-context-help-panel ol{padding-left:21px}.sg-context-help-panel li{margin:8px 0;line-height:1.4}.sg-context-help-close{position:absolute;right:10px;top:9px;border:0;background:transparent;font-size:26px;color:var(--sg-muted);cursor:pointer}.sg-context-help-more{display:inline-flex;margin-top:8px;font-weight:800;color:var(--sg-bordeaux);text-decoration:none}
/* Cross-module defensive layout rules: prevent individual app shells from forcing horizontal page scrolling. */
.sg-module-page .sg-main{overflow-x:clip}.sg-module-page .sg-page{min-width:0;overflow-wrap:anywhere}.sg-module-page :where(.sgsuite-shell,.sgfisco-shell,.sglavoro-shell,.sggdpr-shell,.sgwf-shell,.sgoffice-shell,.sgan-shell,.sgcert-shell,.sgint-shell,.sg-core-shell){max-width:100%!important;min-width:0!important}.sg-module-page :where(input,select,textarea,button){max-width:100%}.sg-module-page :where(pre,code){max-width:100%;overflow-wrap:anywhere}.sg-module-page .sg-responsive-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.sg-module-page .sg-responsive-table table{min-width:640px}.sg-module-page :where([class*="-tabs"],[class*="-toolbar"]){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:760px){.sg-help-shell{padding:0 12px;margin:18px auto 60px}.sg-help-hero{display:block;padding:24px}.sg-help-version{display:inline-block;margin-top:16px}.sg-help-toolbar{grid-template-columns:1fr}.sg-help-hub-link{width:100%}.sg-help-columns{grid-template-columns:1fr;gap:16px}.sg-help-card{padding:18px}.sg-help-card-head>span{font-size:25px}.sg-context-help{right:12px;bottom:14px}.sg-context-help-panel{right:0;bottom:52px}.sg-module-page .sg-responsive-table table{min-width:560px}}

/* v0.2.24-RC2 - Esito federato: lettura professionale, progressiva e cliccabile */
.sg-core-result{margin-top:20px;padding:0;border:0;background:transparent;border-radius:0;scroll-margin-top:110px}
.sg-core-result-summary{border:1px solid var(--sg-line);border-radius:20px;background:#fff;padding:22px;box-shadow:0 10px 30px rgba(38,35,38,.045)}
.sg-core-result-summary.is-critical{border-top:4px solid #a51d35}.sg-core-result-summary.is-warning{border-top:4px solid #b57b12}.sg-core-result-summary.is-ok{border-top:4px solid #2d7b46}
.sg-core-result-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.sg-core-result-title-row h3{margin:5px 0 7px;font-size:30px;line-height:1.12}.sg-core-result-title-row p{margin:0;color:var(--sg-muted);font-size:15px;line-height:1.55;max-width:820px}
.sg-core-result-state{flex:0 0 auto;border:1px solid var(--sg-line);border-radius:999px;padding:7px 10px;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em;background:var(--sg-ivory)}
.sg-core-client-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:15px;padding:10px 12px;border-radius:12px;background:var(--sg-ivory)}.sg-core-client-line>span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--sg-muted);font-weight:800}.sg-core-client-line strong{font-size:14px}.sg-core-client-line small{color:var(--sg-muted)}.sg-core-client-line.is-unresolved{color:#7a5c24;font-size:13px}
.sg-core-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:15px}.sg-core-metric{display:flex;align-items:baseline;gap:8px;padding:12px;border:1px solid #eee;border-radius:14px;background:#fff}.sg-core-metric strong{font-size:23px;line-height:1}.sg-core-metric span{font-size:12px;color:var(--sg-muted)}.sg-core-metric.is-critical strong{color:#a51d35}.sg-core-metric.is-warning strong{color:#9a6811}.sg-core-metric.is-ok strong{color:#2d7b46}.sg-core-metric.is-info strong{color:#4c5968}
.sg-core-focus{margin-top:14px;border:1px solid var(--sg-line);border-radius:20px;background:#fff;padding:20px}.sg-core-section-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.sg-core-section-heading h4{margin:0;font-size:21px}.sg-core-section-heading p{margin:5px 0 0;color:var(--sg-muted);font-size:13px;line-height:1.5}
.sg-core-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.sg-core-evidence-grid.is-all{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}
.sg-core-evidence-card{position:relative;padding:15px 15px 14px;border:1px solid #e8e2de;border-left-width:4px;border-radius:14px;background:#fff;min-width:0}.sg-core-evidence-card.is-critical{border-left-color:#a51d35}.sg-core-evidence-card.is-warning{border-left-color:#b57b12}.sg-core-evidence-card.is-ok{border-left-color:#2d7b46}.sg-core-evidence-card.is-info{border-left-color:#718096}.sg-core-evidence-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.sg-core-severity{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.07em;color:#665d60}.sg-core-evidence-source{font-size:10px;color:var(--sg-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}.sg-core-evidence-card h5{margin:0 0 6px;font-size:16px;line-height:1.28}.sg-core-evidence-card p{margin:0;color:#514b4d;font-size:13px;line-height:1.52}.sg-core-evidence-open{display:inline-flex;align-items:center;gap:5px;margin-top:11px;color:var(--sg-bordeaux)!important;font-size:12px;font-weight:850;text-decoration:none}.sg-core-evidence-open:hover{text-decoration:underline}
.sg-core-progressive{display:grid;gap:9px;margin-top:12px}.sg-core-details{border:1px solid var(--sg-line);border-radius:14px;background:#fff;overflow:hidden}.sg-core-details>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;font-weight:850;list-style:none}.sg-core-details>summary::-webkit-details-marker{display:none}.sg-core-details>summary:after{content:"+";font-size:20px;line-height:1;color:var(--sg-bordeaux)}.sg-core-details[open]>summary:after{content:"−"}.sg-core-details>summary small{margin-left:auto;margin-right:8px;font-weight:600;color:var(--sg-muted);font-size:11px}.sg-core-details-body{padding:0 16px 16px;border-top:1px solid #f0ece9}
.sg-core-module-chips{display:flex;flex-wrap:wrap;gap:8px;padding-top:14px}.sg-core-module-chip{display:inline-flex;gap:7px;align-items:center;padding:8px 10px;border:1px solid #e8e2de;border-radius:999px;background:var(--sg-ivory);text-decoration:none!important;color:var(--sg-charcoal)!important}.sg-core-module-chip small{font-size:10px;color:var(--sg-muted)}.sg-core-module-chip.is-ready small{color:#21683a}.sg-core-module-chip.is-waiting{opacity:.7}
.sg-core-sources-list{list-style:none;padding:14px 0 0;margin:0;display:grid;gap:8px}.sg-core-source-row{padding:12px 13px}.sg-core-source-row>a,.sg-core-source-row>strong{display:inline-flex;gap:5px}.sg-core-source-excerpt{margin-top:6px}.sg-core-source-excerpt summary{cursor:pointer;font-size:11px;font-weight:800;color:var(--sg-bordeaux)}.sg-core-source-excerpt p{font-size:12px!important;margin-top:7px!important}
.sg-core-actions{margin-top:12px;padding:18px;border-radius:18px}.sg-core-action-grid{margin-top:12px}.sg-core-guardrail-details{margin-top:10px;color:var(--sg-muted);font-size:11px}.sg-core-guardrail-details summary{cursor:pointer;font-weight:800}.sg-core-guardrail{margin:8px 0 0!important}
.sg-core-loading{display:flex;align-items:center;gap:12px;padding:18px;border:1px solid var(--sg-line);border-radius:15px;background:#fff}.sg-core-loading strong{display:block}.sg-core-loading small{display:block;margin-top:2px;color:var(--sg-muted)}.sg-core-loader{width:20px;height:20px;border:3px solid #eadfe2;border-top-color:var(--sg-bordeaux);border-radius:50%;animation:sg-core-spin .8s linear infinite}@keyframes sg-core-spin{to{transform:rotate(360deg)}}
.sg-core-empty{color:var(--sg-muted);font-size:13px}
@media(max-width:820px){.sg-core-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sg-core-evidence-grid,.sg-core-evidence-grid.is-all{grid-template-columns:1fr}}
@media(max-width:560px){.sg-core-result-summary,.sg-core-focus{padding:16px}.sg-core-result-title-row{display:block}.sg-core-result-state{display:inline-flex;margin-top:10px}.sg-core-result-title-row h3{font-size:24px}.sg-core-metrics{grid-template-columns:1fr 1fr}.sg-core-metric{display:grid;gap:3px}.sg-core-evidence-source{max-width:52%}.sg-core-details>summary{padding:13px 14px}}

/* 0.2.24 — SG Professional Assistant */
.sg-core-professional{margin:18px 0;padding:20px;border:1px solid rgba(73,50,47,.13);border-radius:16px;background:linear-gradient(180deg,#fff,#fbfaf7)}
.sg-core-professional.is-warning{border-left:5px solid #9a6d18}.sg-core-professional.is-critical{border-left:5px solid #9d263f}.sg-core-professional.is-ok{border-left:5px solid #47786c}
.sg-core-pro-mode{white-space:nowrap;padding:6px 9px;border-radius:999px;background:#f2eee9;font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.sg-core-pro-narrative{margin:14px 0 18px;padding:16px 18px;border-radius:12px;background:#fff;line-height:1.7;box-shadow:0 1px 8px rgba(0,0,0,.04)}
.sg-core-pro-domains{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.sg-core-pro-domain{padding:12px;border:1px solid rgba(73,50,47,.11);border-radius:11px;background:#fff}.sg-core-pro-domain strong,.sg-core-pro-domain span{display:block}.sg-core-pro-domain span{margin-top:4px;font-size:.82rem;opacity:.72}
.sg-core-pro-citations{display:grid;gap:10px;margin:0;padding:0;list-style:none}.sg-core-pro-citations li{padding:12px;border-bottom:1px solid rgba(73,50,47,.1)}.sg-core-pro-citations small{display:block;margin-top:4px;opacity:.7}.sg-core-pro-citations p{margin:.45rem 0 0}
@media(max-width:860px){.sg-core-pro-domains{grid-template-columns:1fr}.sg-core-pro-mode{display:none}}


/* v0.2.24.1 — componenti condivisi SG Design System */
.sg-ui-shell{max-width:1240px;margin:28px auto;padding:0 20px;color:var(--sg-ui-text)}
.sg-ui-module-head{position:relative;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:24px 0 20px;border-bottom:1px solid var(--sg-ui-border)}
.sg-ui-module-head:before{content:"";position:absolute;left:0;top:0;width:54px;height:3px;border-radius:999px;background:var(--sg-module-accent,var(--sg-ui-brand))}
.sg-ui-kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:850;color:var(--sg-ui-brand)}
.sg-ui-tabs{display:flex;gap:6px;overflow-x:auto;padding:8px 0;border-bottom:1px solid var(--sg-ui-border);scrollbar-width:thin}.sg-ui-tabs a{flex:0 0 auto;padding:9px 12px;border-radius:9px;text-decoration:none;color:var(--sg-ui-text);font-size:13px;font-weight:720}.sg-ui-tabs a:hover{background:var(--sg-ui-surface-soft)}.sg-ui-tabs a.is-active{background:#F8F1F3;color:var(--sg-ui-brand);box-shadow:inset 0 -2px 0 var(--sg-ui-brand)}
.sg-ui-card{background:#fff;border:1px solid var(--sg-ui-border);border-radius:var(--sg-ui-radius);padding:20px;box-shadow:0 7px 24px rgba(65,24,37,.055)}
.sg-ui-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border:1px solid var(--sg-ui-brand);border-radius:10px;background:var(--sg-ui-brand);color:#fff!important;text-decoration:none!important;font-weight:760}.sg-ui-button.is-secondary{background:#fff;color:var(--sg-ui-brand)!important}
.sg-ui-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800;background:#f3f4f5;color:var(--sg-ui-muted)}.sg-ui-status.is-ok{background:#EDF7F1;color:var(--sg-ui-success)}.sg-ui-status.is-info{background:#EEF4F8;color:var(--sg-ui-info)}.sg-ui-status.is-warning{background:#FFF5E8;color:var(--sg-ui-warning)}.sg-ui-status.is-danger{background:#FFF0F1;color:var(--sg-ui-danger)}
.sg-ui-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--sg-ui-border);border-radius:var(--sg-ui-radius-sm);background:#fff}
@media(max-width:700px){.sg-ui-shell{padding:0 14px;margin:18px auto}.sg-ui-module-head{display:block}.sg-ui-module-head>*+*{margin-top:12px}.sg-ui-card{padding:16px}}

/* v0.2.26 — SG Action Center frontend */
body.sg-action-center-open{overflow:hidden}.sg-action-center[hidden]{display:none}.sg-action-center{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px}.sg-action-center-backdrop{position:absolute;inset:0;background:rgba(24,18,21,.58);backdrop-filter:blur(3px)}.sg-action-center-dialog{position:relative;width:min(680px,100%);max-height:min(760px,calc(100dvh - 40px));overflow:auto;background:#fff;border-radius:20px;padding:24px;box-shadow:0 26px 80px rgba(20,10,15,.28);border:1px solid #eadde2}.sg-action-center-x{position:absolute;right:14px;top:12px;width:36px;height:36px;border-radius:50%;border:1px solid #e3d7db;background:#fff;color:#5e152d;font-size:24px;line-height:1;cursor:pointer}.sg-action-center-dialog h3{margin:4px 44px 16px 0;font-size:1.45rem}.sg-action-center-content dl{display:grid;gap:8px;margin:0}.sg-action-center-content dl>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #eee}.sg-action-center-content dt{font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:#756c70;font-weight:800}.sg-action-center-content dd{margin:0;overflow-wrap:anywhere}.sg-action-center-note,.sg-action-center-waiting{padding:12px 14px;border-radius:10px;background:#f8f4f5;color:#5c5054}.sg-action-center-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.sg-action-center-buttons button{border:0;background:#7B1734;color:#fff;border-radius:10px;padding:10px 15px;font-weight:800;cursor:pointer}.sg-action-center-buttons button.secondary{background:#fff;color:#7B1734;border:1px solid #7B1734}.sg-action-center-status{margin-top:12px;font-weight:700}.sg-action-center-status a{color:#7B1734}.sg-core-action-feedback a{color:#7B1734;font-weight:800}
@media(max-width:600px){.sg-action-center{padding:8px}.sg-action-center-dialog{border-radius:16px;padding:18px;max-height:calc(100dvh - 16px)}.sg-action-center-content dl>div{grid-template-columns:1fr;gap:3px}.sg-action-center-buttons{display:grid}.sg-action-center-buttons button{width:100%}}

/* SG Core 0.2.34-RC1 · customer Hub */
.sg-core-customer-policy{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:0 0 20px;padding:15px 18px;border:1px solid rgba(123,23,52,.2);border-radius:15px;background:rgba(123,23,52,.055)}
.sg-core-customer-policy strong{color:#7b1734}.sg-core-customer-policy span{color:#585052;line-height:1.45}.sg-core-customer-service .sg-core-status{max-width:190px;text-align:right}.sg-core-customer-back{margin-top:18px}.sg-core-customer-panel .sg-core-module-link small{white-space:nowrap}@media(max-width:720px){.sg-core-customer-policy{display:block}.sg-core-customer-policy span{display:block;margin-top:5px}}

/* v0.2.36.2-RC1 — Hub SG visibile nella navigazione pubblica, dati sempre protetti */
.sg-core-public-item{display:block;padding:7px 0;color:#6e676a;font-size:13px;line-height:1.45}.sg-core-public-panel .sg-core-modules-feature p{max-width:300px}


/* v0.2.37-RC1 — Hub SG compatto, Guida integrata, nessuna superficie “Motori SG” */
.sg-core-hero-compact{padding:24px 28px;border-radius:18px;box-shadow:0 10px 28px rgba(86,16,35,.11)}
.sg-core-hero-compact h1{font-size:clamp(30px,4vw,48px);margin-bottom:9px}.sg-core-hero-compact p{font-size:15px;max-width:780px;line-height:1.55}
.sg-core-hub-actions{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 4px}
.sg-core-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:16px}.sg-core-card-compact{min-height:175px;padding:18px;border-radius:15px;box-shadow:0 4px 16px rgba(38,35,38,.035)}.sg-core-card-compact h2{font-size:20px;margin:13px 0 7px}.sg-core-card-compact p{font-size:13px;line-height:1.5;margin:0 0 13px}.sg-core-guide-card{background:var(--sg-ivory)}
.sg-core-ask-disclosure{margin-top:18px;border:1px solid var(--sg-line);border-radius:15px;background:#fff;overflow:hidden}.sg-core-ask-disclosure>summary{cursor:pointer;list-style:none;padding:14px 17px;font-weight:850;color:var(--sg-bordeaux-deep)}.sg-core-ask-disclosure>summary::-webkit-details-marker{display:none}.sg-core-ask-disclosure>summary:after{content:"+";float:right}.sg-core-ask-disclosure[open]>summary:after{content:"−"}.sg-core-ask-disclosure>summary small{margin-left:8px;color:var(--sg-muted);font-weight:600}.sg-core-ask-disclosure .sg-core-ask{margin:0;border:0;border-top:1px solid var(--sg-line);border-radius:0}
.sg-core-compact-panel{width:min(520px,92vw)!important;max-width:520px!important;padding:16px!important}.sg-core-compact-panel .sg-mega-grid{display:block!important}.sg-core-compact-head{display:grid;gap:3px;padding-bottom:10px;margin-bottom:8px;border-bottom:1px solid var(--sg-line)}.sg-core-compact-head strong{font-size:16px!important}.sg-core-compact-head span{font-size:12px;color:var(--sg-muted);line-height:1.4}.sg-core-compact-links{display:grid;grid-template-columns:1fr 1fr;gap:2px 12px}.sg-core-compact-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid var(--sg-line)}.sg-core-compact-actions a{display:inline-flex!important;padding:7px 10px!important;border-radius:9px;background:var(--sg-ivory);color:var(--sg-bordeaux)!important;text-decoration:none!important;font-size:12px!important;font-weight:800!important}.sg-core-compact-actions a:hover{background:#f0e8e5}
.sg-help-hero-compact{padding:24px 28px;border-radius:18px;box-shadow:0 10px 28px rgba(86,16,35,.11)}.sg-help-hero-compact h1{font-size:clamp(30px,4vw,48px)}.sg-help-hero-compact p{font-size:15px}
@media(max-width:980px){.sg-core-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.sg-core-compact-panel{width:100%!important;max-width:none!important}.sg-core-compact-links{grid-template-columns:1fr}.sg-core-compact-actions{display:grid}.sg-core-compact-actions a{justify-content:flex-start}}
@media(max-width:640px){.sg-core-grid-compact{grid-template-columns:1fr}.sg-core-hero-compact,.sg-help-hero-compact{padding:20px}.sg-core-hub-actions{display:grid}.sg-core-hub-actions a{width:100%}.sg-core-ask-disclosure>summary small{display:block;margin:3px 0 0}}


/* 0.2.40-RC1 — Ecosistema SG · catalogo completo */
.sg-core-catalog .sg-core-hub-group{margin:28px 0 8px}.sg-core-group-head{display:flex;justify-content:space-between;gap:28px;align-items:end;padding:0 2px 10px;border-bottom:1px solid var(--sg-line,#e5ddd8)}.sg-core-group-head>div{min-width:240px}.sg-core-group-head span{display:block;color:var(--sg-bordeaux,#7b1734);font-size:11px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.sg-core-group-head h2{margin:4px 0 0;font-size:clamp(22px,3vw,30px)}.sg-core-group-head p{max-width:640px;margin:0;color:var(--sg-muted,#716b6d);font-size:13px;line-height:1.55}.sg-core-catalog .sg-core-card-compact h3{font-size:20px;margin:13px 0 7px}.sg-core-catalog .sg-core-card-compact{height:100%;box-sizing:border-box}.sg-core-guide-group{margin-top:18px!important}
@media(max-width:760px){.sg-core-group-head{display:block}.sg-core-group-head p{margin-top:7px}.sg-core-catalog .sg-core-hub-group{margin-top:22px}}
