.dpo-hero {
  background: linear-gradient(135deg, rgba(5, 67, 63, .96), rgba(14, 116, 103, .9));
  color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 22px 60px rgba(8, 37, 37, .18);
}
.praisi-main > .dpo-hero,
.praisi-main > .dashboard-section,
.praisi-main > .dpo-card,
.praisi-main > .dpo-catalog {
  margin-top: 22px;
}
.praisi-main > .topbar + .dpo-hero,
.praisi-main > .topbar + .dashboard-section {
  margin-top: 0;
}
.dashboard-section {
  margin-bottom: 22px;
}
.dpo-grid > .dpo-card,
.dpo-grid > article {
  min-width: 0;
}
.dpo-hero h1, .dpo-hero p, .dpo-hero .eyebrow { color: #fff; }
.dpo-hero p { max-width: 820px; }
.dpo-grid { display: grid; gap: 18px; }
.dpo-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dpo-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dpo-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-section.dpo-no-top-gap { margin-top: 18px; }
.dpo-card {
  background: #fff;
  border: 1px solid rgba(12, 52, 50, .12);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(10, 34, 34, .08);
}
.dpo-card h2, .dpo-card h3 { margin-top: 0; color: #143f3c; }
.dpo-dashboard-hero { margin-bottom: 18px; }
.dpo-catalog {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}
.dpo-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dpo-category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 77, 72, .18);
  background: #f7fbfa;
  color: #143f3c;
  font-weight: 800;
  text-decoration: none;
}
.dpo-category-block {
  background: #fff;
  border: 1px solid rgba(12, 52, 50, .12);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 16px 36px rgba(10, 34, 34, .08);
}
.dpo-category-block + .dpo-category-block { margin-top: 4px; }
.dpo-category-head { margin-bottom: 16px; }
.dpo-category-head h2 { margin: 0 0 6px; color: #143f3c; }
.dpo-category-head p { margin: 0; max-width: 860px; color: #5a6f6c; }
.dpo-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px;
}
.dpo-service-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 185px;
  padding: 16px;
  border: 1px solid rgba(12, 52, 50, .1);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fcfb);
  text-decoration: none;
  color: #163836;
}
.dpo-service-card strong {
  display: block;
  color: #103d3a;
  font-size: 1rem;
  line-height: 1.25;
}
.dpo-service-card p {
  margin: 0;
  color: #526b68;
  line-height: 1.45;
}
.dpo-service-card span {
  color: #0f766e;
  font-weight: 900;
  margin-top: auto;
}
.dpo-form { display: grid; gap: 12px; }
.dpo-form label { display: grid; gap: 6px; font-weight: 700; color: #173f3d; }
.dpo-generator-form { display: block; }
.dpo-generator-hero h1 { max-width: 980px; }
.dpo-form-section { padding: 24px; }
.dpo-service-form {
  display: grid;
  gap: 18px;
  margin: 22px 0;
}
.dpo-assisted-intro {
  margin: 0;
}
.dpo-assisted-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.dpo-assisted-quick label {
  min-width: 0;
}
.dpo-assisted-quick .btn {
  min-height: 46px;
  white-space: nowrap;
}
.dpo-assisted-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 18px;
  align-items: start;
}
.dpo-assisted-main,
.dpo-assisted-guide {
  min-width: 0;
}
.dpo-assisted-guide {
  display: grid;
  gap: 14px;
  align-content: start;
  background: linear-gradient(180deg, #ffffff, #f6fbfa);
}
.dpo-assisted-guide .eyebrow {
  color: #b6843a;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dpo-assisted-guide h2,
.dpo-assisted-guide h3 {
  margin: 0;
}
.dpo-assisted-guide ul {
  margin: 0;
  padding-left: 18px;
  color: #244846;
  line-height: 1.5;
}
.dpo-guide-note {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 8px;
  background: #eefaf7;
  color: #173f3d;
}
.dpo-guide-note p {
  margin: 6px 0 0;
  color: #526b68;
  line-height: 1.45;
}
.dpo-suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.dpo-suggestion-chip {
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 999px;
  background: #eefaf7;
  color: #0b5954;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 9px;
}
.dpo-suggestion-chip:hover {
  border-color: #0f766e;
  background: #dff5f1;
}
.dpo-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.dpo-preset-card {
  display: grid;
  gap: 7px;
  min-height: 122px;
  padding: 15px;
  border: 1px solid rgba(12,52,50,.13);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f5fbfa);
  color: #163836;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.dpo-preset-card:hover,
.dpo-preset-card.is-active {
  border-color: #0f766e;
  box-shadow: 0 12px 26px rgba(15,118,110,.14);
}
.dpo-preset-card strong { color: #103d3a; }
.dpo-preset-card span { color: #526b68; line-height: 1.4; }
.dpo-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.dpo-section-head h2 { margin: 0 0 5px; }
.dpo-section-head p { margin: 0; color: #5a6f6c; max-width: 820px; }
.dpo-step {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
}
.dpo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dpo-form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-weight: 800;
  color: #173f3d;
}
.dpo-form-grid .span-2 { grid-column: 1 / -1; }
.dpo-form input, .dpo-form select, .dpo-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 77, 72, .22);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: #fbfffe;
  color: #122a29;
}
.dpo-form-grid input, .dpo-form-grid textarea {
  width: 100%;
  border: 1px solid rgba(15, 77, 72, .22);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  background: #fbfffe;
  color: #122a29;
  min-width: 0;
}
.dpo-form textarea { min-height: 92px; resize: vertical; }
.dpo-form-grid textarea { min-height: 88px; resize: vertical; }
.dpo-section-head.compact { margin-bottom: 12px; }
.dpo-registry-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 8px;
  background: #f7fcfb;
}
.dpo-registry-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}
.dpo-registry-search label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.dpo-registry-selected {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #fff;
  color: #173f3d;
}
.dpo-registry-selected span { color: #5a6f6c; font-size: .94rem; }
.dpo-registry-results {
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}
.dpo-registry-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(15, 77, 72, .16);
  border-radius: 8px;
  background: #fff;
  color: #173f3d;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.dpo-registry-result:hover {
  border-color: #0f766e;
  box-shadow: 0 10px 22px rgba(15,118,110,.12);
}
.dpo-registry-result span,
.dpo-registry-empty,
.dpo-registry-message { color: #5a6f6c; font-size: .94rem; }
.dpo-registry-message.danger { color: #b42318; font-weight: 800; }
.dpo-registry-inline {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(15, 118, 110, .34);
  border-radius: 8px;
  background: #ffffff;
}
.dpo-registry-results[hidden],
.dpo-registry-inline[hidden] { display: none; }
.dpo-result {
  border-left: 4px solid #0f766e;
  background: #eefaf7;
  padding: 12px 14px;
  border-radius: 8px;
  color: #143f3c;
  display: grid;
  gap: 14px;
}
.dpo-result.warn { border-color: #c47d16; background: #fff7e8; }
.dpo-result.danger { border-color: #b42318; background: #fff0ee; }
.dpo-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dpo-review-head strong {
  display: block;
  font-size: 1.15rem;
  color: #103d3a;
}
.dpo-review-head p { margin: 4px 0 0; color: #526b68; }
.dpo-score {
  display: inline-flex;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}
.dpo-review-block {
  padding: 12px;
  border: 1px solid rgba(12, 52, 50, .1);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
}
.dpo-review-block h4 {
  margin: 0 0 8px;
  color: #103d3a;
}
.dpo-review-block ul { margin: 0; padding-left: 18px; }
.dpo-review-block.positive {
  border-color: rgba(15, 118, 110, .22);
  background: #f4fbf8;
}
.dpo-review-block.positive p { margin: 0; color: #315c57; }
.dpo-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.dpo-check {
  display: grid;
  gap: 5px;
  min-height: 96px;
  align-content: start;
  padding: 10px;
  border: 1px solid rgba(12, 52, 50, .12);
  border-radius: 8px;
  background: #fff;
}
.dpo-check.ok { border-left: 4px solid #0f766e; }
.dpo-check.missing { border-left: 4px solid #c47d16; }
.dpo-check strong { color: #143f3c; line-height: 1.25; }
.dpo-check span { font-weight: 900; color: #0b5f59; }
.dpo-check small { color: #607773; line-height: 1.35; }
.dpo-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dpo-list li { padding: 10px 12px; border: 1px solid rgba(12, 52, 50, .1); border-radius: 8px; background: #fbfffe; }
.dpo-doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; }
.dpo-doc-category {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(12,52,50,.1);
  border-radius: 8px;
  background: #f8fcfb;
}
.dpo-doc-category h3 {
  margin: 0;
  color: #143f3c;
}
.dpo-doc-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 10px;
}
.dpo-doc-grid label,
.dpo-doc-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(12,52,50,.12);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: #173f3d;
  font-weight: 800;
  line-height: 1.25;
}
.dpo-doc-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0f766e;
  flex: 0 0 auto;
}
.dpo-submit-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.dpo-output-card { margin-bottom: 34px; }
.dpo-generated-list { margin-top: 14px; }
.dpo-generated-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.dpo-service-form,
.dpo-service-upload-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(12, 52, 50, .1);
}
.dpo-service-letterhead {
  display: grid;
  gap: 16px;
}
.dpo-logo-drop {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(12,52,50,.12);
  border-radius: 8px;
  background: #f8fcfb;
}
.dpo-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 82px;
  border: 1px dashed rgba(15,77,72,.28);
  border-radius: 8px;
  background: #fff;
  color: #5a6f6c;
  font-weight: 900;
  overflow: hidden;
}
.dpo-logo-preview img {
  display: block;
  max-width: 112px;
  max-height: 74px;
  object-fit: contain;
}
.dpo-service-upload-form {
  margin-top: 22px;
}
.legal-product-card,
.legal-help-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.legal-source-grid,
.legal-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.legal-source,
.legal-finding {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(12,52,50,.12);
  border-radius: 8px;
  background: #fff;
  color: #173f3d;
  box-shadow: 0 10px 24px rgba(14, 55, 52, .06);
}
.legal-source span,
.legal-finding span {
  color: #5d716f;
  font-size: .86rem;
  font-weight: 800;
}
.legal-source h3,
.legal-finding strong {
  margin: 0;
  color: #103d3a;
}
.legal-source p,
.legal-finding p {
  margin: 0;
  color: #536b68;
  line-height: 1.55;
}
.legal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.legal-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eefaf7;
  color: #0f5f58;
  font-size: .78rem;
}
.legal-finding.missing {
  border-left: 4px solid #b42318;
}
.legal-finding.partial {
  border-left: 4px solid #c47d16;
}
.legal-finding.present,
.legal-finding.passed {
  border-left: 4px solid #0f766e;
}
.legal-outcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(12,52,50,.12);
  background: linear-gradient(135deg, #f5fbfa, #fff);
}
.legal-outcome h2 {
  margin: 4px 0 6px;
  color: #103d3a;
}
.legal-outcome p {
  margin: 0;
  color: #526b68;
}
.legal-outcome.compliant,
.legal-outcome.validabile_da_professionista,
.legal-outcome.pronto_per_revisione_dpo {
  border-left: 5px solid #0f766e;
}
.legal-outcome.compliant_with_reserve,
.legal-outcome.needs_review,
.legal-outcome.conforme_con_riserva,
.legal-outcome.conforme_con_criticita {
  border-left: 5px solid #c47d16;
}
.legal-outcome.non_compliant,
.legal-outcome.bozza_incompleta {
  border-left: 5px solid #b42318;
}
@media (max-width: 860px) {
  .dpo-grid.two, .dpo-grid.three, .dpo-grid.four { grid-template-columns: 1fr; }
  .dpo-hero { padding: 22px; }
  .dpo-form-grid { grid-template-columns: 1fr; }
  .dpo-registry-search { grid-template-columns: 1fr; }
  .dpo-assisted-shell,
  .dpo-assisted-quick { grid-template-columns: 1fr; }
  .dpo-generated-list li { grid-template-columns: 1fr; }
  .dpo-logo-drop { grid-template-columns: 1fr; }
  .legal-outcome { align-items: flex-start; flex-direction: column; }
}
