/* Nexus – webapp del cliente. Un solo colore di marca (--brand), leggibile al sole sul telefono. */
:root { --brand: #2a6fdb; --ink: #16202c; --muted: #5d6b7a; --line: #e2e7ee; --bg: #f5f7fa; --card: #fff; --ok: #1f9d55; --bad: #c0392b; --r: 14px; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.wrap.is-wide { max-width: 1180px; }
.hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.hd__r { display: flex; gap: 8px; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.brand__dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; flex: none; }
.brand b { display: block; font-size: 1.15rem; line-height: 1.2; } .brand small { display: block; color: var(--muted); }
.langs { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.langs button { border: 0; background: transparent; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.langs button.on { background: var(--brand); color: #fff; }
.intro { font-size: 1.05rem; color: #2d3b4a; margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 1.25rem; } .card h3 { margin: 18px 0 8px; font-size: .95rem; color: var(--muted); font-weight: 600; }
.narrow { max-width: 420px; margin: 24px auto; }
.muted { color: var(--muted); } .err { color: var(--bad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sec { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn.danger { color: var(--bad); }
.x { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--muted); flex: none; }
.x:hover { background: #f1f4f8; }
.f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.f > span { font-size: .88rem; font-weight: 600; color: #34414f; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #cfd7e2; border-radius: 10px; background: #fff; }
textarea { min-height: 0; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand); flex: none; }
.two { display: grid; grid-template-columns: 1fr; gap: 0 12px; } .three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; } .chk.sm { margin: 0; gap: 4px; font-size: .85rem; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.svcs { display: grid; gap: 8px; }
.svc { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; min-height: 56px; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
.svc b { font-size: 1.02rem; } .svc small { grid-column: 2; grid-row: 1; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 9%, #fff); color: var(--ink) !important; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; } .svc span { grid-column: 1 / -1; }
@media (hover: hover) { .svc:hover { border-color: color-mix(in srgb, var(--brand) 55%, #fff); } }
.svc small { color: var(--muted); } .svc span { color: #3b4856; font-size: .9rem; }
.svc.on { border-color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.day { flex: none; width: 64px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; cursor: pointer; scroll-snap-align: start; }
.day b { font-size: 1.2rem; } .day small { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.day.on { background: var(--brand); color: #fff; border-color: var(--brand); } .day.on small { color: #fff; }
.day:disabled { opacity: .35; cursor: default; }
.more { margin-top: 8px; max-width: 200px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.done { text-align: center; padding: 18px 0; } .done h2 { color: var(--ok); }
.cls h3 { text-transform: capitalize; }
.cl { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cl__time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 52px; }
.cl__body { flex: 1; min-width: 140px; } .cl__body small { display: block; color: var(--muted); }
.cl__spots { font-size: .85rem; color: var(--ok); font-weight: 600; } .cl__spots.is-full { color: var(--bad); }
.row { display: flex; gap: 8px; margin-top: 12px; }
.ft { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; padding: 16px 2px; }
.ft div { display: flex; flex-direction: column; gap: 4px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100% - 32px); z-index: 50; }
.toast.is-on { opacity: 1; transform: translateX(-50%); } .toast.is-bad { background: var(--bad); }
.mbg { position: fixed; inset: 0; background: rgb(15 23 42 / .45); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
@media (min-width: 640px) { .mbg { align-items: center; padding: 16px; } }
.m { background: #fff; width: 100%; max-width: 640px; max-height: 92vh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; }
@media (min-width: 640px) { .m { border-radius: 16px; } }
.m__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; } .m__head h2 { margin: 0; font-size: 1.15rem; }
.m__body { padding: 6px 16px; overflow: auto; } .m__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
/* area riservata */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .bar input { width: auto; } .bar input[type=search] { min-width: 200px; flex: 1; max-width: 360px; }
.grow { flex: 1; }
.dayh { text-transform: capitalize; font-size: 1.1rem; margin: 6px 0 10px; }
.agenda { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.it { display: flex; gap: 12px; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 8px 10px; cursor: pointer; width: 100%; }
.it.is-class { border-left-color: #e08a00; } .it.is-event { border-left-color: #7c3aed; } .it.is-off { opacity: .55; text-decoration: line-through; }
.it__t { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; min-width: 48px; } .it__t small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.it__b { display: flex; flex-direction: column; min-width: 0; } .it__b small { color: var(--muted); }
.week { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; } .week .it { flex-direction: column; gap: 2px; padding: 6px; font-size: .82rem; } }
.week__d { display: flex; flex-direction: column; gap: 4px; } .week__d.is-today .week__h { background: var(--brand); color: #fff; }
.week__h { border: 0; background: #e9eef5; border-radius: 8px; padding: 6px; font-weight: 700; cursor: pointer; }
.mon { margin: 0 8px; text-transform: capitalize; font-size: 1.15rem; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month__h { font-size: .78rem; color: var(--muted); text-align: center; font-weight: 600; }
.month__d { min-height: 86px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px; display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer; overflow: hidden; }
.month__d.is-out { opacity: .45; } .month__d.is-today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); } .month__d.is-closed { background: #f6f6f6; }
.dot { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; padding: 0 4px; background: color-mix(in srgb, var(--brand) 14%, white); }
.dot.is-class { background: #fdf0d9; }
/* telefono: nelle celle strette del mese solo l'orario, intero (il titolo è nel giorno) */
@media (max-width: 560px) { .month__d { min-height: 70px; padding: 3px 2px; } .dot { font-size: .64rem; padding: 0 2px; text-overflow: clip; } .dot__n { display: none; } } .dot.is-event { background: #efe7fd; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.rowi { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; } .rowi small { color: var(--muted); }
.hist { margin-top: 8px; } .hist__i { font-size: .9rem; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.clx { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.clx summary { display: flex; gap: 12px; align-items: center; padding: 10px 12px; cursor: pointer; flex-wrap: wrap; } .clx summary b { flex: 1; }
.ppl { padding: 0 12px 12px; } .ppl__i { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); } .ppl__i small { color: var(--muted); }
.ppl__add { margin-top: 8px; }
.ex { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ex__r { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 36px; gap: 6px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.ex__r .is-wide { grid-column: 1 / -2; }
.tblw { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: .95rem; } .tbl th, .tbl td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl td small { display: block; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.notes { white-space: pre-wrap; background: #f6f8fb; border-radius: 10px; padding: 10px; }
.hours__r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); } .hours__r > b { width: 44px; }
.win { display: inline-flex; gap: 4px; align-items: center; } .win input { width: 112px; }
.srow, .corow { display: grid; gap: 6px; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.srow { grid-template-columns: minmax(0, 1fr) 90px 100px 36px; }
.corow { grid-template-columns: minmax(0, 1fr) 36px; } .corow .dows { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 900px) { .corow { grid-template-columns: minmax(0, 1fr) auto 110px 80px 80px 140px 36px; } .corow .dows { grid-column: auto; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.corow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .corow > input:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .corow > input:first-child { grid-column: auto; } }
.cl { flex-wrap: nowrap; } .cl__body { min-width: 0; } .cl .btn { flex: none; }
/* 2.3 – personal trainer (pacchetti, pagamenti, progressi) e CRM (trattative, attività) */
.srow.is-prod { grid-template-columns: minmax(0, 1fr) 70px 70px 90px 36px; }
.srow.is-stage { grid-template-columns: minmax(0, 1fr) 120px 36px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpis.sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 4px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.kpi small { color: var(--muted); font-size: .8rem; } .kpi b { font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; } .kpi span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpis.sm .kpi { padding: 8px 10px; } .kpis.sm .kpi b { font-size: 1.05rem; }
.home { display: grid; grid-template-columns: 1fr; gap: 0 16px; align-items: start; }
@media (min-width: 900px) { .home { grid-template-columns: 1fr 1fr; } }
.home .rows, .home .card > .rowi { display: grid; gap: 6px; } .home .card > .rowi { margin-bottom: 6px; width: 100%; }
.hist__i.lnk { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px dashed var(--line); cursor: pointer; padding: 6px 0; }
.hist__i.lnk:hover { color: var(--brand); }
.cpanel h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cpanel h3 .btn { min-height: 32px; padding: 0 12px; }
.chartw { margin: 4px 0 8px; } .chart { width: 100%; height: 90px; display: block; }
.chart polyline { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; } .chart circle { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.grid3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
@media (min-width: 560px) { .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.pipe__col { background: #eef2f7; border-radius: 12px; padding: 10px; min-height: 160px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.pipe__col header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 2px 4px 6px; border-bottom: 3px solid var(--brand); }
.pipe__col.is-won header { border-color: var(--ok); } .pipe__col.is-lost header { border-color: #98a3b0; }
.pipe__col header small { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.deal { background: #fff; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: stretch; }
.deal.is-late { border-left: 4px solid var(--bad); }
.deal__b { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 10px; cursor: pointer; display: flex; flex-direction: column; }
.deal__b small { color: var(--muted); font-size: .82rem; }
.deal__mv { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 4px; }
.deal__mv .btn { min-height: 30px; padding: 0 10px; }
.task { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.task .chk { margin: 0; } .task.is-late .task__b b { color: var(--bad); } .task.is-done .task__b b { text-decoration: line-through; color: var(--muted); }
.task__b { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 6px 0; cursor: pointer; display: flex; flex-direction: column; }
.task__b small { color: var(--muted); font-size: .82rem; }
.tabs { overflow-x: auto; scrollbar-width: none; }
.prof { border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin: 14px 0; }
.prof > summary { cursor: pointer; font-weight: 600; padding: 12px 0; } .prof[open] > summary { border-bottom: 1px dashed var(--line); margin-bottom: 8px; }

/* 2.8 app installabile */
.inst { margin: .4rem 0 0; font-size: .85rem; color: var(--muted, #667); max-width: 34ch; }
#nx-install[hidden] { display: none; }

/* 3.49 – app di esempio */
/* 3.50 – app di esempio: selettore delle tre viste (cliente che prenota, area del cliente, gestionale) */
.demobar { position: sticky; top: 0; z-index: 30; display: grid; gap: 6px; margin: 0 -16px 6px; padding: 10px 16px; background: #171a21; color: #fff; }
.demobar__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.demobar__t { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; border: 1px solid #3a404c; border-radius: 999px; background: transparent; color: #dfe3ea; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.demobar__t.on { background: #fff; color: #171a21; border-color: #fff; }
.demobar small { color: #aab2c0; font-size: .8rem; }
.wrap.is-wide .demobar { margin: 0 -16px 6px; }
/* 3.50 – pagina del cliente: presentazione, contatti, area personale */
.hero { margin: 4px 0 16px; padding: 22px 20px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000)); color: #fff; }
.hero h1 { margin: 0; font-size: clamp(1.45rem, 5.5vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.hero p { margin: 8px 0 0; font-size: 1.02rem; opacity: .93; max-width: 46ch; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; margin-bottom: 8px; }
.chip { display: grid; gap: 1px; padding: 12px 14px; min-height: 56px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; min-width: 0; }
.chip small { color: var(--muted); font-size: .8rem; } .chip b { overflow-wrap: anywhere; font-weight: 600; }
@media (hover: hover) { .chip:hover { border-color: var(--brand); } }
.pl { list-style: none; margin: 0 0 12px; padding: 0; }
.pl__i { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); } .pl__i:last-child { border-bottom: 0; }
.pl__d { flex: none; width: 6.2rem; display: grid; } .pl__d small, .pl__w small { color: var(--muted); font-size: .86rem; }
.pl__w { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.pk__n { margin: 0 0 4px; } .pk__big { margin: 0 0 8px; font-size: 1.05rem; } .pk__big b { font-size: 2.2rem; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 999px; background: #e9edf3; overflow: hidden; margin-bottom: 6px; } .meter i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

/* 3.50.1 – esempi su tablet e computer: l'app dentro la sagoma di un telefono */
.demoshell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #e8eaef; }
.demobar--shell { margin: 0; padding: 12px 20px; justify-items: center; }
.demobar--shell .demobar__tabs { width: min(100%, 640px); }
.demobar__mode { flex: 0 0 auto; border-style: dashed; }
.phone { position: relative; flex: none; width: 414px; height: min(860px, calc(100dvh - 130px)); min-height: 480px; margin: 18px auto 24px; border: 12px solid #171a21; border-radius: 46px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(20, 24, 33, .28); }
.phone iframe { display: block; width: 100%; height: 100%; border: 0; }
.phone__ear { position: absolute; top: 6px; left: 50%; width: 84px; height: 6px; margin-left: -42px; border-radius: 6px; background: #171a21; opacity: .5; pointer-events: none; }

/* 3.53 – grafica su telefono: intestazione su una riga, schede che fanno capire che scorrono, righe che non si schiacciano */
.hd { flex-wrap: nowrap; } .brand { flex: 1 1 auto; } .brand > span:last-child { min-width: 0; }
.brand b, .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd__r, .hd > .langs { flex: none; }
.btn--out { gap: 6px; }
.ico-out { width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--ico-out) center / contain no-repeat; mask: var(--ico-out) center / contain no-repeat;
  --ico-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H6a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }
@media (max-width: 480px) {
  .hd { gap: 8px; padding: 14px 0; } .brand { gap: 10px; } .brand__dot { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; } .brand img { height: 40px; max-width: 120px; } .brand b { font-size: 1.05rem; }
  .langs button { padding: 7px 9px; font-size: .78rem; }
  .btn--out { width: 40px; min-height: 40px; padding: 0; } .btn--out .btn__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bar input[type=search] { flex: 1 1 100%; max-width: none; }
  .srow, .srow.is-prod, .srow.is-stage { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)) 36px; } .srow > :first-child { grid-column: 1 / -1; }
  .kpis:not(.sm) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis:not(.sm) > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.tabs { scroll-snap-type: x proximity; scroll-padding-inline: 24px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; } .tabs a { scroll-snap-align: start; }
.tabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.tabs.more-l { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); }
.tabs.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
/* barra degli esempi: le tre viste si leggono intere (vanno su due righe invece di tagliarsi con i puntini) */
.demobar__t { white-space: normal; text-overflow: clip; line-height: 1.15; padding: 6px 8px; font-size: .86rem; min-height: 44px; }

/* 3.58 – pagina pubblica: copertina, squadra, due colonne su computer e tre aspetti (vetrina, classico, notte) */
.wrap.is-pub { max-width: 1180px; }
.pub { display: grid; gap: 0; }
.pub__side, .pub__main { min-width: 0; }
@media (min-width: 980px) {
  .wrap.is-pub { padding-inline: 28px; }
  .pub--split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
  .pub--split .pub__side { position: sticky; top: 18px; }
  .pub:not(.pub--split) { max-width: 760px; margin-inline: auto; width: 100%; }
  .pub--split .hero { padding: 34px 30px; } .pub--split .hero h1 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
  .is-pub .hd { padding: 22px 0; } .is-pub .brand img { height: 54px; max-width: 220px; } .is-pub .brand__dot { width: 52px; height: 52px; border-radius: 16px; font-size: 1.2rem; } .is-pub .brand b { font-size: 1.3rem; }
}
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__in { position: relative; }
.hero--cover { display: flex; align-items: flex-end; min-height: clamp(230px, 46vw, 420px); padding-top: 90px; background: #10141b; }
.hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero--cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 14 20 / .05) 20%, color-mix(in srgb, var(--brand) 40%, rgb(8 10 16 / .88)) 100%); }
@media (min-width: 980px) { .pub--split .hero--cover { min-height: min(62vh, 560px); } }
.team { display: grid; gap: 8px; margin-bottom: 16px; }
.tm { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.tm__p { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.tm__p--i { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.tm__t { display: grid; min-width: 0; } .tm__t b { font-size: 1.05rem; } .tm__t small { color: var(--muted); }

/* aspetto «vetrina»: fondo tinto dal colore di marca, schede morbide, pulsanti a pillola, piccoli movimenti */
[data-style="vetrina"][data-view="pub"] { --r: 22px; --bg: color-mix(in srgb, var(--brand) 7%, #fbfaf7); --line: color-mix(in srgb, var(--brand) 14%, #e6e8ee); }
[data-style="vetrina"][data-view="pub"] body { background: radial-gradient(1200px 520px at 100% -10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%), var(--bg); background-attachment: fixed; }
[data-style="vetrina"][data-view="pub"] .hero { border-radius: 28px; box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--brand) 70%, #000); }
[data-style="vetrina"][data-view="pub"] .hero h1 { font-weight: 800; letter-spacing: -.025em; }
[data-style="vetrina"][data-view="pub"] .hero:not(.hero--cover)::before { content: ""; position: absolute; right: -70px; top: -90px; z-index: -1; width: 260px; height: 260px; border-radius: 50%; background: rgb(255 255 255 / .13); }
[data-style="vetrina"][data-view="pub"] .card { border: 0; border-radius: 26px; padding: 22px; box-shadow: 0 24px 46px -34px color-mix(in srgb, var(--brand) 55%, #000), 0 0 0 1px var(--line); }
[data-style="vetrina"][data-view="pub"] .card h2 { font-size: 1.5rem; letter-spacing: -.02em; }
[data-style="vetrina"][data-view="pub"] .btn { border-radius: 999px; min-height: 48px; padding: 0 24px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease; }
[data-style="vetrina"][data-view="pub"] .btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 22px -14px color-mix(in srgb, var(--brand) 80%, #000); }
[data-style="vetrina"][data-view="pub"] .btn:not(:disabled):active { transform: scale(.97); }
[data-style="vetrina"][data-view="pub"] :is(.svc, .chip, .tm) { border-radius: 18px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), border-color .2s ease, box-shadow .25s ease; }
[data-style="vetrina"][data-view="pub"] .svc { padding: 16px 18px; min-height: 64px; }
@media (hover: hover) { [data-style="vetrina"][data-view="pub"] :is(.svc, .chip):hover { transform: translateY(-3px); box-shadow: 0 16px 26px -20px color-mix(in srgb, var(--brand) 70%, #000); } }
[data-style="vetrina"][data-view="pub"] .svc small { background: color-mix(in srgb, var(--brand) 14%, #fff); font-weight: 700; }
[data-style="vetrina"][data-view="pub"] :is(.day, .slot) { border-radius: 14px; transition: transform .2s ease, background-color .2s ease; }
[data-style="vetrina"][data-view="pub"] :is(.day, .slot):not(:disabled):active { transform: scale(.94); }
[data-style="vetrina"][data-view="pub"] .tm__p { width: 72px; height: 72px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px color-mix(in srgb, var(--brand) 45%, #fff); }
[data-style="vetrina"][data-view="pub"] .brand__dot { border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  [data-style="vetrina"][data-view="pub"] .pub__side > *, [data-style="vetrina"][data-view="pub"] .pub__main > * { animation: nx-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  [data-style="vetrina"][data-view="pub"] .pub__side > :nth-child(2), [data-style="vetrina"][data-view="pub"] .pub__main > :nth-child(1) { animation-delay: .08s; }
  [data-style="vetrina"][data-view="pub"] .pub__side > :nth-child(3), [data-style="vetrina"][data-view="pub"] .pub__main > :nth-child(2) { animation-delay: .16s; }
  [data-style="vetrina"][data-view="pub"] .hero__bg { animation: nx-zoom 1.4s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes nx-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes nx-zoom { from { transform: scale(1.08); } to { transform: none; } }

/* aspetto «notte»: pagina pubblica scura */
[data-style="notte"][data-view="pub"] { --ink: #f1f3f7; --muted: #a2acba; --line: #2a3140; --bg: #0e1117; --card: #171c26; color-scheme: dark; }
[data-style="notte"][data-view="pub"] :is(.svc, .day, .slot, .chip, .langs, .btn.sec, .m, input, select, textarea) { background: var(--card); color: var(--ink); border-color: var(--line); }
[data-style="notte"][data-view="pub"] :is(.intro, .svc span, .f > span) { color: var(--muted); }
[data-style="notte"][data-view="pub"] .svc small { background: color-mix(in srgb, var(--brand) 30%, var(--card)); color: #fff !important; }
[data-style="notte"][data-view="pub"] :is(.day.on, .slot.on, .langs button.on) { background: var(--brand); color: #fff; border-color: var(--brand); }
[data-style="notte"][data-view="pub"] .card { border-radius: 22px; }
[data-style="notte"][data-view="pub"] a { color: color-mix(in srgb, var(--brand) 55%, #fff); } [data-style="notte"][data-view="pub"] a.chip { color: var(--ink); }
[data-style="notte"][data-view="pub"] .x:hover { background: #222938; }
/* sul telefono prima si prenota, poi si legge chi c'è e come contattarlo */
@media (max-width: 979px) { .pub--split { display: flex; flex-direction: column; } .pub--split .pub__side { display: contents; } .pub--split .hero { order: 1; } .pub--split .pub__main { order: 2; } .pub--split .team { order: 3; } .pub--split .contact { order: 4; margin-bottom: 16px; } }
/* 3.60 – fabbisogno calorico indicativo e misure scritte dal cliente */
.nut { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 10px 0; background: color-mix(in srgb, var(--brand, #2a6fdb) 6%, transparent); }
.nut__k { margin: 0 0 8px; font-size: 1rem; } .nut__k b { font-size: 2rem; letter-spacing: -.02em; }
.nut__m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; }
.nut__m span { display: grid; padding: 8px 10px; border-radius: 10px; background: var(--card, #fff); border: 1px solid var(--line); } .nut__m b { font-size: 1.1rem; }
.nut__warn { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: #fff3cd; color: #6b4b00; font-size: .85rem; }
.nut__disc { margin: 8px 0 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.nutprev { margin: 6px 0 4px; } .pm .btn { margin-top: 6px; }
