/* (c) 2026 Ciegi Soft di Cavallaro Gaetano - www.ciegisoft.com - tutti i diritti riservati. Licenza d'uso ad Arteca S.p.A.
 * «Come installare l'app» (ArtecaVisite 1.72.0 / Ordini online 1.18.17): guida animata Android, iPhone/iPad, computer.
 * File IDENTICO in VisiteClienti/css e OrdiniClienti/css (cambia solo il tema scelto dalla classe del body).
 * Niente stili in linea: il portale ha una Content-Security-Policy senza 'unsafe-inline'. */
:root { color-scheme: light; --tema: #1f3b73; --tema-scuro: #152a52; --tema-testa: #1f3b73; --tema-testa-testo: #fff; --sfondo: #f4f6fa;
        --bordo: #d8dee8; --testo: #1f2937; --tenue: #6b7280; --dito: rgba(255, 159, 28, .9); }
body.tema-portale { --tema: #2f7a55; --tema-scuro: #1e4a33; --tema-testa: #b9e0c9; --tema-testa-testo: #1e4a33; --sfondo: #f3f8f5; --bordo: #d9e8df; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--sfondo); color: var(--testo); font-size: 16px; line-height: 1.4; }
.ins-testa { background: var(--tema-testa); color: var(--tema-testa-testo); display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; }
.ins-testa img { height: 30px; width: auto; }
.ins-testa h1 { font-size: 1.05rem; font-weight: 600; margin: 0; }
main { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 2.5rem; }
.ins-intro { margin: 0 0 .9rem; color: var(--tenue); font-size: .95rem; }
.ins-schede { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: 1rem; }
.ins-schede button { border: 1px solid var(--bordo); background: #fff; color: var(--testo); border-radius: 10px; padding: .55rem .3rem; font-size: .92rem; cursor: pointer; line-height: 1.2; }
.ins-schede button span { display: block; font-size: 1.3rem; }
.ins-schede button[aria-selected="true"] { background: var(--tema); border-color: var(--tema); color: #fff; font-weight: 600; }
.ins-player { background: #fff; border: 1px solid var(--bordo); border-radius: 14px; padding: 1rem; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 620px) { .ins-player { grid-template-columns: 1fr; justify-items: center; } }
.ins-passo { font-size: .8rem; color: var(--tenue); text-transform: uppercase; letter-spacing: .04em; }
.ins-titolo { margin: .15rem 0 .4rem; font-size: 1.2rem; color: var(--tema-scuro); }
.ins-testo { margin: 0 0 .8rem; }
.ins-testo b { color: var(--tema-scuro); }
.ins-comandi { display: flex; gap: .4rem; flex-wrap: wrap; }
.ins-comandi button { border: 1px solid var(--bordo); background: #fff; border-radius: 8px; padding: .5rem .8rem; font-size: .92rem; cursor: pointer; color: var(--testo); }
.ins-comandi button.primario { background: var(--tema); border-color: var(--tema); color: #fff; }
.ins-comandi button:disabled { opacity: .4; cursor: default; }
.ins-punti { display: flex; gap: .35rem; margin-top: .8rem; }
.ins-punti button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: var(--bordo); padding: 0; cursor: pointer; }
.ins-punti button.on { background: var(--tema); }
.ins-elenco { margin: 1.2rem 0 0; padding-left: 1.3rem; }
.ins-elenco li { margin: .35rem 0; cursor: pointer; }
.ins-elenco li.on { font-weight: 600; color: var(--tema-scuro); }
.ins-nota { background: #fff8e6; border: 1px solid #f3d27a; border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; margin: 1rem 0 0; }
.ins-torna { margin-top: 1.4rem; text-align: center; }
.ins-torna a { color: var(--tema); font-weight: 600; }

/* ---------- palco: dispositivo + dito ---------- */
.ins-palco { position: relative; }
.ins-dito { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--dito);
            border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); pointer-events: none; opacity: 0; z-index: 20;
            transition: transform .6s cubic-bezier(.4,.1,.3,1), opacity .25s; }
.ins-dito.vede { opacity: 1; }
.ins-dito.tocca::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--dito); animation: onda .5s ease-out; }
.ins-dito.tocca { animation: premi .35s ease-out; }
@keyframes onda { from { transform: scale(1); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes premi { 50% { width: 28px; height: 28px; margin: -14px 0 0 -14px; } }
.premuto { filter: brightness(.88); outline: 2px solid var(--dito); outline-offset: 1px; }

/* telefono */
.tel { width: 250px; height: 500px; border-radius: 34px; background: #111; padding: 10px; box-shadow: 0 6px 22px rgba(0,0,0,.25); }
.tel .schermo { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; position: relative; font-size: 12px; color: #222; }
.tel.ios .schermo { border-radius: 28px; }
.sbarra { height: 22px; display: flex; justify-content: space-between; align-items: center; padding: 0 14px; font-size: 10px; font-weight: 600; color: #222; }
.tel.ios .sbarra { height: 30px; padding: 0 22px; }
.sbarra.scura { background: #202124; color: #eee; }

/* pagina dell'app (finta) */
.pag { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; background: var(--sfondo); }
.tel.ios .pag { top: 30px; bottom: 74px; }
.pag .p-testa { background: var(--tema-testa); color: var(--tema-testa-testo); font-weight: 700; padding: 8px 10px; font-size: 12px; }
.pag .p-corpo { padding: 14px 12px; }
.pag .p-tit { font-size: 15px; font-weight: 700; margin: 4px 0 10px; color: var(--tema-scuro); }
.pag .p-campo { height: 26px; border: 1px solid #cfd6e2; border-radius: 6px; background: #fff; margin: 4px 0 10px; font-size: 10px; color: #999; padding: 6px 7px; }
.pag .p-lab { font-size: 10px; color: #555; }
.pag .p-btn { height: 30px; border-radius: 6px; background: var(--tema); color: #fff; text-align: center; font-weight: 600; padding-top: 8px; margin-top: 6px; }
.pag .p-riga { height: 8px; background: #e3e7ee; border-radius: 4px; margin: 7px 0; }
.pag .p-riga.corta { width: 60%; }

/* Android */
.a-chrome { position: absolute; left: 0; right: 0; top: 22px; height: 38px; background: #fff; border-bottom: 1px solid #e3e3e3; display: flex; align-items: center; gap: 6px; padding: 0 8px; z-index: 2; }
.a-chrome .url { flex: 1; height: 26px; border-radius: 13px; background: #f1f3f4; font-size: 10px; color: #333; padding: 7px 10px; white-space: nowrap; overflow: hidden; }
.a-chrome .kebab { width: 22px; height: 26px; font-size: 16px; font-weight: 700; text-align: center; line-height: 26px; color: #444; }
.a-chrome + .pag { top: 60px; }
.a-mail { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; padding: 10px 12px; }
.a-mail .m-da { font-weight: 700; font-size: 12px; }
.a-mail .m-ogg { color: #555; margin-bottom: 10px; }
.a-mail .m-link { color: #1a62d6; text-decoration: underline; word-break: break-all; display: inline-block; padding: 2px 0; }
.velo { position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 5; }
.a-dlg { position: absolute; left: 16px; right: 16px; top: 34%; background: #fff; border-radius: 18px; padding: 16px 16px 10px; z-index: 6; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.a-dlg.alto { top: 22%; }
.a-dlg .d-tit { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.a-dlg .d-txt { font-size: 11px; color: #444; }
.a-dlg .d-ico { width: 34px; height: 34px; border-radius: 8px; display: block; margin: 0 auto 8px; }
.a-dlg .d-scudo { font-size: 26px; text-align: center; margin-bottom: 4px; }
.a-btns { display: flex; justify-content: flex-end; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.a-btn { color: #1a62d6; font-weight: 600; font-size: 12px; padding: 7px 10px; border-radius: 16px; }
.a-btn.pieno { background: #1a62d6; color: #fff; }
.a-dlg .d-piu { color: #1a62d6; font-size: 11px; margin-top: 8px; font-weight: 600; display: inline-block; padding: 3px 0; }
.a-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 16px 16px 0 0; padding: 14px; z-index: 6; box-shadow: 0 -4px 14px rgba(0,0,0,.2); animation: sale .35s ease-out; }
@keyframes sale { from { transform: translateY(100%); } }
.a-snack { position: absolute; left: 10px; right: 10px; bottom: 16px; background: #323232; color: #fff; border-radius: 8px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; z-index: 6; font-size: 11px; animation: sale .35s ease-out; }
.a-snack .apri { color: #8ab4f8; font-weight: 700; padding: 4px 8px; }
.a-menu { position: absolute; right: 6px; top: 26px; width: 160px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 6; padding: 6px 0; animation: apri .2s ease-out; transform-origin: top right; }
@keyframes apri { from { transform: scale(.6); opacity: 0; } }
.a-menu div { padding: 8px 12px; font-size: 11px; }
.a-imp { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; background: #fff; z-index: 7; }
.a-imp .i-head { display: flex; align-items: center; gap: 10px; padding: 12px; font-size: 14px; font-weight: 600; }
.a-imp .indietro { font-size: 16px; padding: 2px 6px; }
.a-imp .i-app { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eee; }
.a-imp .i-app .ic { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#ea4335 0 33%, #fbbc04 0 66%, #34a853 0); }
.a-imp .i-riga { display: flex; justify-content: space-between; align-items: center; padding: 14px; font-size: 12px; }
.levetta { width: 36px; height: 20px; border-radius: 10px; background: #bbb; position: relative; transition: background .3s; }
.levetta::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .3s; }
.levetta.on { background: #1a62d6; }
.levetta.on::after { left: 18px; }
.a-home { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; background: linear-gradient(160deg, #3a6186, #89253e); padding: 26px 14px; display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: 18px 6px; }
.tel.ios .a-home { top: 30px; background: linear-gradient(160deg, #4b6cb7, #182848); }
.a-home .ap { text-align: center; color: #fff; font-size: 9px; }
.a-home .ap i { display: block; width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 4px; background: rgba(255,255,255,.3); }
.a-home .ap img { display: block; width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 4px; background: #fff; }
.tel.ios .a-home .ap i, .tel.ios .a-home .ap img { border-radius: 10px; }
.a-home .ap.nuova img { animation: compare .6s ease-out; }
@keyframes compare { from { transform: scale(0); } 70% { transform: scale(1.15); } }
.scarica { position: absolute; left: 12px; right: 12px; top: 70px; z-index: 3; background: #e8f0fe; border-radius: 8px; padding: 8px 10px; font-size: 11px; }
.scarica .barra { height: 4px; border-radius: 2px; background: #c7d7f5; margin-top: 6px; overflow: hidden; }
.scarica .barra::after { content: ""; display: block; height: 100%; width: 0; background: #1a62d6; animation: carica 1.1s ease-out forwards; }
@keyframes carica { to { width: 100%; } }

/* iPhone / Safari */
.i-giu { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: #f7f7f7; border-top: 1px solid #ddd; padding: 6px 10px 0; z-index: 3; }
.i-giu .url { height: 28px; border-radius: 10px; background: #e6e6e9; font-size: 10px; text-align: center; padding-top: 8px; color: #222; }
.i-giu .barra { display: flex; justify-content: space-around; align-items: center; height: 32px; color: #0a7aff; font-size: 15px; }
.i-giu .barra span { padding: 2px 6px; }
.i-giu svg, .i-sheet svg { width: 18px; height: 18px; stroke: #0a7aff; fill: none; stroke-width: 2; vertical-align: middle; }
.i-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 46%; background: #f2f2f6; border-radius: 14px 14px 0 0; z-index: 6; overflow: hidden; animation: sale .35s ease-out; }
.i-sheet .s-testa { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #e3e3e8; }
.i-sheet .s-testa img { width: 30px; height: 30px; border-radius: 7px; }
.i-sheet .s-testa small { display: block; color: #888; font-size: 9px; }
.i-sheet .s-lista { transition: transform 1s ease-in-out; }
.i-sheet.scorri .s-lista { transform: translateY(-150px); }
.i-sheet .s-gruppo { background: #fff; border-radius: 10px; margin: 8px 10px; }
.i-sheet .s-riga { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid #ececf0; font-size: 11px; }
.i-sheet .s-riga:last-child { border-bottom: 0; }
.i-sheet .s-riga em { font-style: normal; color: #555; }
.i-agg { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; background: #f2f2f6; z-index: 7; animation: sale .35s ease-out; }
.i-agg .g-testa { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 12px; }
.i-agg .g-testa span { color: #0a7aff; padding: 3px 4px; }
.i-agg .g-testa b { font-size: 12px; }
.i-agg .g-testa .agg { font-weight: 700; }
.i-agg .g-box { background: #fff; border-radius: 10px; margin: 10px; padding: 10px; display: flex; gap: 10px; align-items: center; }
.i-agg .g-box img { width: 44px; height: 44px; border-radius: 10px; }
.i-agg .g-box div { flex: 1; border-bottom: 1px solid #e3e3e8; padding: 4px 0; font-size: 12px; }
.i-agg .g-box small { display: block; color: #999; font-size: 9px; border: 0; }

/* computer */
.pc { width: 340px; height: 250px; border-radius: 10px; background: #fff; border: 1px solid #c8ccd4; box-shadow: 0 6px 22px rgba(0,0,0,.2); overflow: hidden; position: relative; font-size: 11px; }
.pc .w-schede { height: 24px; background: #dee1e6; display: flex; align-items: flex-end; padding-left: 50px; position: relative; }
.pc .w-schede::before { content: "● ● ●"; position: absolute; left: 8px; top: 5px; font-size: 8px; color: #999; letter-spacing: 1px; }
.pc .w-scheda { background: #fff; border-radius: 8px 8px 0 0; padding: 4px 12px; font-size: 10px; }
.pc .w-url { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid #e3e3e3; }
.pc .w-url .url { flex: 1; height: 22px; border-radius: 11px; background: #f1f3f4; padding: 4px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; }
.pc .w-url svg { width: 15px; height: 15px; stroke: #444; fill: none; stroke-width: 1.8; display: block; }
.pc .inst { padding: 1px 3px; border-radius: 4px; }
.pc .kebab { font-weight: 700; font-size: 14px; width: 18px; text-align: center; }
.pc .w-pag { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; }
.pc .w-pag .pag { top: 0; }
.pc.edge .w-url .url { background: #f3f3f3; }
.pc-pop { position: absolute; right: 26px; top: 56px; width: 200px; background: #fff; border-radius: 8px; box-shadow: 0 4px 18px rgba(0,0,0,.3); padding: 12px; z-index: 6; animation: apri .2s ease-out; transform-origin: top right; }
.pc-pop .t { font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.pc-pop .r { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #555; }
.pc-pop .r img { width: 22px; height: 22px; border-radius: 5px; }
.pc-pop .a-btns { margin-top: 10px; }
.pc-pop .b { border: 1px solid #ccc; border-radius: 14px; padding: 4px 10px; font-size: 10px; }
.pc-pop .b.pieno { background: #1a62d6; border-color: #1a62d6; color: #fff; }
.pc-menu { position: absolute; right: 6px; top: 50px; width: 170px; background: #fff; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 6; padding: 4px 0; animation: apri .2s ease-out; transform-origin: top right; }
.pc-menu div { padding: 5px 12px; font-size: 10px; display: flex; justify-content: space-between; }
.pc-menu.sub { right: 176px; top: 120px; width: 160px; transform-origin: top right; }
.pc-finestra { position: absolute; inset: 0; background: #fff; z-index: 8; animation: apri .35s ease-out; }
.pc-finestra .f-titolo { height: 26px; background: var(--tema-testa); color: var(--tema-testa-testo); display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 10px; font-weight: 600; }
.pc-finestra .f-titolo img { width: 14px; height: 14px; border-radius: 3px; }
.pc-finestra .pag { top: 26px; }
.mac-barra { height: 18px; background: #ececec; display: flex; gap: 10px; padding: 0 10px; align-items: center; font-size: 10px; border-bottom: 1px solid #ddd; }
.mac-barra span { padding: 1px 5px; border-radius: 3px; }
.mac-barra span.on { background: #0a62d6; color: #fff; }
.pc.mac .w-schede { top: 0; }
.pc.mac .w-pag { top: 72px; }
.pc.mac .pc-menu { left: 52px; right: auto; top: 18px; transform-origin: top left; }
.dock { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 5px 8px; display: flex; gap: 6px; z-index: 9; backdrop-filter: blur(4px); }
.dock i { width: 26px; height: 26px; border-radius: 7px; background: #c9ced8; display: block; }
.dock img { width: 26px; height: 26px; border-radius: 7px; animation: compare .6s ease-out; }
.tel.ios .pag.piena { bottom: 0; }
