/* Kotaga – prenotazione online e agenda (si appoggia a /css/style.css) */
[hidden] { display: none !important; }
.bk-body { padding-bottom: 0; }
.bk { max-width: 760px; padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.bk-head { display: flex; flex-direction: column; gap: 12px; }
.bk h1 { font-size: 48px; }
.bk-intro { max-width: 560px; color: var(--muted); }

.bk-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.bk-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 2px solid var(--line); transition: color .3s, border-color .3s; }
.bk-steps li span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.bk-steps li.is-current { color: var(--olive); border-top-color: var(--olive); }
.bk-steps li.is-done { color: var(--olive); border-top-color: var(--olive); }
.bk-steps li.is-done span { background: var(--olive); color: var(--cream); border-color: var(--olive); }

.bk-summary { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 18px 22px; background: var(--white); border-radius: 16px; border: 1px solid var(--line); }
.bk-summary > div { display: flex; flex-direction: column; gap: 2px; }
.bk-sum-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bk-summary strong { font-weight: 500; color: var(--ink); }

.bk-panel { display: flex; flex-direction: column; gap: 20px; }
.bk-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-cat { font: 500 14px/1 var(--sans); letter-spacing: .04em; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.bk-cat.is-active { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.bk-services { display: grid; gap: 10px; }
.bk-service { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); color: var(--text); font: inherit; cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .3s; }
.bk-service:hover { border-color: var(--olive); }
.bk-service.is-selected { border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive) inset; }
.bk-svc-name { font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.2; }
.bk-svc-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.bk-svc-price { color: var(--olive); font-weight: 500; }

.bk-cal { background: var(--white); border-radius: 20px; border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; }
.bk-cal-head strong { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink); }
.bk-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); font-size: 22px; line-height: 1; color: var(--olive); cursor: pointer; }
.bk-nav:disabled { opacity: .3; cursor: default; }
.bk-cal-wd, .bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk-cal-wd span { text-align: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-day { aspect-ratio: 1; border-radius: 50%; border: 1px solid transparent; background: transparent; font: 500 16px var(--sans); color: #B8AEA6; cursor: default; }
.bk-day.is-free { background: var(--sand); color: var(--ink); cursor: pointer; transition: background .3s, color .3s; }
.bk-day.is-free:hover { background: var(--olive-light); }
.bk-day.is-today { border-color: var(--olive); }
.bk-day.is-selected { background: var(--olive) !important; color: var(--cream); }
.bk-loading, .bk-hint { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--muted); }
.bk-times { display: flex; flex-direction: column; gap: 14px; }
.bk-times h2 { font-size: 26px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.bk-slot { padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font: 500 16px var(--sans); color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.bk-slot:hover { border-color: var(--olive); }
.bk-slot.is-selected { background: var(--olive); color: var(--cream); border-color: var(--olive); }

.bk-form { display: flex; flex-direction: column; gap: 16px; background: var(--white); border-radius: 20px; border: 1px solid var(--line); padding: 24px; }
.bk-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.bk-form input[type="text"], .bk-form input[type="tel"], .bk-form input[type="email"], .bk-form textarea, .bk-form select, .bk-form input[type="date"], .bk-form input[type="time"], .bk-form input[type="number"], .bk-form input[type="password"] {
  font: 17px var(--sans); color: var(--ink); padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); width: 100%; }
.bk-form input:focus, .bk-form textarea:focus, .bk-form select:focus { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.bk-check { flex-direction: row !important; align-items: flex-start; gap: 12px !important; font-size: 15px !important; letter-spacing: 0 !important; color: var(--text) !important; }
.bk-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--olive); flex-shrink: 0; }
.bk-hp { position: absolute; left: -9999px; }
.bk-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #F3E3DF; color: #7A2E22; font-size: 15px; }
.bk-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: #E6EAD3; color: #3F4A1E; font-size: 15px; }
.bk-submit { align-self: flex-start; }
.bk-back { margin: 0; }
.bk .link { background: none; border: 0; padding: 0; font: inherit; color: var(--olive); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.bk-done { align-items: flex-start; }
.bk-done-lash { width: 90px; }
.bk-done h2 { font-size: 40px; }
.bk-done-when { font-size: 18px; }
.bk-done-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bk-footer .footer-bottom { border-top: 0; padding-top: 32px; padding-bottom: 32px; }

@media (max-width: 760px) {
  .bk { padding-top: 32px; gap: 24px; }
  .bk h1 { font-size: 36px; }
  .bk-steps li { font-size: 0; gap: 0; }
  .bk-steps li span { font-size: 12px; }
  .bk-steps li.is-current { font-size: 12px; gap: 8px; }
  .bk-service { padding: 16px; }
  .bk-svc-name { font-size: 18px; }
  .bk-cal { padding: 14px; }
  .bk-form { padding: 18px; }
  .bk-submit { align-self: stretch; }
  .bk-done h2 { font-size: 32px; }
}

/* ---- Agenda (Cristina) ---- */
.ag-feed { margin-top: 8px; }
.ag-feed h2 { font-size: 24px; }
.ag { max-width: 760px; padding-top: 28px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 22px; }
.ag-exit { font-size: 14px; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.ag-exit:hover { color: var(--olive); }
.ag-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-nav a, .ag-nav button { font: 500 14px/1 var(--sans); letter-spacing: .04em; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text); text-decoration: none; cursor: pointer; }
.ag-nav a.is-active { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.ag-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ag-day-title { flex: 1; min-width: 0; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.ag-day-title h2 { font-size: 26px; line-height: 1.15; }
.ag-day-title span { font-size: 14px; color: var(--muted); }
.ag-day-title span a { color: var(--olive); }
.ag-arrow { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--olive); text-decoration: none; padding-bottom: 3px; }
.ag-arrow:hover { background: var(--sand); }
.ag-quick { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-none { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); }
.ag-none svg { width: 64px; color: var(--olive-light); }
.ag-none p { margin: 0; }
.ag-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ag-week a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 13px; }
.ag-week a.is-active { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.ag-week a.is-closed { opacity: .45; }
.ag-week a.is-today:not(.is-active) { border-color: var(--olive); }
.ag-week a strong { font-size: 18px; font-weight: 500; }
.ag-week a small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.ag-dots { display: flex; gap: 3px; height: 6px; }
.ag-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.ag-week a.is-active .ag-dots i { background: var(--cream); }
.ag-list { display: flex; flex-direction: column; gap: 10px; }
.ag-item { display: flex; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.ag-item.is-block { background: var(--sand); }
.ag-item.is-cancelled { opacity: .55; text-decoration: line-through; }
.ag-time { flex: 0 0 64px; font-weight: 500; color: var(--olive); }
.ag-time small { display: block; font-weight: 400; color: var(--muted); }
.ag-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ag-main strong { font-weight: 500; color: var(--ink); }
.ag-main .ag-meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ag-main .ag-meta a { color: var(--olive); white-space: nowrap; }
.ag-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ag-actions button, .ag-actions a { font: 500 13px/1 var(--sans); padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--text); cursor: pointer; text-decoration: none; }
.ag-actions .danger { color: #7A2E22; }
.ag-empty { margin: 0; color: var(--muted); }
.ag-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-form .full { grid-column: 1 / -1; }
.ag-form h2 { grid-column: 1 / -1; font-size: 24px; }
.ag-hours { display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.ag-hours input { min-width: 0; }
.ag-hours span { font-size: 15px; }
.ag-svc { display: grid; grid-template-columns: minmax(0, 1fr) 80px 90px 60px; gap: 8px 10px; align-items: center; font-size: 14px; }
.ag-svc .head { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ag-svc input { padding: 9px 10px !important; font-size: 15px !important; }
.ag-svc input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--olive); }
.ag-login { max-width: 420px; }
@media (max-width: 760px) {
  .ag-form { grid-template-columns: 1fr; }
  .ag-item { padding: 14px; gap: 10px 12px; flex-wrap: wrap; }
  .ag-actions { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .ag-hours { grid-template-columns: 82px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .ag-day-title h2 { font-size: 21px; }
  .ag-nav { gap: 6px; }
  .ag-nav a { padding: 9px 12px; font-size: 13px; }
  .ag-week a { padding: 8px 2px; }
  .ag-svc { grid-template-columns: 1fr 70px 80px 44px; }
}

/* Agenda: modulo nuovo appuntamento / sposta */
.ag-new { display: flex; flex-direction: column; gap: 18px; }
.ag-new-head { display: flex; flex-direction: column; gap: 6px; }
.ag-new-head h2 { font-size: 28px; }
.ag-new-head p { margin: 0; color: var(--muted); }
.ag-fs { margin: 0; padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); min-width: 0; }
.ag-fs legend { padding: 0 8px; margin-left: -8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--olive); font-weight: 500; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.ag-grid .full, .ag-fs .full { grid-column: 1 / -1; }
.ag-fs label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; letter-spacing: .04em; color: var(--muted); min-width: 0; }
.ag-fs label small { display: block; letter-spacing: 0; font-size: 12px; color: #9A8F88; }
.ag-fs label > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-lbl { display: block; font-size: 14px; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.ag-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-seg label { flex-direction: row !important; }
.ag-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.ag-seg span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); color: var(--text); font-size: 15px; letter-spacing: 0; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ag-seg input:checked + span { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.ag-seg input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.ag-suggest-wrap { position: relative; }
.ag-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(43, 36, 34, .10); overflow: hidden; }
.ag-suggest button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: 15px var(--sans); color: var(--ink); text-align: left; cursor: pointer; }
.ag-suggest button:last-child { border-bottom: 0; }
.ag-suggest button:hover { background: var(--sand); }
.ag-suggest button strong { font-weight: 500; }
.ag-suggest button span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.ag-fs input, .ag-fs select { font: 17px var(--sans); color: var(--ink); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream); width: 100%; min-width: 0; }
.ag-fs input:focus, .ag-fs select:focus { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.ag-busy { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ag-busy b { color: var(--olive); font-weight: 500; }
.ag-opts { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.ag-opts .bk-check { font-size: 15px; color: var(--text); }
.ag-new-actions { display: flex; align-items: center; gap: 20px; }
@media (max-width: 760px) {
  .ag-grid { grid-template-columns: 1fr; }
  .ag-fs { padding: 16px; }
  .ag-new-actions { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
}

/* Controlli con icone olive (dopo le regole base, così hanno la precedenza) */
.ag-fs select, .bk-form select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6236' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
.ag-fs input[type="date"], .ag-fs input[type="time"], .bk-form input[type="date"], .bk-form input[type="time"] {
  position: relative; padding-right: 44px; -webkit-appearance: none; appearance: none;
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
.ag-fs input[type="date"], .bk-form input[type="date"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6236' stroke-width='1.6' stroke-linecap='round'><rect x='3.5' y='5' width='17' height='15.5' rx='3'/><path d='M3.5 10h17M8 3v4M16 3v4'/></svg>"); }
.ag-fs input[type="time"], .bk-form input[type="time"] { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6236' stroke-width='1.6' stroke-linecap='round'><circle cx='12' cy='12' r='8.5'/><path d='M12 7.5V12l3 2'/></svg>"); }
.ag-fs input::-webkit-calendar-picker-indicator, .bk-form input::-webkit-calendar-picker-indicator { position: absolute; right: 0; top: 0; width: 46px; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ag-fs input::-webkit-date-and-time-value, .bk-form input::-webkit-date-and-time-value { text-align: left; }
.ag-grid-svc { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .ag-grid-svc { grid-template-columns: 1fr; } }

/* I pulsanti veri (<button>) devono avere lo stesso aspetto dei link-pulsante */
button.btn { -webkit-appearance: none; appearance: none; border: 0; margin: 0; font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1; cursor: pointer; box-shadow: none; }
button.btn-small { font-size: 15px; }
button.btn-outline { border: 1px solid var(--olive); background: transparent; }
button.btn:disabled { opacity: .6; cursor: default; }
button.btn:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* Agenda: timeline del giorno e della settimana */
.ag-goto { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-left: auto; }
.ag-goto input { font: 15px var(--sans); color: var(--ink); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.ag-tip { margin: -8px 0 0; font-size: 13px; color: #9A8F88; }
.tl { display: flex; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 18px 0; overflow: hidden; }
.tl-hours { position: relative; flex: 0 0 52px; height: var(--tl-h); }
.tl-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-cols { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(var(--tl-n), minmax(0, 1fr)); gap: 4px; }
.tl-col { position: relative; height: var(--tl-h); border-left: 1px solid var(--line); cursor: copy; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(43,36,34,.035) 6px 7px); }
.tl-col.is-closed { cursor: default; }
.tl-open { position: absolute; left: 0; right: 0; background: var(--white); pointer-events: none; }
.tl-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); pointer-events: none; }
.tl-line.tl-half { border-top-style: dashed; opacity: .6; }
.tl-ev { position: absolute; left: 6px; right: 6px; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--olive-light); border-left: 3px solid var(--olive); color: var(--ink); text-decoration: none; overflow: hidden; line-height: 1.25; transition: filter .2s; }
.tl-ev:hover { filter: brightness(.96); }
.tl-ev.is-web { background: #E6EAD3; }
.tl-ev.is-block { background: var(--sand); border-left-color: #B8AEA6; color: var(--muted); }
.tl-t { font-size: 12px; font-weight: 500; color: var(--olive-dark); font-variant-numeric: tabular-nums; }
.tl-ev.is-block .tl-t { color: var(--muted); }
.tl-n { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-now { position: absolute; left: 0; right: 0; z-index: 3; border-top: 2px solid #B4472E; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; left: -5px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: #B4472E; }
.tl-col.is-today { background-color: #FBF9F5; }
/* settimana */
.tl-week { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.tl-week > * { min-width: 680px; }
.tl-week-head { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
.tl-week-head a { grid-column: span 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 12px; }
.tl-week-head a:first-child { grid-column: 2; }
.tl-week-head a strong { font-size: 18px; font-weight: 500; }
.tl-week-head a.is-today { background: var(--olive); color: var(--cream); }
.tl-week-head a small { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; min-height: 13px; }
.tl-compact .tl-ev { left: 2px; right: 2px; padding: 3px 6px; border-radius: 7px; }
.tl-compact .tl-t { font-size: 10.5px; }
.tl-compact .tl-n { font-size: 12px; }
@media (max-width: 760px) {
  .ag-goto { margin-left: 0; }
  .tl { padding-right: 8px; }
  .tl-hours { flex-basis: 44px; }
}

/* Frecce di settimana accanto alla striscia dei giorni */
.ag-weeknav { display: flex; align-items: center; gap: 8px; }
.ag-weeknav .ag-week { flex: 1; min-width: 0; }
.ag-weeknav .ag-arrow { flex: 0 0 40px; width: 40px; height: 40px; font-size: 24px; }
.ag-day-head-plain { justify-content: center; }
@media (max-width: 760px) {
  .ag-weeknav { gap: 4px; }
  .ag-weeknav .ag-arrow { flex-basis: 32px; width: 32px; height: 32px; font-size: 20px; }
  .ag-weeknav .ag-week { gap: 3px; }
  .ag-weeknav .ag-week a { padding: 8px 0; }
  .ag-weeknav .ag-week a strong { font-size: 16px; }
  .ag-weeknav .ag-week a small { font-size: 10px; }
}

/* Calendario e orari: cambio mese fluido, entrate morbide */
.bk-cal { overflow: hidden; }
.bk-cal-grid { transition: opacity .25s cubic-bezier(.22,.61,.36,1); }
.bk-cal-grid > span { aspect-ratio: 1; }
.bk-cal-grid.is-busy { opacity: .45; }
.bk-cal-grid.in-next { animation: bk-in-next .45s cubic-bezier(.16,1,.3,1) backwards; }
.bk-cal-grid.in-prev { animation: bk-in-prev .45s cubic-bezier(.16,1,.3,1) backwards; }
.bk-cal-grid.in-fade, #cal-title.in-fade { animation: bk-in-fade .4s cubic-bezier(.22,.61,.36,1) backwards; }
@keyframes bk-in-next { from { opacity: 0; transform: translateX(32px); } }
@keyframes bk-in-prev { from { opacity: 0; transform: translateX(-32px); } }
@keyframes bk-in-fade { from { opacity: 0; } }
.bk-nav { transition: background-color .3s, opacity .3s, transform .2s; }
.bk-nav:not(:disabled):hover { background: var(--olive-light); }
.bk-nav:not(:disabled):active { transform: scale(.92); }
.bk-day.is-free { transition: background-color .3s, color .3s, transform .2s; }
.bk-day.is-free:active { transform: scale(.92); }
.bk-slot { transition: background-color .3s, color .3s, border-color .3s, transform .2s; animation: bk-rise .4s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(var(--n, 0) * 30ms); }
.bk-slot:active { transform: scale(.96); }
.bk-service { transition: border-color .3s, box-shadow .3s, transform .2s; }
.bk-service:active { transform: scale(.99); }
.bk-panel, .bk-times { animation: bk-rise .45s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes bk-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .bk-cal-grid, #cal-title, .bk-slot, .bk-panel, .bk-times { animation: none !important; }
}

/* ---------- acconto online ---------- */
.bk-pay { padding: 16px 18px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.bk-pay p { margin: 0; }
.bk-pay #bk-pay-note { color: var(--ink); font-weight: 500; }
.bk-pay .bk-pay-policy { margin-top: 6px; color: var(--muted); font-size: 14px; }
.bk-paid { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--olive); font-size: 15px; }
.bk-unpaid { margin-top: 14px; }
.ag-paid { color: var(--olive); font-weight: 500; }
.ag-actions form { display: flex; align-items: center; gap: 8px; }
.ag-refund { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bk-testbar { padding: 10px 16px; background: #7A2E22; color: #FFFFFF; font-size: 13px; letter-spacing: .04em; text-align: center; }
.bk-testbar a { color: #FFFFFF; text-decoration: underline; }
.ag-test { padding: 1px 6px; border-radius: 4px; background: #7A2E22; color: #FFFFFF; font-size: 11px; letter-spacing: .06em; }

/* ---------- telefono con prefisso del paese ---------- */
.bk-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.bk-phone { display: flex; gap: 8px; }
.bk-phone input[type="tel"] { flex: 1; min-width: 0; }
.bk-cc { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 30px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--cream) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6236' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 10px center / 14px; font: 17px var(--sans); color: var(--ink); letter-spacing: 0; white-space: nowrap; }
.bk-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.bk-cc:focus-within { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }

/* ---------- pulsante di conferma: come sulla home (oliva, arrotondato), a tutta larghezza ---------- */
.bk-form .bk-submit { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; align-self: stretch; width: 100%; min-height: 58px; margin-top: 4px; padding: 10px 28px; border: 0; border-radius: 999px; background: var(--olive); color: #FFFFFF; font: 500 17px/1.2 var(--sans); letter-spacing: .01em; text-align: center; cursor: pointer; transition: background-color .3s, transform .15s; }
.bk-form .bk-submit:hover { background: var(--olive-dark, #4B5230); }
.bk-form .bk-submit:active { transform: scale(.985); }
.bk-form .bk-submit:disabled { opacity: .75; cursor: progress; }
.bk-form .bk-submit:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.bk-submit-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; letter-spacing: .02em; opacity: .88; }
.bk-submit-sub[hidden] { display: none; }
.bk-submit-sub::before { content: ""; width: 11px; height: 11px; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10.5' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- acconto: oggi / in studio, regola breve, marchi di pagamento ---------- */
.bk-pay { padding: 14px 18px; }
.bk-pay #bk-pay-note { font-size: 17px; font-weight: 500; color: var(--ink); }
.bk-pay .bk-pay-policy { margin-top: 2px; font-size: 14px; }
.bk-sum-pay { display: block; margin-top: 2px; font-size: 13px; color: var(--olive); }
.bk-marks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; letter-spacing: .02em; color: var(--muted); }
.bk-marks img { display: block; width: 41px; height: 26px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); background: #FFFFFF; }
