/* Studio Spunto · versione 5 · pagina Prenota (2026-11-10)
   Il calendario delle consulenze su una lastra di marmo appoggiata sul piedistallo, come i sistemi esposti in home.
   Stessi colori del sito: sfondo --bg, inchiostro --text, un solo accento oro --gold.
   Forme: lastra 26px (come l'agenda in home), giorni 14px, orari e bottoni 12-14px, scelte rapide tonde.
   Movimento: solo transform e opacity; con "riduci movimento" è tutto fermo. */

:root {
  --bk-ease: cubic-bezier(.16, 1, .3, 1);
  --bk-ink: #1b1a17;
  --bk-paper: #f4efe6;
  --bk-line: rgba(27, 26, 23, .12);
  --bk-tile: rgba(255, 255, 255, .56);
  --bk-tile-2: rgba(255, 255, 255, .84);
  --bk-shadow: 74, 56, 38;
}

/* ================================================================ testa della pagina */
.bk5 { padding: calc(var(--nav-h) + 34px) 0 44px; }
.bk5 .crumbs { margin-bottom: 28px; }
.bk5-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.bk5-k { margin-bottom: 18px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink, #64491a); }
.bk5-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: .98; letter-spacing: -.022em; color: var(--text); text-wrap: balance; }
.bk5-h1 em { display: inline-block; padding: 0 .06em .08em 0; font-style: italic; color: var(--gold); }
.bk5-intro { padding-bottom: 6px; }
.bk5-intro p { max-width: 44ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.bk5-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.bk5-facts li { display: inline-flex; align-items: center; gap: 8px; }
.bk5-facts .i { width: 18px; height: 18px; color: var(--gold); }

/* ================================================================ la lastra di marmo sul piedistallo */
.bk5-stage { position: relative; margin-top: clamp(30px, 4vw, 50px); scroll-margin-top: calc(var(--nav-h) + 12px); }
.bk5-slab { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; border-radius: 26px; isolation: isolate;
  background: #f2ede7 url("/img/prenota/marmo.webp") 50% 38% / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .4),
    0 1px 0 #ddd4c9, 0 2px 0 #d3c9bd, 0 3px 0 #cbc0b3, 0 4px 0 #c3b8aa, 0 5px 0 #bcb1a3,
    0 36px 60px -30px rgba(var(--bk-shadow), .55), 0 14px 26px -18px rgba(var(--bk-shadow), .4); }
/* lucido della pietra: una luce morbida da sinistra in alto */
.bk5-slab::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .12) 34%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .2) 100%); }
.bk5-plinth { position: relative; z-index: 0; display: block; width: min(1180px, 100%); height: 116px; margin: -18px auto 0; object-fit: cover; object-position: 50% 0; pointer-events: none; }

/* barra dei passi */
.bk5-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--bk-line); box-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.bk5-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.bk5-steps li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.bk5-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px var(--bk-line); color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; }
.bk5-steps li.on { color: var(--text); }
.bk5-steps li.on b { background: var(--bk-ink); color: var(--bk-paper); box-shadow: none; }
.bk5-steps li.done b { background: var(--gold); color: #fff; box-shadow: none; }
.bk5-tz { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* titoli incisi nella pietra */
.bk5-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -.015em; color: var(--text); text-shadow: 0 1px 0 rgba(255, 255, 255, .75); }
.bk5-h2:focus { outline: none; }
.bk5-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; min-height: 34px; margin-bottom: 18px; }
.bk5-month, .bk5-daysub { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ================================================================ passo 1: giorno e ora */
.bk5-p1 { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
.bk5-cal, .bk5-times { padding: 26px 28px 30px; }
.bk5-times { display: flex; flex-direction: column; border-left: 1px solid var(--bk-line); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .55); }

.bk5-dow, .bk5-days { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 8px; }
.bk5-dow { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--muted); }
.bk5-days { row-gap: 10px; }
.bk5-day { position: relative; min-height: 86px; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 10px 4px 9px; border: 0; border-radius: 14px;
  background: var(--bk-tile); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .1), inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(var(--bk-shadow), .07);
  font-family: var(--font); color: var(--text); cursor: pointer; transition: background .2s, box-shadow .2s, color .2s, transform .15s; }
.bk5-day b { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: .95; letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.bk5-day .n { font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.bk5-day .t { position: absolute; top: 7px; left: 50%; translate: -50% 0; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink, #64491a); }
.bk5-day.libero .n::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.bk5-day:hover:not(:disabled) { background: var(--bk-tile-2); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .26), inset 0 1px 0 #fff, 0 8px 18px -12px rgba(var(--bk-shadow), .45); }
.bk5-day:active:not(:disabled) { transform: scale(.97); }
.bk5-day[aria-pressed="true"], .bk5-day[aria-pressed="true"]:hover { background: var(--bk-ink); color: var(--bk-paper); box-shadow: 0 12px 24px -12px rgba(27, 26, 23, .65); }
.bk5-day[aria-pressed="true"] .n, .bk5-day[aria-pressed="true"] .t { color: rgba(244, 239, 230, .78); }
.bk5-day:disabled { cursor: default; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .06); color: rgba(27, 26, 23, .34); }
.bk5-day:disabled .n { color: rgba(27, 26, 23, .42); }
.bk5-day.pieno b { text-decoration: line-through; text-decoration-thickness: 1px; }

.bk5-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-content: start; }
.bk5-slots h3 { grid-column: 1 / -1; margin-top: 8px; font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk5-slots h3:first-child { margin-top: 0; }
.bk5-slot { min-height: 46px; border: 0; border-radius: 12px; background: var(--bk-tile); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
  font: 600 15px var(--font); font-variant-numeric: tabular-nums; color: var(--text); cursor: pointer; transition: background .2s, box-shadow .2s, color .2s, transform .15s; }
.bk5-slot:hover { background: var(--bk-tile-2); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .32), inset 0 1px 0 #fff; }
.bk5-slot:active { transform: scale(.97); }
.bk5-slot[aria-pressed="true"], .bk5-slot[aria-pressed="true"]:hover { background: var(--gold); color: #fff; box-shadow: 0 10px 20px -12px rgba(140, 106, 44, .95); }
.bk5-slots.enter > * { animation: bk5in .4s var(--bk-ease) both; }

.bk5-msg { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.bk5-msg:not(:empty) { margin-top: 14px; }
.bk5-msg .btn { margin-top: 12px; }
.bk5-msg b { color: var(--text); }
.bk5-go { margin-top: auto; padding-top: 22px; }
.bk5-next { width: 100%; justify-content: center; }
.bk5-next:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }

/* in attesa degli orari: segnaposti che respirano, della stessa forma dei giorni e degli orari */
.bk5-sk { display: block; min-height: 86px; border-radius: 14px; background: linear-gradient(100deg, rgba(255, 255, 255, .3) 30%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, .3) 70%) 0 0 / 300% 100%; animation: bk5sk 1.5s linear infinite; }
.bk5-slots .bk5-sk { min-height: 46px; border-radius: 12px; }
@keyframes bk5sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ================================================================ passo 2: i dati */
.bk5-p2 { max-width: 780px; margin: 0 auto; padding: 28px 28px 34px; }
.bk5-chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 14px 14px 18px; border-radius: 16px;
  background: var(--bk-tile-2); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .1), 0 8px 20px -16px rgba(var(--bk-shadow), .5); }
.bk5-chosen p { display: flex; align-items: center; gap: 14px; }
.bk5-chosen .i { width: 24px; height: 24px; color: var(--gold); }
.bk5-chosen b { display: block; font-size: 16.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bk5-chosen small { display: block; font-size: 13px; color: var(--muted); }
.bk5-back { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .18); font: 600 14px var(--font); color: var(--text); cursor: pointer; transition: background .2s, box-shadow .2s; }
.bk5-back:hover { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .35); }
.bk5-back .i { width: 16px; height: 16px; }
.bk5-p2 > .bk5-h2 { margin: 28px 0 0; }

.bk5-mode, .bk5-goal { border: 0; min-width: 0; margin-top: 18px; }
.bk5-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk5-mode legend, .bk5-goal legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: #3e3c38; }
.bk5-goal legend span { color: var(--muted); font-weight: 500; }
.bk5-opt, .bk5-chip { position: relative; cursor: pointer; }
.bk5-opt input, .bk5-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.bk5-opt > span { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 2px; height: 100%; padding: 14px 16px; border-radius: 16px;
  background: var(--bk-tile); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .13); transition: background .2s, box-shadow .2s; }
.bk5-opt .i { grid-row: span 2; width: 22px; height: 22px; color: var(--muted); transition: color .2s; }
.bk5-opt b { font-size: 15.5px; font-weight: 650; }
.bk5-opt small { font-size: 13px; line-height: 1.35; color: var(--muted); }
.bk5-opt:hover > span { background: var(--bk-tile-2); }
.bk5-opt input:checked + span { background: var(--bk-tile-2); box-shadow: inset 0 0 0 2px var(--bk-ink); }
.bk5-opt input:checked + span .i { color: var(--gold); }
.bk5-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk5-chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 17px; border-radius: 999px; background: var(--bk-tile); box-shadow: inset 0 0 0 1px rgba(27, 26, 23, .14);
  font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s, box-shadow .2s; }
.bk5-chip:hover span { background: var(--bk-tile-2); }
.bk5-chip input:checked + span { background: var(--bk-ink); color: var(--bk-paper); box-shadow: none; }
.bk5-opt input:focus-visible + span, .bk5-chip input:focus-visible + span { outline: 2px solid var(--bk-ink); outline-offset: 3px; }

.bk5-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.bk5 .qfield { margin-top: 16px; align-content: start; }
.bk5 .qfield input, .bk5 .qfield textarea { background: rgba(255, 255, 255, .74); border-color: rgba(27, 26, 23, .16); box-shadow: inset 0 1px 2px rgba(var(--bk-shadow), .08); }
.bk5 .qfield input:focus, .bk5 .qfield textarea:focus { background: #fff; border-color: var(--bk-ink); box-shadow: 0 0 0 3px rgba(140, 106, 44, .2); }
.bk5 .qfield input[aria-invalid="true"] { border-color: #a8492a; }
.bk5 .qfield textarea { min-height: 96px; }
.bk5 .qerr { margin-top: 0; }
.bk5-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk5-send { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin-top: 26px; }
.bk5-submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.bk5-privacy { max-width: 38ch; font-size: 13px; line-height: 1.45; color: var(--muted); }
.bk5-privacy a, .bk5-err a, .bk5-done-s a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.bk5-err { font-size: 14.5px; line-height: 1.5; color: #a8492a; }
.bk5-err:not(:empty) { margin-top: 16px; }
.bk5-err a { color: var(--text); font-weight: 650; }

/* ================================================================ passo 3: fatto */
.bk5-p3 { padding: 50px 28px 56px; }
.bk5-done { max-width: 620px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; text-align: center; }
.bk5-seal { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 6px; border-radius: 50%; background: var(--gold); color: #fff;
  box-shadow: 0 0 0 8px rgba(140, 106, 44, .14), 0 18px 30px -16px rgba(140, 106, 44, .85); }
.bk5-seal .i { width: 34px; height: 34px; stroke-width: 2.4; }
.bk5-p3.enter .bk5-seal { animation: bk5pop .7s var(--bk-ease) both; }
.bk5-done-h { font-size: clamp(30px, 3.4vw, 44px); text-wrap: balance; }
.bk5-done-p { max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.bk5-done-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.bk5-done-s { font-size: 14px; color: var(--muted); }

.bk5-p.enter { animation: bk5in .45s var(--bk-ease) both; }
@keyframes bk5in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bk5pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ================================================================ sotto la lastra */
.bk5-alt { margin-top: 28px; text-align: center; font-size: 15px; color: var(--text-2); }
.bk5-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.bk5-alt .i { width: 17px; height: 17px; }
.bk5-how { padding-bottom: 60px; }
.bk5-faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); border-top: 1px solid var(--line); }
.bk5-q { padding-top: 24px; }
.bk5-q h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: -.01em; }
.bk5-q p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.bk5-same { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: clamp(44px, 5vw, 70px); padding: 26px 28px; border-radius: 22px;
  background: rgba(255, 255, 255, .34); box-shadow: inset 0 0 0 1px var(--line); }
.bk5-same p { max-width: 62ch; font-size: 16.5px; line-height: 1.55; color: var(--text-2); }
.bk5-same b { color: var(--text); font-weight: 650; }

/* ================================================================ telefono */
@media (max-width: 860px) {
  .bk5 { padding: calc(var(--nav-h) + 16px) 0 34px; }
  .bk5 .crumbs { margin-bottom: 18px; }
  .bk5-top { grid-template-columns: 1fr; gap: 14px; }
  .bk5-k { margin-bottom: 12px; font-size: 11.5px; letter-spacing: .12em; }
  .bk5-h1 { font-size: clamp(2.5rem, 11.2vw, 3.6rem); }
  .bk5-facts { gap: 6px 14px; margin-top: 14px; font-size: 13.5px; }
  .bk5-facts .i { width: 16px; height: 16px; }
  .bk5-stage { margin-top: 24px; }
  .bk5-slab { border-radius: 22px; }
  .bk5-bar { padding: 14px 16px; }
  .bk5-steps { gap: 6px 10px; }
  .bk5-steps li:not(.on) span { display: none; }
  .bk5-tz { font-size: 12px; }
  .bk5-p1 { grid-template-columns: 1fr; }
  .bk5-cal, .bk5-times { padding: 18px 14px 20px; }
  .bk5-times { border-left: 0; border-top: 1px solid var(--bk-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
  .bk5-head { margin-bottom: 14px; }
  .bk5-dow, .bk5-days { gap: 6px; }
  .bk5-dow { font-size: 11px; letter-spacing: .04em; }
  .bk5-day { min-height: 72px; padding: 14px 2px 8px; border-radius: 12px; gap: 3px; }
  .bk5-day b { font-size: 26px; }
  .bk5-day .n { font-size: 10px; }
  .bk5-day.libero .n::before { width: 5px; height: 5px; margin-right: 3px; }
  .bk5-day .t { top: 5px; font-size: 9px; }
  .bk5-sk { min-height: 72px; border-radius: 12px; }
  .bk5-slots { gap: 6px; }
  .bk5-slot { min-height: 44px; font-size: 14.5px; }
  /* "Continua" resta a portata di pollice mentre scorri gli orari */
  .bk5-go { position: sticky; bottom: 0; z-index: 2; margin: 16px -14px -20px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(242, 237, 231, .97) 72%, rgba(242, 237, 231, 0)); border-radius: 0 0 22px 22px; }
  .bk5-p2 { padding: 18px 14px 24px; }
  .bk5-chosen { padding: 12px 12px 12px 14px; }
  .bk5-chosen b { font-size: 15.5px; }
  .bk5-mode, .bk5-row { grid-template-columns: 1fr; }
  .bk5-send .btn { width: 100%; justify-content: center; }
  .bk5-p3 { padding: 36px 16px 40px; }
  .bk5-done-cta .btn { width: 100%; justify-content: center; }
  .bk5-plinth { height: 62px; margin-top: -10px; }
  .bk5-alt { font-size: 14px; }
  .bk5-faq { grid-template-columns: 1fr; border-top: 0; }
  .bk5-q { padding: 20px 0; border-top: 1px solid var(--line); }
  .bk5-q h3 { font-size: 24px; }
  .bk5-same { padding: 22px 18px; }
}
@media (max-width: 360px) {
  .bk5-day .n { font-size: 0; }
  .bk5-day.libero .n::before { width: 6px; height: 6px; margin: 0; }
  .bk5-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .bk5-p.enter, .bk5-p3.enter .bk5-seal, .bk5-slots.enter > *, .bk5-sk { animation: none !important; }
  .bk5-day, .bk5-slot, .bk5-opt > span, .bk5-chip span, .bk5-steps b, .bk5-back { transition: none !important; }
}
