/* Sir Barber — stile comune (sito clienti + gestionale)
   Colori del negozio: nero, bianco, verde smeraldo #50C878.
   Sul verde si scrive in NERO; le scritte verdi su bianco usano lo smeraldo scuro #1E7A4A (contrasto alto). */

:root {
  --black: #0d0e0e;
  --black-2: #1a1c1b;
  --ink: #141515;
  --muted: #4a4f4c;
  --line: #d9dbd6;
  --paper: #f6f5f1;
  --white: #ffffff;
  --emerald: #50c878;
  --emerald-dark: #1e7a4a;
  --emerald-soft: #e3f5ea;

  --ok-bg: #e3f5ea;   --ok-ink: #14532d;   --ok-line: #1e7a4a;
  --warn-bg: #fff3cd; --warn-ink: #6b4300; --warn-line: #c98a00;
  --bad-bg: #fde4e4;  --bad-ink: #8a1414;  --bad-line: #c62828;
  --info-bg: #e6eefc; --info-ink: #1a3d8f; --info-line: #2563eb;

  --roberto: #2563eb;
  --mattia: #f4511e;

  --radius: 14px;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--emerald-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--sans); font-size: 1.125rem; line-height: 1.55;
  color: var(--ink); background: var(--paper);
}
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: .01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--emerald-dark); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--emerald); color: var(--black); padding: 12px 18px; font-weight: 700; z-index: 100; border-radius: 10px; }
.skip:focus { top: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Logo (logo-bianco.svg sul nero, logo.svg sul bianco) ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand img { display: block; width: 60px; height: 60px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 12px 24px; border-radius: 12px; border: 2px solid var(--black);
  background: var(--white); color: var(--black); font: inherit; font-weight: 700; font-size: 1.1rem;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: #ececec; }
.btn-green { background: var(--emerald); border-color: var(--emerald); color: var(--black); }
.btn-green:hover { background: #3fb867; border-color: #3fb867; }
.btn-black { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-black:hover { background: #2b2d2c; }
.btn-red { background: var(--bad-line); border-color: var(--bad-line); color: var(--white); }
.btn-red:hover { background: #a51f1f; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn-link { background: none; border: 0; min-height: 44px; padding: 8px 4px; color: var(--emerald-dark); text-decoration: underline; font-weight: 600; }
.btn-link:hover { background: none; color: var(--black); }
.btn-huge { min-height: 72px; font-size: 1.4rem; padding: 16px 40px; border-radius: 16px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.end { justify-content: flex-end; }

/* ---------- Avvisi grandi (icona + testo, mai solo colore) ---------- */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
  padding: 20px 22px; border-radius: var(--radius); border: 3px solid; margin: 18px 0;
  font-size: 1.15rem;
}
.notice .ico { font-size: 2rem; line-height: 1; grid-row: span 3; }
.notice strong.title { display: block; font-size: 1.35rem; line-height: 1.25; }
.notice p { margin: 0; }
.notice .btn-row { margin-top: 10px; }
.notice.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.notice.bad { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
.notice.info { background: var(--info-bg); color: var(--info-ink); border-color: var(--info-line); }

.badge {
  display: inline-flex; align-items: center; gap: .35em; padding: 4px 12px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 2px solid; white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
.badge.grey { background: #eee; color: #333; border-color: #999; }

/* ---------- Moduli ---------- */
label, .label { display: block; font-weight: 700; margin: 0 0 6px; }
.field { margin: 0 0 18px; }
.hint { font-size: 1rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 56px; padding: 12px 14px; font: inherit; font-size: 1.15rem; color: var(--ink);
  background: var(--white); border: 2px solid #8a8f8b; border-radius: 12px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--emerald-dark); box-shadow: var(--focus); }
input.code-input { font-size: 2rem; letter-spacing: .4em; text-align: center; font-weight: 700; max-width: 320px; }
.check { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; margin: 0 0 16px; font-weight: 500; cursor: pointer; }
.check input { width: 28px; height: 28px; margin: 2px 0 0; accent-color: var(--emerald-dark); }
.form-error { color: var(--bad-ink); font-weight: 700; }

/* ---------- Schede ---------- */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; }
.stack > * + * { margin-top: 16px; }

/* ---------- Finestra (dialog) ---------- */
dialog.modal {
  width: min(640px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); color: var(--ink);
}
dialog.modal::backdrop { background: rgba(10, 12, 11, .6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 2; }
.modal-head h2 { margin: 0; font-family: var(--sans); font-size: 1.35rem; letter-spacing: 0; }
.modal-close { min-height: 48px; min-width: 48px; border-radius: 10px; border: 2px solid var(--white); background: transparent; color: var(--white); font-size: 1.3rem; cursor: pointer; }
.modal-body { padding: 22px; }

/* ---------- Messaggio a comparsa ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 200;
  width: min(560px, 100% - 24px); padding: 18px 22px; border-radius: 14px; font-weight: 700; font-size: 1.15rem;
  background: var(--black); color: var(--white); border-left: 10px solid var(--emerald); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.toast.bad { border-left-color: #ff5a5a; }

/* ---------- Pagina semplice (disiscrizione, privacy) ---------- */
.simple-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.simple-page > main { width: min(640px, 100%); }
.big-notice { border-width: 3px; border-style: solid; }
.big-notice.ok { border-color: var(--ok-line); }
.big-notice.warn { border-color: var(--warn-line); }
.big-notice h1 { font-size: 1.8rem; }

/* =====================================================================
   SITO CLIENTI
   ===================================================================== */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--emerald); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a.navlink { color: var(--white); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.site-nav a.navlink:hover { background: rgba(255, 255, 255, .1); }
.site-nav .btn { min-height: 48px; padding: 8px 18px; }
.nav-account { position: relative; }
.nav-account .dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--emerald); border: 2px solid var(--black); }
@media (max-width: 820px) { .site-nav a.navlink.opt { display: none; } }
@media (max-width: 440px) { .brand img { width: 52px; height: 52px; } .site-nav .btn { padding: 8px 12px; font-size: 1rem; } }

.hero {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(80, 200, 120, .22), transparent 55%),
    linear-gradient(180deg, var(--black) 0%, #121514 100%);
  color: var(--white); padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 9vw, 104px); position: relative; overflow: hidden;
}
.hero::after { /* sottile motivo a righe da insegna di barberia */
  content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: repeating-linear-gradient(135deg, var(--emerald) 0 18px, var(--white) 18px 36px, var(--black) 36px 54px);
  opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: minmax(260px, 440px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero-logo { margin: 0; }
.hero-logo img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-logo { width: min(300px, 78vw); }
  .hero .btn-row, .hero-facts { justify-content: center; }
  .hero .lead { margin-inline: auto; }
}
.hero .kicker { text-transform: uppercase; letter-spacing: .3em; font-weight: 700; color: var(--emerald); font-size: .95rem; margin-bottom: 18px; }
.hero .tagline { font-family: var(--serif); font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; margin: 0 0 16px; line-height: 1.05; }
.hero .tagline em { font-style: normal; color: var(--emerald); }
.hero .lead { font-size: clamp(1.2rem, 2.4vw, 1.5rem); max-width: 34ch; color: #e8e8e4; margin-bottom: 34px; }
.hero .btn-row { gap: 16px; }
.hero .btn-ghost { color: var(--white); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; color: #cfd3cf; font-size: 1.05rem; }
.hero-facts b { color: var(--white); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.dark { background: var(--black); color: var(--white); }
.section.dark a:not(.btn) { color: var(--emerald); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; max-width: 46ch; }
.rule { width: 72px; height: 4px; background: var(--emerald); border: 0; margin: 0 0 18px; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.service .code { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--black); }
.service .name { font-weight: 700; font-size: 1.2rem; }
.service .meta { color: var(--muted); }
.service.phone-only { background: transparent; border-style: dashed; border-width: 2px; border-color: #9aa09c; }
.service.phone-only .code { color: var(--muted); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.hours-table th, .hours-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.hours-table th { font-weight: 600; }
.hours-table tr.closed td { color: #ff9b9b; font-weight: 700; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--emerald); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.contact-lines { display: grid; gap: 12px; font-size: 1.2rem; margin-bottom: 24px; }
.contact-lines a { font-weight: 700; }
.map-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background:
    linear-gradient(0deg, rgba(13, 14, 14, .82), rgba(13, 14, 14, .82)),
    repeating-linear-gradient(0deg, #2a2d2c 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, #2a2d2c 0 1px, transparent 1px 44px), #1b1d1c;
  color: var(--white); padding: 32px; min-height: 260px; display: flex; flex-direction: column; justify-content: end; gap: 12px;
}
.map-card .pin { font-size: 2.6rem; line-height: 1; }

.site-footer { background: var(--black); color: #cfd3cf; padding: 36px 0 120px; font-size: 1rem; border-top: 4px solid var(--emerald); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--white); }

/* barra fissa "Prenota" sul telefono */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 14, 14, .96); display: none; gap: 10px; }
.mobile-cta .btn { flex: 1; min-height: 60px; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body.in-flow .mobile-cta { display: none; } }

/* ---------- Procedura di prenotazione / area personale ---------- */
.flow { padding: 32px 0 80px; min-height: calc(100vh - 76px); }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.steps { display: flex; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 8px; border-radius: 99px; background: #d4d6d1; }
.steps li.done { background: var(--emerald-dark); }
.steps li.now { background: var(--emerald); }
.step-label { font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.flow h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 20px; }

.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.choice {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; width: 100%;
  min-height: 84px; padding: 16px 20px; border-radius: var(--radius); border: 2px solid #b9bdb9; background: var(--white);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.choice:hover { border-color: var(--black); }
.choice[aria-pressed="true"] { border-color: var(--emerald-dark); background: var(--emerald-soft); box-shadow: inset 0 0 0 2px var(--emerald-dark); }
.choice .c-code { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; min-width: 2.6ch; }
.choice .c-name { font-weight: 700; font-size: 1.2rem; display: block; }
.choice .c-meta { color: var(--muted); font-size: 1rem; }
.choice .c-tick { font-size: 1.5rem; visibility: hidden; color: var(--emerald-dark); }
.choice[aria-pressed="true"] .c-tick { visibility: visible; }
.choice.phone { border-style: dashed; }
.choice .swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); }

.day-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.day {
  scroll-snap-align: start; border-radius: 12px; border: 2px solid #b9bdb9; background: var(--white); padding: 10px 6px;
  font: inherit; color: inherit; cursor: pointer; text-align: center; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.day .d-wd { font-size: .9rem; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.day .d-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1.05; }
.day .d-mon { font-size: .9rem; }
.day .d-free { font-size: .85rem; font-weight: 700; color: var(--ok-ink); }
.day:hover { border-color: var(--black); }
.day[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.day[aria-pressed="true"] .d-free { color: var(--emerald); }
.day.closed { background: repeating-linear-gradient(135deg, #f0f0ee 0 8px, #e4e4e1 8px 16px); color: #6c706d; cursor: not-allowed; border-style: dashed; }
.day.closed .d-free { color: var(--bad-ink); }
.strip-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0 16px; font-size: 1rem; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px;
  border-radius: 12px; border: 2px solid; font: inherit; cursor: pointer; padding: 8px;
}
.slot .s-time { font-size: 1.45rem; font-weight: 800; letter-spacing: .02em; }
.slot .s-state { font-size: .95rem; font-weight: 700; }
.slot.libero { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.slot.richiesto { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.slot.occupato { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); border-style: dashed; }
.slot[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--black); }
.slot:hover { filter: brightness(.97); }

.summary { display: grid; gap: 0; border: 2px solid var(--black); border-radius: var(--radius); overflow: hidden; background: var(--white); margin-bottom: 20px; }
.summary div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.summary div:last-child { border-bottom: 0; }
.summary dt { font-weight: 600; color: var(--muted); margin: 0; }
.summary dd { margin: 0; font-weight: 800; font-size: 1.2rem; }
@media (max-width: 480px) { .summary div { grid-template-columns: 1fr; gap: 2px; } }

.flow-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.flow-actions .btn-green { margin-left: auto; min-width: 200px; }

.done-hero { text-align: center; padding: 28px 22px; border-radius: 20px; border: 4px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.done-hero .ico { font-size: 4rem; line-height: 1; }
.done-hero h1 { font-family: var(--sans); font-size: clamp(2rem, 6vw, 3rem); margin: 10px 0; }
.done-hero .not-yet { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; text-transform: uppercase; margin: 0 0 10px; }
.done-hero.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }

.appt-list { display: grid; gap: 12px; }
.appt { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 8px; }
.appt.st-richiesta { border-color: var(--warn-line); }
.appt.st-confermato { border-color: var(--ok-line); }
.appt .a-when { font-size: 1.3rem; font-weight: 800; }
.appt .a-what { color: var(--muted); }
.msg-list { display: grid; gap: 10px; }
.msg { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; border-left: 8px solid #c3c6c2; }
.msg.unread { border-left-color: var(--emerald); }
.msg .m-title { font-weight: 800; }
.msg .m-date { color: var(--muted); font-size: .95rem; }
.msg .m-body { white-space: pre-line; margin-top: 4px; }
.area-section { margin-top: 40px; }
.area-section > h2 { font-size: 1.8rem; }
.flow h2.label { font-family: var(--sans); font-size: 1.3rem; letter-spacing: 0; margin: 22px 0 10px; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.appt .badge { justify-self: start; }
.mobile-cta .btn-ghost { color: var(--white); }
.hours-table .last-booking { display: block; font-size: .95rem; color: #cfd3cf; font-weight: 500; }
/* servizi e scelte senza sigle: solo i nomi */
.service .name { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; margin: 0; }
.service.phone-only .name { color: var(--muted); }
.choice { grid-template-columns: 1fr auto; }
.choice .c-name { font-size: 1.3rem; }
input[aria-invalid="true"] { border-color: var(--bad-line); border-width: 3px; background: var(--bad-bg); }
.field-error { color: var(--bad-ink); font-weight: 700; margin: 6px 0 0; }

/* ---------- prodotti ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.p-photo { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.p-photo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.p-nophoto { display: grid; place-items: center; gap: 4px; font-size: 3rem; color: #9aa09c; }
.p-nophoto small { font-size: .9rem; }
.p-sale { position: absolute; top: 10px; left: 10px; background: var(--emerald); color: var(--black); font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 1rem; }
.p-sale.inline { position: static; margin-left: 8px; }
.p-out { position: absolute; inset: auto 0 0 0; background: rgba(13, 14, 14, .85); color: var(--white); text-align: center; font-weight: 800; padding: 8px; letter-spacing: .1em; text-transform: uppercase; }
.product.sold-out .p-photo img { filter: grayscale(1); opacity: .6; }
.p-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-body .btn { margin-top: auto; }
.p-brand { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.p-name { font-size: 1.2rem; margin: 0; }
.p-desc { font-size: 1rem; color: var(--muted); margin: 0; }
.p-price { font-size: 1.3rem; margin: 4px 0; }
.p-price s { color: var(--muted); font-size: 1rem; }
.p-code { font-size: .85rem; color: var(--muted); }
.sale-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--radius); background: var(--emerald); color: var(--black); font-size: 1.15rem; margin: 12px 0; }
.sale-banner a { color: var(--black); font-weight: 800; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 2px solid #b9bdb9; background: var(--white); font: inherit; font-weight: 700; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.qty { display: inline-flex; align-items: center; gap: 12px; }
.qty .btn { min-width: 56px; font-size: 1.5rem; }
.qty-n { font-size: 1.6rem; font-weight: 800; min-width: 2ch; text-align: center; }
.slot.nascosto { background: var(--white); color: var(--ink); border-color: #8a8f8b; }

/* ---------- Novità 22/10/2026 ---------- */
.choice.with-photo { gap: 14px; }
.choice .c-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); background: var(--white); }
.slot-watch { margin-top: 18px; padding: 16px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--white); }
.slot-watch p { margin: 0 0 10px; font-weight: 600; }
.a-reason { margin: 6px 0 0; padding: 10px 12px; border-left: 4px solid var(--bad-line); background: var(--bad-bg); color: var(--bad-ink); border-radius: 6px; }

/* ---------- Novità 25/10/2026 ---------- */
.small { font-size: .9rem; font-weight: 400; }
/* app sul telefono */
.install-box { text-align: left; margin-top: 22px; padding: 18px 20px; border: 3px solid var(--emerald); border-radius: var(--radius); background: rgba(80, 200, 120, .12); color: var(--white); }
.install-head { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.install-head .ico { font-size: 2rem; }
.install-box p { margin: 8px 0 12px; }
.howto { margin-top: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); text-align: left; }
.howto summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 1.15rem; }
.howto ol { margin: 0 0 12px; padding: 0 16px 0 40px; }
.howto li { margin: 6px 0; }
.howto .btn { margin: 0 16px 16px; }
/* bacheca: prossimo appuntamento */
.next-card { margin: 18px 0 8px; padding: 22px; border-radius: var(--radius); border: 3px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.next-card.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }
.next-kicker { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.next-when { margin: 6px 0 2px; font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; line-height: 1.2; }
.next-what { margin: 0 0 12px; font-size: 1.2rem; }
.badge.big { font-size: 1.1rem; padding: 8px 14px; }
/* messaggi con il negozio */
.chat-list { display: grid; gap: 10px; margin-bottom: 14px; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; background: var(--white); border: 2px solid var(--line); }
.chat-msg.me { justify-self: end; background: var(--emerald-soft); border-color: var(--emerald-dark); }
.chat-msg.shop { justify-self: start; }
.chat-msg p { margin: 4px 0; white-space: pre-wrap; }
.chat-who { font-weight: 700; font-size: .95rem; }
.chat-when { font-size: .85rem; color: var(--muted); }
/* ritardo */
.big-check { font-size: 1.15rem; margin: 14px 0 6px; }
.late-input { max-width: 8ch; font-size: 1.6rem; text-align: center; letter-spacing: .1em; }
/* firma ARES */
.ares-sign { margin-top: 18px; justify-content: center !important; }
.ares-sign, .ares-sign a { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: #9aa09c; text-decoration: none; }
.ares-sign img { width: 48px; height: auto; }

/* ---------- Pagina privacy ---------- */
.legal-page { background: var(--paper); }
.legal-head { background: var(--black); padding: 12px 16px; text-align: center; border-bottom: 4px solid var(--emerald); }
.legal { width: min(820px, 100%); margin: 0 auto; padding: 28px 16px 80px; }
.legal h1 { font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.8rem); margin: 0 0 4px; }
.legal h2 { font-size: 1.4rem; margin: 34px 0 10px; font-family: var(--sans); }
.legal li { margin: 6px 0; }
.legal ul ul { margin-top: 6px; }
.legal .table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0; background: var(--white); font-size: 1rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--emerald-soft); }
.legal-back { margin-top: 36px; }
