/* Pagine del profilo: Accedi / Crea il profilo / Password (app/accedi.html) e area clienti (app/area.html).
   Stessi colori e caratteri di app.css: blu Ciaoo, giallo per l'azione principale, schede bianche arrotondate. */
/* ---------- Accedi / Crea il profilo ---------- */
.pr-wrap { max-width: 460px; margin: 0 auto; padding: 36px 20px 80px; }
.pr-card { background: #fff; border-radius: 24px; padding: 30px 28px 26px; box-shadow: 0 2px 0 var(--line), 0 18px 40px -28px rgba(10,40,79,.35); }
.pr-card h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 30px; line-height: 1.1; margin: 0 0 8px; color: var(--ink); }
.pr-card .lead { font-size: 16px; margin: 0 0 22px; }
.pr-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 99px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.pr-google:hover, .pr-google:focus-visible { border-color: #B9CEEA; background: var(--bg); outline: none; }
.pr-google svg { width: 20px; height: 20px; flex: none; }
.pr-oppure { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--mute); font-weight: 700; font-size: 13px; }
.pr-oppure::before, .pr-oppure::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pr-form .field { margin-bottom: 14px; }
.pr-coppia { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pr-coppia .field { min-width: 0; }
.pr-pw { position: relative; display: block; }
.pr-pw input { padding-right: 92px; }
.pr-mostra { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: inherit; font-weight: 800; font-size: 13px; color: var(--blue); background: none; border: 0; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.pr-mostra:hover, .pr-mostra:focus-visible { background: var(--tint); outline: none; }
.pr-aiuto { display: block; font-weight: 600; font-size: 13px; color: var(--mute); margin-top: 2px; }
.field .pr-campo-err { display: block; font-weight: 700; font-size: 13px; color: #9B2C1C; margin-top: 2px; }
.field.sbagliato input { border-color: #D9534F; }
.pr-riga { display: flex; justify-content: flex-end; margin: -4px 0 16px; }
.pr-link { font: inherit; font-weight: 800; font-size: 14px; color: var(--blue); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; }
.pr-link:hover { text-decoration: underline; }
.pr-invia { width: 100%; }
.pr-piede { text-align: center; margin: 22px 0 0; font-weight: 700; color: var(--soft); font-size: 15px; }
.pr-legale { text-align: center; margin: 14px 0 0; font-size: 12.5px; color: var(--mute); font-weight: 600; }
.pr-ok { text-align: center; }
.pr-ok .pr-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin: 4px auto 16px; }
.pr-ok .pr-ic svg { width: 32px; height: 32px; }
.pr-sotto { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--mute); font-weight: 600; }
@media (max-width: 420px) { .pr-card { padding: 24px 18px 22px; border-radius: 20px; } .pr-card h1 { font-size: 26px; } .pr-coppia { grid-template-columns: 1fr; gap: 0; } }

/* ---------- area clienti ---------- */
.ar-wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 90px; }
.ar-ciao { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.ar-ciao h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 36px; line-height: 1.05; margin: 0 0 6px; }
.ar-ciao p { margin: 0; color: var(--mute); font-weight: 700; font-size: 15px; word-break: break-all; }
.ar-esci { font: inherit; font-weight: 800; font-size: 15px; color: var(--soft); background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 9px 18px; cursor: pointer; }
.ar-esci:hover { border-color: var(--blue); color: var(--blue); }
.ar-fascia { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #FFF6CC; border: 2px solid #F3DC6B; border-radius: 18px; padding: 14px 18px; margin: 0 0 22px; }
.ar-fascia p { margin: 0; font-weight: 700; color: var(--ink); font-size: 15px; flex: 1 1 260px; }
.ar-fascia small { display: block; font-weight: 600; color: var(--soft); margin-top: 3px; }
.ar-fascia .btn { font-size: 16px; min-height: 44px; padding: 10px 18px; }
.ar-tit { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px; margin: 30px 0 12px; color: var(--ink); }
.ar-sito { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ar-sito + .ar-sito { margin-top: 12px; }
.ar-sito h2 { font-size: 22px; margin: 0 0 6px; }
.ar-sito .ind { color: var(--mute); font-weight: 700; font-size: 14px; word-break: break-all; }
.ar-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* stato scritto come testo (con il pallino del colore), senza capsula: niente pillole ornamentali (docs/regole-design.md, Gemini 9/11/2026) */
.ar-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--soft); }
.ar-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ar-pill + .ar-pill::before { content: '·'; margin-right: 2px; color: var(--mute); }
.ar-pill.attivo { color: #17723B; }
.ar-pill.anteprima { color: #7A5B00; }
.ar-pill.sospeso { color: #9B2C1C; }
.ar-az { display: flex; gap: 10px; flex-wrap: wrap; }
.ar-az .btn { font-size: 17px; padding: 11px 20px; min-height: 46px; }
.ar-vuoto { text-align: center; padding: 34px 24px; }
.ar-vuoto p { margin: 0 0 16px; color: var(--soft); font-weight: 600; }
.ar-arrivo, .ar-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ar-nav { grid-template-columns: repeat(5, 1fr); }
.ar-nav { margin-top: 30px; }
.ar-box { background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 2px 0 var(--line); position: relative; }
button.ar-box { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; font: inherit; text-align: left; color: inherit; border: 2px solid transparent; cursor: pointer; transition: border-color .15s, transform .15s; }
button.ar-box:hover { border-color: #C9DCF5; }
button.ar-box:focus-visible { outline: none; border-color: var(--blue); }
button.ar-box[aria-selected=true] { border-color: var(--blue); box-shadow: 0 2px 0 var(--line), 0 10px 26px -18px rgba(0,44,101,.55); }
button.ar-box[aria-selected=true] .ic { background: var(--blue); color: #fff; }
.ar-box .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ar-box .ic svg { width: 22px; height: 22px; }
.ar-box b { display: block; font-size: 16px; color: var(--ink); }
.ar-box span { display: block; font-size: 13px; color: var(--mute); font-weight: 600; margin-top: 4px; line-height: 1.35; }
/* collaudo del 14/11/2026 (R2): etichette in maiuscolo e pillole decorative → testo semplice */
.ar-box em { position: absolute; top: 16px; right: 14px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.ar-nota { margin: 26px 4px 0; }
@media (max-width: 760px) { .ar-arrivo, .ar-nav { grid-template-columns: 1fr 1fr; } .ar-nav .ar-box:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ar-ciao h1 { font-size: 30px; } .ar-az { width: 100%; } .ar-az .btn { flex: 1; } }
.pr-area .top-in { max-width: 840px; }

/* ---------- area clienti, fase 2: Messaggi, Foto, Fatture, Abbonamento (app/area.html, assets/area.js) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar-box .ar-conta { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: #D9363E; border-radius: 99px; padding: 3px 9px; letter-spacing: 0; text-transform: none; }
.ar-pannello { margin-top: 14px; }
.ar-pannello h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 24px; margin: 0 0 4px; }
.ar-pann-testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.ar-pann-testa > div:first-child { flex: 1 1 320px; }
.ar-pann-testa p { margin: 0; color: var(--mute); font-weight: 600; font-size: 15px; }
.ar-pann-fuori { padding: 4px 4px 0; }
.ar-di { margin: 0; flex: 0 1 260px; }
.ar-di select { padding: 10px 12px; }
/* chat */
.ar-chat { padding: 0; overflow: hidden; }
.ar-chat-testa { padding: 20px 24px 14px; border-bottom: 1px solid var(--line); }
.ar-chat-testa p { margin: 0; color: var(--mute); font-weight: 600; font-size: 14.5px; }
.ar-chat-testa .ar-orari { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; color: var(--soft); font-size: 13.5px; }
.ar-chat-testa .ar-orari::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1a9e52; box-shadow: 0 0 0 3px #E6F6EC; transform: translateY(-1px); }
.ar-fila { background: var(--bg); padding: 18px 20px; max-height: 460px; min-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ar-vuoto-chat { margin: auto; text-align: center; color: var(--mute); font-weight: 700; font-size: 15px; max-width: 360px; }
.ar-msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
.ar-msg .bolla { padding: 11px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.ar-msg.mio { align-self: flex-end; align-items: flex-end; }
.ar-msg.mio .bolla { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.ar-msg.loro { align-self: flex-start; }
.ar-msg.loro .bolla { background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 1px 0 var(--line); }
.ar-msg.auto .bolla { background: var(--tint); border: 1px dashed #B9CEEA; }
.ar-msg .chi { font-size: 12px; font-weight: 800; color: var(--mute); padding: 0 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ar-msg .chi .robot { background: #E8F2FF; color: var(--blue); border-radius: 99px; padding: 2px 8px; }
.ar-msg .ora { font-size: 11.5px; font-weight: 700; color: var(--mute); padding: 0 6px; }
.ar-msg .all { display: flex; gap: 6px; flex-wrap: wrap; }
.ar-msg .all img { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; display: block; background: #fff; }
.ar-msg .all a.pdf { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 9px 12px; box-shadow: 0 1px 0 var(--line); }
.ar-msg.mio .all { justify-content: flex-end; }
.ar-giorno { align-self: center; font-size: 12px; font-weight: 800; color: var(--mute); background: #fff; border-radius: 99px; padding: 3px 10px; }
.ar-scrivi { padding: 16px 20px 18px; border-top: 1px solid var(--line); }
.ar-scrivi .err { margin-bottom: 12px; }
.ar-scrivi .ar-di { margin: 0 0 10px; max-width: 320px; }
.ar-testo { display: block; }
.ar-testo textarea { resize: vertical; min-height: 82px; }
.ar-allegati { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ar-allegati:empty { display: none; }
.ar-al { position: relative; display: flex; align-items: center; gap: 8px; background: var(--tint); border-radius: 12px; padding: 6px 34px 6px 6px; font-size: 13px; font-weight: 800; color: var(--soft); max-width: 220px; }
.ar-al img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.ar-al .pdf-ic { width: 40px; height: 40px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #B23A30; }
.ar-al span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-al button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; color: var(--soft); font-weight: 800; cursor: pointer; }
.ar-al.carica { opacity: .6; }
.ar-scrivi-az { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ar-allega { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; color: var(--blue); cursor: pointer; padding: 10px 12px; border-radius: 12px; }
.ar-allega:hover, .ar-allega:focus-within { background: var(--tint); }
.ar-allega svg { width: 20px; height: 20px; }
.ar-allega input, .ar-carica input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ar-conta-car { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--mute); font-variant-numeric: tabular-nums; }
.ar-scrivi-az .btn { min-height: 46px; padding: 10px 26px; font-size: 17px; }
.ar-nota-scrivi { margin: 8px 2px 0; font-size: 13px; }
/* foto */
.ar-carica { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; border: 2px dashed #B9CEEA; background: var(--tint); border-radius: 20px; padding: 22px; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s; }
.ar-carica:hover, .ar-carica:focus-within { border-color: var(--blue); background: #E8F2FF; }
.ar-carica-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; flex: none; }
.ar-carica b { display: block; font-size: 17px; }
.ar-carica small { display: block; color: var(--mute); font-weight: 700; font-size: 13.5px; }
.ar-stato { margin: 12px 2px 0; font-weight: 800; font-size: 14px; color: var(--soft); }
.ar-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 16px; }
.ar-griglia:empty { display: none; }
.ar-ft { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg); aspect-ratio: 1; }
.ar-ft img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-ft .scegli { position: absolute; inset: 0; border: 3px solid transparent; border-radius: 16px; background: none; cursor: pointer; padding: 0; }
.ar-ft .scegli:focus-visible { outline: none; border-color: var(--yellow); }
.ar-ft .scegli[aria-pressed=true] { border-color: var(--blue); background: rgba(0,44,101,.12); }
.ar-ft .spunta { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(10,40,79,.3); display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; }
.ar-ft .scegli[aria-pressed=true] + .spunta { background: var(--blue); }
.ar-ft .spunta svg { width: 15px; height: 15px; }
.ar-ft .sul { position: absolute; left: 8px; bottom: 8px; background: #17723B; color: #fff; font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 3px 9px; pointer-events: none; }
.ar-ft .via { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(10,40,79,.72); color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; }
.ar-ft .via:hover, .ar-ft .via:focus-visible { background: #B23A30; outline: none; }
.ar-foto-az { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.ar-foto-az .note { margin: 0; flex: 1 1 260px; font-size: 13.5px; }
/* fatture */
.ar-fatture { width: 100%; border-collapse: collapse; font-size: 15px; }
.ar-fatture th { text-align: left; font-size: 13.5px; color: var(--mute); font-weight: 800; padding: 0 10px 8px; border-bottom: 2px solid var(--line); }
.ar-fatture td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); vertical-align: middle; }
.ar-fatture td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-fatture tr:last-child td { border-bottom: 0; }
.ar-fatture .num { display: block; font-size: 12.5px; color: var(--mute); font-weight: 700; }
.ar-fatture a.btn { font-size: 14px; min-height: 38px; padding: 7px 14px; white-space: nowrap; }
.ar-stato-f { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 9px; background: var(--tint); color: var(--soft); }
.ar-stato-f.pagata { background: #E3F6EA; color: #17723B; }
.ar-stato-f.da_pagare { background: #FFF3C4; color: #7A5B00; }
.ar-stato-f.annullata, .ar-stato-f.non_pagata { background: #FBEBEB; color: #9B2C1C; }
.ar-attesa { display: flex; gap: 14px; align-items: flex-start; background: var(--tint); border-radius: 18px; padding: 16px 18px; }
.ar-attesa svg { width: 30px; height: 30px; color: var(--blue); flex: none; }
.ar-attesa p { margin: 0; font-weight: 700; color: var(--soft); }
.ar-attesa small { display: block; margin-top: 4px; color: var(--mute); font-weight: 600; }
/* abbonamento */
.ar-abb + .ar-abb { margin-top: 12px; }
.ar-abb-testa { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ar-abb h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 21px; margin: 0; }
.ar-dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 0; }
.ar-dati div { background: var(--bg); border-radius: 14px; padding: 10px 14px; }
.ar-dati dt { font-size: 13.5px; font-weight: 700; color: var(--mute); }
.ar-dati dd { margin: 2px 0 0; font-weight: 800; color: var(--ink); font-size: 16px; }
.ar-abb-az { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.ar-abb-az .btn { font-size: 16px; min-height: 44px; padding: 9px 18px; }
.ar-abb .note { margin: 14px 0 0; }
.ar-pill.in_disdetta, .ar-pill.da_pagare { color: #7A5B00; }
.ar-pill.chiuso { color: var(--mute); }
.btn-rosso { background: #B23A30; color: #fff; border: 2px solid #B23A30; box-shadow: 0 4px 0 #7E2620; }
.btn-rosso:disabled { opacity: .55; cursor: not-allowed; }
.btn-testo-rosso { color: #9B2C1C; }
/* striscia dell'abbonamento nella scheda del sito */
.ar-sito-abb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex-basis: 100%; margin-top: -4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--soft); }
.ar-sito-abb .pic { font: inherit; font-weight: 800; font-size: 14px; background: none; border: 0; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ar-sito-abb .pic.rosso { color: #9B2C1C; }
.ar-sito-abb .pic.blu { color: var(--blue); }
.ar-sito-abb .spazio { flex: 1; }
.ar-sito-abb .pic { margin-left: auto; }
.ar-sito-abb.ar-piva { color: #6B4A00; } /* partita IVA da scrivere (assets/area.js, strisciaPiva) */
.ar-sito-abb + .ar-sito-abb { margin-top: 0; }
/* finestra della disdetta */
.ar-dialogo { border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px -20px rgba(10,40,79,.5); color: var(--ink); }
.ar-dialogo::backdrop { background: rgba(10,40,79,.45); }
.ar-dialogo form { padding: 26px 26px 22px; }
.ar-dialogo h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0 0 4px; }
.ar-dial-sito { margin: 0 0 14px; color: var(--mute); font-weight: 800; }
.ar-riep { background: #FFF6CC; border: 2px solid #F3DC6B; border-radius: 16px; padding: 12px 16px; font-size: 15px; }
.ar-riep p { margin: 0 0 6px; color: var(--soft); font-weight: 600; }
.ar-riep p:last-child { margin: 0; }
.ar-riep b { color: var(--ink); }
.ar-motivi { border: 0; padding: 0; margin: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.ar-motivi legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 0; }
.ar-motivi legend small, .ar-nota-campo small { color: var(--mute); font-weight: 700; }
.ar-motivi label { position: relative; }
.ar-motivi input { position: absolute; opacity: 0; }
.ar-motivi span { display: inline-block; font-weight: 800; font-size: 14px; color: var(--soft); border: 2px solid var(--line); border-radius: 99px; padding: 8px 13px; cursor: pointer; }
.ar-motivi input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.ar-motivi input:focus-visible + span { border-color: var(--blue); }
.ar-nota-campo { margin: 10px 0 12px; }
.ar-dialogo .ar-fascia { margin: 0 0 12px; }
.ar-dial-az { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.ar-dial-az .btn { font-size: 16px; min-height: 46px; padding: 10px 20px; }
.ar-dial-ok { width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin: 0 0 14px; }
.ar-dial-ok svg { width: 30px; height: 30px; }
#dFatto p { color: var(--soft); font-weight: 600; }
@media (max-width: 560px) {
  .ar-nav { gap: 8px; }
  .ar-nav .ar-box { padding: 14px; }
  .ar-nav .ar-box span { display: none; }
  .ar-nav .ar-box .ic { width: 34px; height: 34px; margin-bottom: 8px; }
  .ar-fila { padding: 14px 12px; max-height: 62vh; }
  .ar-msg { max-width: 90%; }
  .ar-chat-testa { padding: 16px 18px 12px; }
  .ar-scrivi { padding: 14px 14px 16px; }
  .ar-griglia { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ar-foto-az .btn { width: 100%; }
  .ar-fatture thead { display: none; }
  .ar-fatture tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ar-fatture td { padding: 0; border: 0; }
  .ar-fatture td.az { grid-column: 1 / -1; }
  .ar-fatture td.az .btn { width: 100%; }
  .ar-abb-az .btn { flex: 1 1 100%; }
  .ar-dialogo form { padding: 22px 18px 18px; }
  .ar-dial-az .btn { flex: 1 1 100%; }
}
.ar-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 14px; max-width: calc(100vw - 32px); box-shadow: 0 12px 30px -12px rgba(10,40,79,.6); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.ar-toast.vedi { opacity: 1; transform: translate(-50%, 0); }
/* «Aiuto su WhatsApp» (assets/supporto.js): solo per chi ha bisogno di aiuto; le operazioni si fanno dai riquadri dell'area */
.cs-aiuto[hidden] { display: none !important; }
.cs-aiuto { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 14px 16px; background: #fff; border: 2px solid transparent; border-radius: 18px; box-shadow: 0 2px 0 var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.cs-aiuto:hover { border-color: #BFE3CC; }
.cs-aiuto:focus-visible { outline: none; border-color: var(--blue); }
.cs-aiuto > span:not(.cs-aiuto-ic) { flex: 1; min-width: 0; }
.cs-aiuto b { display: block; font-size: 16px; line-height: 1.3; }
.cs-aiuto small { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--mute); line-height: 1.4; }
.cs-aiuto::after { content: '›'; flex: none; font-size: 26px; line-height: 1; font-weight: 700; color: var(--blue); }
.cs-aiuto-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #E6F6EC; color: #138A45; display: flex; align-items: center; justify-content: center; }
.cs-aiuto-ic svg { width: 22px; height: 22px; }
.cs-aiuto-piccolo { margin-top: 18px; padding: 10px 14px; box-shadow: none; background: transparent; border-color: var(--line); }
.cs-aiuto-piccolo .cs-aiuto-ic { width: 34px; height: 34px; }
.cs-aiuto-piccolo b { font-size: 15px; }
/* dominio (assets/area-dominio.js) */
.ar-pill.do-attivo { color: #17723B; }
.ar-pill.do-attesa { color: #7A5B00; }
.ar-pill.do-errore { color: #9B2C1C; }
.do-sito .ar-dati dd a { color: var(--blue); }
.do-scelta { margin-top: 16px; }
.do-cambia { margin: 0 0 10px; font-weight: 800; color: var(--soft); }
.do-opzioni { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.do-opz { font: inherit; text-align: left; background: var(--bg); color: var(--ink); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.do-opz:hover { border-color: #C9DCF5; }
.do-opz:focus-visible { outline: none; border-color: var(--blue); }
.do-opz[aria-pressed=true] { border-color: var(--blue); background: #fff; box-shadow: 0 10px 26px -18px rgba(0,44,101,.55); }
.do-opz b { display: block; font-size: 16px; }
.do-opz small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--mute); line-height: 1.35; }
.do-form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-top: 14px; }
.do-form > .field { flex: 1 1 240px; margin: 0; }
.do-form > .btn { min-height: 48px; }
.do-form .err { flex-basis: 100%; margin: 0; }
.do-risultati { list-style: none; margin: 14px 0 0; padding: 0; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.do-risultati li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.do-risultati li:first-child { border-top: 0; }
.do-risultati li.scelto { background: #FFF9DC; }
.do-risultati .do-nome { font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.do-risultati .btn { min-height: 38px; padding: 6px 16px; font-size: 14px; }
.do-libero, .do-occupato, .do-boh { justify-self: start; font-size: 12.5px; font-weight: 800; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.do-libero { background: #E3F6EA; color: #17723B; }
.do-occupato { background: #EEF1F6; color: var(--mute); }
.do-boh { background: #FFF3C4; color: #7A5B00; }
.do-intestatario { display: block; }
.do-intestatario .ar-riep { margin-bottom: 12px; }
.do-sotto { margin: 0 0 10px; font-weight: 700; color: var(--soft); font-size: 14.5px; }
.do-campi { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.do-campi .field { margin: 0 0 10px; }
.do-campi .do-azienda, .do-campi .do-indirizzo { grid-column: 1 / -1; }
.do-intestatario .err { margin: 4px 0 0; }
.do-spunta { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; margin: 6px 0 12px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); cursor: pointer; }
.do-spunta input { width: 26px; height: 26px; margin: 0; accent-color: var(--blue); cursor: pointer; border-radius: 4px; }
.do-spunta small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--soft); }
.do-spunta a { color: var(--blue); font-weight: 800; }
.do-spunta.errore span { color: #B42318; } .do-spunta.errore input { outline: 2px solid #B42318; outline-offset: 1px; }
/* dominio comprato dopo l'attivazione: domanda sullo scopo (se non dichiarata al pagamento), regola che vale, conferma del recesso */
.do-dopo { margin: 4px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.do-dopo [hidden] { display: none; }
.do-dopo .note a { color: var(--blue); font-weight: 800; }
.do-scopo { margin: 0 0 6px; padding: 0; border: 0; }
.do-scopo legend { padding: 0; margin: 0 0 4px; font-weight: 800; font-size: 16px; color: var(--ink); }
.do-scopo.errore legend, .do-scopo.errore .do-spunta span { color: #B42318; }
.do-recesso { margin-top: 16px; background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.do-recesso p { margin: 0 0 8px; color: var(--soft); font-weight: 600; }
.do-recesso .err { margin: 4px 0 8px; }
.do-dns { margin-top: 16px; background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.do-dns-tit { margin: 0 0 8px; font-weight: 800; }
.do-passi { margin: 0; padding-left: 22px; color: var(--soft); font-weight: 600; font-size: 15px; }
.do-passi li { margin: 6px 0; }
.do-tab { margin: 8px 0 4px; background: #fff; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.do-riga { display: grid; grid-template-columns: 70px 90px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.do-riga:first-child { border-top: 0; }
.do-intesta { font-size: 13px; font-weight: 800; color: var(--mute); background: var(--tint); }
.do-riga code, .do-auth { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.do-auth { background: var(--tint); padding: 4px 8px; border-radius: 8px; }
.do-copia { font: inherit; font-size: 13px; font-weight: 800; color: var(--blue); background: none; border: 2px solid var(--line); border-radius: 99px; padding: 4px 10px; cursor: pointer; }
.do-copia:hover, .do-copia:focus-visible { border-color: var(--blue); outline: none; }
.do-trasf { margin-top: 16px; background: var(--bg); border-radius: 16px; padding: 14px 16px; }
.do-trasf p { margin: 0 0 8px; color: var(--soft); font-weight: 600; }
.do-codice { margin-top: 8px; }
.do-gratis { margin-top: 10px; }
.do-gratis dd a { color: var(--blue); overflow-wrap: anywhere; }
.do-mensile { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-top: 16px; background: var(--tint); border-radius: 16px; padding: 14px 16px; }
.do-mensile p { margin: 0; flex: 1 1 260px; color: var(--soft); font-weight: 700; font-size: 15px; line-height: 1.45; }
.do-mensile .btn { flex: none; }
.do-opzioni.do-uno { grid-template-columns: 1fr; }
@media (max-width: 560px) {
  .do-opzioni, .do-campi { grid-template-columns: 1fr; }
  .do-form > .btn { flex: 1 1 100%; }
  .do-risultati li { grid-template-columns: 1fr auto; }
  .do-risultati .do-nome { grid-column: 1 / -1; }
  .do-risultati li > span:last-child:empty { display: none; }
  .do-riga { grid-template-columns: 54px 1fr; }
  .do-riga > span:nth-child(3) { grid-column: 1 / -1; }
  .do-intesta { display: none; }
}

/* «La tua email» (assets/area-email.js): sotto i domini, stessi mattoni del riquadro Dominio */
.em-elenco:empty { display: none; }
.em-elenco { margin-top: 12px; }
.em-sotto { margin: 6px 0 0; color: var(--soft); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.em-sotto b { color: var(--ink); }
.em-lista { list-style: none; margin: 16px 0 0; padding: 0; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; }
.em-ind { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.em-ind:first-child { border-top: 0; }
.em-chi b { display: block; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.em-chi span { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--soft); overflow-wrap: anywhere; }
.em-az { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.em-az .btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.em-ind > .do-recesso, .em-ind > .em-form { grid-column: 1 / -1; margin-top: 4px; }
.em-conta { font-size: 14px; }
.em-form .em-nome { flex: 1 1 100%; }
.em-campo { display: flex; align-items: stretch; }
.em-campo input { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.em-dopo { display: flex; align-items: center; padding: 0 12px; background: var(--tint); border: 2px solid var(--line); border-left: 0; border-radius: 0 14px 14px 0; font-weight: 800; color: var(--soft); max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-form .em-nota { flex-basis: 100%; margin: 0; font-size: 14px; }
.em-avviso { margin-top: 12px; }
.em-attenzione { margin: 4px 0 10px; }
.em-rec { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--mute); }
.em-ok { color: #17723B; }
.em-manca { color: #9B2C1C; }
.em-guida { margin-top: 16px; background: var(--bg); border-radius: 16px; padding: 4px 16px; }
.em-guida summary { cursor: pointer; font-weight: 800; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.em-guida summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.em-guida h4 { margin: 14px 0 4px; font-size: 16px; }
.em-guida p { margin: 6px 0 12px; color: var(--soft); font-weight: 600; font-size: 15px; }
.em-guida a { color: var(--blue); font-weight: 800; }
.em-server { margin-top: 10px; }
.em-server div { background: #fff; }
.em-server dd { overflow-wrap: anywhere; font-size: 15px; }
@media (max-width: 560px) {
  .em-ind { grid-template-columns: minmax(0, 1fr) auto; }
  .em-az { grid-column: 1 / -1; justify-content: flex-start; }
  .em-az .btn { flex: 1 1 auto; }
  /* il dominio dopo la @ non si taglia: va sotto il campo, per intero */
  .em-campo { flex-direction: column; }
  .em-campo input { border-radius: 14px; }
  .em-dopo { max-width: none; white-space: normal; overflow-wrap: anywhere; background: none; border: 0; padding: 4px 2px 0; }
  /* record DNS: tipo e nome sulla stessa riga, il nome intero */
  .em-tab .do-riga { grid-template-columns: auto minmax(0, 1fr); }
  .em-tab code { font-size: 13px; }
}

/* Dati di fatturazione (area clienti, pannello Fatture) */
#pFatture .card + .card { margin-top: 16px; }
.ar-fatt-az { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.ar-fatt .ar-dati dd { overflow-wrap: anywhere; }

/* area clienti: riquadro degli elenchi del sito (assets/area.js, riquadroElenchi) */
.ar-elenchi { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; }
.ar-elenchi:empty { display: none; }
.ar-el { display: flex; align-items: center; gap: 12px; background: var(--tint); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--ink); min-height: 48px; }
.ar-el:hover { background: #E4EEFB; }
.ar-el:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ar-el-ic { width: 38px; height: 38px; border-radius: 12px; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; }
.ar-el-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ar-el-t { flex: 1; min-width: 0; }
.ar-el-t b { display: block; font-size: 16px; line-height: 1.25; }
.ar-el-t small { display: block; font-size: 13px; font-weight: 700; color: var(--mute); margin-top: 2px; }
.ar-el-vai { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: var(--blue); font-size: 15px; white-space: nowrap; }
.ar-el-vai svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- «Chi può aggiornare il sito»: collaboratori con ruoli (assets/area-collaboratori.js) ---------- */
.ar-nav[data-n="7"], .ar-nav[data-n="8"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .ar-nav[data-n="7"], .ar-nav[data-n="8"] { grid-template-columns: 1fr 1fr; } .ar-nav[data-n="7"] .ar-box:last-child { grid-column: 1 / -1; } }
#acElenco .card + .card { margin-top: 14px; }
.ac-testa { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin: 0 0 14px; }
.ac-testa h3 { font-size: 21px; margin: 0; }
.ac-conta { font-size: 14px; font-weight: 800; color: var(--mute); }
.ac-vuoto { margin: 0 0 16px; color: var(--soft); font-weight: 600; font-size: 15px; }
.ac-persone { list-style: none; margin: 0 0 16px; padding: 0; }
.ac-persona { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 10px 16px; align-items: end; padding: 14px 0; border-top: 1px solid var(--line); }
.ac-persona:first-child { border-top: 0; padding-top: 0; }
.ac-chi { min-width: 0; }
.ac-chi b { display: block; font-size: 17px; line-height: 1.25; }
.ac-chi span { display: block; font-size: 14.5px; font-weight: 700; color: var(--soft); overflow-wrap: anywhere; }
.ac-chi small { display: block; font-size: 13.5px; font-weight: 600; color: var(--mute); margin-top: 4px; }
.ac-attesa .ac-chi small { color: #7A5A00; }
.ac-ruolo { margin: 0; font-size: 13.5px; }
.ac-ruolo select { min-height: 46px; padding-left: 12px; padding-right: 30px; text-overflow: ellipsis; }
.ac-persona .ac-az { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.ac-az .btn { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.ac-chiedi { flex: 1 1 100%; text-align: right; font-weight: 800; font-size: 14.5px; color: var(--ink); }
.ac-invita { min-height: 48px; }
.ac-pieno { margin: 0; font-size: 14px; font-weight: 700; }
.ac-form { border-top: 1px solid var(--line); padding-top: 16px; }
.ac-form h4 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; margin: 0 0 12px; }
.ac-coppia { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ac-scelte { border: 0; margin: 0 0 12px; padding: 0; }
.ac-scelte legend { font-weight: 800; font-size: 15px; margin: 0 0 8px; padding: 0; }
.ac-scelta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; margin: 0 0 8px; }
.ac-scelta:has(input:checked) { border-color: var(--blue); background: var(--tint); }
.ac-scelta input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.ac-scelta b { display: block; font-size: 16px; }
.ac-scelta small { display: block; font-size: 14px; font-weight: 600; color: var(--soft); margin-top: 2px; line-height: 1.4; }
.ac-mai { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: var(--soft); }
.ac-form .note { margin: 0 0 8px; }
.ac-form-az { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ac-form-az .btn { min-height: 48px; }
/* il collaboratore: siti che aggiorna per altri e «Prenotazioni e messaggi» */
.ac-tit { margin-top: 26px; }
.ac-collab .ar-az .btn { font-size: 16px; }
.ac-collab [data-ac-vista][aria-expanded=true] { background: var(--tint); border-color: var(--blue); }
.ac-vista { flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 14px; }
.ac-vista h3 { font-size: 18px; margin: 0 0 10px; }
.ac-vista .ac-vuoto + h3, .ac-vista .ac-lista + h3 { margin-top: 18px; }
.ac-lista { list-style: none; margin: 0; padding: 0; }
.ac-lista > li { display: flex; gap: 10px 16px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-lista > li:first-child { border-top: 0; padding-top: 0; }
.ac-pren, .ac-msg { flex: 1 1 260px; min-width: 0; }
.ac-pren b, .ac-msg b { display: block; font-size: 16px; }
.ac-pren b::first-letter { text-transform: uppercase; }
.ac-pren span, .ac-msg small { display: block; font-size: 14.5px; font-weight: 600; color: var(--soft); overflow-wrap: anywhere; }
.ac-rec a { font-weight: 800; }
.ac-note { font-style: italic; }
.ac-stato { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 800; color: var(--mute); }
.ac-stato.da_confermare { color: #7A5A00; }
.ac-stato.confermata { color: #146C3A; }
.ac-msg b em { font-style: normal; font-size: 13px; font-weight: 800; color: #9B2C1C; margin-left: 6px; }
.ac-msg dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14.5px; }
.ac-msg dt { color: var(--mute); font-weight: 700; }
.ac-msg dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ac-lette { margin-top: 10px; min-height: 44px; }
@media (max-width: 560px) {
  .ac-persona { grid-template-columns: 1fr; }
  .ac-coppia { grid-template-columns: 1fr; }
  .ac-persona .ac-az .btn, .ac-form-az .btn { flex: 1 1 auto; }
  .ac-lista .ac-az { width: 100%; display: flex; gap: 8px; }
  .ac-lista .ac-az .btn { flex: 1; }
  .ac-msg dl { grid-template-columns: 1fr; }
  .ac-msg dd { margin-bottom: 4px; }
}
/* pagina «Accedi»: l'invito di un titolare (assets/accedi.js, #invito=…) */
.pr-invito { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 18px 20px; margin: 0 0 14px; box-shadow: 0 2px 0 var(--line); border-left: 6px solid var(--yellow-dark); }
.pr-invito-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.pr-invito-ic svg { width: 24px; height: 24px; }
.pr-invito-t { margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ink); }
.pr-invito-s { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--soft); line-height: 1.45; overflow-wrap: anywhere; }
.pr-invito-s:empty { display: none; }
.pr-invito.pr-invito-no { border-left-color: var(--red); }
.pr-invito.pr-invito-no .pr-invito-ic { background: #FBEBEB; color: #9B2C1C; }
