:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #202e39;
  background: #f5f6f8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: #196357;
}
.top {
  height: 92px;
  padding: 0 max(5vw, 24px);
  background: white;
  border-bottom: 1px solid #e0e5e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  color: #203c39;
}
.mark {
  background: #1b5d50;
  color: white;
  padding: 9px 15px;
  border-radius: 12px;
  font-family: Georgia;
  font-size: 27px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 4px;
  font-weight: 500;
}
.pill,
.tag {
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 20px;
  background: #edf4f0;
  color: #276a52;
}
.pill {
  background: #fff4db;
  color: #725814;
}
main {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 28px;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.6px;
}
h1 {
  font-size: 42px;
  line-height: 1.13;
  margin: 12px 0 20px;
}
h2 {
  font-size: 29px;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.muted,
small {
  color: #697883;
}
.eyebrow {
  color: #286857;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.intro {
  max-width: 760px;
  margin-bottom: 32px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #dde4e6;
  border-radius: 16px;
  padding: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.card p {
  margin: 0;
}
.card h2 {
  font-size: 25px;
  line-height: 1.35;
}
.card .button {
  margin-top: auto;
}
.card .meta {
  font-size: 12px;
  color: #65777f;
}
button,
.button {
  border: 1px solid #cfd9d6;
  border-radius: 8px;
  padding: 11px 18px;
  background: white;
  color: #244c43;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
}
.primary {
  background: #205f50;
  border-color: #205f50;
  color: white;
}
.secondary {
  background: #eef4f1;
}
.danger {
  color: #a14040;
  border-color: #ecd3d3;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 24px;
}
.steps {
  display: grid;
  gap: 6px;
  margin: 22px 0;
}
.step {
  background: transparent;
  border: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  line-height: 1.4;
}
.step b {
  border-radius: 50%;
  border: 1px solid #c8d5d1;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.step.active {
  background: #e1eee8;
  color: #205f50;
  font-weight: 700;
}
.step.active b {
  background: #205f50;
  color: white;
}
.sidebar h3 {
  font-size: 14px;
  line-height: 1.6;
}
.note {
  background: #f1f6f4;
  border: 1px solid #d5e6dc;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px 0;
}
.warning {
  background: #fffaee;
  border-color: #eadfbb;
  color: #745c25;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd7dd;
  border-radius: 8px;
  background: #fcfdfe;
  padding: 11px;
  color: #243b45;
  margin-top: 7px;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
input[type='checkbox'] {
  width: auto;
  margin: 0 10px 0 0;
}
.wide {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 400;
}
.check input {
  margin-top: 4px;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e0e5e8;
  padding-top: 22px;
  margin-top: 28px;
}
.actions > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.title-card {
  border: 1px solid #dce3e6;
  border-radius: 12px;
  padding: 22px;
  margin: 20px 0;
}
.title-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.number {
  background: #e9f1ed;
  border-radius: 6px;
  padding: 6px 10px;
  margin-right: 8px;
  color: #205f50;
}
.upload {
  border: 1px dashed #9ab8ac;
  border-radius: 10px;
  background: #f7faf8;
  padding: 17px;
}
.upload small {
  display: block;
  margin-top: 7px;
}
.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.or {
  font-size: 12px;
  color: #6a7c75;
  text-align: center;
  margin: 16px 0;
}
.empty {
  text-align: center;
  padding: 38px 12px;
  border: 1px dashed #cbd8d2;
  border-radius: 12px;
  margin: 24px 0;
}
.summary {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.summary td,
.summary th {
  padding: 13px 8px;
  text-align: left;
  border-bottom: 1px solid #e4e9e6;
  overflow-wrap: anywhere;
}
.summary th {
  font-size: 11px;
  color: #6c7a75;
}
.summary ul {
  padding-left: 18px;
}
.error {
  color: #a03434;
  font-size: 13px;
  padding: 12px;
  background: #fff0ed;
  border-radius: 8px;
}
#status {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 400px;
  background: #234e42;
  color: white;
  padding: 0;
  border-radius: 10px;
  z-index: 3;
}
#status:not(:empty) {
  padding: 16px 22px;
}
footer {
  text-align: center;
  font-size: 11px;
  color: #74817c;
  margin: 45px 20px 25px;
}
.progress {
  height: 4px;
  background: #e0e8e4;
  border-radius: 4px;
  margin: 20px 0;
}
.progress progress {
  width: 100%;
  height: 5px;
  accent-color: #205f50;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.toolbar input {
  margin: 0;
}
.fine {
  font-size: 12px;
  color: #6b7a74;
}
pre {
  white-space: pre-wrap;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .steps {
    display: flex;
    overflow: auto;
  }
  .step {
    min-width: 135px;
  }
  .grid,
  .fields {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  h1 {
    font-size: 32px;
  }
  main {
    margin: 28px auto;
    padding: 0 16px;
  }
  .panel,
  .card {
    padding: 20px;
  }
  .top {
    height: auto;
    min-height: 85px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .sidebar .note {
    display: none;
  }
  .summary {
    font-size: 12px;
  }
}
.sidebar,
.panel,
.fields > * {
  min-width: 0;
}
.progress {
  height: 5px;
  background: transparent;
}
.progress progress {
  display: block;
}
.title-head {
  flex-wrap: wrap;
}
select {
  max-width: 100%;
}
@media (max-width: 800px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    max-width: 100%;
  }
  .step {
    flex: 0 0 145px;
  }
  .title-card {
    padding: 16px;
  }
  .file {
    flex-wrap: wrap;
  }
}
/* Stessi token del gestionale packages/web/src/stile.css. */
@font-face {
  font-family: Inter;
  src: url('/font/inter-latin-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --background: 210 24% 97%;
  --foreground: 222 47% 11%;
  --primary: 222 60% 28%;
  --border: 214 28% 88%;
  --muted: 210 35% 94.5%;
  --radius: 0.7rem;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
}
h1,
h2 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 27px;
}
h2 {
  font-size: 21px;
}
.top {
  height: 72px;
}
.brand {
  color: hsl(var(--primary));
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.mark {
  display: none;
}
.card,
.panel {
  border-color: hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 2px #0000000a;
}
.primary {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: white;
}
button,
.button {
  border-radius: 6px;
  color: hsl(var(--primary));
}
button.primary {
  color: white;
}
.eyebrow,
a {
  color: hsl(var(--primary));
}
.tag,
.secondary,
.step.active {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}
.step.active b {
  background: hsl(var(--primary));
}
.number {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}
.note,
.upload {
  background: #f6f8fb;
  border-color: hsl(var(--border));
}
.warning {
  background: #fff9ec;
  border-color: #efdbab;
}
.muted,
.fine,
small {
  color: #5c6d85;
}
.progress progress {
  accent-color: hsl(var(--primary));
}
input,
select,
textarea {
  background: #f7f8fa;
  border-color: #d5ddeb;
  border-radius: 7px;
  color: #15213a;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #aebfe0;
}
.toolbar {
  flex-wrap: wrap;
}
.brand small {
  letter-spacing: 1.5px;
}
#status {
  background: hsl(var(--primary));
}
summary {
  cursor: pointer;
  font-weight: 600;
  margin: 12px 0;
}
.upload {
  margin: 15px 0;
}
h3 {
  margin-top: 18px;
}
.intro h1 {
  font-size: 30px;
}
@media (max-width: 800px) {
  h1 {
    font-size: 23px;
  }
  .intro h1 {
    font-size: 27px;
  }
  .top {
    height: auto;
  }
}
#status {
  pointer-events: none;
}

.pdf-layout {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--border, #d9dfe7);
  margin: 16px 0;
}

.top .utente {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.top .utente button {
  padding: 6px 12px;
}
