/* PRINCIPESSA — portale prenotazioni. Stessi colori e caratteri del negozio. */
:root {
  --crema: #FAF3E8;
  --crema-2: #F2E7D6;
  --carta: #FFFDF9;
  --rosa: #E9C7BF;
  --rosa-l: #F6E4DF;
  --rosa-d: #9C544E;
  --salvia: #A3B8A0;
  --salvia-l: #E3EBE0;
  --verde: #3E5A48;
  --ink: #25241F;
  --ink-2: #5E5850;
  --line: #E4D6C2;
  --err: #A33A3A;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-arch: 999px 999px 16px 16px;
  --ombra: 0 1px 2px rgba(37,36,31,.06), 0 8px 24px rgba(37,36,31,.06);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--ink); font: 400 17px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-family: var(--f-display); font-weight: 500; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rosa-d); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.fine { font-size: 14px; color: var(--ink-2); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa-d); }
.logo { display: block; height: auto; mix-blend-mode: multiply; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--verde); color: #fff; }
.btn-primary:hover { background: #2F4738; }
.btn-primary:disabled { background: #9AA79D; cursor: not-allowed; }
.btn-line { background: transparent; color: var(--verde); box-shadow: inset 0 0 0 1.5px var(--verde); }
.btn-line:hover { background: var(--salvia-l); }
.btn-soft { background: var(--crema-2); color: var(--ink); }
.btn-wa { background: #1F7A4D; color: #fff; }
.btn-danger { background: transparent; color: var(--err); box-shadow: inset 0 0 0 1.5px var(--err); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--rosa-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- campi ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .lbl { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea, .inp {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--carta); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: none; border-color: var(--verde); }
.err { color: var(--err); font-size: 15px; font-weight: 600; }
.ok { color: var(--verde); font-size: 15px; font-weight: 600; }
.riga2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- pagina cliente ---------- */
.top { text-align: center; padding: 22px 0 8px; }
.top .logo { width: min(220px, 62vw); margin: 0 auto 6px; }
.top h1 { font-size: 24px; letter-spacing: .02em; }
.top .sotto { font-family: var(--f-display); font-style: italic; color: var(--verde); font-size: 18px; margin-top: 2px; }
.top-link { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }

.passi { display: flex; justify-content: center; gap: 6px; margin: 18px 0 6px; }
.passi span { width: 30px; height: 4px; border-radius: 4px; background: var(--line); }
.passi span.on { background: var(--verde); }

.blocco { background: var(--carta); border-radius: 22px; padding: 20px 16px; margin: 14px 0; box-shadow: var(--ombra); }
.blocco h2 { font-size: 22px; margin-bottom: 4px; }
.blocco-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.gruppo { margin: 18px 0 8px; }
.servizi { display: grid; gap: 10px; }
.srv { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; text-align: left; width: 100%;
  padding: 10px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--carta); cursor: pointer; }
.srv:hover { border-color: var(--salvia); }
.srv.on { border-color: var(--verde); background: var(--salvia-l); }
.srv-foto { width: 76px; height: 92px; border-radius: var(--r-arch); object-fit: cover; background: var(--rosa-l); }
.srv-nome { font-family: var(--f-display); font-size: 18px; line-height: 1.2; display: block; }
.srv-meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; display: block; }
.srv-desc { font-size: 14px; color: var(--ink-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.scelto { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--salvia-l); margin-bottom: 16px; }
.scelto img { width: 48px; height: 58px; object-fit: cover; border-radius: var(--r-arch); }
.scelto > div { flex: 1; min-width: 0; }
.scelto strong { font-family: var(--f-display); font-weight: 500; font-size: 17px; display: block; }

.settimana-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.settimana-nav strong { font-weight: 600; font-size: 15px; }
.tondo { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--carta); cursor: pointer; display: grid; place-items: center; font-size: 20px; }
.tondo:disabled { opacity: .35; cursor: default; }
.giorni { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.gg { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--carta); cursor: pointer; min-height: 78px; justify-content: center; }
.gg b { font-size: 20px; font-weight: 600; line-height: 1.1; }
.gg small { font-size: 12px; color: var(--ink-2); }
.gg .pt { width: 6px; height: 6px; border-radius: 50%; background: var(--verde); margin-top: 3px; }
.gg.no { background: transparent; border-style: dashed; color: #B5ABA0; cursor: default; }
.gg.no .pt { background: transparent; }
.gg.on { background: var(--verde); border-color: var(--verde); color: #fff; }
.gg.on small { color: #E8EFE6; }
.gg.on .pt { background: #fff; }
.legenda { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.legenda i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); margin-right: 6px; vertical-align: 1px; }
.prossimo { margin-top: 12px; }

.fascia { margin-top: 16px; }
.fascia .lbl { color: var(--ink-2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.orari { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 8px; margin-top: 8px; }
.ora { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--carta); font-weight: 600; cursor: pointer; }
.ora:hover { border-color: var(--verde); }
.ora.on { background: var(--verde); color: #fff; border-color: var(--verde); }

.riepilogo { border-radius: 16px; background: var(--crema); padding: 14px 16px; margin-bottom: 16px; }
.riepilogo div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.riepilogo div span:first-child { color: var(--ink-2); }
.riepilogo div span:last-child { font-weight: 600; text-align: right; }

.fatto { text-align: center; padding: 8px 4px; }
.fatto .spunta { width: 64px; height: 64px; border-radius: 50%; background: var(--salvia-l); color: var(--verde); display: grid; place-items: center; margin: 0 auto 12px; font-size: 32px; }
.fatto h2 { font-size: 26px; margin-bottom: 6px; }
.fatto .azioni { display: grid; gap: 10px; margin-top: 18px; }

.info { margin: 20px 0 40px; text-align: center; font-size: 14px; color: var(--ink-2); }
.info table { margin: 8px auto 0; border-collapse: collapse; }
.info td { padding: 2px 8px; text-align: left; }
.info td:first-child { font-weight: 600; color: var(--ink); }

.vuoto { text-align: center; padding: 26px 8px; color: var(--ink-2); }

/* ---------- area Simona ---------- */
.s-body { background: var(--crema); }
.centro { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.centro-box { width: 100%; max-width: 380px; text-align: center; }
.centro-box .logo { width: 200px; margin: 0 auto 10px; }
.centro-box form { text-align: left; margin-top: 18px; }

.barra { position: sticky; top: 0; z-index: 20; background: var(--verde); color: #fff; }
.barra-in { display: flex; align-items: center; gap: 12px; padding: 10px 16px; max-width: 1280px; margin: 0 auto; }
.barra h1 { font-size: 18px; color: #fff; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schede { display: flex; gap: 4px; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px; }
.schede button { border: 0; background: transparent; color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.schede button.on { background: #fff; color: var(--verde); }
.esci { background: none; border: 0; color: #DDE6D8; font-size: 14px; cursor: pointer; text-decoration: underline; }

.s-main { max-width: 1280px; margin: 0 auto; padding: 14px 16px 60px; }
.strum { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.strum h2 { font-size: 20px; flex: 1 1 200px; }
.viste { display: inline-flex; background: var(--crema-2); border-radius: 999px; padding: 3px; }
.viste button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.viste button.on { background: var(--carta); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.nav { display: inline-flex; gap: 6px; align-items: center; }
.nav .tondo { width: 38px; height: 38px; font-size: 18px; }

.avviso { background: var(--rosa-l); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; font-size: 15px; }
.avviso strong { color: var(--rosa-d); }

/* griglia ore (giorno e settimana) */
.cal { background: var(--carta); border-radius: 18px; box-shadow: var(--ombra); overflow: hidden; }
.cal-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cal-tab { display: grid; min-width: 100%; width: max-content; }
.cal-testa { display: contents; }
.cal-testa > div { position: sticky; top: 0; background: var(--carta); border-bottom: 1px solid var(--line); padding: 8px 4px; text-align: center; font-size: 13px; z-index: 2; }
.cal-testa .oggi b { background: var(--verde); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal-testa b { font-size: 17px; display: block; font-weight: 600; }
.cal-testa button { background: none; border: 0; padding: 0; cursor: pointer; }
.col-ore { position: relative; border-right: 1px solid var(--line); }
.col-ore span { position: absolute; right: 6px; font-size: 11px; color: var(--ink-2); transform: translateY(-50%); }
.col { position: relative; border-right: 1px solid var(--crema-2); cursor: copy; }
.col:last-child { border-right: 0; }
.col .linea { position: absolute; left: 0; right: 0; border-top: 1px solid var(--crema-2); pointer-events: none; }
.col .linea.ora-piena { border-top-color: var(--line); }
.col .chiuso { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #F3ECE1 0 6px, #EFE6D9 6px 12px); pointer-events: none; }
.col .adesso { position: absolute; left: 0; right: 0; border-top: 2px solid var(--rosa-d); z-index: 3; pointer-events: none; }
.app { position: absolute; border-radius: 10px; padding: 4px 7px; font-size: 12px; line-height: 1.25; overflow: hidden; cursor: pointer; z-index: 4;
  background: var(--salvia-l); border-left: 4px solid var(--verde); color: var(--ink); text-align: left; border-top: 0; border-right: 0; border-bottom: 0; }
.app b { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.app.richiesta { background: var(--rosa-l); border-left-color: var(--rosa-d); }
.app.blocco { background: repeating-linear-gradient(135deg, #E9E2D7 0 6px, #E2D9CC 6px 12px); border-left-color: #8D8273; }
.app.annullato { opacity: .45; text-decoration: line-through; }

/* agenda */
.agenda { display: grid; gap: 14px; }
.ag-giorno { background: var(--carta); border-radius: 18px; box-shadow: var(--ombra); overflow: hidden; }
.ag-giorno h3 { font-family: var(--f-body); font-weight: 700; font-size: 15px; padding: 10px 16px; background: var(--crema-2); display: flex; justify-content: space-between; }
.ag-giorno h3 small { font-weight: 500; color: var(--ink-2); }
.ag-riga { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--crema-2); cursor: pointer; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; }
.ag-riga:first-of-type { border-top: 0; }
.ag-riga:hover { background: var(--crema); }
.ag-ora { font-weight: 700; font-variant-numeric: tabular-nums; }
.ag-ora small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.ag-chi b { display: block; font-weight: 600; }
.ag-chi span { color: var(--ink-2); font-size: 14px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--salvia-l); color: var(--verde); white-space: nowrap; }
.tag.richiesta { background: var(--rosa-l); color: var(--rosa-d); }
.tag.blocco { background: #E9E2D7; color: #6B6255; }
.tag.annullato { background: #EEE; color: #888; }

/* finestra */
.velo { position: fixed; inset: 0; background: rgba(37,36,31,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.foglio { background: var(--carta); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 16px 24px; }
@media (min-width: 640px) { .velo { align-items: center; } .foglio { border-radius: 22px; padding: 24px; } }
.foglio-testa { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.foglio-testa h2 { font-size: 22px; }
.chiudi { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--crema-2); cursor: pointer; font-size: 20px; flex: none; }
.dett { display: grid; gap: 2px; margin-bottom: 16px; }
.dett div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--crema-2); font-size: 15px; }
.dett div span:first-child { color: var(--ink-2); }
.dett div span:last-child { text-align: right; font-weight: 600; }
.azioni-g { display: grid; gap: 10px; }
.tipo-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.tipo-sw button { min-height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--carta); font-weight: 600; cursor: pointer; }
.tipo-sw button.on { border-color: var(--verde); background: var(--salvia-l); color: var(--verde); }

/* impostazioni */
.imp { max-width: 760px; }
.imp .blocco h2 { font-size: 20px; margin-bottom: 12px; }
.logo-anteprima { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.logo-anteprima img { width: 160px; height: auto; background: var(--crema); border-radius: 12px; padding: 8px; mix-blend-mode: multiply; }
.giorno-riga { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--crema-2); }
.giorno-riga:first-child { border-top: 0; }
.giorno-riga .sw { display: flex; align-items: center; gap: 8px; font-weight: 600; min-height: 42px; }
.giorno-riga .sw input { width: 20px; height: 20px; accent-color: var(--verde); }
.fasce { display: grid; gap: 6px; }
.fascia-riga { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fascia-riga input { width: 108px; min-height: 42px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--carta); }
.fascia-riga .chiuso-txt { color: var(--ink-2); font-size: 15px; padding-top: 10px; }
.mini { background: none; border: 0; color: var(--rosa-d); font-weight: 600; font-size: 14px; cursor: pointer; padding: 6px 4px; }
.dur-riga { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--crema-2); }
.dur-riga:first-child { border-top: 0; }
.dur-riga small { display: block; color: var(--ink-2); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--crema-2); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 14px; }
.chip button { border: 0; background: var(--carta); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.salva-barra { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--crema) 30%); padding: 18px 0 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--verde); margin-top: 2px; flex: none; }
.link-box { display: flex; gap: 8px; }
.link-box input { flex: 1; min-width: 0; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; z-index: 80; max-width: calc(100% - 32px); }

@media (max-width: 520px) {
  .barra h1 { font-size: 16px; }
  .schede button { padding: 7px 10px; }
  .ag-riga { grid-template-columns: 70px 1fr; }
  .ag-riga .tag { grid-column: 2; justify-self: start; }
  .giorno-riga { grid-template-columns: 1fr; gap: 4px; }
  .gg b { font-size: 17px; }
  .gg { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* colonna delle ore sempre visibile quando la settimana scorre sul telefono */
.col-ore { position: sticky; left: 0; z-index: 5; background: var(--carta); }
.cal-testa > div:first-child { position: sticky; left: 0; z-index: 6; }
.cal-testa small { display: block; font-size: 11px; }
.app.proposta { background: repeating-linear-gradient(135deg, #FFFDF9 0 6px, #F6E4DF 6px 12px); border: 1.5px dashed var(--rosa-d); border-left: 4px solid var(--rosa-d); }
.prop-txt { display: block; color: var(--rosa-d) !important; font-size: 13px; font-weight: 600; }
