@charset "UTF-8";

/* Contatti: elenco e conferma di rimozione. */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #e3e9e7;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.contact-info span {
  color: #758185;
}
.contact-removal {
  max-width: 570px;
}
.contact-removal summary {
  text-align: right;
}
.contact-removal[open] {
  flex-basis: 100%;
  max-width: none;
}
.contact-removal[open] summary {
  text-align: left;
}
.contact-removal p {
  font-size: 12px;
}
@media (max-width: 760px) {
  .contact-info {
    flex-basis: 100%;
  }
  .contact-removal summary {
    text-align: left;
  }
}

/* Azioni irreversibili, separate dai normali moduli. */
.client-removal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e3e9e7;
}
.client-removal p {
  font-size: 12px;
}
.remove-button {
  background: #963f32;
  border-color: #963f32;
}
.remove-button:hover {
  background: #7c3126;
}

/* Errori di validazione e configurazione iniziale. */
.form-error {
  background: #fff0ed;
  color: #933d2f;
  border: 1px solid #eac4bc;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.setup-card {
  margin: 0;
}
.setup-card p {
  font-size: 12px;
  color: #758185;
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
}

/* Identita visiva, variabili condivise e stili di base. */
:root {
  --ink: #1c343b;
  --muted: #758185;
  --petrol: #153e47;
  --green: #298266;
  --line: #e3e9e7;
  --bg: #f5f7f6;
  --white: #fff;
  --amber: #a36b20;
  --radius: 12px;
  font-family: Inter, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--petrol);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  background: var(--petrol);
  border: 1px solid var(--petrol);
  color: white;
  padding: 11px 18px;
  border-radius: 7px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: #24535c;
  text-decoration: none;
}
.secondary {
  background: white;
  color: var(--petrol);
  border-color: var(--line);
}
button.text-button {
  background: none;
  color: var(--petrol);
  border: 0;
  padding: 5px;
}
.danger {
  color: #a74232 !important;
}
:focus-visible {
  outline: 3px solid #44b38e;
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 50;
  background: white;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
/* Navigazione desktop e profilo. */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: var(--petrol);
  color: #eaf3ef;
  padding: 32px 20px 0;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1.2px;
  display: flex;
  align-items: center;
  color: inherit;
  line-height: 1.2;
}
.brand span {
  font-weight: 450;
}
.brand i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 14px 0 0 4px;
  background: #67c59d;
  border-radius: 50%;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #9eb7b9;
  margin: 44px 10px 15px;
}
.company {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 9px 24px;
  border-bottom: 1px solid #ffffff17;
  margin-bottom: 20px;
}
.company-icon {
  background: #ffffff15;
  border: 1px solid #ffffff25;
  border-radius: 8px;
  padding: 7px 12px;
  color: #b6e1ce;
}
.company strong {
  font-size: 12px;
}
.company small {
  color: #9eb7b9;
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  color: #b9cdce;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 12px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.sidebar nav a span {
  font-size: 18px;
  line-height: 1;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #ffffff10;
  color: white;
  text-decoration: none;
}
.sidebar nav a.active {
  box-shadow: inset 3px 0 #64bf9a;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-bottom > .mini-logo {
  font-size: 22px;
  border: 1px solid #ffffff25;
  border-radius: 10px;
  padding: 4px 10px;
  color: #83c8ac;
}
.sidebar-bottom > strong {
  display: block;
  font-size: 12px;
  margin: 14px 0 5px;
}
.sidebar-bottom > p {
  font-size: 11px;
  color: #9eb7b9;
  margin: 0 0 25px;
}
.profile {
  border-top: 1px solid #ffffff20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}
.profile strong {
  font-size: 11px;
}
.profile small {
  display: block;
  color: #a3bcbe;
  font-size: 10px;
}
.profile form {
  margin-left: auto;
}
.profile button.text-button {
  color: white;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #edf3ee;
  border: 1px solid #dfebe5;
  border-radius: 50%;
  color: #386d5c;
  font-size: 12px;
  flex-shrink: 0;
}
/* Struttura della pagina e intestazione. */
.shell {
  margin-left: 250px;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.topbar > span {
  color: var(--ink);
  font-weight: 600;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar a {
  font-size: 23px;
  padding-left: 22px;
  margin-left: 12px;
  border-left: 1px solid var(--line);
}
.live-dot {
  height: 6px;
  width: 6px;
  background: #529d7d;
  border-radius: 50%;
}
main {
  max-width: 1500px;
  padding: 35px 42px 50px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--green);
  margin: 0 0 10px;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 0 0 10px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 650;
}
p {
  margin: 8px 0 15px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
/* Metriche reali della dashboard e segnalazioni. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stats > a {
  padding: 19px 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.stats > a:hover {
  border-color: #97b9aa;
  text-decoration: none;
}
.stats span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #53676b;
  font-size: 11px;
}
.stats b {
  font-size: 19px;
  color: #839a98;
  font-weight: 400;
}
.stats strong {
  font-size: 32px;
  line-height: 1.3;
  margin: 12px 0 5px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stats small {
  font-size: 10px;
  color: var(--muted);
}
.section {
  margin: 30px 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 15px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.section-heading > a {
  font-size: 11px;
}
.attention {
  border: 1px solid #e9dfca;
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 20px 22px;
}
.attention > .section-heading {
  margin-bottom: 10px;
}
.attention h2 {
  font-size: 14px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.amber-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #be934d;
}
.attention-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #eee8da;
}
.attention-row > div {
  flex: 1;
}
.attention-row strong {
  font-size: 12px;
  font-weight: 600;
}
.attention-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.attention-row > span:last-child {
  font-size: 11px;
}
.alert-icon {
  color: #a57532;
  background: #f4e8d3;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.alert-icon.neutral {
  color: #6e8c86;
  background: #eaf0e9;
}
.badge {
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
  background: #edf1f1;
  color: #60777a;
  font-weight: 500;
}
.badge:before {
  content: '•';
  margin-right: 5px;
}
.badge.green {
  background: #e8f3eb;
  color: #387d5e;
}
.badge.warn {
  background: #f7ead4;
  color: #946627;
}
.count {
  font-size: 10px;
  background: #e7edeb;
  padding: 3px 7px;
  border-radius: 5px;
  margin-left: 6px;
  color: #6e817b;
}
/* Schede delle commesse. */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.project-card:hover {
  text-decoration: none;
  border-color: #8ab7a2;
  transform: translateY(-2px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.project-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: #edf3f1;
  border: 1px solid #e2ebe6;
  border-radius: 8px;
  color: #5d8377;
}
.code {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}
.project-card h3 {
  font-size: 15px;
  line-height: 1.4;
  margin: 5px 0;
}
.project-card > p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 18px;
}
.card-divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  margin: 8px 0;
}
.card-meta > span {
  color: var(--muted);
}
.card-meta > strong {
  font-weight: 500;
  text-align: right;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding-top: 13px;
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
}
/* Pannelli e diario degli aggiornamenti. */
.panel {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 14px 0;
}
.feed-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.feed-row:last-child {
  border-bottom: 0;
}
.feed-row > div {
  flex: 1;
}
.feed-row strong {
  font-size: 12px;
}
.feed-row p {
  font-size: 12px;
  margin: 4px 0;
  color: #5d7072;
}
.feed-row small {
  font-size: 10px;
  color: var(--muted);
}
.panel:has(> .feed-row) {
  padding: 0;
}
.empty {
  border: 1px dashed #cedad3;
  border-radius: var(--radius);
  padding: 35px;
  text-align: center;
  color: var(--muted);
  grid-column: 1/-1;
  background: #ffffff70;
}
.empty h3 {
  color: var(--ink);
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin: 0 42px;
  padding: 20px 0;
  color: #8a9795;
  font-size: 10px;
}
footer > span {
  font-size: 10px;
}
form {
  margin-top: 16px;
}
/* Moduli accessibili e campi condivisi. */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 16px;
  color: #496069;
}
input,
select,
textarea {
  border: 1px solid #d5dfdb;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  min-height: 43px;
}
textarea {
  resize: vertical;
}
input[type='checkbox'] {
  min-height: 18px;
  width: 18px;
  accent-color: var(--green);
}
.check {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  gap: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}
.form-grid button {
  align-self: end;
  justify-self: start;
  margin-bottom: 16px;
}
.hint {
  color: var(--muted);
  font-size: 11px;
}
.notice {
  background: #e9f3ee;
  color: #326c51;
  border: 1px solid #c9e0d1;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 22px;
  font-size: 12px;
}
/* Accesso e registrazione. */
.auth {
  max-width: 520px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 65px auto;
  padding: 40px;
}
.auth .brand {
  color: var(--petrol);
  margin-bottom: 38px;
}
.auth .eyebrow {
  margin-top: 24px;
}
.auth h1 {
  font-size: 30px;
}
.auth h2 {
  margin-top: 30px;
}
.auth button {
  width: 100%;
  margin-top: 5px;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-top: 24px;
}
.auth .muted {
  margin-bottom: 22px;
}
.back {
  display: block;
  font-size: 11px;
  margin: 0 0 20px;
  color: var(--muted);
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Dettaglio commessa: date, fasi, attivita e documenti. */
.project-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 18px;
}
.project-summary small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.project-summary strong {
  font-size: 12px;
  font-weight: 550;
}
.description {
  margin: 22px 0;
  color: #5c7074;
  max-width: 850px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  padding: 17px 0 14px;
  white-space: nowrap;
  font-size: 12px;
}
.tabs a {
  padding-bottom: 4px;
}
.phases {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 20px 0;
  overflow: auto;
}
.phases li {
  flex: 1;
  min-width: 110px;
  font-size: 10px;
  color: #647c7a;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px 8px 0;
  border-bottom: 2px solid #cfdfd5;
}
.phases li > span {
  border: 1px solid #c6d9cc;
  background: #eaf2ed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #44725b;
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
.block {
  background: #fdf7ec;
  border-left: 3px solid #c69e5b;
  padding: 13px 16px;
  margin-top: 18px;
  font-size: 12px;
}
.block p {
  margin: 8px 0;
}
.task > p {
  font-size: 12px;
  color: #5d7379;
}
details > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
}
details[open] > summary {
  margin-bottom: 18px;
}
details details {
  margin-top: 20px;
}
.task > details,
.update > details {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.inline {
  display: flex;
  gap: 12px;
  align-items: center;
}
.inline small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.update-body {
  line-height: 1.8;
  margin: 20px 0;
  font-size: 13px;
}
.file-link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f0f5f2;
  margin: 5px;
  font-size: 12px;
}
blockquote {
  margin: 20px 0;
  border-left: 3px solid #c5d8cf;
  padding: 10px 18px;
  background: #f6f9f7;
  font-size: 12px;
}
blockquote small {
  color: var(--muted);
}
.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.document {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0;
}
.document > div {
  flex: 1;
  overflow-wrap: anywhere;
}
.document strong {
  font-size: 12px;
}
.document small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 18px 0;
}
legend {
  font-size: 12px;
}
.person-row {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.person-row:last-child {
  border-bottom: 0;
}
.person-row form {
  margin: 0;
}
.person-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
/* Filtri e tabelle delle attivita. */
.filters {
  display: flex;
  align-items: end;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.filters label {
  flex: 1;
  margin: 0;
}
.filters a {
  padding: 10px;
  font-size: 11px;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.table-wrap {
  overflow: auto;
}
.task-list:empty {
  display: none;
}
[id] {
  scroll-margin-top: 20px;
}
.copy-status {
  font-size: 11px;
  color: var(--green);
}

/* Adattamenti desktop ampio, tablet e smartphone. */
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .page-heading {
    margin-bottom: 35px;
  }
  .stats {
    gap: 22px;
  }
  .stats > a {
    padding: 24px;
  }
  .project-card {
    padding: 24px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
    padding: 26px 15px 0;
  }
  .shell {
    margin-left: 215px;
  }
  main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .stats > a {
    padding: 16px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats b {
    display: none;
  }
  .project-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading h1 {
    font-size: 26px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: auto;
    padding: 18px 18px 0;
  }
  .sidebar .brand {
    font-size: 25px;
  }
  .workspace-label,
  .company,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 6px;
    margin-top: 18px;
    padding-bottom: 12px;
  }
  .sidebar nav a {
    padding: 9px 12px;
    white-space: nowrap;
    font-size: 11px;
  }
  .sidebar nav a span {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 20px;
  }
  .topbar > div {
    font-size: 0;
  }
  .topbar a {
    font-size: 20px;
    border: 0;
    padding: 0;
  }
  .topbar .live-dot {
    display: none;
  }
  main {
    padding: 25px 18px 35px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .page-heading .muted {
    line-height: 1.7;
  }
  .page-heading > .button {
    font-size: 12px;
    padding: 10px 15px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stats > a {
    padding: 15px;
  }
  .stats strong {
    font-size: 29px;
  }
  .stats small {
    font-size: 9px;
  }
  .stats span {
    font-size: 11px;
  }
  .attention {
    padding: 17px;
  }
  .attention .section-heading > .muted {
    display: none;
  }
  .attention-row {
    gap: 10px;
  }
  .attention-row strong {
    font-size: 11px;
  }
  .attention-row small {
    font-size: 10px;
  }
  .attention-row > .badge {
    display: none;
  }
  .attention-row > span:last-child {
    max-width: 55px;
    text-align: right;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 22px;
  }
  .card-meta {
    font-size: 11px;
  }
  .project-card h3 {
    font-size: 18px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading .muted,
  .section-heading > .hint {
    font-size: 10px;
    max-width: 140px;
    text-align: right;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .panel {
    padding: 18px;
  }
  .feed-row {
    padding: 16px;
  }
  .feed-row > span:last-child {
    display: none;
  }
  footer {
    margin: 0 18px;
    font-size: 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    margin: 25px 15px;
    padding: 28px;
  }
  .project-summary {
    padding: 18px;
    gap: 20px 12px;
  }
  .project-summary strong {
    font-size: 11px;
  }
  .heading-actions {
    flex-wrap: wrap;
  }
  .tabs {
    gap: 20px;
    font-size: 11px;
  }
  .document-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label {
    min-width: 130px;
  }
  .person-row {
    align-items: start;
  }
  .task-meta {
    gap: 8px 16px;
  }
  .update .section-heading {
    flex-wrap: wrap;
  }
  .phases {
    gap: 7px;
  }
  .phases li {
    min-width: 95px;
  }
  .description {
    font-size: 12px;
  }
}

/* Rispetta la preferenza di riduzione delle animazioni. */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.mobile-logout {
  display: none;
}
@media (max-width: 760px) {
  .topbar .mobile-logout {
    display: block;
    margin: 0 0 0 12px;
  }
  .mobile-logout button {
    font-size: 11px;
  }
}
