/* EVOBILIA — nuova interfaccia.
   Base grafica approvata dal proprietario il 3 novembre 2026: proposta D, temi Notte e Giorno
   (docs/handoff/PRODUCT-VISION.md, «Base grafica approvata»). Il colore del marchio è dell'agenzia:
   l'oro è soltanto il valore predefinito. Tutti i colori passano da queste variabili. */

:root {
  --marchio: #D9A95B;
  --sul-marchio: #14161B;
  --raggio: 14px;
  --raggio-piccolo: 10px;
  --carattere: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* Movimento (DESIGN.md, «Movimento»): tre durate d'entrata, due d'uscita al 70% circa, una curva per entrare
     (decelera) e una per uscire (accelera). Riusate ovunque, in CSS e in JavaScript (dom.js, durata). */
  --movimento-breve: 120ms;
  --movimento: 200ms;
  --movimento-ampio: 320ms;
  --movimento-uscita: 140ms;
  --movimento-uscita-ampio: 225ms;
  --curva-entrata: cubic-bezier(0.16, 1, 0.3, 1);
  --curva-uscita: cubic-bezier(0.4, 0, 1, 1);
}

:root,
:root[data-tema="notte"] {
  color-scheme: dark;
  --fondo: #0B1626;
  --laterale: #09121F;
  --linea: #1A2A40;
  --riquadro: #102036;
  --riquadro-linea: #1E3150;
  --campo: #0F1D31;
  /* Field border at least 3:1 against field, surface and page (WCAG 1.4.11); buttons and filters keep the quieter line. */
  --campo-linea: #56709A;
  --controllo-linea: #22385A;
  --chip: #17294A;
  --chip-linea: #2A4166;
  --divisore: #1A2B44;
  --testo: #E9EEF6;
  --titolo: #FFFFFF;
  --tenue: #C9D3E1;
  --secondario: #9DABC0;
  --separatore: #3A4E6E;
  --link: #8DB8FF;
  --azione: #2F6BDB;
  --avanzamento: #4C8DF6;
  /* Track of the progress bars: the blue value stays at least 3:1 against it. */
  --traccia: #2A4166;
  --distintivo: #1C3354;
  --distintivo-testo: #CFE0FF;
  --verde: #3CCB7F;
  --verde-punto: #3CCB7F;
  /* More orange than the gold, so lateness and errors are not read as "selected". */
  --ambra: #FF8F4D;
  --ambra-testo: #FF8F4D;
  /* Pale amber of the amber pill: opaque (mixed with the box colour), so its words keep their contrast on any row. */
  --ambra-tenue: color-mix(in srgb, var(--ambra) 12%, var(--riquadro));
  --focus: #8DB8FF;
  --marchio-tenue: color-mix(in srgb, var(--marchio) 10%, transparent);
  --marchio-forte: var(--marchio);
  --marchio-testo: var(--marchio);
}

:root[data-tema="giorno"] {
  color-scheme: light;
  --fondo: #F6F5F1;
  --laterale: #FFFFFF;
  --linea: #E4E2DC;
  --riquadro: #FFFFFF;
  --riquadro-linea: #E6E4DE;
  --campo: #FFFFFF;
  --campo-linea: #858B95;
  --controllo-linea: #D8D6CF;
  --chip: #EEF1F6;
  --chip-linea: #D5DCE7;
  --divisore: #ECEAE4;
  --testo: #1B2433;
  --titolo: #0B1626;
  --tenue: #3D4A5E;
  --secondario: #5E6A7D;
  --separatore: #C9CED8;
  --link: #1F5FC9;
  --azione: #1F5FC9;
  --avanzamento: #2F6BDB;
  --traccia: #D5DCE7;
  --distintivo: #E6ECF7;
  --distintivo-testo: #1F3F7A;
  --verde: #1E7F4D;
  --verde-punto: #23945A;
  --ambra: #D08A16;
  --ambra-testo: #9A5B00;
  --ambra-tenue: color-mix(in srgb, var(--ambra) 10%, var(--riquadro));
  --focus: #1F5FC9;
  /* Sul chiaro l'oro puro non si legge: icone e sottolineature usano una versione più scura. */
  --marchio-tenue: color-mix(in srgb, var(--marchio) 14%, transparent);
  --marchio-forte: color-mix(in srgb, var(--marchio) 68%, black);
  --marchio-testo: color-mix(in srgb, var(--marchio) 55%, black);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* A field reached with Tab is never left under the bars fixed at the bottom (save bar; on the phone also the
   "Chiedi" field, see the narrow-screen rules). Errors sit under their fields: the save bar stays one line. */
html:has(.evo-modifica-barra) { scroll-padding-bottom: 5.5rem; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font-family: var(--carattere);
  font-size: 0.9375rem;
  line-height: 1.45;
}
h1, h2, h3 { margin: 0; font-weight: 500; color: var(--titolo); }
p { margin: 0; }
a { color: var(--link); }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* "Vai al contenuto": first Tab stop, visible only when it has the keyboard focus. */
.evo-salta {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 20; padding: 0.6rem 1rem;
  border-radius: var(--raggio-piccolo); border: 1px solid var(--riquadro-linea);
  background: var(--riquadro); color: var(--titolo); text-decoration: none; transform: translateY(-300%);
}
.evo-salta:focus { transform: none; }
/* Links that leave the new interface: the "apri" icon beside the words. */
.evo-avvio { padding: 2rem; color: var(--secondario); }

/* ---------- Pulsanti e campi ---------- */
.evo-pulsante {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.1rem;
  border-radius: var(--raggio-piccolo); border: 1px solid var(--controllo-linea);
  background: transparent; color: var(--testo);
  font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.evo-pulsante:hover { background: var(--chip); }
.evo-pulsante:disabled { opacity: 0.6; cursor: default; }
.evo-pulsante--marchio { background: var(--marchio); border-color: var(--marchio); color: var(--sul-marchio); font-weight: 600; }
.evo-pulsante--marchio:hover { background: color-mix(in srgb, var(--marchio) 88%, white); }
.evo-pulsante--azione { background: var(--azione); border-color: var(--azione); color: #FFFFFF; }
.evo-pulsante--azione:hover { background: color-mix(in srgb, var(--azione) 88%, black); }
.evo-pulsante--icona { width: 2.85rem; padding: 0; border-color: transparent; color: var(--tenue); }
.evo-pulsante--piccolo { min-height: 2.4rem; padding: 0 0.85rem; font-size: 0.875rem; }
.evo-campo {
  min-height: 2.75rem; padding: 0 0.9rem;
  border-radius: var(--raggio-piccolo); border: 1px solid var(--campo-linea);
  background: var(--campo); color: var(--testo);
}
.evo-etichetta { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.875rem; color: var(--tenue); }
.evo-errore { color: var(--ambra-testo); }
.evo-nota { color: var(--secondario); font-size: 0.875rem; }

/* ---------- Accesso e scelta dell'agenzia ---------- */
.evo-accesso { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.evo-accesso-scheda {
  width: 100%; max-width: 27rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 2rem; border-radius: 18px;
  background: var(--riquadro); border: 1px solid var(--riquadro-linea);
}
.evo-accesso-scheda h1 { font-size: 1.5rem; }
.evo-accesso-marca { font-size: 1.75rem; letter-spacing: 0.2em; color: var(--titolo); overflow-wrap: anywhere; }
.evo-accesso form { display: flex; flex-direction: column; gap: 1rem; }
.evo-agenzie { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.evo-agenzie button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.25rem; padding: 0 1rem; text-align: left;
  border-radius: var(--raggio-piccolo); border: 1px solid var(--controllo-linea);
  background: var(--campo); cursor: pointer;
}
.evo-agenzie button:hover { border-color: var(--marchio); }
/* The agency in use, when the list is opened from "Cambia agenzia". */
.evo-agenzie button[aria-current="true"] { border-color: var(--marchio-forte); background: var(--marchio-tenue); }
.evo-agenzie span { color: var(--secondario); font-size: 0.875rem; }

/* ---------- Guscio: menu laterale e testata ---------- */
.evo-guscio { display: flex; flex-wrap: wrap; min-height: 100vh; }
.evo-laterale {
  flex: 0 0 15rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.75rem;
  padding: 1.6rem 1rem; background: var(--laterale); border-right: 1px solid var(--linea);
}
.evo-marca { display: flex; flex-direction: column; gap: 0.3rem; padding: 0 0.6rem; }
.evo-marca-nome { font-size: 1.6rem; letter-spacing: 0.2em; color: var(--titolo); text-decoration: none; }
.evo-agenzia {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2rem; padding: 0; border: 0; background: transparent;
  color: var(--secondario); font-size: 0.8125rem; cursor: pointer; text-align: left;
}
.evo-agenzia:disabled { cursor: default; }
.evo-menu { display: flex; flex-direction: column; gap: 0.25rem; }
.evo-menu a {
  display: flex; align-items: center; gap: 0.75rem; min-height: 2.65rem; padding: 0 0.75rem;
  border-radius: var(--raggio-piccolo); border: 1px solid transparent;
  color: var(--tenue); text-decoration: none;
}
.evo-menu a:hover { background: var(--chip); }
.evo-menu a[aria-current="page"] { border-color: var(--marchio-forte); background: var(--marchio-tenue); color: var(--titolo); font-weight: 500; }
.evo-menu a[aria-current="page"] svg { color: var(--marchio-forte); }

.evo-principale { flex: 1 1 34rem; min-width: 0; display: flex; flex-direction: column; }
.evo-testata {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.75rem; border-bottom: 1px solid var(--linea);
}
.evo-chiedi {
  flex: 1 1 18rem; min-width: 0; display: flex; align-items: center; gap: 0.6rem;
  min-height: 2.9rem; padding: 0 0.35rem 0 1rem;
  border-radius: 12px; border: 1px solid var(--campo-linea); background: var(--campo);
}
.evo-chiedi:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.evo-chiedi svg { color: var(--secondario); flex: none; }
.evo-chiedi input { flex: 1; min-width: 0; min-height: 2.6rem; border: 0; outline: none; background: transparent; }
.evo-nuovo { position: relative; }
.evo-nuovo > summary { list-style: none; }
.evo-nuovo > summary::-webkit-details-marker { display: none; }
.evo-tendina {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 5; min-width: 15rem;
  display: flex; flex-direction: column; padding: 0.4rem;
  border-radius: 12px; border: 1px solid var(--riquadro-linea); background: var(--riquadro);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.evo-tendina a { display: flex; align-items: center; min-height: 2.6rem; padding: 0 0.75rem; border-radius: 8px; color: var(--testo); text-decoration: none; }
.evo-tendina a:hover { background: var(--chip); }
.evo-utente { display: flex; align-items: center; gap: 0.6rem; }
.evo-utente-testo { display: flex; flex-direction: column; line-height: 1.2; }
.evo-utente-testo span:last-child { font-size: 0.75rem; color: var(--secondario); }

/* ---------- Pagine ---------- */
.evo-pagina { width: 100%; max-width: 79rem; padding: 1.6rem 1.75rem 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.evo-pagina:focus { outline: none; }
.evo-intestazione { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0.75rem 1.25rem; }
.evo-titolo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.75rem; min-width: 0; }
.evo-titolo h1 { overflow-wrap: anywhere; }
.evo-titolo h1 { font-size: 2rem; }
.evo-titolo h1:focus { outline: none; }
.evo-conteggio { color: var(--secondario); }
.evo-riquadro { background: var(--riquadro); border: 1px solid var(--riquadro-linea); border-radius: var(--raggio); }
.evo-riquadro--spazio { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.85rem; }
.evo-cerca-elenco { flex: 0 1 26rem; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.evo-cerca-elenco .evo-campo { flex: 1 1 12rem; width: auto; min-width: 0; }
.evo-riquadro--spazio > .evo-cerca-elenco, .evo-dotazione-nuova > .evo-cerca-elenco { flex: none; }
/* The form sits inside the "Nuova dotazione" label: the field keeps the body size. */
.evo-dotazione-nuova > .evo-cerca-elenco { font-size: 0.9375rem; }
.evo-filtri { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.evo-filtro {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.4rem; padding: 0 0.9rem;
  border-radius: 999px; border: 1px solid var(--controllo-linea);
  color: var(--tenue); text-decoration: none; font-size: 0.875rem;
}
/* Only with a real pointer: on touch the hover stays after the tap and an unchosen pill would look chosen. */
@media (hover: hover) { .evo-filtro:hover { background: var(--chip); } }
.evo-filtro[aria-current="true"] { border-color: var(--marchio-forte); background: var(--marchio-tenue); color: var(--titolo); font-weight: 500; }
.evo-filtro span { color: var(--secondario); font-weight: 400; }

/* ---------- Elenco a righe ---------- */
.evo-tabella { overflow: hidden; }
.evo-riga {
  display: grid;
  grid-template-columns: minmax(15rem, 2.6fr) minmax(7rem, 1.1fr) minmax(3rem, 0.5fr) minmax(4rem, 0.6fr) minmax(7rem, 1fr) minmax(9rem, 1.5fr) minmax(6.5rem, 0.8fr);
  align-items: center; border-top: 1px solid var(--divisore);
}
.evo-riga--testa { border-top: 0; color: var(--secondario); font-size: 0.8125rem; }
.evo-cella { padding: 0.6rem 0.75rem; min-width: 0; }
.evo-cella:first-child { padding-left: 1.1rem; }
.evo-cella:last-child { padding-right: 1.1rem; }
.evo-cella--num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.evo-cella--forte { font-weight: 500; }
.evo-immobile { display: flex; align-items: center; gap: 0.9rem; color: var(--testo); text-decoration: none; }
.evo-immobile:hover .evo-immobile-titolo { text-decoration: underline; }
.evo-immobile-testo { display: flex; flex-direction: column; min-width: 0; }
.evo-immobile-titolo {
  font-weight: 500; color: var(--titolo); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.evo-tabella .evo-riga:not(.evo-riga--testa) { position: relative; }
.evo-tabella .evo-riga:not(.evo-riga--testa):hover { background: var(--chip); }
.evo-tabella .evo-immobile::after { content: ""; position: absolute; inset: 0; }
.evo-tabella .evo-immobile:focus-visible { outline: none; }
.evo-tabella .evo-immobile:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; }
/* Hints (title) of Pubblicazione and Responsabile stay above the row link. */
.evo-tabella .evo-riga [title] { position: relative; z-index: 1; }
/* «Cambia» in the Responsabile column (whoever may assign): above the row and card links, a wider last column, the
   small editor in a column of its own (menu, then Salva and Annulla). The column minimums add up to 53.4rem: within the
   table's width just above 72rem (the cards take over below), nothing clipped. In the table «Cambia» and the editor's
   buttons are compact (1.75rem, above the 24 px target), the name and «Cambia» on one line when they fit: the rows keep
   the height of the read-only list. */
.evo-tabella .evo-riga .evo-cella-assegna, .evo-scheda .evo-cella-assegna { position: relative; z-index: 1; }
.evo-tabella--assegna .evo-riga {
  grid-template-columns: minmax(15rem, 2.6fr) minmax(7rem, 1.1fr) minmax(3rem, 0.5fr) minmax(4rem, 0.6fr) minmax(7rem, 1fr) minmax(9rem, 1.5fr) minmax(8.4rem, 1fr);
}
.evo-cella-assegna { display: flex; flex-direction: column; flex-wrap: wrap; align-items: flex-start; gap: 0.4rem; min-width: 0; max-width: 100%; }
.evo-cella-assegna > * { max-width: 100%; }
.evo-assegna-campo { display: block; width: 100%; }
.evo-cella-assegna .evo-campo { width: 100%; min-width: 0; padding: 0 0.5rem; }
.evo-cella-assegna .evo-filtri { gap: 0.4rem; }
.evo-cella-assegna .evo-errore, .evo-cella-assegna .evo-nota { margin: 0; font-size: 0.8125rem; overflow-wrap: anywhere; }
.evo-assegna-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.evo-assegna-esito:empty { display: none; }
.evo-tabella .evo-cella-assegna { flex-direction: row; align-items: center; gap: 0.25rem 0.5rem; }
.evo-tabella .evo-cella-assegna:has(.evo-errore:not(:empty)) { flex-direction: column; align-items: flex-start; }
.evo-tabella .evo-cella-assegna .evo-pulsante--piccolo { min-height: 1.75rem; padding: 0 0.55rem; font-size: 0.8125rem; }
.evo-tabella .evo-cella-assegna .evo-campo { min-height: 2rem; }
/* «Cambia» in the table: a quiet text action, not a bordered button on every row. */
.evo-tabella .evo-cambia-elenco { border-color: transparent; background: none; color: var(--secondario); text-decoration: underline; text-underline-offset: 0.2em; padding: 0 0.25rem; }
.evo-tabella .evo-cambia-elenco:hover { color: var(--titolo); background: none; }
/* The open editor takes a line of its own under the property (the table clips anything that overflows a cell):
   the menu wide enough for a full name, then Salva and Annulla on the same line. */
.evo-tabella .evo-riga > .evo-cella:has(> .evo-cella-assegna select) { grid-column: 1 / -1; padding-top: 0; }
.evo-tabella .evo-cella-assegna:has(select) { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.4rem 0.5rem; }
.evo-tabella .evo-cella-assegna:has(select) .evo-assegna-campo { width: auto; flex: 0 1 18rem; }
.evo-tabella .evo-cella-assegna:has(select) .evo-filtri { flex-wrap: nowrap; }
.evo-tabella .evo-cella-assegna:has(select) .evo-assegna-esito, .evo-tabella .evo-cella-assegna:has(select) > .evo-nota { flex-basis: 100%; align-items: flex-end; text-align: right; }
.evo-scheda-responsabile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin-top: 0.25rem; min-width: 0; }
.evo-scheda-responsabile > .evo-cella-assegna { flex-direction: row; align-items: center; }
.evo-scheda-responsabile > .evo-cella-assegna:has(select) { flex-direction: column; align-items: flex-start; flex: 1 1 100%; }
@media (max-width: 40rem) {
  .evo-cella-assegna .evo-pulsante, .evo-cella-assegna .evo-campo { min-height: 2.75rem; }
}
/* Responsabile: the name in full, at most two lines. Only an address: the initials and the address beside them. */
.evo-responsabile-indirizzo { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; max-width: 100%; text-align: left; }
.evo-responsabile-indirizzo .evo-iniziali { flex: none; }
.evo-responsabile-nome { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
/* Two colleagues with the same name: the address that tells them apart, whole, under the name. */
.evo-responsabile-email { display: block; font-size: 0.8125rem; color: var(--secondario); overflow-wrap: anywhere; }
.evo-immobile-dettaglio { font-size: 0.8125rem; color: var(--secondario); overflow-wrap: anywhere; }
/* Under "Pubblicato su 2 di 3": which destination is missing or has a problem, visible without the mouse. */
.evo-pubblicazione-manca { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--secondario); overflow-wrap: anywhere; }
.evo-foto { width: 4.5rem; height: 3.25rem; flex: none; border-radius: 8px; object-fit: cover; background: var(--chip); display: block; }
.evo-foto--assente {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--separatore); background: transparent; color: var(--secondario); font-size: 0.6875rem;
}
.evo-stato { display: inline-flex; align-items: center; gap: 0.45rem; }
.evo-punto { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 50%; background: var(--secondario); }
.evo-punto--verde { background: var(--verde-punto); }
.evo-punto--ambra { background: var(--ambra); }
.evo-punto--blu { background: var(--avanzamento); }
.evo-punto--vuoto { background: transparent; border: 1.5px solid var(--secondario); }
.evo-testo-ambra { color: var(--ambra-testo); }
.evo-testo-tenue { color: var(--secondario); }
.evo-iniziali {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--distintivo); color: var(--distintivo-testo); font-size: 0.75rem; font-weight: 600;
}
.evo-paginazione { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
.evo-messaggio { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.evo-messaggio--avviso { border-color: var(--ambra); }

/* ---------- Ricerca e sezioni non ancora rifatte ---------- */
.evo-gruppi { display: flex; flex-direction: column; gap: 1rem; }
.evo-risultati { list-style: none; margin: 0; padding: 0; }
.evo-risultati li { border-top: 1px solid var(--divisore); }
.evo-risultati a { display: flex; flex-direction: column; padding: 0.7rem 0; color: var(--testo); text-decoration: none; }
.evo-risultati a:hover span:first-child { text-decoration: underline; }
.evo-risultati span:last-child { font-size: 0.8125rem; color: var(--secondario); }
.evo-cerca-gruppo h2 { font-size: 1.05rem; }
.evo-messaggio-azioni { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Schede compatte (telefono) ---------- */
.evo-schede { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
/* With enlarged text the text goes under the photo instead of being squeezed beside it. */
.evo-scheda {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.6rem 0.5rem 0.5rem; border-radius: var(--raggio);
  background: var(--riquadro); border: 1px solid var(--riquadro-linea);
}
.evo-scheda--scegli { padding: 0; }
.evo-scheda--scelta { border-color: var(--marchio-forte); }
.evo-scheda-etichetta { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding: 0.5rem 0.25rem 0.5rem 0.5rem; cursor: pointer; }
.evo-foto--scheda { width: 4.25rem; height: 4.25rem; border-radius: 10px; }
.evo-scheda-testo { flex: 1 1 10rem; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.evo-scheda-prezzo > * { min-width: 0; overflow-wrap: anywhere; }
.evo-scheda-titolo { font-weight: 500; color: var(--titolo); text-decoration: none; overflow-wrap: anywhere; }
/* The title link covers the whole card. */
a.evo-scheda-titolo::after { content: ""; position: absolute; inset: 0; border-radius: var(--raggio); }
a.evo-scheda-titolo:focus-visible { outline: none; }
a.evo-scheda-titolo:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.evo-scheda-dettaglio { font-size: 0.8125rem; color: var(--secondario); overflow-wrap: anywhere; }
.evo-scheda-prezzo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem 0.75rem; }
.evo-scheda-importo { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--testo); overflow-wrap: anywhere; }
.evo-scheda-prezzo .evo-stato { font-size: 0.8125rem; }
.evo-scelta { flex: none; width: 1.35rem; height: 1.35rem; margin: 0 0.75rem 0 0.25rem; accent-color: var(--marchio-forte); cursor: pointer; }
/* The box on the card's title line, centred on the first line of the title (optical, not the baseline). */
.evo-scheda-testo .evo-scelta { vertical-align: -0.3em; margin: 0 0.5rem 0 0; }
/* «Apri» of a card that can be chosen keeps the card's inner margin (the card itself has no padding). */
.evo-scheda--scegli > .evo-pulsante { margin-right: 0.6rem; }

/* ---------- Chiedi: la richiesta del cliente, come una conversazione ---------- */
.evo-conversazione { display: flex; flex-direction: column; gap: 0.9rem; max-width: 46rem; }
.evo-fumetto {
  align-self: flex-end; max-width: 85%; padding: 0.7rem 1rem; border-radius: 20px 20px 6px 20px;
  background: var(--marchio); color: var(--sul-marchio); font-size: 1rem; overflow-wrap: anywhere;
}
.evo-risposta { display: flex; flex-direction: column; gap: 0.5rem; }
.evo-risposta > p:first-child { font-size: 1rem; }
.evo-risposta b { font-weight: 600; color: var(--titolo); }
.evo-capito { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.evo-capita {
  display: inline-flex; align-items: center; min-height: 1.9rem; padding: 0.2rem 0.75rem; max-width: 100%;
  border-radius: 999px; background: var(--chip); font-size: 0.8125rem; overflow-wrap: anywhere;
}
.evo-collegamento {
  min-height: 2.4rem; padding: 0 0.4rem; border: 0; background: transparent; cursor: pointer;
  color: var(--link); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 2px;
}
.evo-chiedi-invito { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.evo-chiedi-invito .evo-campo { flex: 1 1 20rem; min-width: 0; }
/* Optional client of a link: label, search, results and the chosen one in a column. */
.evo-chiedi-cliente { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; min-width: 0; }
.evo-chiedi-cliente > .evo-nota { overflow-wrap: anywhere; }
/* In this column the search form's 26rem basis would become its height. */
.evo-chiedi-cliente > .evo-cerca-elenco { flex: none; }
/* "Invia al cliente" in the property sheet: buttons centred on one line; links keep icon and text together. */
.evo-invia-imm .evo-filtri { align-items: center; }
.evo-invia-imm a.evo-collegamento { display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start; }
.evo-modifica h2 { font-size: 1.05rem; }
.evo-modifica-campi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: 0.75rem; }
.evo-modifica .evo-campo { width: 100%; min-width: 0; }
.evo-spunta { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; cursor: pointer; }
.evo-spunta input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--marchio-forte); }
.evo-azioni-cliente { display: flex; flex-direction: column; gap: 0.5rem; }
.evo-pulsante--grande { min-height: 3.1rem; padding: 0.4rem 1.1rem; font-size: 1rem; border-radius: var(--raggio); white-space: normal; text-align: center; }
.evo-pulsante[aria-disabled="true"] { opacity: 0.55; cursor: default; }
/* A spent control never lights up under the mouse. */
.evo-pulsante:disabled:hover, .evo-pulsante[aria-disabled="true"]:hover { background: transparent; }
.evo-pulsante--marchio:disabled:hover, .evo-pulsante--marchio[aria-disabled="true"]:hover { background: var(--marchio); }
/* A spent blue button turns neutral (chip fill, secondary text), so it never reads as the box's action. Full opacity:
   the text stays readable (6.2:1 in Notte, 4.8:1 in Giorno) even though disabled controls are exempt. */
.evo-pulsante--azione:disabled, .evo-pulsante--azione:disabled:hover,
.evo-pulsante--azione[aria-disabled="true"], .evo-pulsante--azione[aria-disabled="true"]:hover {
  opacity: 1; background: var(--chip); border-color: var(--chip-linea); color: var(--secondario);
}

.evo-esito-link { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.evo-esito-link:empty { display: none; }
/* Withdrawal proposal after a save: «Apri la parte Sito» is a text link on its own line, centred on its touch area. */
[data-proposta="ritiro"] > a.evo-collegamento { display: inline-flex; align-items: center; padding: 0; }
/* Texts queue: the Italian original and the text to check, same labels and spacing so they compare line by line. */
.evo-dati.evo-testo-letto { gap: 0.9rem; }
.evo-dati.evo-testo-letto dt { margin-bottom: 0.2rem; font-size: 0.8125rem; }

/* ---------- Scheda immobile (proposta D) ---------- */
.evo-briciole { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.evo-briciole a { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.4rem; text-decoration: none; }
.evo-briciole-rif { margin-top: -0.9rem; font-size: 0.8125rem; color: var(--secondario); overflow-wrap: anywhere; }
.evo-briciole-rif:empty { display: none; }
.evo-scheda-imm { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.evo-galleria-imm { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.evo-copertina-cornice { position: relative; }
.evo-copertina { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--raggio); display: block; background: var(--chip); }
.evo-copertina--vuota { display: flex; align-items: center; justify-content: center; color: var(--secondario); border: 1px dashed var(--separatore); background: transparent; }
.evo-badge {
  position: absolute; left: 0.75rem; top: 0.75rem; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(9, 18, 31, 0.82); color: #FFFFFF; font-size: 0.8125rem;
}
:root[data-tema="giorno"] .evo-badge { background: rgba(255, 255, 255, 0.92); color: var(--titolo); }
.evo-miniature-imm { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.evo-miniature-imm img, .evo-altre-foto { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 8px; display: block; }
.evo-altre-foto { display: flex; align-items: center; justify-content: center; background: var(--chip); border: 1px solid var(--chip-linea); color: var(--titolo); font-weight: 500; text-decoration: none; }
.evo-info-imm { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.evo-info-testa { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1rem; }
.evo-info-titolo { flex: 1 1 16rem; min-width: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.evo-info-titolo h1 { font-size: 1.75rem; line-height: 1.2; overflow-wrap: anywhere; }
.evo-info-titolo h1:focus { outline: none; }
.evo-riga-imm { display: flex; align-items: flex-start; gap: 0.4rem; color: var(--tenue); overflow-wrap: anywhere; }
.evo-riga-imm svg { flex: none; margin-top: 0.15rem; color: var(--marchio-forte); }
.evo-prezzo-imm { font-size: 1.5rem; font-weight: 600; color: var(--titolo); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.evo-info-azioni { flex: 1 1 100%; min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.evo-info-azioni .evo-nota { overflow-wrap: anywhere; }
/* Outside the Panoramica: one line with name, price, availability and Modifica on the right; it wraps on the phone. */
.evo-testata-compatta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; min-width: 0; }
.evo-testata-compatta h1 { flex: 0 1 auto; min-width: 0; font-size: 1.35rem; line-height: 1.2; overflow-wrap: anywhere; }
.evo-testata-compatta h1:focus { outline: none; }
.evo-testata-prezzo { min-width: 0; font-size: 1.05rem; font-weight: 600; color: var(--titolo); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.evo-testata-compatta > .evo-pulsante { margin-left: auto; }
.evo-chip { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 0.85rem; border-radius: var(--raggio-piccolo); border: 1px solid var(--controllo-linea); font-size: 0.875rem; }
.evo-riquadri-imm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1rem; }
.evo-box-imm { gap: 0.6rem; }
.evo-sezione-testa { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem; }
.evo-sezione-testa h2 { font-size: 1.05rem; }
.evo-sezione-testa a { font-size: 0.875rem; }
.evo-progresso { height: 0.4rem; border-radius: 999px; background: var(--chip); overflow: hidden; }
.evo-progresso span { display: block; height: 100%; border-radius: 999px; background: var(--avanzamento); }
.evo-progresso-0 { width: 0; } .evo-progresso-1 { width: 20%; } .evo-progresso-2 { width: 40%; }
.evo-progresso-3 { width: 60%; } .evo-progresso-4 { width: 80%; } .evo-progresso-5 { width: 100%; }
.evo-mancanze { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evo-mancanze li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem; min-height: 2.5rem; padding: 0.3rem 0; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-mancanze li:first-child { border-top: 0; }
.evo-mancanze a { font-size: 0.875rem; }
.evo-verifica {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding: 1rem 1.25rem;
  border-radius: var(--raggio); border: 1px solid var(--marchio-forte); background: var(--marchio-tenue);
}
.evo-verifica-etichetta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marchio-testo); }
.evo-verifica h2 { font-size: 1rem; font-weight: 400; color: var(--testo); overflow-wrap: anywhere; }
/* With enlarged text or a file name in the label, these buttons wrap instead of widening the page. */
.evo-verifica .evo-pulsante, .evo-verifica-scarica { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.evo-verifica-originale { min-width: 0; max-width: 100%; }
/* One row that scrolls sideways at every width; scroll-padding keeps a tab reached with Tab clear of the soft edges. */
.evo-tab-imm { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--linea); scrollbar-width: thin; scroll-padding-inline: 2.5rem; }
.evo-tab-imm a {
  flex: none; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.9rem;
  border-bottom: 2px solid transparent; color: var(--tenue); text-decoration: none; white-space: nowrap;
}
.evo-tab-imm a:hover { color: var(--titolo); }
/* The gold underline of the current tab is its ::after (see «Movimento»), drawn on the same transparent 2px border. */
.evo-tab-imm a[aria-current="page"] { color: var(--titolo); font-weight: 500; }
/* Inside a scrolling row an outer outline would be cut: the focus ring is drawn inside the tab. */
.evo-tab-imm a:focus-visible { outline-offset: -2px; border-radius: var(--raggio-piccolo) var(--raggio-piccolo) 0 0; }
/* Rows that scroll sideways (tabs; the Agenda choices on the phone) show a soft edge on the side where more is
   hidden: the page-coloured covers move with the content and hide the edge once that side is reached. */
.evo-tab-imm, .evo-agenda-scelte {
  background:
    linear-gradient(to right, var(--fondo) 40%, transparent) left / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--fondo) 40%, transparent) right / 2.5rem 100% no-repeat local,
    linear-gradient(to right, color-mix(in srgb, var(--titolo) 30%, transparent), transparent) left / 0.9rem 100% no-repeat scroll,
    linear-gradient(to left, color-mix(in srgb, var(--titolo) 30%, transparent), transparent) right / 0.9rem 100% no-repeat scroll;
  scrollbar-width: thin; scrollbar-color: var(--separatore) transparent;
}
.evo-parte-imm { min-width: 0; }
.evo-colonne-imm { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.evo-colonna-imm { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.evo-testo-lungo { white-space: pre-line; color: var(--tenue); overflow-wrap: anywhere; }
.evo-titolo-testo { font-size: 1.1rem; overflow-wrap: anywhere; }
.evo-dotazioni { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.evo-dotazioni li { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.15rem 0.8rem; border-radius: 999px; background: var(--chip); font-size: 0.875rem; overflow-wrap: anywhere; }
.evo-dati { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 0.6rem 1rem; }
.evo-dati div { min-width: 0; }
.evo-dati dt { font-size: 0.75rem; color: var(--secondario); }
.evo-dati dd { margin: 0; color: var(--titolo); overflow-wrap: anywhere; }
.evo-dati dd.evo-testo-ambra { color: var(--ambra-testo); }
.evo-persone { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.evo-persona { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; }
.evo-persona-testo { flex: 1 1 8rem; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; overflow-wrap: anywhere; }
.evo-persona-testo strong { font-weight: 500; color: var(--titolo); }
.evo-persona-testo span { font-size: 0.8125rem; color: var(--secondario); }
.evo-persona-azioni { display: flex; gap: 0.25rem; }
.evo-persona-azioni .evo-pulsante--icona { border-color: var(--controllo-linea); }
.evo-griglia-foto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 0.75rem; }
.evo-griglia-foto img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; display: block; background: var(--chip); }
.evo-documenti { list-style: none; margin: 0; padding: 0.25rem 1.25rem; }
.evo-documenti li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--divisore); }
.evo-documenti li:first-child { border-top: 0; }
.evo-documento-nome { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.evo-documento-stato { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; }
/* The states of the documents form a column. */
@media (min-width: 40.01rem) { .evo-documenti .evo-documento-stato { flex: 0 0 18rem; } }
@media (max-width: 62rem) {
  .evo-scheda-imm, .evo-colonne-imm { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Oggi (proposta E) ---------- */
.evo-oggi-titolo { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.evo-oggi-titolo h1 { font-size: 2rem; overflow-wrap: anywhere; }
.evo-oggi-titolo h1:focus { outline: none; }
.evo-oggi-sottotitolo { color: var(--tenue); overflow-wrap: anywhere; }
.evo-oggi-sottotitolo[data-chiusura] { white-space: pre-line; }
.evo-oggi { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; }
.evo-oggi-colonna { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.evo-oggi-colonna--larga { flex: 1.55 1 32rem; }
/* Oggi, the morning page. Header: greeting, date and time of the agency, the next appointment; filters on the right. */
.evo-oggi-testa { align-items: flex-start; }
.evo-oggi-testa > .evo-filtri { margin-top: 0.35rem; }
.evo-oggi-adesso { font-variant-numeric: tabular-nums; }
.evo-oggi-orologio { color: var(--titolo); font-weight: 500; }
.evo-oggi-prossimo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.75rem; color: var(--testo); overflow-wrap: anywhere; }
.evo-oggi-prossimo:empty { display: none; }
.evo-oggi-prossimo-etichetta { color: var(--secondario); }
.evo-oggi-prossimo-ora { font-weight: 500; color: var(--titolo); font-variant-numeric: tabular-nums; }
/* The counts of the day: one container, items split by 1px lines (the lines of the first row and column are
   clipped); every item is a link to its full list. Whole rows from the strip's own width: all in one row when it
   is wide, four per row (lines aligned) in between, two on a phone, never one item alone on a row. */
.evo-oggi-conti { container: evo-conti / inline-size; background: var(--riquadro); border: 1px solid var(--riquadro-linea); border-radius: var(--raggio); overflow: hidden; }
.evo-oggi-conti > ul { list-style: none; margin: -1px 0 0 -1px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evo-oggi-conti li { min-width: 0; display: flex; border-left: 1px solid var(--divisore); border-top: 1px solid var(--divisore); }
@container evo-conti (width >= 36rem) { .evo-oggi-conti > ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container evo-conti (width >= 60rem) { .evo-oggi-conti > ul { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.evo-oggi-conto {
  flex: 1 1 auto; min-width: 0; min-height: 2.75rem; display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.85rem 1.1rem 0.9rem; color: var(--testo); text-decoration: none; overflow-wrap: anywhere;
}
.evo-oggi-conto:hover { background: var(--chip); }
.evo-oggi-conto:hover .evo-oggi-conto-etichetta { text-decoration: underline; text-underline-offset: 0.18em; }
.evo-oggi-conto:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: 4px; }
.evo-oggi-conto-numero { font-size: 1.75rem; font-weight: 500; line-height: 1.1; color: var(--titolo); font-variant-numeric: tabular-nums; }
.evo-oggi-conto--zero .evo-oggi-conto-numero { color: var(--secondario); }
.evo-oggi-conto-etichetta { font-size: 0.8125rem; line-height: 1.35; color: var(--secondario); }
.evo-oggi-conto-nota { font-size: 0.8125rem; line-height: 1.35; color: var(--ambra-testo); font-variant-numeric: tabular-nums; }
/* All in one row: a little less side padding, so "Invio da seguire" fits on a 1280px laptop. */
@container evo-conti (width >= 60rem) { .evo-oggi-conto { padding-inline: 1rem 0.75rem; } }
/* Narrow strip (phone): number and label on one line, so the strip leaves room for the agenda on the first screen. */
@container evo-conti (width < 36rem) {
  .evo-oggi-conto { flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: center; gap: 0 0.45rem; padding: 0.4rem 0.75rem; }
  .evo-oggi-conto-numero { font-size: 1.25rem; }
  .evo-oggi-conto-nota { flex-basis: 100%; }
}
/* Boxes in two groups (oggi.js disponi): people and time, properties and documents. Two columns or one from the real
   width; the order is always the DOM order, never `order`. */
.evo-oggi-giornata.evo-oggi--due { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.evo-oggi-giornata.evo-oggi--una { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.evo-oggi-gruppo { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
/* No box about people (operational copy, a quiet day): the properties' boxes use the whole width, two at most per row. */
.evo-oggi-gruppo--griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(22rem, calc((100% - 1.25rem) / 2))), 1fr)); align-items: start; }
.evo-oggi--due > .evo-oggi-gruppo--griglia { grid-column: 1 / -1; }
/* The last boxes moved under both columns (oggi.js disponi): side by side, on the same lines as the columns above. */
.evo-oggi--due > .evo-oggi-sotto { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; }
.evo-oggi--due > .evo-oggi-sotto > :only-child { grid-column: 1 / -1; }
@media (max-width: 40rem) {
  .evo-oggi-titolo h1 { font-size: 1.6rem; }
}
@media (max-width: 56rem) {
  .evo-oggi-prossimo a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
.evo-oggi-riquadro { gap: 0.4rem; }
.evo-oggi-elenco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evo-oggi-elenco > li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.8rem 0; border-top: 1px solid var(--divisore); }
.evo-oggi-elenco > li:first-child { border-top: 0; }
.evo-oggi-ora { flex: none; width: 3.75rem; display: flex; flex-direction: column; line-height: 1.25; }
.evo-oggi-ora strong { font-size: 1.1rem; font-weight: 500; color: var(--titolo); font-variant-numeric: tabular-nums; }
.evo-oggi-ora span { font-size: 0.75rem; color: var(--secondario); }
.evo-oggi-foto {
  flex: none; width: 4rem; height: 3rem; border-radius: 8px; object-fit: cover; display: flex; align-items: center; justify-content: center;
  background: var(--chip); color: var(--secondario);
}
.evo-oggi-testo { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.evo-oggi-testo strong { font-weight: 500; color: var(--titolo); }
.evo-oggi-testo span { font-size: 0.875rem; color: var(--secondario); }
.evo-chip-piccolo { flex: none; max-width: 100%; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--chip); font-size: 0.75rem; font-weight: 600; overflow-wrap: anywhere; }
.evo-chip-piccolo--marchio { background: var(--marchio-tenue); color: var(--marchio-testo); }
/* Amber pill: «Proprietario non più collegato» (richieste-documenti.js pastigliaScollegato) in the sheet, Oggi, Agenda and
   «Documenti › Da seguire». Words in --ambra-testo on --ambra-tenue: 6:1 in Notte, 4.9:1 in Giorno. Under the details of
   a row (column of text) it keeps its own width. Two classes, so the grey of the row's details does not win; the line
   height is the other small chips'. Its words are the longest of any small chip: with large text in a narrow column a
   word that must break breaks where Italian allows it, with a hyphen («Proprieta-rio»), the page being lang="it". */
.evo-chip-piccolo.evo-chip-piccolo--ambra { background: var(--ambra-tenue); color: var(--ambra-testo); font-size: 0.75rem; hyphens: auto; }
.evo-oggi-testo > .evo-chip-piccolo--ambra, .evo-uguale-testo > .evo-chip-piccolo--ambra { align-self: flex-start; margin-top: 0.3rem; }
@media (forced-colors: active) { .evo-chip-piccolo--ambra { outline: 1px solid CanvasText; outline-offset: -1px; } }
.evo-appuntamento--chiuso .evo-oggi-testo strong, .evo-appuntamento--chiuso .evo-oggi-ora strong { color: var(--secondario); }
.evo-compito-etichetta { flex: 1 1 14rem; min-width: 0; display: flex; align-items: center; gap: 0.85rem; min-height: 2.75rem; cursor: pointer; }
.evo-compito-etichetta input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--marchio-forte); }
.evo-compito-segno { flex: none; width: 1.2rem; display: flex; justify-content: center; color: var(--secondario); }
.evo-compito > .evo-oggi-testo { flex-basis: 12rem; }
.evo-compito--fatto .evo-oggi-testo strong { text-decoration: line-through; color: var(--secondario); }
.evo-compito-esito { font-size: 0.8125rem; color: var(--verde); }
.evo-compito-esito:empty { display: none; }
.evo-oggi-scadenza { flex: none; font-size: 0.8125rem; color: var(--secondario); }
.evo-oggi-scadenza.evo-testo-ambra { color: var(--ambra-testo); }
/* Rows of Oggi, Agenda and Comunicazioni (oggi.js corpoRiga/apriRiga). On the computer title and status stay
   separate items of the row; a narrower title basis keeps "Apri" on the same line in the usual columns, and when
   the row must wrap (narrow column, enlarged text) "Apri" goes to the right, under the other "Apri". */
.evo-riga-corpo { display: contents; }
.evo-riga-corpo > .evo-oggi-testo { flex-basis: 9rem; }
.evo-riga-apri { margin-left: auto; }
.evo-riga-freccia { display: none; }
/* "Ricontrolla" and mandate rows: the icon lines up with the box of the activity rows (gap 1rem vs 0.85rem). */
.evo-compito > .evo-compito-segno { margin-right: -0.15rem; }
/* Single-line column: a wrapping column measures the name block at its narrowest and leaves a gap below it. */
.evo-oggi-richieste > li { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0.35rem; }
/* Lists made only of things to do (Oggi "Da fare", Agenda day, late, undated), on the computer: states and "Apri"
   share columns (list in grid, rows in subgrid), so the short "Apri" of a mandate no longer moves "Scade oggi".
   Wide box: one line per item; narrower box: "Apri" on a second line at the right. Under 62rem, at enlarged text
   (the media query grows with it) and without subgrid the wrapping row above stays. */
@supports (grid-template-columns: subgrid) and selector(:has(*)) {
  @media (min-width: 62rem) {
    .evo-oggi-riquadro:has(> .evo-oggi-elenco > .evo-compito) { container: evo-compiti / inline-size; }
  }
  @container evo-compiti (width > 0) {
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) { display: grid; grid-template-columns: auto minmax(0, 1fr) max-content; column-gap: 1rem; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 0.6rem; column-gap: normal; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-compito-etichetta { grid-column: 1 / 4; display: grid; grid-template-columns: subgrid; column-gap: normal; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-riga-corpo {
      grid-column: 2 / 4; display: grid; grid-template-columns: subgrid; align-items: center; row-gap: 0.25rem; column-gap: normal;
    }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-compito-segno { grid-column: 1; margin-right: 0; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-riga-corpo > .evo-oggi-testo { grid-column: 1; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-riga-corpo > .evo-oggi-scadenza { grid-column: 2; }
    /* "Fatta" / "Annullata" under the state, the outcome of a tick under the text. */
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-riga-corpo > .evo-chip-piccolo { grid-column: 2; grid-row: 2; justify-self: start; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-compito-esito { grid-column: 2 / 4; grid-row: 2; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-riga-apri { grid-column: 2 / -1; grid-row: 2; justify-self: end; margin-left: 0; }
  }
  @container evo-compiti (width < 36rem) {
    .evo-oggi-elenco:not(.evo-oggi-elenco--fare):not(:has(> :not(.evo-compito))) > li:has(> .evo-compito-esito:not(:empty)) > .evo-riga-apri { grid-row: 3; }
    /* Oggi «Scadenze» and «Da fare» in the narrower column: the date goes under the title and "Apri" stays on the
       first line, instead of a second line for "Apri" alone; "Fatta" / "Annullata" under the date, the outcome of a
       tick under the row. */
    .evo-oggi-elenco.evo-oggi-elenco--fare:not(:has(> :not(.evo-compito))) .evo-compito-etichetta { grid-column: 1 / 3; }
    .evo-oggi-elenco.evo-oggi-elenco--scadenze:not(:has(> :not(.evo-compito))) .evo-riga-corpo,
    .evo-oggi-elenco.evo-oggi-elenco--fare:not(:has(> :not(.evo-compito))) .evo-riga-corpo { grid-column: 2; grid-template-columns: minmax(0, 1fr); }
    .evo-oggi-elenco.evo-oggi-elenco--scadenze:not(:has(> :not(.evo-compito))) .evo-riga-corpo > .evo-oggi-scadenza,
    .evo-oggi-elenco.evo-oggi-elenco--fare:not(:has(> :not(.evo-compito))) .evo-riga-corpo > .evo-oggi-scadenza { grid-column: 1; grid-row: 2; }
    .evo-oggi-elenco.evo-oggi-elenco--fare:not(:has(> :not(.evo-compito))) .evo-riga-corpo > .evo-chip-piccolo { grid-column: 1; grid-row: 3; }
    .evo-oggi-elenco.evo-oggi-elenco--fare:not(:has(> :not(.evo-compito))) .evo-compito-esito { grid-column: 2 / 4; grid-row: 2; }
    .evo-oggi-elenco.evo-oggi-elenco--scadenze:not(:has(> :not(.evo-compito))) .evo-riga-apri,
    .evo-oggi-elenco.evo-oggi-elenco--fare:not(:has(> :not(.evo-compito))) .evo-riga-apri { grid-column: 3; grid-row: 1; align-self: center; }
  }
  @container evo-compiti (width >= 36rem) {
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) { grid-template-columns: auto minmax(0, 1fr) max-content max-content; }
    .evo-oggi-elenco:not(:has(> :not(.evo-compito))) .evo-riga-apri { grid-column: 4; grid-row: 1; }
  }
}
/* On a phone the time and the text stay side by side; the cover photo gives way. */
@media (max-width: 40rem) { .evo-appuntamento .evo-oggi-foto { display: none; } }
.evo-oggi-cerca { color: var(--tenue); overflow-wrap: anywhere; }
.evo-oggi-riga-azione { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.evo-oggi-riga-azione .evo-pulsante { max-width: 100%; white-space: normal; text-align: center; }
.evo-oggi-adatti { font-size: 0.875rem; color: var(--verde); }
.evo-oggi-verifica { gap: 0.6rem; }
.evo-oggi-verifica h2 { font-size: 1.05rem; font-weight: 500; color: var(--titolo); }
.evo-oggi-documenti { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.evo-oggi-errore { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
/* "Assegnati a me": the note stays close to the filters it explains. */
.evo-oggi-ambito { margin-top: -0.6rem; }
/* Flat grey shapes of the boxes while the day loads, so the page does not jump. */
.evo-sagoma { min-height: 8rem; background: var(--chip); }
.evo-sagoma--alta { min-height: 14rem; }
.evo-sagoma--conti { min-height: 5.5rem; }

/* ---------- Cliente e richiesta (proposta E) ---------- */
.evo-richiesta-testa { align-items: center; }
.evo-richiesta-chi { flex: 1 1 22rem; min-width: 0; flex-wrap: nowrap; align-items: center; gap: 1rem; }
.evo-iniziali--grande { width: 3.75rem; height: 3.75rem; font-size: 1.25rem; font-weight: 500; }
.evo-richiesta-chi .evo-oggi-titolo { flex: 1 1 auto; }
.evo-richiesta-chi p { overflow-wrap: anywhere; }
.evo-richiesta-azioni .evo-pulsante--icona { border-color: var(--controllo-linea); color: var(--testo); }
.evo-richiesta-riga { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.evo-richiesta-chip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.evo-richiesta-chip li {
  display: inline-flex; align-items: center; min-height: 2rem; max-width: 100%; padding: 0.2rem 0.75rem;
  border-radius: 999px; border: 1px solid var(--chip-linea); font-size: 0.875rem; overflow-wrap: anywhere;
}
.evo-richiesta-chip li.evo-chip-indispensabile { border-color: var(--marchio-forte); background: var(--marchio-tenue); font-weight: 500; }
.evo-richiesta-nota { font-size: 0.875rem; color: var(--tenue); overflow-wrap: anywhere; white-space: pre-line; }
.evo-richiesta-parole summary { color: var(--link); cursor: pointer; font-size: 0.875rem; }
.evo-richiesta-parole p { margin-top: 0.4rem; font-size: 0.875rem; color: var(--tenue); white-space: pre-line; overflow-wrap: anywhere; }
.evo-adatto-foto { flex: none; width: 5rem; height: 3.6rem; border-radius: 9px; object-fit: cover; display: block; background: var(--chip); }
.evo-adatto-foto--vuota { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--separatore); background: transparent; color: var(--secondario); font-size: 0.6875rem; text-align: center; }
.evo-adatto .evo-oggi-testo a { font-weight: 500; color: var(--titolo); text-decoration: none; }
.evo-adatto .evo-oggi-testo a:hover { text-decoration: underline; }
.evo-adatto-esito { flex: none; max-width: 100%; font-size: 0.8125rem; overflow-wrap: anywhere; }
.evo-adatto-scelta { flex: none; min-height: 2.75rem; font-size: 0.875rem; }
.evo-proposta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--divisore); }
.evo-proposta .evo-pulsante { max-width: 100%; white-space: normal; text-align: center; }
.evo-richiesta-passo p { overflow-wrap: anywhere; }
/* Next step: one button, the other steps as a row of links. */
.evo-richiesta-collegamenti { align-items: center; gap: 0.5rem 1rem; font-size: 0.875rem; }
/* Phone and tablet: one column. richiesta.js and clienti.js move "Prossimo passo" before the columns, so it comes right after
   the header in the DOM too (focus and screen reader order), never with `order`. */
@media (max-width: 62rem) {
  .evo-richiesta-corpo { flex-direction: column; align-items: stretch; }
  .evo-richiesta-corpo > .evo-oggi-colonna { display: contents; }
}
.evo-dati--colonna { grid-template-columns: minmax(0, 1fr); }
.evo-storico { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.evo-storico-voce { display: flex; gap: 0.75rem; }
.evo-storico-punto { flex: none; width: 0.6rem; height: 0.6rem; margin-top: 0.4rem; border-radius: 50%; background: var(--separatore); }
.evo-storico-voce--annullata .evo-oggi-testo strong { color: var(--secondario); }
.evo-storico-voce .evo-oggi-testo > span:first-child { font-size: 0.8125rem; }

/* ---------- Elenchi Richieste e Clienti ---------- */
.evo-richieste-filtri { align-items: center; }
.evo-richiesta-voce { position: relative; }
.evo-richiesta-link { font-weight: 500; color: var(--titolo); text-decoration: none; overflow-wrap: anywhere; }
/* The name link covers the whole row. */
.evo-richiesta-link::after { content: ""; position: absolute; inset: 0; }
.evo-richiesta-link:hover { text-decoration: underline; }
.evo-richiesta-link:focus-visible { outline: none; }
.evo-richiesta-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.evo-richiesta-stato { flex: 1 1 14rem; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
/* The colleague's name wraps between words, never inside one. */
.evo-richiesta-voce > .evo-richiesta-responsabile { flex: 0 1 12rem; min-width: 0; overflow-wrap: break-word; }
.evo-richiesta-voce > .evo-chip-piccolo { position: relative; }

/* ---------- Da verificare: confronto valore per valore ---------- */
.evo-verifica-fonte { margin-top: -0.6rem; color: var(--secondario); overflow-wrap: anywhere; }
.evo-verifica-modulo { display: flex; flex-direction: column; gap: 1rem; max-width: 60rem; }
.evo-voci { display: flex; flex-direction: column; gap: 0.75rem; max-width: 60rem; }
.evo-voci > h2, .evo-verifica-modulo .evo-riquadro > h2, .evo-altri-dati > h2 { font-size: 1.05rem; }
.evo-voce {
  min-width: 0; margin: 0; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.7rem;
  border: 1px solid var(--riquadro-linea); border-radius: var(--raggio); background: var(--riquadro);
}
/* A floated legend becomes an ordinary item of the column instead of sitting on the border. */
.evo-voce legend, .evo-voce h3 { float: left; width: 100%; padding: 0; font-size: 1rem; font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
.evo-voce--mancante { border-color: var(--ambra); }
.evo-voce:disabled { opacity: 0.55; }
.evo-voce-scelte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0.6rem; }
.evo-opzione {
  min-width: 0; display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.75rem 0.85rem;
  border: 1px solid var(--controllo-linea); border-radius: var(--raggio-piccolo); cursor: pointer;
}
.evo-opzione:hover { background: var(--chip); }
.evo-opzione:has(input:checked) { border-color: var(--marchio-forte); background: var(--marchio-tenue); }
.evo-opzione:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.evo-opzione input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0.15rem 0 0; accent-color: var(--marchio-forte); }
.evo-opzione-testo { min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; overflow-wrap: anywhere; }
.evo-opzione-azione { font-weight: 600; color: var(--titolo); }
.evo-opzione-fonte { font-size: 0.8125rem; color: var(--secondario); }
.evo-opzione-valore { color: var(--testo); }
/* What differs between "Usa" and "Lascia": added words underlined, missing words struck through (not colour
   alone), and one summary line per value. Text keeps its colour: 9.6:1 or more on every background in both themes. */
.evo-diff-piu {
  padding: 0 0.15em; border-radius: 3px; background: color-mix(in srgb, var(--link) 12%, transparent); color: inherit;
  text-decoration: underline; text-decoration-color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 0.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.evo-diff-meno {
  padding: 0 0.15em; border-radius: 3px; background: color-mix(in srgb, var(--ambra) 12%, transparent); color: inherit;
  text-decoration: line-through; text-decoration-color: var(--ambra-testo); text-decoration-thickness: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.evo-diff-riassunto { margin: 0; color: var(--tenue); overflow-wrap: anywhere; }
/* A holder read that does not match a contact of the agency: said before the choice, «Da verificare» in gold. */
.evo-voce-conflitto { margin: 0; overflow-wrap: anywhere; }
.evo-confronto { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0.5rem 1rem; }
.evo-confronto div { min-width: 0; }
.evo-confronto dt { font-size: 0.75rem; color: var(--secondario); }
.evo-confronto dd { margin: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.evo-voce-tipo .evo-campo, .evo-tipo-documento .evo-campo { width: 100%; max-width: 18rem; }
.evo-uguale-testo { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.evo-uguale-testo strong { font-weight: 500; color: var(--titolo); }
/* Property data: the documents checklist line sits a little under the value. */
.evo-dati dd .evo-uguale-testo > span + span { margin-top: 0.15rem; }
.evo-tipo-documento summary { padding: 0.35rem 0; color: var(--link); cursor: pointer; }
.evo-tipo-documento .evo-etichetta, .evo-tipo-documento .evo-nota { margin-top: 0.5rem; }
.evo-conferma-verifica .evo-spunta { align-items: flex-start; }
.evo-conferma-verifica .evo-spunta input { margin-top: 0.15rem; }
.evo-errore:empty { display: none; }
.evo-esito-verifica h1 { font-size: 1.5rem; }

/* ---------- Agenda ---------- */
.evo-agenda-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 1.25rem; }
.evo-agenda-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem; min-width: 0; }
.evo-agenda-periodo strong { min-width: 0; padding: 0 0.3rem; font-size: 1.05rem; font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
.evo-agenda-periodo .evo-pulsante--icona { width: 2.6rem; color: var(--testo); border-color: var(--controllo-linea); }
.evo-agenda-periodo span.evo-pulsante--icona { visibility: hidden; }
.evo-agenda-liste { margin-left: auto; }
/* "Di chi" and "Vista" on one row of the header (on the phone one row that scrolls sideways, see below). */
.evo-agenda-scelte { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; min-width: 0; max-width: 100%; }
.evo-agenda-scelte > .evo-filtri + .evo-filtri { padding-left: 1rem; border-left: 1px solid var(--separatore); }
.evo-agenda { display: flex; flex-direction: column; gap: 1rem; max-width: 72rem; }
.evo-agenda-giorni { display: flex; flex-direction: column; gap: 0.75rem; }
.evo-agenda-giorno { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.25rem 1.1rem; padding: 0.85rem 1.1rem; }
.evo-agenda-giorno--oggi { border-color: var(--marchio-forte); }
.evo-agenda-data { margin: 0; font-size: 1rem; font-weight: 400; }
.evo-agenda-data a {
  display: flex; flex-direction: column; align-items: center; padding: 0.3rem 0; line-height: 1.15;
  border-radius: var(--raggio-piccolo); color: var(--testo); text-decoration: none;
}
.evo-agenda-data a:hover { background: var(--chip); }
.evo-agenda-settimana, .evo-agenda-mese { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondario); }
.evo-agenda-numero { font-size: 1.6rem; font-weight: 500; color: var(--titolo); font-variant-numeric: tabular-nums; }
.evo-agenda-giorno--oggi .evo-agenda-numero, .evo-agenda-giorno--oggi .evo-agenda-settimana { color: var(--marchio-testo); }
.evo-agenda-oggi { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--marchio-testo); }
.evo-agenda-voci { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.evo-agenda-voci > .evo-oggi-elenco > li:first-child { padding-top: 0.25rem; }
.evo-agenda-giorno--vuoto { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.evo-agenda-aggiungi { display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start; }
.evo-agenda-giorno--vuoto .evo-agenda-numero { font-size: 1.25rem; color: var(--tenue); }
.evo-mese { padding: 1rem; max-width: 72rem; }
.evo-mese-intestazione, .evo-mese-griglia { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.evo-mese-intestazione span { padding-bottom: 0.4rem; text-align: center; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondario); }
.evo-mese-griglia { list-style: none; margin: 0; padding: 0; }
.evo-mese-griglia > li { min-width: 0; }
.evo-mese-giorno {
  height: 100%; min-height: 5.5rem; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.45rem 0.55rem; overflow: hidden;
  border: 1px solid var(--riquadro-linea); border-radius: var(--raggio-piccolo); color: var(--testo); text-decoration: none;
}
.evo-mese-giorno:hover { background: var(--chip); }
.evo-mese-giorno--vuoto { border-color: transparent; }
.evo-mese-giorno--oggi { border-color: var(--marchio-forte); }
.evo-mese-numero { font-weight: 500; color: var(--titolo); font-variant-numeric: tabular-nums; }
.evo-mese-giorno--vuoto .evo-mese-numero { color: var(--tenue); font-weight: 400; }
.evo-mese-giorno--oggi .evo-mese-numero { color: var(--marchio-testo); }
.evo-mese-oggi { margin-left: 0.3rem; font-size: 0.75rem; font-weight: 500; color: var(--marchio-testo); }
.evo-mese-conto { min-width: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--tenue); overflow-wrap: anywhere; }
.evo-mese-conto::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--azione); }
/* Three shapes, not only colours: appointments a square, activities a dot, expiries a ring. Gold stays for "today". */
.evo-mese-conto--app::before { border-radius: 2px; background: var(--titolo); }
.evo-mese-conto--scad::before { box-sizing: border-box; background: transparent; border: 2px solid var(--tenue); }
.evo-mese-legenda { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
@media (max-width: 40rem) {
  .evo-agenda-liste { margin-left: 0; }
  .evo-agenda-giorno { grid-template-columns: minmax(0, 1fr); padding: 0.75rem 0.9rem; }
  .evo-agenda-data a { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 0.45rem; padding: 0.2rem 0; }
  .evo-agenda-numero { font-size: 1.25rem; }
  .evo-mese { padding: 0.5rem; }
  .evo-mese-intestazione, .evo-mese-griglia { gap: 2px; }
  .evo-mese-intestazione span { font-size: 0.625rem; letter-spacing: 0; }
  .evo-mese-giorno { min-height: 3.25rem; align-items: center; padding: 0.25rem 0.1rem; gap: 0.15rem; }
  .evo-mese-numero { font-size: 0.875rem; }
  /* About 48px per cell: "Oggi" goes under the number. */
  .evo-mese-oggi { display: block; margin-left: 0; font-size: 0.625rem; }
  /* On a phone each day keeps only its coloured dots; the full text stays for screen readers. */
  .evo-mese-giorno .evo-mese-testo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .evo-mese-giorno .evo-mese-conto { gap: 0; }
}
/* Agenda filters, lists by status and «Carica il resto» (agenda-elenchi.js, agenda.js). */
.evo-agenda-filtri { max-width: 72rem; margin: -0.5rem 0 1.25rem; }
.evo-agenda-filtri-modulo {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.1rem;
  border: 1px solid var(--riquadro-linea); border-radius: var(--raggio); background: var(--riquadro);
}
.evo-agenda-filtri-modulo .evo-nota { margin: 0; }
.evo-agenda-con-filtri { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.evo-agenda-con-filtri > .evo-nota { flex: 1 1 16rem; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.evo-agenda-resto { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.evo-agenda-resto:empty { display: none; }
.evo-agenda-resto > .evo-nota, .evo-agenda-resto > .evo-errore { margin: 0; }

/* ---------- Nuovo appuntamento o attività ---------- */
.evo-agenda-nuovi .evo-pulsante { white-space: normal; text-align: center; }
.evo-scelte-tipo label { position: relative; cursor: pointer; }
.evo-scelte-tipo input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.evo-scelte-tipo label:has(input:checked) { border-color: var(--marchio-forte); background: var(--marchio-tenue); color: var(--titolo); font-weight: 500; }
.evo-scelte-tipo label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.evo-scelte-tipo label span { color: inherit; font-weight: inherit; }
.evo-campo-intero { grid-column: 1 / -1; min-width: 0; }
.evo-campo-testo { width: 100%; min-height: 5rem; padding: 0.6rem 0.9rem; resize: vertical; font: inherit; }
.evo-per-tipo { min-width: 0; }
.evo-ora-doppia { display: flex; flex-direction: column; gap: 0.2rem; }
.evo-ora-doppia-titolo { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--testo); }
.evo-nuovo-impegno .evo-campo-aiuto > .evo-pulsante { align-self: flex-start; }
/* Client and property names are long: one per line. */
.evo-nuovo-impegno [data-gruppo="chi"] .evo-modifica-campi { grid-template-columns: minmax(0, 1fr); }

/* ---------- Comunicazioni ---------- */
.evo-schede-comunicazioni { margin-bottom: 1rem; }
.evo-filtri-titolo { align-self: center; margin-right: 0.15rem; font-size: 0.8125rem; color: var(--tenue); }
.evo-comunicazioni { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; max-width: 60rem; }
.evo-comunicazione { min-width: 0; padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: 0.55rem; overflow-wrap: anywhere; }
.evo-comunicazione--chiusa { flex-direction: row; align-items: center; gap: 0.6rem; }
.evo-comunicazione-testa { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.75rem; }
.evo-comunicazione-chi { font-weight: 500; color: var(--titolo); }
a.evo-comunicazione-chi { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a.evo-comunicazione-chi:hover { text-decoration-thickness: 2px; }
/* Buttons and filter rows of the boxes keep their natural width. */
.evo-comunicazione > .evo-pulsante, .evo-comunicazione > .evo-filtri, .evo-impostazione > .evo-pulsante { align-self: flex-start; }
.evo-comunicazione-oggetto { font-weight: 500; color: var(--testo); }
/* A link in a card's note lines up with the card's left edge. */
.evo-comunicazione > .evo-nota > .evo-collegamento { padding: 0; }
.evo-testo-intero { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.evo-leggi-tutto { padding: 0; min-height: 2.4rem; }
.evo-recapiti .evo-pulsante { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.evo-esito-modulo { display: flex; flex-direction: column; gap: 0.6rem; max-width: 36rem; }
.evo-esito-invio { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.evo-esito-invio legend { float: left; width: 100%; padding: 0; font-size: 0.875rem; color: var(--tenue); }
.evo-esito-invio:has(input[aria-invalid="true"]) legend { color: var(--ambra-testo); }
/* "Per quale richiesta?": one choice per line, long request titles included. */
.evo-esito-invio.evo-invia-richiesta { gap: 0; }
.evo-invia-richiesta .evo-spunta { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
/* "Vedi il testo": the prepared message, read-only, to select when no button fits. */
.evo-invia-testo { align-self: stretch; }
.evo-invia-testo summary { display: inline-flex; align-items: center; min-height: 2.4rem; color: var(--link); cursor: pointer; font-size: 0.875rem; }
.evo-invia-testo textarea { display: block; width: 100%; margin-top: 0.4rem; resize: vertical; }
.evo-comunicazioni-righe { list-style: none; margin: 0; padding: 0.6rem 1.15rem; max-width: 60rem; }
.evo-storico.evo-comunicazioni-righe { padding: 1rem 1.15rem; }
.evo-cerca-elenco { display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.evo-cerca-elenco .evo-campo { flex: 1 1 14rem; min-width: 0; }
/* Dal sito: the automatic reading of a message and its potential properties (nuova/comunicazioni.js). */
.evo-posta-lettura { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; min-width: 0; padding-top: 0.65rem; border-top: 1px solid var(--divisore); }
.evo-posta-lettura > .evo-dati, .evo-posta-dubbi, .evo-posta-potenziali { align-self: stretch; }
.evo-posta-titolo { font-size: 0.8125rem; font-weight: 600; color: var(--tenue); }
/* What the reading leaves to verify: the gold strip of «Da verificare». */
.evo-posta-dubbi {
  display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; padding: 0.75rem 1rem; overflow-wrap: anywhere;
  border-radius: var(--raggio); border: 1px solid var(--marchio-forte); background: var(--marchio-tenue);
}
.evo-posta-dubbi ul { margin: 0; padding-left: 1.1rem; }
.evo-posta-etichetta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marchio-testo); }
.evo-posta-potenziali { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.evo-posta-potenziali:empty { display: none; }
.evo-posta-candidati { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-posta-candidati > li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.75rem; min-width: 0; padding: 0.5rem 0; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-posta-candidati > li:first-child { border-top: 0; }
.evo-posta-candidati > li > .evo-nota { flex: 1 1 100%; }
/* Dal sito: the filters, the line that says them, the messages of one request (nuova/comunicazioni.js). */
.evo-posta-filtri { max-width: 60rem; margin: -0.25rem 0 1rem; }
.evo-posta-filtri-modulo {
  display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem 1.1rem;
  border: 1px solid var(--riquadro-linea); border-radius: var(--raggio); background: var(--riquadro);
}
.evo-posta-filtri-modulo .evo-nota { margin: 0; }
.evo-posta-con-filtri { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; max-width: 60rem; margin-bottom: 1rem; }
.evo-posta-con-filtri > .evo-nota { flex: 1 1 16rem; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.evo-posta-richiesta { max-width: 60rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  /* The property links get a 44px touch area without changing their look. */
  .evo-posta-candidati a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
/* Da inviare: «Controlla l’email», its review and the handoff to the email service (nuova/invio-email.js). */
.evo-invio-email { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; min-width: 0; padding-top: 0.65rem; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-invio-email > .evo-dati, .evo-invio-email-servizio, .evo-invio-email-versione, .evo-invio-email-modulo, .evo-invio-email-esito { align-self: stretch; }
.evo-invio-email-titolo { font-size: 0.8125rem; font-weight: 600; color: var(--tenue); }
.evo-invio-email-servizio, .evo-invio-email-passa, .evo-invio-email-cambiato, .evo-invio-email-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; min-width: 0; }
.evo-invio-email-esito:empty { display: none; }
.evo-invio-email-piani { list-style: none; margin: 0; padding: 0; align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.evo-invio-email-piani > li { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; padding: 0.45rem 0; border-top: 1px solid var(--divisore); }
.evo-invio-email-piani > li:first-child { border-top: 0; }
.evo-invio-email-eventi { margin: 0; padding-left: 1.1rem; font-size: 0.875rem; }
.evo-invio-email-versione { min-width: 0; }
.evo-invio-email-versione summary { display: inline-flex; align-items: center; min-height: 2.4rem; color: var(--link); cursor: pointer; font-size: 0.875rem; }
.evo-invio-email-versione > .evo-dati, .evo-invio-email-testo { margin-top: 0.4rem; }
.evo-invio-email-testo { white-space: pre-wrap; }
.evo-invio-email-modulo { display: flex; flex-direction: column; gap: 0.6rem; max-width: 40rem; min-width: 0; }
.evo-invio-email-modulo .evo-spunta { align-items: flex-start; }
.evo-invio-email-modulo .evo-spunta input { margin-top: 0.15rem; }
@media (max-width: 40rem) {
  /* The saved version and the text links get a 44px touch area. */
  .evo-invio-email-versione summary { min-height: 2.75rem; }
  .evo-invio-email .evo-nota > .evo-collegamento { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; }
}

/* ---------- Documenti ---------- */
.evo-documento-letto .evo-pulsante, .evo-documenti-corpo .evo-pulsante { max-width: 100%; white-space: normal; text-align: center; }
.evo-documenti-corpo { display: flex; flex-direction: column; gap: 1rem; }
.evo-documenti-corpo > .evo-pulsante { align-self: flex-start; }
/* The Documenti part of the sheet (archivio.js): checklist, archive, upload. */
.evo-documenti-imm .evo-checklist { padding: 0; }
.evo-documenti-imm .evo-sezione-testa > .evo-nota { margin: 0; }
.evo-documenti-imm .evo-riquadro--spazio > .evo-pulsante { align-self: flex-start; }
.evo-checklist li > .evo-pulsante { flex: none; margin-left: auto; }
/* A phone has nothing to drag from: only the button stays. */
@media (hover: none) and (pointer: coarse) { .evo-zona-carica { min-height: 0; border: 0; padding: 0; justify-content: flex-start; } .evo-zona-carica-testo { display: none; } }
.evo-checklist-modulo { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 0.85rem; padding: 0.85rem 0 0.25rem; }
.evo-checklist-file { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.evo-checklist-file legend { padding: 0; margin-bottom: 0.35rem; font-size: 0.875rem; color: var(--tenue); }
.evo-checklist-file .evo-spunta { align-items: flex-start; overflow-wrap: anywhere; }
.evo-checklist-file .evo-spunta input { margin-top: 0.15rem; }
.evo-documenti-avviso { display: flex; flex-direction: column; gap: 0.35rem; }
.evo-documenti-avviso > p { margin: 0; }
.evo-archivio .evo-oggi-testo .evo-documento-link { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.evo-archivio .evo-documento-link a { color: var(--link); }
.evo-documento-esito:empty { display: none; }
.evo-documento-azioni { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.evo-documento-azioni .evo-pulsante { max-width: 100%; white-space: normal; text-align: center; }
.evo-carica-documenti { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--divisore); }
.evo-carica-documenti h3 { margin: 0; font-size: 1rem; font-weight: 500; color: var(--titolo); }
.evo-zona-carica {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 0.9rem; min-height: 6rem; padding: 1rem;
  border: 1px dashed var(--campo-linea); border-radius: var(--raggio); text-align: center; color: var(--tenue);
}
.evo-zona-carica p { margin: 0; overflow-wrap: anywhere; }
.evo-zona-carica--sopra { border-style: solid; border-color: var(--link); background: var(--chip); }
.evo-carica-documenti .evo-scelti:empty { display: none; }
.evo-carica-documenti .evo-errore:empty, .evo-carica-documenti [role="status"]:empty { display: none; }
/* Corrections by hand and identity documents in «Verifica i dati letti» (verifica.js). */
.evo-voce-correzione { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 0.75rem 1rem; }
.evo-voce-correzione .evo-etichetta { min-width: 0; }
.evo-voce-correzione > .evo-nota { grid-column: 1 / -1; margin: 0; }
.evo-identita-valore { min-width: 0; overflow-wrap: anywhere; }
.evo-identita-valore strong { font-weight: 500; color: var(--titolo); }
.evo-identita-incerti li { justify-content: flex-start; }
/* Requests to the owner and their rechecks (richieste-documenti.js). Own names: evo-richiesta is Oggi's and Clienti's. */
.evo-documenti-imm .evo-richdoc-elenco { padding: 0; }
.evo-richdoc-elenco > li.evo-richdoc { position: relative; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.4rem; }
.evo-richdoc > p { margin: 0; }
.evo-richdoc-testa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1rem; }
.evo-richdoc-titolo { margin: 0; font-size: 1rem; font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
.evo-richdoc-oggetto { color: var(--testo); overflow-wrap: anywhere; }
.evo-richdoc-testo { margin: 0.4rem 0 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--testo); }
.evo-richdoc-messaggio summary, .evo-richdoc-modifiche summary { cursor: pointer; color: var(--link); }
.evo-richdoc-elenco > li.evo-richdoc--cercata { box-shadow: inset 3px 0 0 var(--link); padding-left: 0.75rem; }
/* An empty live region stays in the accessibility tree (its next words are read), out of the flow. */
.evo-richdoc .evo-nota[aria-live]:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.evo-richdoc-inizio { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 0.9rem; }
.evo-richdoc-inizio .evo-etichetta { flex: 1 1 14rem; min-width: 0; }
.evo-richdoc-editore:empty { display: none; }
.evo-richdoc-modulo h3 { margin: 0; font-size: 1rem; font-weight: 500; color: var(--titolo); }
.evo-richdoc-modulo textarea { min-height: 8rem; }
@media (max-width: 40rem) {
  .evo-richdoc-inizio .evo-pulsante--piccolo, .evo-richdoc-modifiche .evo-pulsante--piccolo, .evo-richdoc-modello .evo-pulsante--piccolo { min-height: 2.75rem; }
  .evo-richdoc-messaggio summary, .evo-richdoc-modifiche summary { display: flex; align-items: center; min-height: 2.75rem; }
  .evo-archivio .evo-documento-link a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .evo-documento-azioni { flex: 1 1 100%; }
  .evo-documento-azioni .evo-pulsante--piccolo { min-height: 2.75rem; }
  .evo-checklist .evo-pulsante--piccolo, .evo-documenti-imm .evo-riquadro--spazio > .evo-pulsante--piccolo { min-height: 2.75rem; }
}

/* ---------- Impostazioni ---------- */
.evo-impostazioni { display: flex; flex-direction: column; gap: 1rem; max-width: 60rem; }
.evo-impostazione h2 { font-size: 1.05rem; font-weight: 500; color: var(--titolo); }
.evo-impostazione-sotto { margin: 0.25rem 0 0; font-size: 0.875rem; font-weight: 500; color: var(--tenue); }
.evo-dotazioni-agenzia { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evo-dotazione-agenzia { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; padding: 0.6rem 0; border-top: 1px solid var(--divisore); }
.evo-dotazione-agenzia:first-child { border-top: 0; }
.evo-dotazione-agenzia > .evo-campo { flex: 1 1 14rem; min-width: 0; }
.evo-dotazione-agenzia > strong { flex: 1 1 14rem; min-width: 0; font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
.evo-dotazione-agenzia--ritirata > .evo-campo, .evo-dotazione-agenzia--ritirata > strong { opacity: 0.7; }
/* Colleghi: a permission saved on an owner (it applies again if they go back to agent), with the way to take it away. */
.evo-collega-salvato { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; min-width: 0; }
.evo-elenco-semplice { margin: 0; padding-left: 1.1rem; font-size: 0.875rem; color: var(--tenue); }
.evo-firma { display: flex; flex-direction: column; gap: 0.85rem; }
.evo-firma-anteprima { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--testo); }
/* Il tuo profilo: one field, its note and the save button in a column. */
.evo-profilo { display: flex; flex-direction: column; gap: 0.85rem; max-width: 32rem; }
.evo-profilo .evo-campo { width: 100%; min-width: 0; }

/* ---------- Modifica dei dati dell'immobile ---------- */
/* «Modifiche salvate», «Ordine salvato»: a note with its green dot, without a frame (framed it looked like a button). */
.evo-salvato {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.25rem 0;
  border: 0; border-radius: 4px; color: var(--titolo);
}
/* Two flowing columns on a computer (no gaps under short groups), one on a phone, always in reading order. */
.evo-modifica-immobile { columns: 2 26rem; column-gap: 1rem; max-width: 72rem; }
.evo-modifica-gruppo {
  min-width: 0; margin: 0 0 1rem; padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.85rem;
  break-inside: avoid;
}
/* A floated legend becomes an ordinary item of the column instead of sitting on the border. */
.evo-modifica-gruppo > legend { float: left; width: 100%; padding: 0; font-size: 1.05rem; font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
.evo-modifica-gruppo:focus { outline: none; }
.evo-modifica-gruppo[data-fuoco] { border-color: var(--marchio); }
.evo-modifica-gruppo[data-gruppo="dotazioni"], .evo-modifica-altro { column-span: all; }
/* Occupied dates and internal notes (modifica.js «occupate», «riservate»): wide groups, like the rental periods. */
.evo-modifica-gruppo[data-gruppo="occupate"], .evo-modifica-gruppo[data-gruppo="riservate"] { column-span: all; }
.evo-occupati { display: flex; flex-direction: column; gap: 0.85rem; }
.evo-occupati:empty { display: none; }
.evo-occupato { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.85rem; border-top: 1px solid var(--divisore); }
.evo-occupato:first-child { padding-top: 0; border-top: 0; }
.evo-occupato-titolo { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--tenue); }
.evo-occupato-campi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 0.75rem 1rem; }
.evo-occupato-campi .evo-etichetta { min-width: 0; overflow-wrap: anywhere; }
.evo-occupato-campi .evo-campo { width: 100%; min-width: 0; }
.evo-occupato-note { grid-column: 1 / -1; }
.evo-occupato-togli, .evo-occupati-aggiungi { align-self: flex-start; }
.evo-riservato-largo { grid-column: 1 / -1; }
/* The sheet's read sections: occupied dates one per line, internal notes keeping their line breaks. */
.evo-occupati-elenco { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.evo-occupati-elenco li { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.evo-riservato-testo { white-space: pre-line; overflow-wrap: anywhere; }
/* Cadastral units (catasto.js, edit page «catasto»): a wide group, one divided block per unit, like the occupied dates. */
.evo-modifica-gruppo[data-gruppo="catasto"] { column-span: all; }
.evo-catasto-elenco { display: flex; flex-direction: column; gap: 0.85rem; }
.evo-catasto-elenco:empty { display: none; }
.evo-catasto-unita { min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.85rem; border-top: 1px solid var(--divisore); }
.evo-catasto-unita:first-child { padding-top: 0; border-top: 0; }
.evo-catasto-titolo { margin: 0; font-size: 0.875rem; font-weight: 500; color: var(--tenue); }
.evo-catasto-campi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 0.75rem 1rem; }
.evo-catasto-campi .evo-etichetta { min-width: 0; overflow-wrap: anywhere; }
.evo-catasto-campi .evo-campo { width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.evo-catasto-largo { grid-column: 1 / -1; }
.evo-catasto-altri > summary ~ * { margin-top: 0.5rem; }
.evo-catasto-togli, .evo-catasto-aggiungi { align-self: flex-start; }
/* Who follows a property (responsabile.js): the history of assignments, one change per line with when and who. */
.evo-assegnazioni { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.evo-assegnazioni li { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.evo-assegnazioni li:focus { outline: none; }
.evo-assegnazioni li:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--raggio-piccolo); }
/* The site access of the operational copy (sito.js accessoSito): state, button and refusal with the usual spacing. */
.evo-accesso-sito { display: flex; flex-direction: column; gap: 0.75rem; }
.evo-accesso-sito > p { margin: 0; }
.evo-accesso-sito .evo-errore:empty, .evo-accesso-sito [hidden] { display: none; }
/* Rental periods (modifica.js «affitto»): the period, its price and what the price refers to on one row; on a phone
   the period takes its own line. Prices line up as numbers (The Tabular Numbers Rule). */
.evo-modifica-gruppo[data-gruppo="affitto"] { column-span: all; }
.evo-affitto { display: flex; flex-direction: column; gap: 0.85rem; }
.evo-periodi { display: flex; flex-direction: column; gap: 0.5rem; }
.evo-periodo { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(9rem, 1fr) minmax(10rem, 1.2fr); gap: 0.4rem 1rem; align-items: end; min-width: 0; }
.evo-periodo-nome { align-self: center; min-width: 0; overflow-wrap: anywhere; }
.evo-periodo .evo-etichetta { min-width: 0; }
.evo-periodo .evo-campo { width: 100%; min-width: 0; }
.evo-periodo input[name^="period_amount_"] { font-variant-numeric: tabular-nums; }
@media (min-width: 40.0625rem) {
  .evo-periodo + .evo-periodo { align-items: center; }
  /* The first row carries the column heads: its period name lines up with the fields, not with the heads. */
  .evo-periodo:first-child .evo-periodo-nome { align-self: end; min-height: 2.75rem; display: flex; align-items: center; }
  .evo-periodo + .evo-periodo .evo-periodo-etichetta { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@media (max-width: 40rem) {
  .evo-periodo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .evo-periodo-nome { grid-column: 1 / -1; }
  /* A period not ticked and without a price: only its box (modifica.js data-vuoto). */
  .evo-periodo[data-vuoto] > label { display: none; }
}
/* The narrowest phones: price and basis one under the other, so «Da scegliere» is never cut. */
@media (max-width: 22.5rem) {
  .evo-periodo { grid-template-columns: minmax(0, 1fr); }
}
.evo-modifica-campi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr)); gap: 0.85rem 1rem; }
.evo-modifica-campi .evo-etichetta, .evo-campo-aiuto { min-width: 0; overflow-wrap: anywhere; }
.evo-campo-aiuto { display: flex; flex-direction: column; gap: 0.35rem; }
.evo-modifica-campi .evo-campo { width: 100%; min-width: 0; }
/* Dark amber in Giorno (5.4:1 on white; the light one was 2.9:1); in Notte it is the same orange as before (7.5:1). */
.evo-campo[aria-invalid="true"] { border-color: var(--ambra-testo); box-shadow: 0 0 0 1px var(--ambra-testo); }
/* Message under a wrong field (dom.js segnaErrore): amber text with a "!" sign, the sign hidden from screen readers. */
.evo-errore-campo {
  display: flex; align-items: flex-start; gap: 0.35rem; margin: 0.3rem 0 0;
  font-size: 0.8125rem; line-height: 1.35; color: var(--ambra-testo); overflow-wrap: anywhere;
}
.evo-errore-campo::before {
  content: "!"; content: "!" / "";
  flex: none; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; margin-top: 0.03rem;
  border-radius: 50%; border: 1.5px solid currentColor; font-size: 0.6875rem; font-weight: 700; line-height: 1;
}
/* Inside a stacked label (dom.js) the label's own gap spaces it; elsewhere it sits right under its field. */
.evo-etichetta > .evo-errore-campo, .evo-campo-aiuto > .evo-errore-campo { margin-top: 0; }
/* A field that gets the focus (first error, "Vai al primo") keeps its message visible above the save bar. */
.evo-modifica-immobile .evo-campo, .evo-modifica-immobile [role="radiogroup"] { scroll-margin-top: 1rem; scroll-margin-bottom: 3.5rem; }
.evo-modifica-dotazioni { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1rem 1.5rem; }
.evo-dotazioni-gruppo { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.evo-dotazioni-gruppo h3 { margin: 0 0 0.2rem; font-size: 0.875rem; font-weight: 500; color: var(--tenue); }
.evo-dotazioni-voci { display: flex; flex-direction: column; }
.evo-dotazioni-voci .evo-spunta { min-width: 0; overflow-wrap: anywhere; }
.evo-dotazioni-voci .evo-campo-aiuto { min-width: 0; }
/* Impostazioni, "Campi degli immobili": the boxes in a plain column, without the fieldset frame. */
.evo-campi-form { display: flex; flex-direction: column; gap: 0.85rem; max-width: 40rem; }
.evo-campi-agenzia { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.evo-campi-agenzia > legend { float: left; width: 100%; padding: 0; margin-bottom: 0.5rem; font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
/* A box's note sits right under it, lined up with the label text (1.2rem box + 0.6rem gap). */
.evo-campi-agenzia .evo-campo-aiuto > .evo-nota, .evo-dotazioni-voci .evo-campo-aiuto > .evo-nota { margin: -0.5rem 0 0.5rem 1.8rem; overflow-wrap: anywhere; }
.evo-modifica-barra {
  position: sticky; bottom: 0; z-index: 3; max-width: 72rem; margin-top: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
  padding: 0.75rem 0; background: var(--fondo); border-top: 1px solid var(--linea);
}
.evo-modifica-barra > .evo-filtri { margin-left: auto; min-width: 0; max-width: 100%; }
/* Enlarged text: the buttons wrap their words instead of widening the page. */
.evo-modifica-barra .evo-pulsante { min-width: 0; white-space: normal; text-align: center; }
.evo-modifica-esito { flex: 1 1 18rem; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; overflow-wrap: anywhere; }
.evo-modifica-esito:empty { display: none; }
.evo-firma > .evo-modifica-esito, .evo-profilo > .evo-modifica-esito, .evo-comunicazione > .evo-modifica-esito,
.evo-campi-form > .evo-modifica-esito { flex: none; }
.evo-modifica-errori { margin: 0; padding-left: 1.2rem; max-height: 9rem; overflow-y: auto; }
/* The one line of the save bar ("Mancano 3 dati.") with its way back to the first wrong field. */
.evo-errore-riepilogo { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; margin: 0; }
.evo-errore-vai {
  min-height: 2.4rem; padding: 0 0.25rem; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- Link ai clienti ---------- */
/* One surface as wide as Richieste and Clienti, one row per link: properties, state, actions on the right. */
.evo-link-righe > li { border-top: 0; align-items: center; }
/* Rows hidden by the filter: the divider goes only between visible rows. */
.evo-link-righe > li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--divisore); }
.evo-link-riga > .evo-oggi-testo { flex: 1 1 18rem; }
/* The client names the row: title tone with an underline; the properties in normal text, the details in grey. */
.evo-link-nome a { color: inherit; font-weight: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.evo-link-nome a:hover { text-decoration-thickness: 2px; }
.evo-link-riga .evo-link-immobili { color: var(--testo); }
/* A link whose property list cannot be read any more: a warning to act on, in amber (D27). */
.evo-link-riga .evo-link-illeggibile { color: var(--ambra-testo); }
.evo-link-stato { flex: 0 1 14rem; min-width: 0; font-size: 0.875rem; color: var(--secondario); overflow-wrap: anywhere; }
.evo-link-azioni { margin-left: auto; justify-content: flex-end; }
/* The notice stays in the accessibility tree while empty (a live region that appears later is often not read
   aloud); empty, it is taken out of the row's flow so the gap does not count it. */
.evo-link-avviso { flex-basis: 100%; margin: 0; }
.evo-link-avviso:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.evo-link-superficie > .evo-paginazione:empty { display: none; }
/* Outcome messages that take the focus after an action (tabindex -1): the outline follows the text. */
.evo-link-avviso:focus-visible, .evo-oggi-adatti:focus-visible { border-radius: 4px; }
/* Client-side filters ("Attivi / Ritirati o scaduti") are buttons with the look of the filter links. */
button.evo-filtro { background: transparent; font: inherit; font-size: 0.875rem; cursor: pointer; }
.evo-filtro[aria-pressed="true"] { border-color: var(--marchio-forte); background: var(--marchio-tenue); color: var(--titolo); font-weight: 500; }

/* ---------- Foto, testi e sito (docs/handoff/DESIGN-FOTO-TESTI-SITO.md) ---------- */
/* Progress bars (photo space, uploads, batches): the blue value on a quiet track (--traccia), in both themes.
   Value against track 3.1:1 (Notte) and 3.6:1 (Giorno); never styled inline (CSP). */
.evo-parte-imm progress, .evo-lotti progress {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 0.5rem;
  border: 0; border-radius: 999px; overflow: hidden; background: var(--traccia); color: var(--avanzamento); accent-color: var(--avanzamento);
}
.evo-parte-imm progress { max-width: 20rem; }
.evo-parte-imm progress::-webkit-progress-bar, .evo-lotti progress::-webkit-progress-bar { background: var(--traccia); border-radius: 999px; }
.evo-parte-imm progress::-webkit-progress-value, .evo-lotti progress::-webkit-progress-value { background: var(--avanzamento); border-radius: 999px; }
.evo-parte-imm progress::-moz-progress-bar, .evo-lotti progress::-moz-progress-bar { background: var(--avanzamento); border-radius: 999px; }
/* Foto: one card per photo; the 44px handle is the only drag start (touch-action only there). */
.evo-foto-scheda { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; overflow-wrap: anywhere; }
.evo-foto-scheda .evo-pulsante--icona { border-color: var(--controllo-linea); color: var(--testo); }
.evo-foto-maniglia { touch-action: none; cursor: grab; }
/* The handle is dragged, not pressed: without a frame it does not read as a button that does nothing. */
.evo-foto-scheda .evo-foto-maniglia { border-color: transparent; color: var(--tenue); }
.evo-foto-maniglia:active { cursor: grabbing; }
.evo-foto--trascinata { opacity: 0.55; }
/* Where the dragged photo will land: the chosen place, so the brand line (One Gold Rule: chosen element). */
.evo-foto--qui { outline: 2px dashed var(--marchio-forte); outline-offset: 3px; border-radius: var(--raggio-piccolo); }
/* «Altro» opens as a small menu over the cards (Tendina shadow, like «Nuovo») instead of stretching the grid row.
   As wide as the card, so 320 px gets no sideways scroll; above the sticky save bar (z-index 3). */
.evo-foto-altro { position: relative; }
.evo-foto-altro > .evo-colonna-imm {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.4rem); z-index: 5; margin-top: 0; padding: 0.5rem; gap: 0.5rem;
  border-radius: 12px; border: 1px solid var(--riquadro-linea); background: var(--riquadro);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.evo-foto-altro .evo-pulsante { white-space: normal; text-align: center; }
/* «Posizione»: field and «Sposta» on one row of the same height while the card is wide enough (computer, 390 px);
   on narrower cards or enlarged text the field takes the row and «Sposta» goes under it. */
.evo-foto-altro form .evo-messaggio-azioni > .evo-campo { flex: 1 1 3rem; width: 0; min-width: 0; padding: 0 0.6rem; }
.evo-foto-altro form .evo-messaggio-azioni > .evo-pulsante { flex: none; }
details[data-cestino] > summary { align-self: flex-start; }
/* Inside the open trash the intro, the list and the outcome keep apart (the box's gap stops at the summary). */
details[data-cestino] > summary ~ * + * { margin-top: 0.75rem; }
.evo-foto-scheda details > summary, details[data-cestino] > summary { list-style: none; }
.evo-foto-scheda details > summary::-webkit-details-marker, details[data-cestino] > summary::-webkit-details-marker { display: none; }
[data-caricamento] > h3 { font-size: 1rem; }
/* Testi: the slug question and its two buttons use the whole save bar. */
.evo-testi-conferma { flex: 1 1 100%; align-items: center; }
.evo-testi-messaggi:empty { display: none; }
.evo-testi .evo-mancanze li > .evo-pulsante { margin-left: auto; }
/* «Stato», the choice and «Salva» on one axis. */
.evo-testi-salva { align-items: center; }
/* Disclosures with a chevron: "Scegli / Cambia le foto per il sito" (.evo-sito-scelta) and any other text that opens
   and closes (.evo-apribile, the neutral name): a 44px summary with its own chevron (display:flex drops the marker). */
.evo-sito-scelta, .evo-apribile { min-width: 0; }
.evo-sito-scelta > summary ~ *, .evo-apribile > summary ~ * { margin-top: 0.6rem; }
.evo-sito-scelta > summary, .evo-apribile > summary {
  display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer;
  list-style: none; color: var(--link); overflow-wrap: anywhere;
}
.evo-sito-scelta > summary::-webkit-details-marker, .evo-apribile > summary::-webkit-details-marker { display: none; }
.evo-sito-scelta > summary::before, .evo-apribile > summary::before {
  content: ""; flex: none; width: 0.45rem; height: 0.45rem; margin: 0 0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.evo-sito-scelta[open] > summary::before, .evo-apribile[open] > summary::before { transform: rotate(45deg); }
/* The send bar of a site (sticky like every save bar): same tone as its box, where the page tone showed as a strip,
   and no extra gap over the column. */
.evo-modifica-barra.evo-sito-barra { margin-top: 0; background: var(--riquadro); }
/* Two columns: the short «Annuncio» column follows the long column of the sites instead of leaving the right empty. */
@media (min-width: 62.01rem) {
  .evo-parte-imm .evo-colonne-imm:has(.evo-sito-barra, [data-pronti]) > .evo-colonna-imm:last-child { position: sticky; top: 1rem; }
}
/* Thumbnail on top, then the box with "Foto N" and «Non ancora sul sito» under it. Only the box takes the focus. */
.evo-sito-scelta .evo-griglia-foto .evo-spunta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.4rem 0.6rem; min-width: 0; overflow-wrap: anywhere; }
.evo-sito-scelta .evo-griglia-foto img { grid-column: 1 / -1; grid-row: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raggio-piccolo); }
.evo-sito-scelta .evo-griglia-foto .evo-spunta > .evo-testo-ambra { grid-column: 2; font-size: 0.8125rem; }
/* «Anteprima dell’annuncio» (anteprima.js): the cover at its own shape, the other photos in a grid, the texts as written. */
.evo-anteprima { min-width: 0; }
.evo-anteprima h3 { margin: 0; font-size: 1rem; font-weight: 500; color: var(--titolo); }
.evo-anteprima-galleria, .evo-anteprima-parte { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.evo-anteprima-parte { padding-top: 0.85rem; border-top: 1px solid var(--divisore); }
.evo-anteprima-copertina { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.evo-anteprima-copertina img { display: block; width: 100%; height: auto; border-radius: var(--raggio-piccolo); background: var(--chip); }
.evo-anteprima-foto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(7rem, 100%), 1fr)); gap: 0.6rem; }
.evo-anteprima-foto li { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.evo-anteprima-foto img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--chip); }
.evo-anteprima-luogo { overflow-wrap: anywhere; }
.evo-anteprima .evo-anteprima-nome { font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.evo-anteprima-prezzi { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-variant-numeric: tabular-nums; }
.evo-anteprima-prezzi strong { color: var(--titolo); font-weight: 600; }
.evo-anteprima-intro { color: var(--testo); overflow-wrap: anywhere; }
.evo-anteprima-descrizione { white-space: pre-line; color: var(--tenue); overflow-wrap: anywhere; }
.evo-anteprima-dotazioni { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.evo-anteprima-dotazioni li {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0.15rem 0.8rem; border-radius: 999px;
  background: var(--chip); font-size: 0.875rem; overflow-wrap: anywhere;
}
.evo-anteprima-periodi { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Send history of a site (sito.js storicoInvii): one job per row, its steps folded under it. */
.evo-invii-storico, .evo-invii-passaggi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evo-invii-storico-voce { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 0.6rem 0; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-invii-storico-voce:first-child { padding-top: 0; border-top: 0; }
.evo-invii-storico-titolo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.6rem; }
.evo-invii-storico-titolo strong { font-weight: 500; color: var(--titolo); }
.evo-invii-passaggi { gap: 0.35rem; font-variant-numeric: tabular-nums; }
.evo-invii-passaggi li { overflow-wrap: anywhere; }
.evo-invii-passaggi-blocco > .evo-invii-passaggi { padding-left: 0.75rem; border-left: 1px solid var(--divisore); }
/* Pronti: one row per property; the box, the cover and the title share the first cell. */
.evo-pronti-immobile { display: flex; min-width: 0; gap: 0.75rem; }
.evo-pronti-immobile .evo-scelta { margin: 0; }
/* The empty place of a row without a box (aria-hidden) keeps the names in one column but is not clickable. */
.evo-pronti-immobile > span.evo-scelta { cursor: default; }
.evo-pronti-lingue { gap: 0.25rem 0.6rem; }
.evo-pronti-lingue .evo-stato { font-size: 0.8125rem; }
/* «Immobili da completare» (completare.js): one property per row, what it misses beside it; one column on the phone. */
.evo-completare-elenco { list-style: none; margin: 0; padding: 0 1.35rem; }
.evo-completare-voce { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--divisore); }
.evo-completare-voce:first-child { border-top: 0; }
.evo-completare-testa { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; }
.evo-completare-titolo { font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
/* «Invii degli immobili da seguire»: site and operation, state, notes and the link to the Sito part, one under the other. */
.evo-invio-corpo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; min-width: 0; }
.evo-invio-corpo > p { margin: 0; }
/* Oggi: the properties to complete and the sends to follow, the title of each a link (sheet, or its Sito part). */
.evo-oggi-completa .evo-oggi-testo a, .evo-oggi-invio .evo-oggi-testo a { font-weight: 500; color: var(--titolo); }
@media (min-width: 62.01rem) {
  .evo-tabella--pronti .evo-riga {
    grid-template-columns: minmax(15rem, 2.4fr) minmax(8rem, 1.1fr) minmax(3rem, 0.45fr) minmax(4.5rem, 0.6fr) minmax(6rem, 0.8fr) minmax(12rem, 1.8fr) minmax(3.5rem, 0.45fr);
  }
  /* «Pronti» filter: five cells (property, photos, weight, languages, Apri); state and missing are not repeated. */
  .evo-tabella--pronti.evo-tabella--solo-pronti .evo-riga {
    grid-template-columns: minmax(15rem, 3fr) minmax(3rem, 0.5fr) minmax(4.5rem, 0.6fr) minmax(7rem, 1fr) minmax(3.5rem, 0.45fr);
  }
}
.evo-lotti:empty, .evo-riepilogo-lotto:empty { display: none; }
.evo-lotti h3, .evo-riepilogo-lotto h3 { font-size: 1rem; }
/* Batch bar: after the list in the page, so at the end of the scroll it never covers the last row; on the phone
   it is sticky at the bottom edge (the page hides the "Chiedi" field, .evo-guscio--senza-chiedi). */
.evo-lotto-barra { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; border-top: 1px solid var(--linea); }
.evo-lotto-barra > .evo-nota { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  /* Two photos per row on 390 and 320 px; one only when two no longer fit (enlarged text). */
  .evo-griglia-foto { grid-template-columns: repeat(auto-fill, minmax(min(100%, max(7rem, calc(50% - 0.75rem))), 1fr)); }
  /* What a site asks: the line and «Vai al campo» share the row while both fit; with enlarged text the button wraps. */
  .evo-testi .evo-mancanze li > .evo-stato { flex: 1 1 7rem; min-width: 0; }
}

/* ---------- Telefono: testata compatta, menu a foglio, campo in basso (proposta D) ---------- */
.evo-apri-menu, .evo-compositore, .evo-solo-telefono { display: none; }
.evo-foglio {
  width: min(30rem, calc(100% - 1.5rem)); max-height: calc(100% - 1.5rem); overflow-y: auto;
  margin: auto; padding: 1rem 1rem 1.25rem; border-radius: 18px;
  border: 1px solid var(--riquadro-linea); background: var(--riquadro); color: var(--testo);
  /* On the base rule, not on [open]: while the sheet slides out it is no longer [open] but still shown (display stays
     until the end), and a row layout put its parts in three columns (third review, 15 November 2026). */
  flex-direction: column; gap: 1rem;
}
.evo-foglio[open] { display: flex; }
.evo-foglio::backdrop { background: rgba(4, 9, 17, 0.6); }
.evo-foglio-testa { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.evo-foglio-chi { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.evo-foglio-chi span:first-child { color: var(--titolo); font-weight: 500; }
.evo-foglio-chi span:last-child { font-size: 0.8125rem; color: var(--secondario); }
.evo-foglio-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 100%), 1fr)); gap: 0.35rem; }
.evo-foglio-menu a, .evo-foglio-riga {
  display: flex; align-items: center; gap: 0.7rem; min-width: 0; min-height: 2.9rem; padding: 0.35rem 0.75rem;
  border-radius: var(--raggio-piccolo); border: 1px solid transparent; background: transparent;
  color: var(--testo); text-decoration: none; text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.evo-foglio-menu a { border-color: var(--riquadro-linea); }
.evo-foglio-menu a:hover, .evo-foglio-riga:hover { background: var(--chip); }
.evo-foglio-menu a[aria-current="page"] { border-color: var(--marchio-forte); background: var(--marchio-tenue); color: var(--titolo); font-weight: 500; }
.evo-foglio-menu svg, .evo-foglio-riga svg { flex: none; color: var(--tenue); }
.evo-foglio-menu a[aria-current="page"] svg { color: var(--marchio-forte); }
.evo-foglio-azioni { display: flex; flex-direction: column; gap: 0.1rem; padding-top: 0.75rem; border-top: 1px solid var(--divisore); }
.evo-compositore {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom, 0px)) 0.9rem;
  background: var(--laterale); border-top: 1px solid var(--linea);
}
.evo-compositore input {
  flex: 1; min-width: 0; min-height: 3rem; padding: 0 1rem;
  border: 1px solid var(--campo-linea); border-radius: 999px; background: var(--campo); color: var(--testo);
  font-size: 1rem;
}
.evo-compositore input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
/* «Cerca» of the field at the bottom: an action, so action blue (DESIGN.md, One Gold Rule and decision D10). */
.evo-invia {
  flex: none; width: 3.25rem; height: 3.25rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: var(--azione); color: #FFFFFF; cursor: pointer;
}
@media (hover: hover) { .evo-invia:hover { background: color-mix(in srgb, var(--azione) 88%, black); } }

/* ---------- Schermi stretti ---------- */
@media (max-width: 62rem) {
  .evo-riga--testa { display: none; }
  /* Two facts per line on a phone; one per line when the text is enlarged. */
  .evo-riga { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); padding: 0.4rem 0.35rem; }
  .evo-cella:first-child { grid-column: 1 / -1; }
  .evo-cella:first-child, .evo-cella:last-child { padding-left: 0.75rem; padding-right: 0.75rem; }
  .evo-cella--num { text-align: left; white-space: normal; }
  .evo-immobile { flex-wrap: wrap; }
  .evo-immobile-testo { flex: 1 1 10rem; }
  .evo-cella[data-etichetta]::before { content: attr(data-etichetta); display: block; font-size: 0.75rem; color: var(--secondario); font-weight: 400; }
}
@media (max-width: 56rem) {
  /* Phone and narrow tablet: brand and agency on top with "Menu"; the field at the bottom replaces the header. */
  .evo-guscio { flex-direction: column; flex-wrap: nowrap; }
  .evo-laterale {
    flex: none; min-width: 0; position: static; height: auto; overflow: visible;
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem;
    padding: 0.85rem 0.75rem 0.75rem 1.1rem; border-right: 0; border-bottom: 1px solid var(--linea);
  }
  .evo-laterale .evo-menu, .evo-testata, .evo-solo-computer { display: none; }
  .evo-marca { padding: 0; gap: 0; min-width: 0; }
  .evo-marca-nome { font-size: 1.2rem; }
  .evo-apri-menu { display: inline-flex; flex: none; }
  .evo-compositore, .evo-solo-telefono { display: flex; }
  .evo-principale { flex: 1 0 auto; }
  .evo-pagina { padding: 1.1rem 1rem calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
  .evo-titolo h1 { font-size: 1.6rem; }
  .evo-azioni-cliente--attiva {
    position: sticky; bottom: calc(4.7rem + env(safe-area-inset-bottom, 0px)); z-index: 3;
    padding: 0.5rem 0; background: var(--fondo);
  }
  /* The save bar stays above the field at the bottom of the phone. */
  .evo-modifica-barra { bottom: calc(4.7rem + env(safe-area-inset-bottom, 0px)); padding: 0.5rem 0; }
  /* Forms (new or edited property, document check, new appointment) hide the "Chiedi" field (guscio.js
     mostraChiedi): the save bar goes down to the bottom and the page needs less room under it. */
  .evo-guscio--senza-chiedi .evo-modifica-barra { bottom: 0; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); }
  .evo-guscio--senza-chiedi .evo-pagina, .evo-guscio:has([data-vista="pronti"]) .evo-pagina { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
  /* «Pronti per il sito» (pronti.js, data-vista) hides the field too: it is a page to choose and publish, and the
     batch bar goes down to the bottom edge as the only bar there. */
  .evo-guscio:has([data-vista="pronti"]) .evo-compositore { display: none; }
  .evo-guscio--senza-chiedi .evo-azioni-cliente--attiva, .evo-guscio:has([data-vista="pronti"]) .evo-azioni-cliente--attiva {
    bottom: 0; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }
  /* Focus scrolling keeps fields above the bars at the bottom (see html:has rules at the top). */
  html { scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
  html:has(.evo-azioni-cliente--attiva) { scroll-padding-bottom: calc(13rem + env(safe-area-inset-bottom, 0px)); }
  html:has(.evo-guscio--senza-chiedi), html:has([data-vista="pronti"]) { scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  /* The batch bar (count on one line, «Rivedi» on the next) is taller than a save bar. */
  html:has(.evo-guscio--senza-chiedi .evo-azioni-cliente--attiva), html:has([data-vista="pronti"]):has(.evo-azioni-cliente--attiva) { scroll-padding-bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px)); }
  /* Touch: pills, small buttons and the agency name at least 44px tall. */
  .evo-filtro, .evo-pulsante--piccolo, .evo-agenzia, .evo-errore-riepilogo > button { min-height: 2.75rem; }
  /* Text links of "Invia al cliente" and of the client choice: inline-flex so min-height applies to <a> too. */
  .evo-invia-imm .evo-collegamento, .evo-chiedi-cliente .evo-collegamento { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .evo-invia-testo summary, [data-proposta="ritiro"] > a.evo-collegamento { min-height: 2.75rem; }
  .evo-foglio {
    width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0;
    border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-sezione-testa a, .evo-mancanze a, .evo-oggi-riquadro > a, .evo-persona-testo > a, .evo-richiesta-collegamenti a,
  .evo-link-nome a, .evo-comunicazione > .evo-nota > .evo-collegamento, .evo-dati .evo-uguale-testo a,
  .evo-parte-imm .evo-colonna-imm > .evo-nota > a, .evo-anteprima > .evo-nota > a, .evo-parte-imm .evo-riquadro > .evo-testo-ambra > a,
  .evo-cambia-responsabile, .evo-completare-titolo, .evo-oggi-completa .evo-oggi-testo a, .evo-oggi-invio .evo-oggi-testo a, .evo-nota > a[data-pronti], .evo-nota > a[data-completare], .evo-nota > a[data-proprietari],
  .evo-nota > a[data-incarichi], .evo-nota > a[data-invii], .evo-invio-apri, .evo-verifica-proprietario {
    display: inline-flex; align-items: center; min-height: 2.75rem;
  }
  .evo-completare-elenco { padding: 0 1rem; }
  .evo-completare-voce { grid-template-columns: minmax(0, 1fr); }
  /* The main action of each box goes back to the normal button size. */
  .evo-pulsante--piccolo.evo-azione-riquadro { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.9375rem; }
  /* Filters: each group title on its own line; stages with nothing in them are hidden unless chosen. */
  .evo-filtri-titolo { flex-basis: 100%; }
  .evo-filtri--fasi .evo-filtro--vuoto { display: none; }
  /* All tab rows (property sheet, languages of Testi, Comunicazioni, Documenti, Impostazioni) stay one row that
     scrolls sideways, with the soft edge on the hidden side; scheda.js brings the current tab into view. */
  /* Rows of Oggi, Agenda and Comunicazioni: the status always under the title, "Apri" an icon on the same row.
     The title block keeps a 6rem basis, so with enlarged text it takes its own line instead of being squeezed. */
  .evo-riga-corpo { flex: 1 1 6rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .evo-riga-corpo > .evo-oggi-testo { flex: none; align-self: stretch; }
  .evo-compito-etichetta { flex: 1 1 8rem; }
  .evo-riga-apri {
    flex: none; width: 2.75rem; min-height: 2.75rem; padding: 0; justify-content: center;
    border-color: transparent; background: transparent;
  }
  .evo-riga-apri-testo { display: none; }
  .evo-riga-freccia { display: inline-flex; }
  /* A row with no other control opens as a whole (the link's area covers it); rows with a box keep only the icon. */
  .evo-riga-collegata { position: relative; }
  .evo-riga-collegata .evo-riga-apri::after { content: ""; position: absolute; inset: 0; }
  .evo-riga-collegata .evo-riga-apri:focus-visible { outline: none; }
  .evo-riga-collegata:has(.evo-riga-apri:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--raggio-piccolo); }
  /* Agenda: "Di chi" and "Vista" as one row that scrolls sideways; 3px of room keeps the focus ring uncut. */
  .evo-agenda-scelte { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; padding: 3px; margin: -3px; }
  .evo-agenda-scelte > .evo-filtri { flex: none; flex-wrap: nowrap; }
}
@media (max-width: 30rem) {
  .evo-utente-testo { display: none; }
  .evo-accesso-scheda { padding: 1.4rem; }
  .evo-accesso-marca, .evo-marca-nome { font-size: 1.2rem; letter-spacing: 0.15em; }
}
.evo-marca-nome { overflow-wrap: anywhere; }

/* Buttons never widen the page: long labels wrap on the phone and at 200% text. */
.evo-pulsante { max-width: 100%; }
@media (max-width: 40rem) { .evo-pulsante { white-space: normal; text-align: center; } }

/* ---------- Importa (B7, decisions M1-M13; importa.js) ----------
   The page has no class of its own: the rules use the elements it draws (the step list, the column choices
   #evo-importa-colonna-N, the plain disclosures) or the session page's «Importa» breadcrumb. */
/* Platform frame (EVOBILIA team, no agency shell): the header row with «Agenzie» and «Esci» sits close to the page. */
.evo-principale > header.evo-pagina { padding-bottom: 0; }
/* Step list (computer only; the phone reads «Passo N di 8»): steps are text, not buttons. The current step is the
   gold pill (gold = current, The One Gold Rule); the steps after it are quieter. */
ol.evo-filtri, ul.evo-filtri { margin: 0; padding: 0; list-style: none; }
li.evo-filtro { border-color: transparent; padding: 0 0.7rem; }
@media (hover: hover) { li.evo-filtro:hover { background: transparent; } }
.evo-filtro[aria-current="step"] { border-color: var(--marchio-forte); background: var(--marchio-tenue); color: var(--titolo); font-weight: 500; }
.evo-filtro[aria-current="step"] ~ .evo-filtro { color: var(--secondario); }
/* Plain disclosures in a box («Opzioni di lettura», «Come leggere i valori», «Salva… come profilo»): the 44px
   summary with a chevron of .evo-apribile. */
.evo-riquadro details:not([class]) { min-width: 0; }
.evo-riquadro details:not([class]) > summary {
  display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; cursor: pointer;
  list-style: none; color: var(--link); overflow-wrap: anywhere;
}
.evo-riquadro details:not([class]) > summary::-webkit-details-marker { display: none; }
.evo-riquadro details:not([class]) > summary::before {
  content: ""; flex: none; width: 0.45rem; height: 0.45rem; margin: 0 0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
.evo-riquadro details:not([class])[open] > summary::before { transform: rotate(45deg); }
.evo-riquadro details:not([class]) > summary ~ * { margin-top: 0.6rem; }
/* File fields: the browser's button looks like a quiet button, the field keeps 44px. */
input.evo-campo[type="file"] { display: block; width: 100%; max-width: 40rem; min-width: 0; padding: 0.3rem 0.4rem; color: var(--tenue); font-size: 0.875rem; cursor: pointer; }
input.evo-campo[type="file"]::file-selector-button {
  min-height: 2.25rem; margin: 0 0.75rem 0 0; padding: 0 0.9rem; border: 1px solid var(--campo-linea); border-radius: 8px;
  background: transparent; color: var(--testo); font: inherit; font-weight: 600; cursor: pointer;
}
@media (hover: hover) { input.evo-campo[type="file"]:hover::file-selector-button { background: var(--chip); } }
/* «Per quanto tempo» next to its buttons: the buttons line up with the field, not with the label above it. */
.evo-messaggio-azioni:has(> label) { align-items: flex-end; }
/* Groups: sub-titles under the box title, fieldsets without their frame, lists without the browser indent. */
.evo-gruppi > h3 { font-size: 1rem; }
fieldset.evo-gruppi { margin: 0; padding: 0; border: 0; min-width: 0; gap: 0.5rem; }
ul.evo-gruppi { margin: 0; padding-left: 1.1rem; gap: 0.5rem; overflow-wrap: anywhere; }
div:not([class]) > .evo-gruppi + .evo-gruppi { margin-top: 1rem; }
/* Excluded on purpose: one row per ID, «Riammetti» at its end, the outcome under it. */
ul.evo-elenco-semplice.evo-gruppi { padding-left: 0; list-style: none; }
.evo-elenco-semplice.evo-gruppi > li {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 0.75rem;
  padding-top: 0.5rem; border-top: 1px solid var(--divisore); color: var(--testo); font-size: 0.9375rem;
}
.evo-elenco-semplice.evo-gruppi > li:first-child { padding-top: 0; border-top: 0; }
.evo-elenco-semplice.evo-gruppi > li > span { min-width: 0; }
.evo-elenco-semplice.evo-gruppi > li > .evo-errore { flex-basis: 100%; }
/* Rows of the simulation («Esito per riga»): name, outcome line, notes and decisions, divided like the result lists. */
.evo-risultati > li > .evo-gruppi { gap: 0.35rem; padding: 0.75rem 0; min-width: 0; overflow-wrap: anywhere; }
.evo-risultati > li > .evo-gruppi > strong { font-weight: 500; color: var(--titolo); }
.evo-risultati > li > .evo-gruppi > .evo-messaggio-azioni { margin-top: 0.35rem; }
/* Buttons in a group keep their width («Altre righe», «Annulla questa importazione…»). */
.evo-gruppi > .evo-pulsante { align-self: flex-start; }
/* A row without a link (the team reads «Da ripubblicare» without opening the agency's properties): plain text, same rhythm. */
.evo-risultati > li > span:only-child { display: block; padding: 0.7rem 0; font-size: inherit; color: var(--testo); overflow-wrap: anywhere; }
/* A result that does not open here (operational copy, cerca.js): the same two lines as a link, without the link. */
.evo-risultati > li > .evo-risultato-testo { display: flex; flex-direction: column; padding: 0.7rem 0; }
/* Columns (step 3): each source column with its EVOBILIA field and its level. One row per column on the computer,
   a divided block per column on the phone. */
.evo-campi-form:has(> .evo-campo-aiuto > select[id^="evo-importa-colonna-"]) { max-width: 60rem; gap: 0; }
.evo-campo-aiuto:has(> select[id^="evo-importa-colonna-"]) { padding: 0.65rem 0; border-top: 1px solid var(--divisore); }
.evo-campo-aiuto:has(> select[id^="evo-importa-colonna-"]):first-child { border-top: 0; }
.evo-campo-aiuto > select[id^="evo-importa-colonna-"] { width: 100%; min-width: 0; }
@media (min-width: 48rem) {
  .evo-campo-aiuto:has(> select[id^="evo-importa-colonna-"]) {
    display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(12rem, 24rem) minmax(8rem, 1fr); align-items: center; gap: 0.5rem 1rem;
  }
  .evo-campo-aiuto:has(> select[id^="evo-importa-colonna-"]) > .evo-etichetta { color: var(--testo); font-size: 0.9375rem; }
}
/* Progress and report numbers in columns (The Tabular Numbers Rule). */
.evo-lotti + [role="status"] { font-variant-numeric: tabular-nums; }
#evo-contenuto:has(> nav.evo-briciole[aria-label="Importa"]) > .evo-riquadro > dl.evo-dati dd { font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) {
  /* Reports on the phone: one line per figure, the name on the left and the number on the right, divided. */
  #evo-contenuto:has(> nav.evo-briciole[aria-label="Importa"]) > .evo-riquadro > dl.evo-dati { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #evo-contenuto:has(> nav.evo-briciole[aria-label="Importa"]) > .evo-riquadro > dl.evo-dati > div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0; border-top: 1px solid var(--divisore);
  }
  #evo-contenuto:has(> nav.evo-briciole[aria-label="Importa"]) > .evo-riquadro > dl.evo-dati > div:first-child { padding-top: 0; border-top: 0; }
  #evo-contenuto:has(> nav.evo-briciole[aria-label="Importa"]) > .evo-riquadro > dl.evo-dati dt { flex: 1 1 auto; min-width: 0; font-size: 0.875rem; color: var(--tenue); }
  #evo-contenuto:has(> nav.evo-briciole[aria-label="Importa"]) > .evo-riquadro > dl.evo-dati dd { flex: 0 0 auto; max-width: 60%; text-align: right; }
  /* The row decisions and the excluded IDs: the button under its text, full rows stay readable at 320 px. */
  .evo-elenco-semplice.evo-gruppi > li { justify-content: flex-start; }
}

/* ---------- Proprietari (proprietari.js): the owners list, one owner, the forms, the sheet part ---------- */
.evo-proprietari-elenco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-proprietari-voce { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--divisore); }
.evo-proprietari-voce:first-child { padding-top: 0; border-top: 0; }
.evo-proprietari-testo { flex: 1 1 10rem; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; overflow-wrap: anywhere; }
.evo-proprietari-testo > strong, .evo-proprietari-testo > a { font-weight: 500; }
.evo-proprietari-testo > strong { color: var(--titolo); }
.evo-proprietari-testo > span { font-size: 0.8125rem; color: var(--secondario); }
.evo-proprietari-testo > span:empty { display: none; }
.evo-proprietari-voce > .evo-errore { flex-basis: 100%; min-width: 0; overflow-wrap: anywhere; }
.evo-proprietari-voce > .evo-errore:empty { display: none; }
.evo-proprietari-risultati { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; min-width: 0; }
.evo-proprietari-risultati > .evo-proprietari-elenco { align-self: stretch; }
.evo-proprietari-risultati:empty { display: none; }
.evo-proprietari-scollega, .evo-proprietari-conferma { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-proprietari-scollega > .evo-errore:empty { display: none; }
.evo-proprietario-testa { align-items: center; }
.evo-proprietario-chi { flex: 1 1 18rem; min-width: 0; display: flex; align-items: center; gap: 1rem; }
.evo-proprietario-iniziali { width: 3.75rem; height: 3.75rem; font-size: 1.25rem; font-weight: 500; }
.evo-proprietario-titolo { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.evo-proprietario-titolo h1 { font-size: 2rem; overflow-wrap: anywhere; }
.evo-proprietario-titolo h1:focus { outline: none; }
.evo-proprietario-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1.25rem; align-items: start; }
.evo-proprietario-colonna { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.evo-proprietario-immobili { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.evo-proprietario-immobili > li { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.evo-proprietario-immobili > li > .evo-nota:empty { display: none; }
.evo-proprietario-riservato { white-space: pre-wrap; overflow-wrap: anywhere; }
.evo-proprietario-modulo { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56rem; }
.evo-proprietario-modulo h2 { font-size: 1.05rem; }
.evo-proprietario-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-proprietario-esito:empty { display: none; }
@media (max-width: 62rem) { .evo-proprietario-corpo { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-proprietari-testo > a, .evo-proprietario-immobili > li > a, .evo-proprietario-colonna .evo-riquadro > p > a, .evo-proprietari-voce > .evo-errore a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
  }
  .evo-proprietario-chi { gap: 0.75rem; }
  .evo-proprietario-iniziali { width: 3rem; height: 3rem; font-size: 1rem; }
  .evo-proprietario-titolo h1 { font-size: 1.6rem; }
}

/* ---------- Incarico (incarico.js): the sheet part, its form, the signed PDF versions, the agency's list ---------- */
.evo-incarico-sottotitolo { margin: 0.35rem 0 0; font-size: 0.9375rem; font-weight: 500; color: var(--titolo); }
.evo-incarico-riservato { white-space: pre-wrap; overflow-wrap: anywhere; }
.evo-incarico-modulo { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.evo-incarico-modulo h2 { font-size: 1.05rem; }
.evo-incarico-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-incarico-proprietari, .evo-incarico-riservate { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.evo-incarico-proprietari legend, .evo-incarico-riservate legend { padding: 0; margin-bottom: 0.35rem; font-size: 0.875rem; color: var(--tenue); }
.evo-incarico-proprietari .evo-spunta { min-width: 0; overflow-wrap: anywhere; }
.evo-incarico-esito:empty, .evo-incarico-zona:empty { display: none; }
.evo-incarico-zona { padding-top: 0.25rem; }
.evo-incarico-versioni { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evo-incarico-versione { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.8rem 0; border-top: 1px solid var(--divisore); min-width: 0; }
.evo-incarico-versione:first-child { border-top: 0; padding-top: 0.25rem; }
.evo-incarico-versione > .evo-apribile { align-self: stretch; }
.evo-incarico-versione > .evo-errore:empty { display: none; }
.evo-incarico-versione-testa { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.evo-incarico-versione-testa strong { color: var(--titolo); font-weight: 500; }
.evo-incarico-file, .evo-incarico-inuso { overflow-wrap: anywhere; }
.evo-incarico-storico { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.evo-incarico-storico > li { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.evo-incarichi-elenco { list-style: none; margin: 0; padding: 0 1.35rem; }
.evo-incarichi-voce { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 0.5rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--divisore); }
.evo-incarichi-voce:first-child { border-top: 0; }
.evo-incarichi-testa { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; min-width: 0; }
.evo-incarichi-titolo { font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
.evo-incarichi-corpo { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; overflow-wrap: anywhere; }
.evo-incarichi-corpo > p { margin: 0; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-incarichi-titolo, .evo-incarichi-corpo > .evo-nota > a, .evo-incarico-versione .evo-messaggio-azioni > a, .evo-incarico-inuso > a,
  .evo-incarico-proprietari .evo-nota > a {
    display: inline-flex; align-items: center; min-height: 2.75rem;
  }
  .evo-incarichi-elenco { padding: 0 1rem; }
  .evo-incarichi-voce { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Clienti (clienti.js): the new client, the client's data form, possible duplicates, notes ---------- */
.evo-clienti-modulo { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56rem; }
.evo-clienti-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-clienti-esito:empty { display: none; }
.evo-clienti-doppioni { min-width: 0; overflow-wrap: anywhere; }
.evo-clienti-doppioni > p:focus { outline: none; }
.evo-clienti-doppi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.evo-clienti-doppi > li { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.evo-clienti-doppi > li > .evo-nota:empty { display: none; }
.evo-clienti-note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-clienti-doppi > li > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Richieste (gestione-richiesta.js): new request, edit page, stage moved from the list ---------- */
.evo-gestione-modulo { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56rem; }
.evo-gestione-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-gestione-esito:empty { display: none; }
.evo-gestione-testo { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* «Da verificare»: what the reading of the website message leaves to check (The One Gold Rule). */
.evo-gestione-dubbi {
  display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; padding: 0.85rem 1.1rem; overflow-wrap: anywhere;
  border-radius: var(--raggio); border: 1px solid var(--marchio-forte); background: var(--marchio-tenue);
}
.evo-gestione-dubbi ul { margin: 0; padding-left: 1.1rem; }
.evo-gestione-etichetta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marchio-testo); }
/* The row's name link covers the whole row: the stage controls sit above it. */
.evo-richiesta-voce > .evo-gestione-apri, .evo-richiesta-voce > .evo-gestione-fase { position: relative; }
.evo-richiesta-voce > .evo-gestione-fase { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 0.75rem; min-width: 0; }
.evo-gestione-fase > .evo-etichetta { flex: 1 1 12rem; min-width: 0; }
.evo-gestione-fase .evo-campo { width: 100%; min-width: 0; }
.evo-gestione-fase > .evo-gestione-esito { flex-basis: 100%; min-width: 0; overflow-wrap: anywhere; }
.evo-gestione-collegabile > .evo-oggi-testo { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.evo-gestione-collegabile > .evo-gestione-esito { flex-basis: 100%; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-gestione-collegabile .evo-oggi-testo > a, .evo-gestione-invito > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Criteri della richiesta (criteri.js): saved criteria, questions to ask, the editor ---------- */
.evo-criteri { display: flex; flex-direction: column; gap: 1rem; max-width: 56rem; min-width: 0; }
.evo-criteri + .evo-criteri { margin-top: 1rem; }
.evo-criteri .evo-modifica-gruppo { margin: 0; }
.evo-criteri .evo-campo { width: 100%; min-width: 0; scroll-margin-top: 1rem; scroll-margin-bottom: 5.5rem; }
.evo-criteri .evo-spunta input { scroll-margin-top: 1rem; scroll-margin-bottom: 5.5rem; }
.evo-criteri .evo-campo-testo { resize: vertical; }
.evo-criteri-sottotitolo { font-size: 0.9375rem; }
.evo-criteri-elenco { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-criteri-elenco > li > .evo-pulsante { margin-left: 0.5rem; vertical-align: middle; }
.evo-criteri-conti dd { font-variant-numeric: tabular-nums; }
.evo-criteri-testo { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.evo-criteri-voci { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 0.25rem 1.25rem; min-width: 0; }
.evo-criteri-voce { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; min-width: 0; }
.evo-criteri-voce > .evo-spunta { flex: 1 1 7rem; min-width: 0; overflow-wrap: anywhere; }
.evo-criteri-voce > .evo-etichetta { flex: 1 1 9rem; min-width: 0; }
.evo-criteri-voce > .evo-nota { flex: 1 1 100%; min-width: 0; }
.evo-criteri-avviso { flex: 1 1 14rem; min-width: 0; }
/* The agency's own amenities of the request (criteri.js): a disclosure (.evo-apribile) with its note and menus. */
.evo-criteri-extra { overflow-wrap: anywhere; }
.evo-criteri-extra > .evo-nota { margin-bottom: 0; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-criteri-link { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .evo-criteri-elenco > li > .evo-pulsante { margin: 0.35rem 0 0; display: flex; width: fit-content; }
}

/* ---------- Abbinamenti della richiesta (abbinamenti.js): sections, filters, properties with the server's reasons ---------- */
.evo-abbinamenti { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.evo-abbinamenti-elenco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.evo-abbinamenti-voce { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: start; gap: 1rem 1.25rem; min-width: 0; padding: 1.1rem 1.25rem; }
.evo-abbinamenti-foto { width: 7.5rem; height: 5.4rem; border-radius: var(--raggio-piccolo); object-fit: cover; display: block; background: var(--chip); }
.evo-abbinamenti-foto--vuota {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--separatore); background: transparent; color: var(--secondario); font-size: 0.75rem;
}
.evo-abbinamenti-corpo { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; overflow-wrap: anywhere; }
.evo-abbinamenti-testa { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.35rem 1rem; }
.evo-abbinamenti-testa h2 { flex: 1 1 14rem; min-width: 0; font-size: 1.05rem; }
.evo-abbinamenti-titolo { color: var(--titolo); text-decoration: none; }
.evo-abbinamenti-titolo:hover { text-decoration: underline; }
.evo-abbinamenti-perche, .evo-abbinamenti-storia { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.evo-abbinamenti-perche ul, .evo-abbinamenti-criteri ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.evo-abbinamenti-gruppo { font-size: 0.875rem; font-weight: 500; color: var(--titolo); }
.evo-abbinamenti-criteri summary { color: var(--link); cursor: pointer; font-size: 0.875rem; }
.evo-abbinamenti-criteri ul { margin-top: 0.4rem; font-size: 0.875rem; }
.evo-abbinamenti-valutazione { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--divisore); }
.evo-abbinamenti-modulo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem 0.75rem; min-width: 0; }
.evo-abbinamenti-modulo > .evo-etichetta { flex: 1 1 12rem; max-width: 18rem; min-width: 0; }
.evo-abbinamenti-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-abbinamenti-esito { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-abbinamenti-esito:empty { display: none; }
@media (max-width: 40rem) {
  .evo-abbinamenti-voce { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .evo-abbinamenti-foto { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 14rem; }
  .evo-abbinamenti-foto--vuota { aspect-ratio: auto; min-height: 3rem; }
  /* Text links and disclosures get a 44px touch area without changing their look. */
  .evo-abbinamenti-titolo, .evo-adatti-altri { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .evo-abbinamenti-criteri summary { display: flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Storico completo (storico.js): the whole history of a client or a request, a new entry, a cancellation ---------- */
.evo-cronologia { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-cronologia-voce { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; padding: 0.9rem 0; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-cronologia-voce:first-child { border-top: 0; padding-top: 0.25rem; }
.evo-cronologia-voce:focus-within { scroll-margin-top: 1rem; }
.evo-cronologia-testa { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; min-width: 0; }
.evo-cronologia-titolo { font-size: 1rem; min-width: 0; }
.evo-cronologia-titolo:focus { outline: none; }
.evo-cronologia-voce--annullata .evo-cronologia-titolo, .evo-cronologia-voce--annullata .evo-cronologia-testo { color: var(--secondario); }
.evo-cronologia-testo { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.evo-cronologia-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; min-width: 0; font-size: 0.875rem; }
.evo-cronologia-annullata { font-size: 0.875rem; color: var(--tenue); }
.evo-cronologia-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; min-width: 0; }
.evo-cronologia-annulla { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; max-width: 40rem; padding-top: 0.6rem; border-top: 1px solid var(--divisore); }
.evo-cronologia-annulla .evo-campo, .evo-cronologia-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-cronologia-modulo { display: flex; flex-direction: column; gap: 0.85rem; max-width: 56rem; min-width: 0; }
.evo-cronologia-fissa { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; overflow-wrap: anywhere; }
.evo-cronologia-opzioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; min-width: 0; }
.evo-cronologia-opzioni:not(:has(> :not([hidden]):not(:empty))) { display: none; }
.evo-cronologia-doppia { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.evo-cronologia-doppia-titolo { font-size: 0.875rem; color: var(--tenue); }
.evo-cronologia-esito { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; overflow-wrap: anywhere; }
.evo-cronologia-esito:empty { display: none; }
.evo-cronologia-piede { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-cronologia-piede:not(:has(> :not([hidden]):not(:empty))) { display: none; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-cronologia-link a, .evo-cronologia-vai { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Attività (attivita.js): one activity's sheet, its call outcome, its history; the activities of a request ---------- */
.evo-attivita-modulo { display: flex; flex-direction: column; gap: 0.85rem; max-width: 56rem; min-width: 0; }
.evo-attivita-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-attivita-esito { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; overflow-wrap: anywhere; }
.evo-attivita-esito:empty { display: none; }
.evo-attivita-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; min-width: 0; font-size: 0.875rem; }
.evo-attivita-note { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.evo-attivita-note h3 { font-size: 0.75rem; font-weight: 400; color: var(--secondario); }
.evo-attivita-testo { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.evo-attivita-doppia { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.evo-attivita-doppia-titolo { font-size: 0.875rem; color: var(--tenue); }
.evo-attivita-opzioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; min-width: 0; }
.evo-attivita-opzioni:not(:has(> :not([hidden]):not(:empty))) { display: none; }
.evo-attivita-storico { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-attivita-voce { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; padding: 0.8rem 0; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-attivita-voce:first-child { border-top: 0; padding-top: 0.25rem; }
.evo-attivita-voce-titolo { font-size: 1rem; min-width: 0; }
.evo-attivita-voce-titolo:focus { outline: none; }
.evo-attivita-cambi { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.875rem; white-space: pre-wrap; }
.evo-attivita-campo { color: var(--secondario); }
.evo-attivita-prima { color: var(--tenue); }
.evo-attivita-piede { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-attivita-piede:not(:has(> :not([hidden]):not(:empty))) { display: none; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-attivita-link a, .evo-attivita-esito a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Appuntamento (appuntamento.js): one appointment, its outcome and follow-up, its changes ---------- */
.evo-appto-modulo { display: flex; flex-direction: column; gap: 0.85rem; max-width: 56rem; min-width: 0; }
.evo-appto-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-appto-esito { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; overflow-wrap: anywhere; }
.evo-appto-esito:empty { display: none; }
.evo-appto-link { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; min-width: 0; font-size: 0.875rem; }
.evo-appto-note { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.evo-appto-note h3 { font-size: 0.75rem; font-weight: 400; color: var(--secondario); }
.evo-appto-testo { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.evo-appto-campo { color: var(--secondario); }
.evo-appto-sovrapposti { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; min-width: 0; overflow-wrap: anywhere; }
.evo-appto-doppia { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.evo-appto-doppia-titolo { font-size: 0.875rem; color: var(--tenue); }
.evo-appto-storico { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-appto-voce { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; padding: 0.8rem 0; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-appto-voce:first-child { border-top: 0; padding-top: 0.25rem; }
.evo-appto-voce-titolo { font-size: 1rem; min-width: 0; }
/* The appointment link of a match's last visit (abbinamenti.js). */
.evo-abbinamenti-appuntamento { align-self: flex-start; font-size: 0.875rem; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-appto-link a, .evo-appto-esito a, .evo-appto-sovrapposti a, .evo-appto-dati dd a, .evo-abbinamenti-appuntamento { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Schede visita (schede-visita.js): one visit sheet, its versions, the client's and the agency's lists ---------- */
.evo-sv-corpo { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56rem; min-width: 0; }
.evo-sv-elenco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-sv-voce { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 1rem; padding: 0.8rem 0; border-top: 1px solid var(--divisore); min-width: 0; }
.evo-sv-voce:first-child { border-top: 0; padding-top: 0.25rem; }
.evo-sv-testo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; }
.evo-sv-testo strong { color: var(--titolo); font-weight: 500; }
.evo-sv-titolo { font-weight: 500; }
.evo-sv-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; font-size: 0.875rem; }
.evo-sv-nuova { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--divisore); min-width: 0; }
.evo-sv-modulo { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56rem; min-width: 0; }
.evo-sv-modulo .evo-riquadro { display: flex; flex-direction: column; gap: 0.85rem; }
.evo-sv-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-sv-cliente { align-items: flex-start; min-width: 0; }
.evo-sv-immobile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.evo-sv-immobile > .evo-etichetta { align-self: stretch; }
.evo-sv-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-sv-esito:empty { display: none; }
.evo-sv-esito > p { margin: 0; }
.evo-sv-esito p:focus { outline: none; }
@media (max-width: 40rem) {
  /* Text links get a 44px touch area without changing their look. */
  .evo-sv-azioni a, .evo-sv-testo > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Modelli e PDF (modelli.js): PDFs from templates, their versions, the templates, logo and colours ---------- */
.evo-mp-corpo { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56rem; min-width: 0; }
.evo-mp-elenco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-mp-voce { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem 1rem; padding: 0.8rem 0; border-top: 1px solid var(--divisore); min-width: 0; }
.evo-mp-voce:first-child { border-top: 0; padding-top: 0.25rem; }
.evo-mp-testo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; }
.evo-mp-testo strong { color: var(--titolo); font-weight: 500; }
.evo-mp-titolo { font-weight: 500; }
.evo-mp-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; font-size: 0.875rem; min-width: 0; }
.evo-mp-collegamenti { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; min-width: 0; }
.evo-mp-collegamenti > .evo-nota { flex: 1 1 100%; margin: 0; }
.evo-mp-nuova { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--divisore); min-width: 0; }
.evo-mp-stato-ora { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.evo-mp-modulo-stato { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--divisore); min-width: 0; }
.evo-mp-modulo-stato > .evo-etichetta { align-self: stretch; max-width: 22rem; }
.evo-mp-modulo-stato .evo-campo { width: 100%; min-width: 0; }
.evo-mp-conferma { align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.evo-mp-conferma input { margin-top: 0.15rem; }
.evo-mp-modulo { display: flex; flex-direction: column; gap: 1.25rem; max-width: 56rem; min-width: 0; }
.evo-mp-modulo .evo-riquadro { display: flex; flex-direction: column; gap: 0.85rem; }
.evo-mp-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-mp-campo { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.evo-mp-campo > .evo-etichetta { align-self: stretch; }
.evo-mp-spiega { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.evo-mp-spiega:empty { display: none; }
.evo-mp-spiega > p { margin: 0; }
.evo-mp-corpo-testo { min-height: 14rem; }
.evo-mp-gruppo { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.evo-mp-gruppo > legend { float: left; width: 100%; padding: 0; font-size: 1rem; font-weight: 500; color: var(--titolo); overflow-wrap: anywhere; }
.evo-mp-gruppo > p { margin: 0; }
.evo-mp-spunte { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; min-width: 0; }
.evo-mp-spunte .evo-spunta { min-width: 0; overflow-wrap: anywhere; }
.evo-mp-variabili { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.evo-mp-variabili > summary { color: var(--link); cursor: pointer; }
.evo-mp-elenco-dati { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 0.5rem 1rem; min-width: 0; }
.evo-mp-elenco-dati li { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; }
.evo-mp-elenco-dati .evo-pulsante { max-width: 100%; overflow-wrap: anywhere; white-space: normal; text-align: left; }
.evo-mp-testo-modello { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--testo); }
.evo-mp-colori { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; }
.evo-mp-colori > .evo-etichetta { flex: 1 1 10rem; min-width: 0; }
.evo-mp-modulo .evo-mp-colore { width: 6rem; padding: 0.25rem; cursor: pointer; }
.evo-mp-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-mp-esito:empty { display: none; }
.evo-mp-esito > p { margin: 0; }
.evo-mp-esito p:focus { outline: none; }
@media (max-width: 40rem) {
  /* Text links and the disclosure get a 44px touch area without changing their look. */
  .evo-mp-azioni a, .evo-mp-testo > a, .evo-mp-collegamenti > a, .evo-mp-esito > a, .evo-mp-variabili > summary { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Destinazioni di pubblicazione (destinazioni.js): the list's actions, the form, the history ---------- */
.evo-dpub-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-dpub-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-dpub-esito:empty { display: none; }
.evo-dpub-esito > p { margin: 0; }
.evo-dpub-modulo { display: flex; flex-direction: column; gap: 1rem; max-width: 60rem; min-width: 0; }
.evo-dpub-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-dpub-modulo h2:focus { outline: none; }
.evo-dpub-gruppo { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.evo-dpub-gruppo > legend { padding: 0; margin-bottom: 0.35rem; font-size: 0.875rem; color: var(--tenue); }
.evo-dpub-spunte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr)); gap: 0 1rem; min-width: 0; }
.evo-dpub-spunte .evo-spunta, .evo-dpub-scelte .evo-spunta, .evo-dpub-modulo > section > .evo-spunta { min-width: 0; overflow-wrap: anywhere; align-items: flex-start; padding-top: 0.6rem; }
.evo-dpub-scelte { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.evo-dpub-storico { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-dpub-storico:empty { display: none; }
.evo-dpub-storico-voce { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0; border-top: 1px solid var(--divisore); min-width: 0; overflow-wrap: anywhere; }
.evo-dpub-storico-voce:first-child { border-top: 0; padding-top: 0; }
.evo-dpub-storico-voce > p { margin: 0; }
.evo-dpub-storico-voce:focus { outline: none; }

/* ---------- Accessi tecnici ai siti (accessi.js, platform account only) ---------- */
.evo-acs-modulo { display: flex; flex-direction: column; gap: 0.85rem; max-width: 36rem; min-width: 0; }
.evo-acs-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-acs-modulo > p, .evo-acs-modulo > .evo-nota { margin: 0; }
.evo-acs-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-acs-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-acs-esito:empty { display: none; }
.evo-acs-esito > p { margin: 0; }
.evo-acs-agenzie a { overflow-wrap: anywhere; }
.evo-acs-storico { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-acs-storico:empty { display: none; }
.evo-acs-storico-voce { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0; border-top: 1px solid var(--divisore); min-width: 0; overflow-wrap: anywhere; }
.evo-acs-storico-voce:first-child { border-top: 0; padding-top: 0; }
.evo-acs-storico-voce > p { margin: 0; }
.evo-acs-storico-voce:focus { outline: none; }
@media (max-width: 40rem) {
  /* Touch: the small buttons and text links of these two pages at least 44px tall. */
  .evo-dpub-azioni .evo-pulsante--piccolo, .evo-dpub-esito .evo-pulsante--piccolo, .evo-acs-azioni .evo-pulsante--piccolo, .evo-acs-esito .evo-pulsante--piccolo { min-height: 2.75rem; }
  .evo-dpub-azioni > a, .evo-acs-azioni > a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .evo-impostazioni > .evo-briciole a, .evo-acs-briciole a { min-height: 2.75rem; }
}

/* ---------- Recupero password e inviti (recupero.js, sign-in page) ---------- */
.evo-rcp-scelte { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; min-width: 0; }
.evo-rcp-scelte > p { margin: 0; }
.evo-rcp-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-rcp-esito:empty { display: none; }
.evo-rcp-esito > p { margin: 0; }
.evo-rcp-esito > .evo-rcp-scelte { align-self: stretch; }
.evo-accesso-scheda > .evo-salvato { overflow-wrap: anywhere; }

/* ---------- Diagnostica e inviti (diagnostica.js, platform account only) ---------- */
.evo-dgn-agenzie a { overflow-wrap: anywhere; }
.evo-dgn-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-dgn-rapporto { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; overflow-wrap: anywhere; }
.evo-dgn-rapporto:empty { display: none; }
.evo-dgn-rapporto > p, .evo-dgn-rapporto > h3 { margin: 0; }
.evo-dgn-rapporto > h3:focus { outline: none; }
.evo-dgn-blocchi { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-dgn-blocco { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0; border-top: 1px solid var(--divisore); min-width: 0; overflow-wrap: anywhere; }
.evo-dgn-blocco > p { margin: 0; }
.evo-dgn-blocco-testa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 0.75rem; }
.evo-dgn-blocco-testa > strong { font-weight: 500; color: var(--titolo); min-width: 0; }
.evo-dgn-modulo { display: flex; flex-direction: column; gap: 0.85rem; max-width: 36rem; min-width: 0; }
.evo-dgn-modulo .evo-campo { width: 100%; min-width: 0; }
.evo-dgn-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-dgn-esito:empty { display: none; }
.evo-dgn-esito > p { margin: 0; }
@media (max-width: 40rem) {
  /* Touch: the text links of the team page at least 44px tall. */
  .evo-dgn-briciole a { min-height: 2.75rem; }
}

/* ---------- Learning Hub consent (consenso.js), signature history (impostazioni.js) ---------- */
.evo-lhc-spento { margin: 0; color: var(--titolo); font-weight: 500; overflow-wrap: anywhere; }
.evo-lhc-azioni, .evo-fst-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-lhc-conferma:empty, .evo-lhc-esito:empty { display: none; }
.evo-lhc-modulo { display: flex; flex-direction: column; gap: 0.6rem; max-width: 40rem; min-width: 0; padding-top: 0.85rem; border-top: 1px solid var(--divisore); overflow-wrap: anywhere; }
.evo-lhc-modulo > h3 { margin: 0; font-size: 1rem; font-weight: 500; color: var(--titolo); }
.evo-lhc-modulo > p { margin: 0; }
.evo-lhc-spunta { align-items: flex-start; padding-top: 0.6rem; min-width: 0; }
.evo-lhc-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-lhc-esito > p { margin: 0; }
.evo-lhc-recenti { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-lhc-recenti > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0.6rem 0; border-top: 1px solid var(--divisore); min-width: 0; overflow-wrap: anywhere; }
.evo-lhc-recenti strong { font-weight: 500; color: var(--titolo); }
.evo-fst-elenco { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.evo-fst-elenco:empty { display: none; }
.evo-fst-voce { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem 0; border-top: 1px solid var(--divisore); min-width: 0; overflow-wrap: anywhere; }
.evo-fst-voce:first-child { border-top: 0; padding-top: 0; }
.evo-fst-voce > p { margin: 0; }
.evo-fst-voce:focus { outline: none; }
.evo-fst-cambi dd { display: flex; flex-direction: column; gap: 0.15rem; white-space: pre-wrap; }
.evo-fst-prima { color: var(--secondario); }

/* ---------- Search by type, pages and download (cerca.js) ---------- */
.evo-crc-tipi { margin: 0; }
.evo-crc-pagine { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; min-width: 0; }
.evo-crc-pagine > .evo-nota { margin: 0; }
.evo-crc-scarica { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; overflow-wrap: anywhere; }
.evo-crc-scarica > p { margin: 0; }
.evo-crc-esito:empty { display: none; }
.evo-crc-esito { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.evo-crc-esito > p { margin: 0; }
@media (max-width: 40rem) {
  /* Touch: the small buttons and links of these pages at least 44px tall. */
  .evo-lhc-azioni .evo-pulsante, .evo-lhc-esito .evo-pulsante--piccolo, .evo-fst-azioni .evo-pulsante--piccolo, .evo-crc-pagine .evo-pulsante--piccolo, .evo-crc-scarica .evo-pulsante--piccolo, .evo-crc-esito .evo-pulsante--piccolo { min-height: 2.75rem; }
  .evo-cerca-gruppo .evo-crc-tutti { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Visite: orologio della testata, promemoria di stampa, «Prossime visite» (osservazione 5, 12 Nov 2026) ---------- */
/* The time is plain text in tabular numbers; the visit line is a link (blue); the notification offer a text button. */
.evo-orologio { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.75rem; min-width: 0; }
.evo-orologio-ora { font-size: 1.05rem; font-weight: 500; color: var(--titolo); font-variant-numeric: tabular-nums; }
.evo-orologio-visita { font-size: 0.875rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.evo-orologio-avvisa {
  min-height: 2rem; padding: 0; border: 0; background: transparent; color: var(--link);
  font: inherit; font-size: 0.8125rem; text-decoration: underline; cursor: pointer;
}
.evo-orologio-avvisa:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 56rem) {
  /* Phone header: the time beside «Menu», the visit on a line of its own under the brand. */
  .evo-orologio--telefono { margin-left: auto; flex: none; }
  .evo-orologio-riga { flex: 1 1 100%; min-width: 0; }
  .evo-orologio-riga .evo-orologio-visita { display: inline-flex; align-items: center; min-height: 2.75rem; }
}
/* The display of .evo-orologio, written after .evo-solo-telefono / .evo-solo-computer, would win over them: each
   clock is shown only where it belongs (the phone one never in the sidebar of the computer). */
.evo-orologio.evo-solo-telefono { display: none; }
@media (max-width: 56rem) {
  .evo-orologio.evo-solo-telefono { display: flex; }
  .evo-orologio.evo-solo-computer { display: none; }
}
/* A reminder line inside a row that opens as a whole on the phone: its link stays above the row's link area. */
.evo-promemoria { display: flex; align-items: center; gap: 0.35rem; margin: 0; font-size: 0.875rem; overflow-wrap: anywhere; }
.evo-promemoria svg { flex: none; color: var(--secondario); }
.evo-promemoria a { position: relative; z-index: 1; }
.evo-oggi-testo .evo-promemoria { color: var(--testo); }
.evo-promemoria--fatto { color: var(--secondario); }
.evo-promemoria-esito { color: var(--ambra-testo); }
.evo-oggi-promemoria { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.5rem; border-top: 1px solid var(--divisore); }
.evo-oggi-promemoria h3 { margin: 0; font-size: 0.9375rem; font-weight: 500; color: var(--titolo); }
.evo-visite { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evo-visita { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.75rem 0; min-width: 0; }
.evo-visita + .evo-visita { border-top: 1px solid var(--divisore); }
/* In a column the 12rem basis of .evo-oggi-testo would become a height: the text takes only its own. */
.evo-visita > .evo-oggi-testo { flex: none; }
.evo-visita-quando { font-weight: 500; color: var(--titolo); font-variant-numeric: tabular-nums; }
.evo-visita-azioni, .evo-visita-documenti { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; min-width: 0; overflow-wrap: anywhere; }
.evo-visita-documenti .evo-nota { margin: 0; }
.evo-appto-scheda { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0; }
@media (max-width: 40rem) {
  .evo-visita-azioni a, .evo-visita-documenti a, .evo-promemoria a, .evo-appto-scheda a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Mappa (mappa.js): OpenStreetMap tiles in a framed box ----------
   The tiles are light in both themes; frame, controls and attribution use the theme tokens. Positions are set through
   CSSOM transforms only. touch-action: pan-y keeps the page's vertical scroll on a phone; sideways drags pan the map. */
.evo-mappa { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.evo-mappa-cornice {
  position: relative; height: 18rem; overflow: hidden; isolation: isolate;
  border: 1px solid var(--campo-linea); border-radius: var(--raggio-piccolo); background: #F2EFE9;
}
.evo-mappa-vista { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.evo-mappa-vista:active { cursor: grabbing; }
.evo-mappa-vista--scegli, .evo-mappa-vista--scegli:active { cursor: crosshair; }
/* The focus ring sits on a layer above the tiles, the pin, the controls and the failure text (an outline of the view
   itself would be painted under its positioned tiles). The dark inner band keeps it visible on light tiles in Notte. */
.evo-mappa-vista:focus-visible { outline: none; }
.evo-mappa-vista:focus-visible::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 5px #14161B;
}
.evo-mappa-piano { position: absolute; inset: 0; }
.evo-mappa-tessera {
  position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
/* The pin's tip sits on the point: the SVG is 30 × 40, its tip at the bottom centre. */
.evo-mappa-spillo { position: absolute; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 1; }
.evo-mappa-spillo svg { position: absolute; left: -15px; top: -39px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.evo-mappa-goccia { fill: var(--marchio); stroke: #14161B; stroke-width: 1.5; }
.evo-mappa-centro { fill: #FFFFFF; stroke: #14161B; stroke-width: 1; }
/* Choose mode: a crosshair at the centre, where Enter places the point. */
.evo-mappa-mirino { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; z-index: 1; }
.evo-mappa-mirino::before, .evo-mappa-mirino::after { content: ""; position: absolute; background: #14161B; box-shadow: 0 0 0 1px #FFFFFF; }
.evo-mappa-mirino::before { left: 10px; top: 0; width: 2px; height: 22px; }
.evo-mappa-mirino::after { top: 10px; left: 0; width: 22px; height: 2px; }
.evo-mappa-comandi { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; display: flex; flex-direction: column; gap: 0.35rem; }
.evo-mappa-zoom {
  width: 2.75rem; height: 2.75rem; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--campo-linea); border-radius: var(--raggio-piccolo);
  background: var(--riquadro); color: var(--titolo); font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.evo-mappa-zoom:hover { background: var(--chip); }
.evo-mappa-zoom[aria-disabled="true"] { color: var(--secondario); cursor: default; }
.evo-mappa-crediti {
  position: absolute; right: 0; bottom: 0; z-index: 2; padding: 0.15rem 0.5rem;
  border-top-left-radius: var(--raggio-piccolo); background: var(--riquadro); font-size: 0.75rem;
}
.evo-mappa-guasto {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 1rem 4rem 1rem 1rem;
  background: var(--riquadro); color: var(--tenue); text-align: center;
}
.evo-mappa-link, .evo-mappa-privacy { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .evo-mappa-cornice { height: 15rem; }
  .evo-mappa-link a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* ---------- Movimento (DESIGN.md, «Movimento»: sobrio, scelto dal proprietario il 14 novembre 2026) ----------
   Solo transform, opacity e colori; nessuna proprietà di layout. Nessuna animazione fa aspettare un clic, il fuoco o la
   tastiera, nessuna si ripete. Con «riduci il movimento» restano colori e brevi dissolvenze (blocco in fondo). */

/* Risposta ai clic: passaggio del mouse, fuoco e pressione cambiano colore in 120ms. */
a, summary, .evo-pulsante, .evo-filtro, .evo-foglio-riga, .evo-opzione, .evo-agenzie button, .evo-mese-giorno, .evo-oggi-conto,
.evo-tabella .evo-riga, .evo-mappa-zoom {
  transition: color var(--movimento-breve) var(--curva-entrata), background-color var(--movimento-breve) var(--curva-entrata),
    border-color var(--movimento-breve) var(--curva-entrata), text-decoration-color var(--movimento-breve) var(--curva-entrata);
}
/* La pressione: solo i pulsanti si stringono appena (mai i collegamenti di testo né i campi). */
.evo-pulsante:not(input), .evo-invia {
  transition: color var(--movimento-breve) var(--curva-entrata), background-color var(--movimento-breve) var(--curva-entrata),
    border-color var(--movimento-breve) var(--curva-entrata), transform var(--movimento-breve) var(--curva-entrata);
}
.evo-pulsante:not(input):not(.evo-foto-maniglia):not(:disabled):not([aria-disabled="true"]):active, .evo-invia:active { transform: scale(0.98); }
/* Si stringe il disegno, non l'area del clic (revisione esterna C6, 15 novembre 2026). Il clic va all'antenato comune
   del punto dove si preme e di quello dove si rilascia: premuto vicino al bordo, il pulsante rimpicciolito lasciava il
   punto di rilascio al contenitore e l'azione si perdeva. Finché è premuto, un ::after trasparente riporta l'area alla
   misura di riposo (con circa un pixel in più): la scala fa del pulsante il riferimento del ::after, e z-index -1 lo tiene
   sotto testo e icone, che restano il bersaglio di sempre. Nessun pulsante usa già il proprio ::after, tranne «Apri»
   delle righe sul telefono (sotto). */
.evo-pulsante:not(input):not(.evo-foto-maniglia):not(:disabled):not([aria-disabled="true"]):active::after, .evo-invia:active::after {
  content: ""; position: absolute; inset: calc(-1.1% - 2px); z-index: -1;
}
@media (max-width: 40rem) {
  /* «Apri» delle righe che si aprono tutte (Oggi, Agenda, Comunicazioni): il suo ::after copre la riga. Con la scala il
     pulsante diventava il riferimento del ::after, l'area si riduceva all'icona e il tocco sul testo della riga si
     perdeva: qui niente scala, e il ::after resta quello della riga. */
  .evo-riga-collegata .evo-riga-apri.evo-pulsante:not(input):not(.evo-foto-maniglia):not(:disabled):not([aria-disabled="true"]):active { transform: none; }
  .evo-riga-collegata .evo-riga-apri.evo-pulsante:not(input):not(.evo-foto-maniglia):not(:disabled):not([aria-disabled="true"]):active::after { content: ""; position: absolute; inset: 0; z-index: auto; }
  /* Premuta, la riga intera prende il colore dei chip, non solo l'icona (decisione del proprietario, 15 novembre 2026):
     lo sfondo e due ombre di 0.5rem ai lati, così il testo non tocca il bordo del colore; il divisore sopra si nasconde.
     Solo colore: nessuna misura, nessuno spostamento, anche con «riduci il movimento». In alto contrasto lo sfondo e le
     ombre non si vedono: un contorno di sistema (Highlight) segna la riga premuta. Si nasconde anche il divisore della
     riga dopo, che altrimenti taglia il fondo del colore 0.5rem più corto per lato. Quello che dentro la riga ha già il
     colore dei chip (gli stati piccoli grigi, «Fatta», «Effettuato»; il riquadro della foto di un appuntamento) prende per
     la pressione il colore del riquadro, così non scompare nella riga colorata. */
  .evo-riga-collegata, .evo-riga-collegata + li {
    transition: background-color var(--movimento-breve) var(--curva-entrata), box-shadow var(--movimento-breve) var(--curva-entrata),
      border-color var(--movimento-breve) var(--curva-entrata);
  }
  .evo-riga-collegata :is(.evo-chip-piccolo, .evo-oggi-foto) { transition: background-color var(--movimento-breve) var(--curva-entrata); }
  .evo-riga-collegata:has(.evo-riga-apri:active) {
    background-color: var(--chip); box-shadow: -0.5rem 0 0 var(--chip), 0.5rem 0 0 var(--chip); border-top-color: transparent;
  }
  .evo-riga-collegata:has(.evo-riga-apri:active) + li { border-top-color: transparent; }
  .evo-riga-collegata:has(.evo-riga-apri:active) :is(.evo-chip-piccolo:not(.evo-chip-piccolo--marchio):not(.evo-chip-piccolo--ambra), .evo-oggi-foto) {
    background-color: var(--riquadro);
  }
}
@media (max-width: 40rem) and (forced-colors: active) {
  .evo-riga-collegata:has(.evo-riga-apri:active) { outline: 2px solid Highlight; outline-offset: 2px; }
}
/* Un cambio di tema o di colore del marchio (tema.js) è immediato: per un fotogramma niente transizioni, così i controlli
   non sfumano uno per uno; la dissolvenza del tema, dove c'è, la fa la View Transition. */
:root.evo-senza-transizioni *, :root.evo-senza-transizioni *::before, :root.evo-senza-transizioni *::after { transition: none !important; }

/* Menu «Nuovo»: la tendina nasce dall'angolo sotto il pulsante. Si chiude subito. */
.evo-tendina { transform-origin: top right; }
.evo-nuovo[open] > .evo-tendina { animation: evo-tendina-entra var(--movimento) var(--curva-entrata); }
@keyframes evo-tendina-entra { from { opacity: 0; transform: translateY(-0.25rem) scale(0.97); } }

/* Foglio «Menu» del telefono: entra dal bordo in basso con lo sfondo che si attenua, esce più in fretta. close() resta
   immediato (fuoco e stato cambiano subito); durante l'uscita il foglio non riceve clic. Senza supporto apre e chiude secco. */
.evo-foglio {
  --foglio-da: translateY(1rem);
  transition: opacity var(--movimento-uscita-ampio) var(--curva-uscita), transform var(--movimento-uscita-ampio) var(--curva-uscita),
    overlay var(--movimento-uscita-ampio) var(--curva-uscita) allow-discrete, display var(--movimento-uscita-ampio) var(--curva-uscita) allow-discrete;
}
.evo-foglio::backdrop {
  transition: opacity var(--movimento-uscita-ampio) var(--curva-uscita),
    overlay var(--movimento-uscita-ampio) var(--curva-uscita) allow-discrete, display var(--movimento-uscita-ampio) var(--curva-uscita) allow-discrete;
}
.evo-foglio[open], .evo-foglio[open]::backdrop { transition-duration: var(--movimento-ampio); transition-timing-function: var(--curva-entrata); }
.evo-foglio:not([open]) { opacity: 0; transform: var(--foglio-da); pointer-events: none; }
.evo-foglio:not([open])::backdrop { opacity: 0; pointer-events: none; }
@starting-style {
  .evo-foglio[open] { opacity: 0; transform: var(--foglio-da); }
  .evo-foglio[open]::backdrop { opacity: 0; }
}
@media (max-width: 56rem) { .evo-foglio { --foglio-da: translateY(100%); } }

/* Sezioni che si aprono (details: «Ultime modifiche», «Il tipo … non è giusto?» e le altre, tranne il menu «Nuovo»):
   il contenuto appare con una breve dissolvenza dall'alto quando si apre; al primo disegno e alla chiusura nessun movimento. */
details:not(.evo-nuovo)::details-content {
  transition: opacity var(--movimento) var(--curva-entrata), transform var(--movimento) var(--curva-entrata);
}
details:not(.evo-nuovo):not([open])::details-content { opacity: 0; transform: translateY(-0.25rem); transition: none; }
summary::before { transition: transform var(--movimento-breve) var(--curva-entrata); }

/* Schede dell'immobile: la sottolineatura oro scivola da una scheda all'altra (scheda.js, scorriSegno). */
.evo-tab-imm a { position: relative; }
.evo-tab-imm a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  border-bottom: 2px solid var(--marchio-forte); transform-origin: left center; pointer-events: none;
}
/* Alto contrasto: il sistema colora anche il bordo trasparente delle altre schede; solo la scheda corrente tiene la riga. */
@media (forced-colors: active) {
  .evo-tab-imm a { border-bottom-color: Canvas; }
  .evo-tab-imm a[aria-current="page"]::after { border-bottom-color: CanvasText; }
}

/* Cambio di tema (guscio.js, dom.js sfumaTema): per 200ms i colori del tema passano insieme al nuovo tema. Si animano le
   variabili di colore, registrate qui sotto, sulla sola radice: tutta la pagina le eredita nello stesso fotogramma e
   nessun elemento rincorre il colore del genitore (le transizioni proprie degli elementi tacciono per quei 200ms).
   Niente View Transition: mentre corre, Chrome manda ogni clic alla radice della pagina e il clic va perso. Dove @property
   non c'è il tema cambia di colpo. --focus non è registrata: il suo valore resta scritto com'è (#rrggbb). */
@property --fondo { syntax: '<color>'; inherits: true; initial-value: #0B1626; }
@property --laterale { syntax: '<color>'; inherits: true; initial-value: #09121F; }
@property --linea { syntax: '<color>'; inherits: true; initial-value: #1A2A40; }
@property --riquadro { syntax: '<color>'; inherits: true; initial-value: #102036; }
@property --riquadro-linea { syntax: '<color>'; inherits: true; initial-value: #1E3150; }
@property --campo { syntax: '<color>'; inherits: true; initial-value: #0F1D31; }
@property --campo-linea { syntax: '<color>'; inherits: true; initial-value: #56709A; }
@property --controllo-linea { syntax: '<color>'; inherits: true; initial-value: #22385A; }
@property --chip { syntax: '<color>'; inherits: true; initial-value: #17294A; }
@property --chip-linea { syntax: '<color>'; inherits: true; initial-value: #2A4166; }
@property --divisore { syntax: '<color>'; inherits: true; initial-value: #1A2B44; }
@property --testo { syntax: '<color>'; inherits: true; initial-value: #E9EEF6; }
@property --titolo { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --tenue { syntax: '<color>'; inherits: true; initial-value: #C9D3E1; }
@property --secondario { syntax: '<color>'; inherits: true; initial-value: #9DABC0; }
@property --separatore { syntax: '<color>'; inherits: true; initial-value: #3A4E6E; }
@property --link { syntax: '<color>'; inherits: true; initial-value: #8DB8FF; }
@property --azione { syntax: '<color>'; inherits: true; initial-value: #2F6BDB; }
@property --avanzamento { syntax: '<color>'; inherits: true; initial-value: #4C8DF6; }
@property --traccia { syntax: '<color>'; inherits: true; initial-value: #2A4166; }
@property --distintivo { syntax: '<color>'; inherits: true; initial-value: #1C3354; }
@property --distintivo-testo { syntax: '<color>'; inherits: true; initial-value: #CFE0FF; }
@property --verde { syntax: '<color>'; inherits: true; initial-value: #3CCB7F; }
@property --verde-punto { syntax: '<color>'; inherits: true; initial-value: #3CCB7F; }
@property --ambra { syntax: '<color>'; inherits: true; initial-value: #FF8F4D; }
@property --ambra-testo { syntax: '<color>'; inherits: true; initial-value: #FF8F4D; }
@property --marchio-tenue { syntax: '<color>'; inherits: true; initial-value: transparent; }
@property --marchio-forte { syntax: '<color>'; inherits: true; initial-value: #D9A95B; }
@property --marchio-testo { syntax: '<color>'; inherits: true; initial-value: #D9A95B; }
:root.evo-cambio-tema {
  transition-property: --fondo, --laterale, --linea, --riquadro, --riquadro-linea, --campo, --campo-linea,
    --controllo-linea, --chip, --chip-linea, --divisore, --testo, --titolo, --tenue, --secondario, --separatore,
    --link, --azione, --avanzamento, --traccia, --distintivo, --distintivo-testo, --verde, --verde-punto, --ambra,
    --ambra-testo, --marchio-tenue, --marchio-forte, --marchio-testo;
  transition-duration: var(--movimento); transition-timing-function: var(--curva-entrata);
}
:root.evo-cambio-tema *, :root.evo-cambio-tema *::before, :root.evo-cambio-tema *::after { transition: none !important; }

/* Momento della conferma: la voce della checklist appena diventata «Ricevuto» con la conferma del tipo (verifica.js,
   archivio.js) lo dice una volta. Il punto sfuma, una spunta si disegna e il colore passa dall'oro di «Da verificare» al
   colore della voce. */
.evo-stato--appena .evo-punto { position: relative; background: transparent; animation: evo-punto-sfuma var(--movimento-ampio) var(--curva-entrata); }
.evo-stato--appena .evo-punto--blu { color: var(--avanzamento); }
.evo-stato--appena .evo-punto--verde { color: var(--verde-punto); }
.evo-punto-spunta {
  position: absolute; left: 50%; top: 50%; width: 0.95rem; height: 0.95rem; margin: -0.475rem 0 0 -0.475rem; overflow: visible;
  stroke-width: 2.6; animation: evo-spunta-colore var(--movimento-ampio) var(--curva-entrata);
}
.evo-punto-spunta path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: evo-spunta-tratto var(--movimento-ampio) var(--curva-entrata) both; }
@keyframes evo-punto-sfuma { from { background-color: var(--marchio-forte); } }
@keyframes evo-spunta-colore { from { color: var(--marchio-forte); } }
@keyframes evo-spunta-tratto { from { stroke-dashoffset: 1; } }

/* Movimento ridotto: niente scale, traslazioni, tratti né View Transition (le salta anche dom.js); restano i colori e
   brevi dissolvenze. */
@media (prefers-reduced-motion: reduce) {
  .evo-pulsante:not(input):not(.evo-foto-maniglia):not(:disabled):not([aria-disabled="true"]):active, .evo-invia:active { transform: none; }
  .evo-pulsante:not(input):not(.evo-foto-maniglia):not(:disabled):not([aria-disabled="true"]):active::after, .evo-invia:active::after { content: none; }
  @keyframes evo-tendina-entra { from { opacity: 0; } }
  .evo-foglio { --foglio-da: none; }
  .evo-foglio, .evo-foglio::backdrop { transition-duration: var(--movimento-uscita); }
  .evo-foglio[open], .evo-foglio[open]::backdrop { transition-duration: var(--movimento-breve); }
  details:not(.evo-nuovo):not([open])::details-content { transform: none; }
  summary::before { transition: none; }
  :root.evo-cambio-tema { transition-duration: var(--movimento-breve); }
  @keyframes evo-spunta-tratto { from { opacity: 0; } }
}
