
@media screen {
  html body{ font-family:'Figtree',-apple-system,Segoe UI,Roboto,Arial,sans-serif; background-color:#F3F4F6; color:#1E2733 }
  html h1{ font-family:'Bricolage Grotesque','Figtree',sans-serif; font-weight:700; letter-spacing:-.02em; line-height:1.2 }
  html h2, html h3{ font-family:'Figtree',-apple-system,Segoe UI,sans-serif }
  html input, html select, html textarea, html button{ font-family:inherit }
  html input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]), html select, html textarea{ border-radius:12px }
  html input:focus-visible, html select:focus-visible, html textarea:focus-visible{ outline:2px solid #1E2733; outline-offset:0 }
  html .card, html .box, html .neg, html .riquadro, html .scheda{ border-radius:16px; border-color:#E3E5E9; box-shadow:none }
  html .btn, html button.btn, html a.btn, html a.bottone{ border-radius:12px }
  html a.torna, html a.home, html a.indietro{ display:inline-flex; align-items:center; gap:6px; background:#1E2733; color:#fff;
    border:0; border-radius:12px; padding:10px 16px; font-weight:600; box-shadow:none; text-decoration:none }
  html a.torna:hover, html a.home:hover, html a.indietro:hover{ background:#2A3442; color:#fff }

  /* ---- il menu scuro a sinistra (solo computer) ---- */
  nav.ln-lato{ display:none; position:fixed; z-index:40; left:0; top:0; bottom:0; width:248px; box-sizing:border-box;
    background:#1E2733; color:#E6E9EE; overflow-y:auto; padding:24px 16px; flex-direction:column; gap:2px;
    font:14px/1.4 'Figtree',-apple-system,Segoe UI,Roboto,Arial,sans-serif; text-align:left; margin:0; border:0 }
  nav.ln-lato a{ display:block; padding:8px 12px; border-radius:10px; color:#D5DAE2; text-decoration:none;
    font-weight:400; font-size:14px; background:none; border:0; box-shadow:none; margin:0 }
  nav.ln-lato a:hover{ background:#2A3442; color:#fff }
  nav.ln-lato a.on{ background:#2A3442; color:#fff; font-weight:600 }
  nav.ln-lato .ln-g{ display:block; padding:16px 12px 6px; font-size:11px; font-weight:700; letter-spacing:.08em;
    text-transform:uppercase; color:#9AA3B2 }
  nav.ln-lato a.ln-marchio{ display:flex; align-items:center; gap:10px; padding:0 8px 18px; color:#fff; background:none }
  nav.ln-lato .ln-v{ width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center;
    flex-shrink:0; font:700 16px 'Bricolage Grotesque','Figtree',sans-serif; color:#fff }
  nav.ln-lato .ln-v.ln-logo{ background:#fff; overflow:hidden; padding:0; box-shadow:0 0 0 1px rgba(255,255,255,.12) }
  nav.ln-lato .ln-v.ln-logo img{ width:100%; height:100%; object-fit:contain; display:block }
  nav.ln-lato .ln-marchio b{ font:700 17px/1.15 'Bricolage Grotesque','Figtree',sans-serif; color:#fff }
  nav.ln-lato .ln-spazio{ flex:1; min-height:12px }
  nav.ln-lato a.ln-firma{ padding:10px 12px 0; font-size:11.5px; color:#8A94A3; font-weight:500 }
  nav.ln-lato a.ln-firma:hover{ background:none; color:#D5DAE2 }
  nav.ln-lato a.ln-firma b{ font-weight:700; letter-spacing:.02em }
  nav.ln-lato .ln-voci{ display:flex; flex-direction:column; gap:2px }
}
/* 30/9/2026: in stampa il menu non deve comparire (usciva in cima a cartellini, schede, PDF) */
@media print{ nav.ln-lato{ display:none !important } html body{ padding-left:0 !important }
  /* e i colori (fasce, riquadri, numeri) si stampano come si vedono: di suo il browser toglie gli sfondi */
  html{ -webkit-print-color-adjust:exact; print-color-adjust:exact } }
@media screen and (min-width:980px){
  /* 3/10/2026: lo spazio per il menu solo se il menu c'è (la pagina del codice non ce l'ha) */
  html body:has(> nav.ln-lato){ padding-left:248px !important }
  nav.ln-lato{ display:flex }
}
/* 25/11/2026 (Nicolas: «tutti i passaggi tra le schede dei gestionali fluidi sia per smartphone che per pc»): anche sul computer,
   cambiando pagina, la pagina di prima resta finché la nuova è pronta e poi sfuma nella nuova (niente bianco in mezzo); il menu
   scuro a sinistra e il fantasmino restano fermi al loro posto, come sul telefono (barra-telefono.js) */
@media screen and (min-width:980px) and (prefers-reduced-motion:no-preference){
  @view-transition{ navigation:auto }
  html body nav.ln-lato{ view-transition-name:ln-lato }
  html body #bolla-assistente{ view-transition-name:ln-vivi }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*){ animation-duration:.15s }
}
/* 2/10/2026 — telefono: nessun riquadro più largo dello spazio che ha (le griglie "1fr 1fr"
   col testo lungo allargavano tutta la pagina) e immagini/video dentro lo schermo */
@media screen and (max-width:640px){
  html body *{ min-width:0 }
  html body img, html body video, html body iframe{ max-width:100% }
  .ln-tab-scorre{ overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100% }
}
/* 5/10/2026 (Nicolas: «migliora bene l'interfaccia per l'uso dal dispositivo») — regole per TUTTE le pagine sul telefono:
   caselle a 16px (sotto, iPhone ingrandisce la pagina appena le tocchi), tasti alti almeno 40px (si prendono col dito),
   "← Torna…" piccolo, sottotitoli più corti, filtri a pastiglia in una fila che scorre invece di spezzare le parole */
@media screen and (max-width:640px){
  html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), html body select, html body textarea{ font-size:16px !important }
  html body button, html body select, html body .mini, html body .fil, html body .btn2, html body .tasto{ min-height:40px }
  /* 21/11/2026 (Nicolas, foto delle Cose da fare: «su Vivi Casa Facile sembrano schiacciati, sui negozi più uniformi»): i tasti
     TONDI (il cerchio per spuntare, il ▾ che piega i riquadri) restano tondi: col minimo di 40px diventavano ovali */
  html body button.tondo, html body button.piega-b{ min-height:0 }
  html body .wrap > a.torna{ padding:7px 12px !important; font-size:13.5px !important; margin-bottom:8px }
  html body .wrap > h1{ font-size:24px; line-height:1.15; margin-top:6px }
  html body .wrap > p.sub{ font-size:14px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer }
  html body .wrap > p.sub.tutto{ -webkit-line-clamp:unset; display:block }
  html body .filtri-l, html body .stati, html body .chips{ flex-wrap:nowrap !important; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:2px }
  html body .filtri-l > *, html body .stati > *, html body .fil, html body .chip{ white-space:nowrap; flex:none }
  html body .card{ padding-left:14px; padding-right:14px }
}
