/*
  TED Monitor — stile "operativo compatto".
  Regole (da impeccable.style, modalità "Operate"): un solo colore d'accento, grigi neutri,
  righe dense, codici e query in monospace, stato scritto a parole, contrasto AA,
  niente card annidate né ombre larghe. Bootstrap resta la base: qui si sovrascrivono i token.
*/
:root {
    --tm-accento: #0f766e;          /* verde petrolio: azioni principali e "nuove gare" */
    --tm-accento-scuro: #115e59;
    --tm-accento-tenue: #e6f2f1;
    --tm-testo: #18181b;
    --tm-testo-2: #52525b;          /* testo secondario: 7,6:1 su bianco */
    --tm-bordo: #e4e4e7;
    --tm-sfondo: #fafafa;
    --tm-sfondo-intestazione: #f4f4f5;
    --tm-errore: #b91c1c;
    --tm-font: "Source Sans 3", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --tm-mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
    --tm-altezza-barra: 3.6rem;     /* altezza della barra fissa in alto: sotto di lei si fermano anteprima e scroll */

    --bs-body-font-family: var(--tm-font);
    --bs-body-color: var(--tm-testo);
    --bs-body-bg: var(--tm-sfondo);
    --bs-border-color: var(--tm-bordo);
    --bs-secondary-color: var(--tm-testo-2);
    --bs-link-color: var(--tm-accento);
    --bs-link-color-rgb: 15, 118, 110;
    --bs-link-hover-color: var(--tm-accento-scuro);
    --bs-link-hover-color-rgb: 17, 94, 89;
    --bs-primary: var(--tm-accento);
    --bs-primary-rgb: 15, 118, 110;
    --bs-border-radius: 4px;
    --bs-border-radius-sm: 3px;
    --bs-border-radius-lg: 6px;
    --bs-focus-ring-color: rgba(15, 118, 110, .25);
}

html { font-size: 15px; }

/* Icone Lucide inline: grandi quanto il testo, allineate alla linea di base, tratto sottile */
.icona { width: 1.1em; height: 1.1em; stroke-width: 1.75; vertical-align: -0.2em; flex-shrink: 0; }
.btn .icona { margin-right: .3rem; }
.btn-sm .icona { width: 1em; height: 1em; }
.nav-link .icona { margin-right: .35rem; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }

h1, .h1 { font-size: 1.4rem; font-weight: 600; margin: 0; text-wrap: balance; }
h2, .h2 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.text-muted, .text-secondary { color: var(--tm-testo-2) !important; }
.mono { font-family: var(--tm-mono); font-size: .82rem; }

/* INIZIO BARRA IN ALTO */
.barra {
    background: #fff;
    border-bottom: 1px solid var(--tm-bordo);
}
.barra .navbar-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; color: var(--tm-testo); }
.barra .nav-link { color: var(--tm-testo-2); padding: .9rem .75rem !important; border-bottom: 2px solid transparent; white-space: nowrap; }
.barra .nav-link:hover { color: var(--tm-testo); }
.barra .nav-link.active { color: var(--tm-accento); border-bottom-color: var(--tm-accento); }
.barra .utente { color: var(--tm-testo-2); font-size: .9rem; }
/* Fra 768 e 1200 px lo spazio è poco: l'indirizzo dell'utente si nasconde (resta nel Profilo) e le voci si stringono */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .barra .utente { display: none; }
    .barra .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; }
}
.barra .btn { white-space: nowrap; }
/* La barra resta fissa in alto (sticky-top): gli scroll verso un'ancora o una sezione si fermano sotto la barra */
html { scroll-padding-top: calc(var(--tm-altezza-barra) + .75rem); }
/* Su mobile il menu aperto scorre dentro la barra, così le voci in fondo restano raggiungibili */
@media (max-width: 767.98px) {
    :root { --tm-altezza-barra: 4rem; }   /* su mobile il pulsante del menu è più alto (44px + margini) */
    .barra .navbar-collapse { max-height: calc(100dvh - var(--tm-altezza-barra)); overflow-y: auto; }
}
/* FINE BARRA IN ALTO */

.intestazione-pagina {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
    margin: 1.75rem 0 1rem;
}
.intestazione-pagina .azioni { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
/* I pulsanti dell'intestazione restano su una riga: a ridursi è il campo filtro, non il pulsante */
.intestazione-pagina .azioni .btn { white-space: nowrap; flex-shrink: 0; }
/* width (non solo flex-basis): conta per la larghezza del gruppo, così il segnaposto si legge intero */
.intestazione-pagina .azioni .ricerca-veloce { width: 14rem; min-width: 0; flex: 0 1 auto; }

/* INIZIO PULSANTI: un solo pulsante pieno per pagina, gli altri neutri */
.btn { font-size: .9rem; padding: .3rem .8rem; }
.btn-sm { font-size: .82rem; padding: .2rem .6rem; }
.btn-primary {
    --bs-btn-bg: var(--tm-accento); --bs-btn-border-color: var(--tm-accento);
    --bs-btn-hover-bg: var(--tm-accento-scuro); --bs-btn-hover-border-color: var(--tm-accento-scuro);
    --bs-btn-active-bg: var(--tm-accento-scuro); --bs-btn-active-border-color: var(--tm-accento-scuro);
    --bs-btn-disabled-bg: var(--tm-accento); --bs-btn-disabled-border-color: var(--tm-accento);
}
.btn-neutro {
    --bs-btn-color: var(--tm-testo); --bs-btn-bg: #fff; --bs-btn-border-color: #d4d4d8;
    --bs-btn-hover-color: var(--tm-testo); --bs-btn-hover-bg: var(--tm-sfondo-intestazione); --bs-btn-hover-border-color: #a1a1aa;
    --bs-btn-active-bg: #e4e4e7; --bs-btn-active-border-color: #a1a1aa;
}
.btn-pericolo {
    --bs-btn-color: var(--tm-errore); --bs-btn-bg: #fff; --bs-btn-border-color: #e7c4c4;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--tm-errore); --bs-btn-hover-border-color: var(--tm-errore);
}
/* FINE PULSANTI */

/* INIZIO TABELLE DENSE */
.tabella {
    background: #fff;
    border: 1px solid var(--tm-bordo);
    border-radius: 4px;
    overflow-x: auto;
}
.tabella table { width: 100%; margin: 0; border-collapse: collapse; font-size: .93rem; }
.tabella th {
    background: var(--tm-sfondo-intestazione);
    color: var(--tm-testo-2);
    font-weight: 600; font-size: .8rem;
    padding: .4rem .7rem; text-align: left; white-space: nowrap;
}
.tabella td { padding: .5rem .7rem; border-top: 1px solid var(--tm-bordo); vertical-align: top; }
.tabella tr.spenta td { color: var(--tm-testo-2); }
.tabella .nome { font-weight: 600; }
.tabella .azioni { text-align: right; white-space: nowrap; }
/* FINE TABELLE DENSE */

/* Pagina Risultati: riga di riepilogo del controllo e avvisi notificati */
.riepilogo-controllo {
    display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
    background: #fff; border: 1px solid var(--tm-bordo); border-radius: 4px; padding: .6rem .9rem;
}
.riepilogo-controllo .numero { font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--tm-testo-2); min-width: 1.5rem; text-align: center; }
.riepilogo-controllo.con-nuove { border-color: #b9dcd8; background: var(--tm-accento-tenue); }
.riepilogo-controllo.con-nuove .numero { color: var(--tm-accento); }
.tabella tr.riga-nuova td { background: var(--tm-accento-tenue); }
.etichetta-nuovo {
    display: inline-block; background: var(--tm-accento); color: #fff;
    font-size: .72rem; font-weight: 600; border-radius: 3px; padding: .05rem .4rem;
}

/* Stato scritto a parole: il colore rafforza, non sostituisce il testo */
.stato-ok { color: var(--tm-accento); }
.stato-neutro { color: var(--tm-testo-2); }
.stato-errore { color: var(--tm-errore); }

/* INIZIO PANNELLI E FORM */
.pannello {
    background: #fff;
    border: 1px solid var(--tm-bordo);
    border-radius: 4px;
    padding: 1rem 1.15rem;
}
.pannello > h2:first-child, .pannello > h3:first-child { margin-top: 0; }
.sezione-form { font-size: .95rem; font-weight: 600; margin: 1.5rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--tm-bordo); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.form-control, .form-select { font-size: .93rem; border-color: #d4d4d8; }
.form-control:focus, .form-select:focus { border-color: var(--tm-accento); box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--tm-accento); border-color: var(--tm-accento); }
.form-text { font-size: .82rem; color: var(--tm-testo-2); }
.ricerca-veloce { max-width: 260px; }
/* FINE PANNELLI E FORM */

/* Costi AI: riepilogo compatto, cifre confrontabili, tabelle scorrevoli sul telefono. */
.costi-filtri { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.costi-filtri > div:not(.form-text) { flex: 1 1 160px; }
.costi-totali { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 1px solid var(--tm-bordo); padding: 1rem 0; gap: 1rem; }
.costi-totali dt { color: var(--tm-testo-2); font-size: .85rem; font-weight: 400; }
.costi-totali dd { font-size: 1.35rem; font-weight: 600; margin: .2rem 0 0; overflow-wrap: anywhere; }
.costi-totali, .costi-gruppi, .costi-grafico { font-variant-numeric: tabular-nums; }
.costi-grafico svg { display: block; width: 100%; height: 180px; }
.costi-barra { fill: var(--tm-accento); }
.costi-barra:hover { fill: var(--tm-accento-scuro); }
.costi-asse { stroke: var(--tm-bordo); }
.costi-gruppi .tabella tbody th { background: #fff; color: var(--tm-testo); white-space: normal; overflow-wrap: anywhere; font-size: .9rem; border-top: 1px solid var(--tm-bordo); }
.costi-gruppi td { text-align: right; white-space: nowrap; }
.costi-errori td { overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    .costi-totali { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .costi-filtri > .btn { width: 100%; }
}

.query-ted {
    font-family: var(--tm-mono); font-size: .8rem; word-break: break-word;
    background: var(--tm-sfondo-intestazione); border-radius: 4px; padding: .5rem .7rem;
}
.avviso { padding: .6rem 0; }
.avviso + .avviso { border-top: 1px solid var(--tm-bordo); }

/* Messaggi: sfondo tenue, testo scuro della stessa famiglia */
.alert { border-radius: 4px; padding: .6rem .9rem; font-size: .93rem; }
.alert-success { background: var(--tm-accento-tenue); border-color: #b9dcd8; color: var(--tm-accento-scuro); }
.alert-danger { background: #fdf0f0; border-color: #f0caca; color: #8f1a1a; }
.alert-warning { background: #fdf6e7; border-color: #f1dfb4; color: #6b4a0b; }

/* Riepilogo errori del form: nascosto quando non ci sono errori */
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* INIZIO RICERCA AVANZATA (stessa struttura del sito TED) */
.campo-ricerca { background: var(--tm-sfondo-intestazione); }
.criteri .accordion-item { border-color: var(--tm-bordo); }
.criteri .accordion-button { font-weight: 600; font-size: .95rem; padding: .7rem 1rem; color: var(--tm-testo); background: #fff; box-shadow: none; }
.criteri .accordion-button:not(.collapsed) { background: #fff; color: var(--tm-testo); border-bottom: 1px solid var(--tm-bordo); }
.criteri .accordion-button:focus { box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.criteri .accordion-body { padding: 1rem; }
.conteggio {
    margin-left: .5rem; min-width: 1.4rem; padding: 0 .4rem; border-radius: 3px;
    background: var(--tm-accento-tenue); color: var(--tm-accento-scuro); font-size: .78rem; text-align: center;
}
/* Sezione Data: un periodo per riga, "Dal" / "Al" / opzione relativa in tre colonne che si stringono */
.periodo { margin-bottom: 1rem; }
.periodo legend { font-size: .88rem; margin-bottom: .25rem; }
.periodo-campi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .75rem; align-items: start; }
.periodo-campi input { min-width: 0; }
@media (max-width: 575.98px) { .periodo-campi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.anteprima-fissa { position: sticky; top: calc(var(--tm-altezza-barra) + 1rem); max-height: calc(100vh - var(--tm-altezza-barra) - 2rem); overflow-y: auto; }

/* Menu a tendina con caselle: usato sia nel form guidato (.campo-multiplo) sia nei blocchi del costruttore */
.selettore { font-size: .93rem; text-align: left; display: inline-flex; align-items: center; gap: .4rem; }
.selettore .riepilogo { color: var(--tm-testo-2); }
.elenco-opzioni { width: 100%; min-width: 300px; max-width: min(460px, 92vw); max-height: 320px; overflow-y: auto; padding: .5rem; }
.elenco-opzioni .opzione {
    display: flex; gap: .5rem; align-items: flex-start; padding: .3rem .4rem; border-radius: 3px;
    cursor: pointer; font-size: .88rem; line-height: 1.3;
}
.elenco-opzioni .opzione:hover { background: var(--tm-sfondo-intestazione); }
.elenco-opzioni .opzione .form-check-input { flex-shrink: 0; margin-top: .1rem; }
.elenco-opzioni .opzione > span:first-of-type { flex: 1; min-width: 0; }
.elenco-opzioni .opzione .mono { flex-shrink: 0; font-size: .75rem; padding-top: .1rem; }
.etichette { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.etichette:empty { display: none; }
.etichetta-valore {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--tm-sfondo-intestazione); border: 1px solid var(--tm-bordo); border-radius: 3px;
    padding: .05rem .2rem .05rem .45rem; font-size: .84rem;
}
/* Campi di testo: fra un termine e l'altro si legge "oppure" (basta che ne compaia uno) */
.etichette.oppure { column-gap: .45rem; }
.etichette.oppure > .etichetta-valore + .etichetta-valore { position: relative; margin-left: 3.1rem; }
.etichette.oppure > .etichetta-valore + .etichetta-valore::before {
    content: "oppure"; position: absolute; right: calc(100% + .45rem);
    color: #c2410c; font-size: .78rem; font-family: var(--bs-body-font-family); font-style: italic;
}
.etichetta-valore .rimuovi { border: 0; background: none; color: var(--tm-testo-2); line-height: 1; padding: 0 .2rem; font-size: 1rem; }
.etichetta-valore .rimuovi:hover { color: var(--tm-errore); }
/* FINE RICERCA AVANZATA */

/* INIZIO COSTRUTTORE VISIVO DELLA QUERY ESPERTA */
.costruttore { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 767.98px) { .costruttore { grid-template-columns: minmax(0, 1fr); } }
.tavolozza { display: flex; flex-direction: column; gap: .75rem; }
.tavolozza h3 { font-size: .85rem; font-weight: 600; margin: 0 0 .15rem; }
.tavolozza-gruppo { font-size: .75rem; color: var(--tm-testo-2); margin: .5rem 0 .2rem; }
.elementi-tavolozza { display: flex; flex-wrap: wrap; gap: .25rem; }
.elemento-tavolozza {
    display: inline-flex; align-items: center; gap: .25rem; max-width: 100%;
    font-size: .8rem; background: #fff; border: 1px solid var(--tm-bordo); border-radius: 3px;
    padding: .1rem .45rem; cursor: grab; user-select: none;
}
.elemento-tavolozza:hover, .elemento-tavolozza:focus-visible { border-color: var(--tm-accento); outline: none; }
.elemento-tavolozza.struttura { border-style: dashed; }
.elemento-tavolozza.preferito span:last-of-type, .elemento-tavolozza.modello span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elemento-tavolozza button { border: 0; background: none; color: var(--tm-testo-2); padding: 0 .1rem; line-height: 1; }
.elemento-tavolozza button:hover { color: var(--tm-errore); }

.blocco { background: #fff; border: 1px solid #d4d4d8; border-radius: 4px; margin-bottom: .4rem; }
.blocco-condizione { padding: .35rem .5rem; }
.blocco-gruppo { padding: .45rem; border-style: dashed; border-color: #a1a1aa; background: var(--tm-sfondo); }
.blocco-gruppo.or { border-color: #c2410c; background: #fffaf5; }
.blocco-gruppo.radice { border-style: solid; border-color: var(--tm-bordo); background: #fff; margin: 0; }
.testa-blocco { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.testa-blocco .unione, .testa-blocco .operatore { width: auto; font-size: .8rem; padding-top: .1rem; padding-bottom: .1rem; }
.nome-campo { font-weight: 600; font-size: .85rem; }
.operatore-fisso { font-size: .8rem; color: var(--tm-testo-2); }
.maniglia { cursor: grab; color: #a1a1aa; display: inline-flex; }
.maniglia:hover { color: var(--tm-testo); }
.non {
    margin-left: auto; font-size: .7rem; font-weight: 600; letter-spacing: .03em;
    border: 1px solid var(--tm-bordo); background: #fff; color: var(--tm-testo-2); border-radius: 3px; padding: 0 .35rem;
}
.non.attivo { background: var(--tm-errore); border-color: var(--tm-errore); color: #fff; }
.elimina-blocco { border: 0; background: none; color: var(--tm-testo-2); padding: 0; display: inline-flex; }
.elimina-blocco:hover { color: var(--tm-errore); }
.valori { margin-top: .3rem; }
.valori:empty { display: none; }
.valori .dropdown .selettore { font-size: .8rem; }
.valori .elenco-opzioni { min-width: 320px; }
.lista-blocchi { min-height: 2.25rem; margin-top: .4rem; }
.lista-blocchi:empty::before {
    content: "Trascina qui un campo o un gruppo"; display: block; font-size: .8rem; color: var(--tm-testo-2);
    border: 1px dashed #d4d4d8; border-radius: 3px; padding: .45rem; text-align: center;
}
.sortable-ghost { opacity: .45; }
.stella-valore { border: 0; background: none; padding: 0; color: #a1a1aa; display: inline-flex; }
.stella-valore .icona { width: .9em; height: .9em; }
.stella-valore.attiva { color: #b45309; }
.stella-valore.attiva .icona { fill: currentColor; }
.etichetta-valore .rimuovi-valore { border: 0; background: none; color: var(--tm-testo-2); padding: 0 .2rem; line-height: 1; }
.etichetta-valore .rimuovi-valore:hover { color: var(--tm-errore); }

/* La ricerca in parole: stessi segnali dei blocchi. Arancio come i gruppi "almeno una", rosso come NON. */
.lettura-query {
    --tm-alternativa: #c2410c;      /* 5,2:1 su bianco */
    background: #fff; border: 1px solid var(--tm-bordo); border-radius: 4px; padding: .65rem .85rem .7rem;
}
.lettura-query h3 { font-size: .85rem; font-weight: 600; color: var(--tm-testo-2); margin: 0 0 .35rem; }
.lettura-query p { margin: 0 0 .2rem; }
.lettura-query .vuota { color: var(--tm-testo-2); font-size: .9rem; }
.lettura-query .introduzione { font-size: .9rem; color: var(--tm-testo-2); }
.lettura-query ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.45; }
.lettura-query li { position: relative; padding: .12rem 0 .12rem .95rem; text-wrap: pretty; }
.lettura-query li::before {
    content: ""; position: absolute; left: .15rem; top: .72em;
    width: .32rem; height: .32rem; border-radius: 50%; background: #a1a1aa;
}
/* Gruppi annidati: rientro con un filo, senza pallini (il gruppo li introduce con la sua frase) */
.lettura-query li > ul { margin: .2rem 0 .1rem .2rem; padding-left: .7rem; border-left: 2px solid var(--tm-bordo); }
.lettura-query li > ul > li { padding-left: 0; }
.lettura-query li > ul > li::before { display: none; }
.lettura-query .pezzo-valore { font-weight: 600; color: var(--tm-testo); }
.lettura-query .pezzo-oppure { color: var(--tm-alternativa); font-style: italic; }
.lettura-query .pezzo-non { color: var(--tm-errore); font-weight: 600; }

.query-tecnica summary { font-size: .82rem; color: var(--tm-testo-2); cursor: pointer; width: fit-content; }
.query-tecnica summary:hover { color: var(--tm-testo); }
.query-tecnica summary:focus-visible { outline: 2px solid var(--tm-accento); outline-offset: 2px; border-radius: 2px; }
/* FINE COSTRUTTORE VISIVO DELLA QUERY ESPERTA */

/* Pagine senza login */
.accesso { max-width: 400px; margin: 4rem auto 2rem; }
.accesso .marchio { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.25rem; margin-bottom: 1.25rem; }

/* INIZIO INTELLIGENZA ARTIFICIALE */
/* Punteggio di pertinenza: numero più parola, l'accento solo per le gare molto pertinenti */
.punteggio {
    display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap;
    border: 1px solid var(--tm-bordo); border-radius: 3px; padding: 0 .4rem;
    font-size: .78rem; color: var(--tm-testo-2); background: #fff;
}
.punteggio b { font-family: var(--tm-mono); font-size: .82rem; color: var(--tm-testo); }
.punteggio.alto { border-color: #b9dcd8; background: var(--tm-accento-tenue); color: var(--tm-accento-scuro); }
.punteggio.alto b { color: var(--tm-accento); }
.sintesi-ai { font-size: .86rem; color: var(--tm-testo-2); margin-top: .25rem; }
.sintesi-ai ul { margin: .15rem 0 0; padding-left: 1.1rem; }
.giudizio { display: inline-flex; gap: .25rem; margin-top: .35rem; }
.giudizio .btn { padding: .05rem .4rem; font-size: .78rem; }
.giudizio .btn .icona { margin-right: .2rem; }
.giudizio .btn[aria-pressed="true"] { border-color: var(--tm-accento); color: var(--tm-accento); background: var(--tm-accento-tenue); }
.assistente-ai textarea { resize: vertical; }
.assistente-ai .esito { font-size: .9rem; }
.elenco-memoria a { display: block; padding: .15rem .4rem; border-radius: 3px; color: var(--tm-testo); text-decoration: none; font-size: .9rem; }
.elenco-memoria a:hover { background: var(--tm-sfondo-intestazione); }
.elenco-memoria a.attiva { background: var(--tm-accento-tenue); color: var(--tm-accento-scuro); font-weight: 600; }
.testo-memoria { white-space: pre-wrap; font-size: .92rem; line-height: 1.55; }
/* FINE INTELLIGENZA ARTIFICIALE */
/* INIZIO PIEDE DI PAGINA: resta in fondo anche nelle pagine corte */
body.pagina { display: flex; flex-direction: column; min-height: 100vh; }
body.pagina > .container-xl, body.pagina > main { flex: 1 0 auto; }
.piede { border-top: 1px solid var(--tm-bordo); background: #fff; color: var(--tm-testo-2); font-size: .82rem; padding: .7rem 0; text-align: center; }
.piede a { color: var(--tm-testo-2); font-weight: 600; }
.piede a:hover { color: var(--tm-accento); }
.accesso + .piede, main.accesso ~ .piede { text-align: center; }
/* FINE PIEDE DI PAGINA */
/* INIZIO CHAT AI: elenco delle conversazioni a sinistra, chat a destra */
.chat-pagina { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; height: calc(100vh - 180px); min-height: 460px; }
.chat-elenco { overflow-y: auto; border-right: 1px solid var(--tm-bordo); padding-right: 1rem; }
.chat-elenco > summary { font-size: .88rem; font-weight: 600; padding: .35rem 0 .6rem; cursor: pointer; }
.chat-elenco li { display: flex; align-items: center; border-radius: 4px; }
.chat-elenco li a { flex: 1; min-width: 0; padding: .3rem .5rem; color: var(--tm-testo); text-decoration: none; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-elenco li:hover, .chat-elenco li.attiva { background: var(--tm-sfondo-intestazione); }
.chat-elenco li.attiva a { font-weight: 600; }
.chat-elenco .elimina { border: 0; background: none; color: var(--tm-testo-2); padding: .2rem .4rem; opacity: 0; }
.chat-elenco li:hover .elimina, .chat-elenco .elimina:focus-visible { opacity: 1; }
.chat-elenco .elimina:hover { color: var(--tm-errore); }

.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; max-width: 860px; width: 100%; margin: 0 auto; }
.chat-messaggi { flex: 1; overflow-y: auto; padding: .5rem .25rem 1rem; position: relative; }
.chat-benvenuto, .chat-suggerimenti { display: none; }
.chat.vuota { justify-content: center; }
.chat.vuota .chat-messaggi { display: none; }
.chat.vuota .chat-benvenuto { display: block; text-align: center; margin-bottom: 1.25rem; }
.chat.vuota .chat-benvenuto h1 { font-size: 1.6rem; font-weight: 500; margin-bottom: .35rem; }
.chat.vuota .chat-suggerimenti { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }

.chat-casella {
    display: flex; align-items: flex-end; gap: .5rem; background: #fff;
    border: 1px solid #d4d4d8; border-radius: 1.4rem; padding: .45rem .5rem .45rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.chat-casella:focus-within { border-color: var(--tm-accento); box-shadow: 0 0 0 3px var(--bs-focus-ring-color); }
.chat-casella textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; padding: .35rem 0; max-height: 200px; background: transparent; line-height: 1.45; }
.chat-casella select { width: auto; border: 0; background-color: transparent; color: var(--tm-testo-2); padding-left: .5rem; padding-right: 2.1rem; background-position: right .55rem center; }
.chat-casella .invia { border-radius: 50%; width: 2.3rem; height: 2.3rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.chat-casella .invia .icona { margin: 0; }
.chat-nota { text-align: center; font-size: .75rem; color: var(--tm-testo-2); margin-top: .4rem; }

.msg { margin-bottom: 1.1rem; }
.msg.utente { display: flex; justify-content: flex-end; }
.msg.utente .fumetto { background: var(--tm-sfondo-intestazione); border-radius: 1rem; padding: .5rem .9rem; max-width: 80%; white-space: pre-wrap; }
.msg.ai .testo p { margin-bottom: .5rem; }
.msg.ai .testo ul, .msg.ai .testo ol { margin-bottom: .5rem; padding-left: 1.3rem; }
.msg.ai .testo code { font-family: var(--tm-mono); font-size: .82rem; background: var(--tm-sfondo-intestazione); padding: 0 .25rem; border-radius: 3px; color: var(--tm-testo); }

.scheda-chat { background: #fff; border: 1px solid var(--tm-bordo); border-radius: 4px; padding: .7rem .9rem; margin: .5rem 0; }
.scheda-chat.proposta { border-color: #b9dcd8; background: var(--tm-accento-tenue); }
.scheda-chat .intestazione { margin-bottom: .4rem; }
.scheda-chat .gare { list-style: none; padding: 0; margin: 0; }
.scheda-chat .gare li { padding: .4rem 0; border-top: 1px solid var(--tm-bordo); }

@media (max-width: 767.98px) {
    .chat-pagina { grid-template-columns: minmax(0, 1fr); height: auto; }
    .chat-elenco { border-right: 0; border-bottom: 1px solid var(--tm-bordo); padding: 0 0 .5rem; max-height: 9rem; }
    .chat-messaggi { max-height: 60vh; }
}
/* FINE CHAT AI */

/* Telefono: si leggono le singole gare senza scorrere orizzontalmente tutta la tabella. */
@media (max-width: 767.98px) {
    .intestazione-pagina { margin-top: 1.1rem; align-items: flex-start; }
    .intestazione-pagina > div:not(.azioni) { min-width: 0; }
    .intestazione-pagina h1 { overflow-wrap: anywhere; }
    .intestazione-pagina .azioni { margin-left: 0; width: 100%; flex-wrap: wrap; gap: .5rem; }
    .intestazione-pagina .azioni .ricerca-veloce { max-width: none; flex: 1 1 100%; }
    .intestazione-pagina .azioni .btn { flex: 1 1 auto; }
    .intestazione-pagina .azioni form { display: flex !important; flex: 1 1 auto; }
    .intestazione-pagina .azioni form .btn { width: 100%; }
    .barra .navbar-collapse > .d-flex { flex-wrap: wrap; gap: .75rem !important; }
    .barra .utente { flex-basis: 100%; overflow-wrap: anywhere; }
    .btn, .btn-sm, .btn-stella, .chat-elenco .elimina, .dropdown-item, .navbar-toggler { min-height: 44px; }
    .btn-stella, .chat-elenco .elimina { min-width: 44px; }
    .btn { display: inline-flex; justify-content: center; align-items: center; }
    .form-control, .form-select, .chat-casella textarea { font-size: 16px; }
    .form-control, .form-select { min-height: 44px; }
    .pannello { padding: 1rem; }
    .tabella-adattiva { overflow: visible; }
    .tabella-adattiva table, .tabella-adattiva tbody { display: block; }
    .tabella-adattiva thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .tabella-adattiva tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .8rem; gap: .65rem 1rem; }
    .tabella-adattiva tbody tr + tr { border-top: 1px solid var(--tm-bordo); }
    .tabella-adattiva td { border: 0; padding: 0; min-width: 0; max-width: none !important; text-align: left !important; white-space: normal !important; overflow-wrap: anywhere; }
    .tabella-adattiva td[data-label]::before { content: attr(data-label); display: block; color: var(--tm-testo-2); font-size: .8rem; font-weight: 600; margin-bottom: .2rem; }
    .tabella-adattiva .cella-principale, .tabella-adattiva .cella-larga, .tabella-adattiva .cella-azioni { grid-column: 1 / -1; }
    .tabella-adattiva .cella-principale { font-size: 1rem; }
    .tabella-adattiva .cella-azioni { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
    .tabella-adattiva .cella-azioni .btn { flex: 1 1 auto; }
    .tabella-adattiva .azioni-gara { flex-direction: row; flex-wrap: wrap; }
    .form-check.form-switch { min-height: 44px; display: flex; align-items: center; }
    .form-switch .form-check-input { min-height: 24px; min-width: 44px; }
    .chat-pagina { min-height: 0; margin-top: .75rem; }
    .chat-elenco { max-height: 12rem; }
    .chat-elenco:not([open]) { overflow: visible; }
    .chat-elenco li a { padding-block: .75rem; }
    .chat-elenco .elimina { opacity: 1; }
    .chat-casella { flex-wrap: wrap; border-radius: 12px; padding: .65rem; }
    .chat-casella textarea { flex: 1 0 100%; min-width: 0; width: 100%; min-height: 44px; }
    /* Modello e ragionamento: chip compatti a sinistra, Invia a destra */
    .chat-casella select { flex: 0 1 auto; width: auto; min-width: 0; border-radius: 999px; background-color: var(--tm-sfondo-intestazione);
        padding-left: .85rem; padding-right: 2rem; background-position: right .6rem center; text-overflow: ellipsis; }
    .chat-casella select:hover { color: var(--tm-testo); }
    .chat-casella #modello-chat, body.incorporata .chat-casella #modello-chat, body.incorporata .chat-casella select { max-width: none; }
    .chat-casella .invia { min-width: 44px; width: 44px; height: 44px; margin-left: auto; }
    .chat-suggerimenti .btn { text-align: left; width: 100%; }
    .msg.utente .fumetto { max-width: 95%; overflow-wrap: anywhere; }
    .msg.ai .testo { overflow-wrap: anywhere; }
    .msg.ai .testo pre { overflow-x: auto; }
    body.incorporata .chat-pagina { height: 100dvh; }
    .piede { padding-bottom: max(.7rem, env(safe-area-inset-bottom)); }
}
@media (hover: none) { .chat-elenco .elimina { opacity: 1; } }
/* INIZIO CONFERME E AVVISI (site.js: Conferma.chiedi, Avviso) */
.modal.conferma .modal-content { border: 1px solid var(--tm-bordo); border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.modal.conferma .modal-body { padding: 1.25rem 1.35rem .75rem; }
.modal.conferma .modal-body h2 { margin: 0 0 .4rem; font-weight: 600; }
.modal.conferma .modal-body p { color: var(--tm-testo-2); }
.modal.conferma .modal-footer { border-top: 0; padding: .5rem 1.35rem 1.1rem; gap: .5rem; }
.modal.conferma .modal-footer > * { margin: 0; }
.modal-backdrop.show { opacity: .35; }
.btn-danger {
    --bs-btn-bg: var(--tm-errore); --bs-btn-border-color: var(--tm-errore);
    --bs-btn-hover-bg: #991b1b; --bs-btn-hover-border-color: #991b1b;
    --bs-btn-active-bg: #7f1d1d; --bs-btn-active-border-color: #7f1d1d;
}
.toast.avviso { border: 1px solid var(--tm-bordo); border-left: 4px solid var(--tm-accento); border-radius: 4px; font-size: .9rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.toast.avviso.errore { border-left-color: var(--tm-errore); }
/* FINE CONFERME E AVVISI */
/* Riga di stato della chat mentre l'AI lavora */
.stato-lavoro { font-size: .86rem; color: var(--tm-testo-2); margin-top: .35rem; }
.stato-lavoro .secondi, .stato-lavoro .in-attesa { margin-left: .25rem; }
.stato-lavoro .secondi { font-variant-numeric: tabular-nums; }
/* INIZIO CHAT NEL PANNELLO ("Analizza" nei Risultati e nei Preferiti): pagina compatta dentro un iframe */
body.incorporata .chat-pagina { grid-template-columns: minmax(0, 1fr); height: 100vh; min-height: 0; margin-top: 0; padding: .75rem 0 .5rem; }
body.incorporata .chat-messaggi { max-height: none; }
body.incorporata .chat.vuota .chat-benvenuto h1 { font-size: 1.15rem; }
body.incorporata .chat-casella select { max-width: 7.5rem; }
.chat-casella #modello-chat { max-width: 11rem; }
body.incorporata .chat-casella #modello-chat { max-width: 8.5rem; }
.offcanvas.chat-avviso { --bs-offcanvas-width: min(560px, 100vw); }
.offcanvas.chat-avviso .offcanvas-header { border-bottom: 1px solid var(--tm-bordo); align-items: flex-start; gap: .75rem; }
.offcanvas.chat-avviso .offcanvas-title { font-size: .95rem; font-weight: 600; line-height: 1.35; }
.offcanvas.chat-avviso .offcanvas-body { padding: 0; background: var(--tm-sfondo); }
.offcanvas.chat-avviso iframe { width: 100%; height: 100%; border: 0; display: block; }
/* FINE CHAT NEL PANNELLO */
/* INIZIO PREFERITI E AZIONI SULLE GARE */
.btn-stella { border: 0; background: none; padding: 0 .2rem; color: #a1a1aa; line-height: 1; border-radius: 3px; }
.btn-stella:hover { color: #d97706; }
.btn-stella[aria-pressed="true"] { color: #d97706; }
.btn-stella[aria-pressed="true"] .icona { fill: #f59e0b; }
.azioni-gara { display: inline-flex; gap: .3rem; }
.azioni-gara .btn, .giudizio .btn { white-space: nowrap; }
.giudizio { flex-wrap: wrap; }
.btn-mail-gara.in-corso { opacity: .55; cursor: progress; }
tr.tolta td { opacity: .45; }
.chat-barra { display: flex; justify-content: flex-end; gap: .4rem; padding: 0 .25rem .35rem; }
.chat.vuota .chat-barra { display: none; }
.toast.avviso.riuscito { border-left-color: var(--tm-accento); }
/* FINE PREFERITI E AZIONI SULLE GARE */
/* INIZIO RADAR ANIMATO (site.js: RadarAi.svg): il fascio gira, il punto ambra pulsa */
.radar-ai { width: 1.25em; height: 1.25em; vertical-align: -0.28em; flex-shrink: 0; }
.radar-ai .radar-fascio { transform-box: view-box; transform-origin: 32px 32px; animation: radar-giro 1.6s linear infinite; }
.radar-ai .radar-punto { transform-box: fill-box; transform-origin: center; animation: radar-punto 1.6s ease-in-out infinite; }
.radar-ai.in-pulsante { margin-right: .35rem; }
.radar-ai.grande { width: 2.5rem; height: 2.5rem; }
.stato-lavoro .radar-ai { width: 1.4rem; height: 1.4rem; }
@keyframes radar-giro { to { transform: rotate(360deg); } }
@keyframes radar-punto { 0%, 100% { opacity: .35; transform: scale(.75); } 45% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .radar-ai .radar-fascio, .radar-ai .radar-punto { animation: none; } }
.stato-lavoro { display: flex; align-items: center; gap: .45rem; }
/* Chat a riposo: il radar legge un foglio, 6 fotogrammi in fila (ai-lettore-b-sprite.png, da prepara-sprite.ps1).
   Con background-size 600% lo scatto da 0% a 120% in steps(6) mostra i fotogrammi da 1 a 6 a qualunque dimensione. */
.chat-benvenuto .ai-lettore {
    width: 96px; height: 96px; margin: 0 auto .6rem;
    background: url("../img/illustrazioni/ai-lettore-b-sprite.png") 0 0 / 600% 100% no-repeat;
    animation: ai-lettore 2.7s steps(6) infinite;
}
body.incorporata .chat-benvenuto .ai-lettore { width: 64px; height: 64px; }
@keyframes ai-lettore { to { background-position: 120% 0; } }
/* Movimento ridotto: resta fermo sull'ultimo fotogramma, la riga trovata con la spunta */
@media (prefers-reduced-motion: reduce) { .chat-benvenuto .ai-lettore { animation: none; background-position: 100% 0; } }
/* FINE RADAR ANIMATO */

/* INIZIO ILLUSTRAZIONI (strumenti/illustrazioni: generate con GPT Image 2.6, preparate da prepara-illustrazioni.ps1) */
.stato-vuoto { text-align: center; padding: 2rem 1.5rem 2.25rem; }
.stato-vuoto p { max-width: 34rem; margin-left: auto; margin-right: auto; }
.stato-vuoto .illustrazione { display: block; width: 120px; height: 120px; margin: 0 auto .9rem; }
.accesso .illustrazione { display: block; width: 96px; height: 96px; margin: 0 auto .6rem; }
/* Pagine di accesso: scena chiara ai bordi, il riquadro resta al centro sul vuoto dell'immagine */
body.pagina-accesso { background: var(--tm-sfondo) url("../img/illustrazioni/login-sfondo.jpg") center / cover no-repeat; }
body.pagina-accesso .accesso .pannello { box-shadow: 0 10px 30px rgba(15, 118, 110, .08); }
body.pagina-accesso .piede { background: transparent; border-top-color: transparent; }
/* Login: livelli decorativi isolati, senza intercettare i controlli del form. */
body.accesso-animato { background-image: none; isolation: isolate; }
.accesso-scena { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.accesso-sfondo { position: absolute; inset: -24px; background: url("../img/illustrazioni/login-sfondo.jpg") center / cover no-repeat; }
.accesso-orbita { position: absolute; }
.accesso-fluttuante { display: block; width: 96px; height: 96px; }
.accesso-orbita-0 { left: 13%; top: 17%; rotate: -12deg; }
.accesso-orbita-1 { right: 17%; top: 12%; rotate: 14deg; }
.accesso-orbita-2 { left: 24%; top: 47%; rotate: 7deg; scale: .75; }
.accesso-orbita-3 { right: 11%; top: 46%; rotate: -9deg; scale: .8; }
.accesso-orbita-4 { left: 10%; bottom: 14%; rotate: 10deg; scale: .85; }
.accesso-orbita-5 { right: 25%; bottom: 17%; rotate: -13deg; }
@media (max-width: 991.98px) {
    .accesso-orbita-2 { left: 7%; }
    .accesso-orbita-5 { right: 8%; }
}
@media (max-width: 575.98px) {
    .accesso-animato .accesso { position: relative; margin-top: 2rem; }
    .accesso-fluttuante { width: 56px; height: 56px; }
    .accesso-orbita { opacity: .45; }
    .accesso-orbita-0 { left: 3%; top: 6%; }
    .accesso-orbita-1 { right: 4%; top: 10%; }
    .accesso-orbita-2, .accesso-orbita-3 { display: none; }
    .accesso-orbita-4 { left: 4%; bottom: 12%; }
    .accesso-orbita-5 { right: 5%; bottom: 8%; }
}
/* FINE ILLUSTRAZIONI *//* Illustrazioni fuori dagli stati vuoti: piccole, accanto al titolo della pagina o in un riquadro */
.intestazione-pagina .illustrazione-titolo { width: 48px; height: 48px; flex-shrink: 0; margin: -.25rem -.15rem -.25rem 0; }
.illustrazione-riquadro { float: right; width: 72px; height: 72px; margin: -.25rem 0 .25rem 1rem; }
@media (max-width: 575.98px) { .intestazione-pagina .illustrazione-titolo { width: 36px; height: 36px; } .illustrazione-riquadro { display: none; } }
/* Sfondo dentro l'app: la scena del login velata (app-sfondo.jpg), fissa dietro i contenuti; pannelli e tabelle restano bianchi */
body.pagina:not(.pagina-accesso) { background: var(--tm-sfondo) url("../img/illustrazioni/app-sfondo.jpg") center / cover no-repeat fixed; }
@media (max-width: 767.98px) { body.pagina:not(.pagina-accesso) { background-image: none; } }
/* INIZIO TOUR (tour.js): velo, luce sull'elemento spiegato e riquadro con i comandi */
.tour-velo { position: fixed; inset: 0; z-index: 1090; display: none; }
body.tour-attivo .tour-velo { display: block; }
.tour-velo.scuro { background: rgba(24, 24, 27, .45); }
.tour-luce { position: fixed; z-index: 1091; display: none; border-radius: 6px; pointer-events: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .55), 0 0 0 9999px rgba(24, 24, 27, .45); transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease; }
.tour-riquadro { position: fixed; z-index: 1092; display: none; background: #fff; border: 1px solid var(--tm-bordo); border-radius: 6px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18); padding: 1rem 1.1rem .7rem; outline: none; }
body.tour-attivo .tour-riquadro { display: block; }
.tour-passo { font-size: .72rem; color: var(--tm-testo-2); text-transform: uppercase; letter-spacing: .4px; margin-bottom: .3rem; }
.tour-riquadro h2 { font-size: 1.05rem; margin: 0 0 .35rem; }
.tour-riquadro p { font-size: .92rem; margin-bottom: .8rem; }
.tour-immagine { display: block; width: 64px; height: 64px; margin: 0 auto .6rem; }
.tour-azioni { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.tour-azioni .btn-link { color: var(--tm-testo-2); padding-left: 0; text-decoration: none; }
.tour-azioni .btn-link:hover { color: var(--tm-accento); }
#btn-tour { text-decoration: none; position: relative; }
#btn-tour.tour-nuovo::after { content: ""; position: absolute; top: -1px; right: -7px; width: 7px; height: 7px; border-radius: 50%; background: var(--tm-accento); }
.tour-invito { position: fixed; right: 16px; bottom: 16px; z-index: 1080; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: .5rem;
    background: #fff; border: 1px solid var(--tm-bordo); border-radius: 6px; padding: .75rem .9rem; box-shadow: 0 6px 20px rgba(24, 24, 27, .12); font-size: .9rem; }
.tour-invito-azioni { display: flex; justify-content: flex-end; gap: .25rem; }
.tour-invito-azioni .btn-link { color: var(--tm-testo-2); text-decoration: none; }
@media (max-width: 575.98px) { .tour-invito { left: 16px; right: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .tour-luce { transition: none; } }

::selection { background: var(--tm-accento-tenue); color: var(--tm-accento-scuro); }
@media (max-width: 767.98px) {
    .chat-casella #modello-chat, body.incorporata .chat-casella #modello-chat { max-width: 10rem; }
    body.incorporata .chat-casella #ragionamento { max-width: none; }
}
/* FINE TOUR */

/* Storico invii: esiti sempre visibili, gare con gli stessi controlli dei Risultati. */
.notifica-riepilogo { padding: .85rem 1rem; background: #fff; border: 1px solid var(--tm-bordo); border-radius: 6px; cursor: pointer; }
.notifica-riepilogo:focus-visible { outline: 3px solid var(--tm-accento); outline-offset: 3px; }
.notifica-titolo { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; margin-left: .3rem; }
.notifica-esiti { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .35rem 0 0 1.3rem; overflow-wrap: anywhere; }
.notifica-gruppo[open] > summary { margin-bottom: .5rem; }
/* Avvisi AI e motivo del blocco: mouse, tastiera e touch. */
.avvertenza-ai { display: flex; align-items: flex-start; gap: .5rem; color: #52525b; font-size: .8125rem; line-height: 1.5; margin: .75rem 0 1rem; }
.avvertenza-ai > svg { flex: 0 0 1rem; margin-top: .15rem; }
.avvertenza-ai a { white-space: nowrap; text-underline-offset: .18em; }
.ai-bloccata { position: relative; display: inline-flex; cursor: help; max-width: 100%; }
.ai-bloccata > button { pointer-events: none; }
.ai-bloccata:focus-visible { outline: 2px solid #0f766e; outline-offset: 3px; }
.anteprima-prezzo { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.anteprima-prezzo input { width: 8rem; }
.anteprima-prezzo output { font-variant-numeric: tabular-nums; }
.testo-a-capo { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.ordine-colonna { display: inline-flex; align-items: center; gap: .35rem; border: 0; padding: .35rem 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.ordine-colonna:hover { text-decoration: underline; text-underline-offset: .2em; }
.ordine-colonna:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.ricerche-ordine:not([hidden]) { display: flex; }
