/* Pagina prenotazioni: usa i colori, i font e i componenti del sito (vedi gli stili in testa alla pagina). */
.bk-hero { padding-bottom: 6px; }
.bk-hero .hero-copy { padding-bottom: 38px; }

.bk-planner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 96px;
}

/* Calendario */
.bk-cal {
  position: relative;
  background: #edf2ed;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 30px 26px;
}
.bk-cal-nav { position: absolute; top: 24px; right: 26px; display: flex; gap: 8px; z-index: 1; }
.bk-nav {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid #90a897; background: transparent;
  display: grid; place-content: center; font-size: 19px; line-height: 1;
  transition: background .2s;
}
.bk-nav:hover:not(:disabled) { background: var(--paper); }
.bk-nav:disabled { opacity: .35; cursor: default; }

.bk-months { display: grid; gap: 36px; }
.bk-months.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-month h3 {
  font-size: 25px; font-weight: 450; letter-spacing: -.7px; line-height: 1.2;
  margin: 6px 0 22px; min-height: 30px; padding-right: 112px;
}
.bk-months.two .bk-month:first-child h3 { padding-right: 0; }
.bk-month h3::first-letter { text-transform: uppercase; }

.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.bk-wd {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: #617168; text-align: center; padding-bottom: 10px;
}
.bk-d {
  aspect-ratio: 1; min-width: 0; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink); font-size: 16px; font-weight: 400;
  display: grid; place-items: center;
}
.bk-d span {
  width: 86%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
  transition: background .15s, box-shadow .15s;
}
.bk-d:disabled { cursor: default; }
.bk-d:not(:disabled):not(.start):not(.end):hover span { background: var(--paper); box-shadow: inset 0 0 0 1px var(--green); }
.bk-d:focus-visible { outline: none; }
.bk-d:focus-visible span { outline: 3px solid #7da18a; outline-offset: 2px; }
.bk-d.past { color: #a3b0a8; }
.bk-d.today span { box-shadow: inset 0 0 0 1.5px var(--green); }
.bk-d.busy { color: #7b8a81; background: repeating-linear-gradient(135deg, #c3d0c7 0 1px, transparent 1px 7px); }
.bk-d.busy span { text-decoration: line-through; text-decoration-thickness: 1px; }
.bk-d.busy.checkout-ok { color: var(--ink); }
.bk-d.busy.checkout-ok span { text-decoration: none; background: #edf2ed; }
.bk-d.in { background: #d3e2d8; }
.bk-d.start.joined { background: linear-gradient(90deg, transparent 50%, #d3e2d8 50%); }
.bk-d.end { background: linear-gradient(90deg, #d3e2d8 50%, transparent 50%); }
.bk-d.start span, .bk-d.end span {
  background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; box-shadow: none;
}

.bk-hint { min-height: 1.6em; margin-top: 16px; font-size: 14px; line-height: 1.5; color: #9a4a35; }
.bk-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 6px 0 0; color: #617168; font-size: 13px; }
.bk-legend li { display: flex; align-items: center; gap: 9px; }
.bk-sw { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: none; }
.bk-sw-free { box-shadow: inset 0 0 0 1px var(--green); background: var(--paper); }
.bk-sw-busy { border-radius: 4px; background: repeating-linear-gradient(135deg, #b4c3b9 0 1px, transparent 1px 5px); }
.bk-sw-stay { width: 32px; border-radius: 9px; background: #d3e2d8; box-shadow: inset 9px 0 0 var(--ink); }

/* Riepilogo e richiesta: richiama il riquadro scuro "La prossima pausa comincia qui" della home */
.bk-panel {
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 34px 32px 30px;
  position: sticky; top: calc(var(--navigation-offset, 0px) + 20px);
}
.bk-eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 1.2px; color: #d0e0d2; margin-bottom: 22px; }
.bk-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bk-dates dt { font-size: 12px; color: #c3d1c8; margin-bottom: 6px; }
.bk-dates dd { font-size: 25px; font-weight: 400; letter-spacing: -.6px; line-height: 1.15; }
.bk-dates small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: 0; color: #c3d1c8; }
.bk-nights {
  margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid #668170;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px;
  font-size: 15px; line-height: 1.5; color: #c3d1c8;
}
.bk-panel.ready .bk-nights { color: var(--paper); font-weight: 500; }
.bk-link {
  background: none; border: 0; border-bottom: 1px solid #799786; padding: 0 0 2px;
  color: #d0e0d2; font-size: 14px; font-weight: 400; min-height: 0;
}
.bk-link:hover { color: var(--paper); }

.bk-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; transition: opacity .2s; }
.bk-panel fieldset:disabled { opacity: .42; }
.bk-panel label { display: block; margin: 18px 0 7px; font-size: 13px; color: #c3d1c8; }
.bk-opt { color: #90a897; }
.bk-panel input:not([type=checkbox]), .bk-panel select, .bk-panel textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px;
  color: var(--paper); background: rgba(248, 250, 247, .06);
  border: 1px solid #668170; border-radius: 7px; padding: 13px 14px; color-scheme: dark;
}
.bk-panel textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.bk-panel ::placeholder { color: #90a897; }
.bk-panel input:focus, .bk-panel select:focus, .bk-panel textarea:focus {
  outline: none; border-color: #d0e0d2; box-shadow: 0 0 0 3px rgba(208, 224, 210, .22);
}
.bk-panel option { color: var(--ink); background: var(--paper); }
.bk-pair { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.bk-panel .bk-check { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; font-size: 13px; line-height: 1.5; }
.bk-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #d0e0d2; }
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-send {
  margin-top: 24px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 19px 22px; border: 0; border-radius: 7px;
  background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 500;
  transition: background .2s, transform .15s;
}
.bk-send:hover:not(:disabled) { background: var(--sage); }
.bk-send:active:not(:disabled) { transform: scale(.98); }
.bk-send:hover:not(:disabled) .arrow { transform: translate(3px, -3px); }
.bk-panel fieldset:disabled .bk-send { cursor: default; }
.bk-err { margin-top: 14px; font-size: 14px; line-height: 1.5; color: #f3c9b9; }
.bk-err:empty { display: none; }
.bk-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: #c3d1c8; }
.bk-done h2 { font-size: 36px; font-weight: 400; letter-spacing: -1px; margin: 4px 0 14px; outline: none; }
.bk-done p { font-size: 16px; line-height: 1.6; color: #d0e0d2; margin-bottom: 20px; overflow-wrap: anywhere; }

/* Foto */
.bk-photos { padding-bottom: 110px; }
.bk-photo-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: clamp(300px, 32vw, 440px); gap: 17px; }
.bk-photo-row figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--sage); }
.bk-photo-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-photo-row figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 20px 18px;
  color: #fff; font-size: 14px; background: linear-gradient(transparent, #10211699);
}

.bk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 1050px) {
  .bk-planner { grid-template-columns: minmax(0, 1fr); }
  .bk-panel { position: static; }
}
@media (max-width: 760px) {
  .bk-hero .hero-copy { padding-bottom: 26px; }
  .bk-planner { padding-bottom: 64px; gap: 16px; }
  .bk-cal { padding: 22px 14px 20px; border-radius: 10px; }
  .bk-cal-nav { top: 16px; right: 12px; }
  .bk-month h3 { font-size: 22px; margin-left: 4px; }
  .bk-d { font-size: 15px; }
  .bk-legend { padding: 0 4px; }
  .bk-panel { padding: 28px 22px 24px; border-radius: 10px; }
  .bk-dates dd { font-size: 21px; }
  .bk-pair { grid-template-columns: minmax(0, 1fr) 124px; }
  .bk-photos { padding-bottom: 72px; }
  .bk-photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 56vw, 300px); gap: 10px; }
  .bk-photo-row figure:first-child { grid-column: span 2; }
  .bk-photo-row figcaption { font-size: 12px; padding: 32px 13px 12px; }
}
@media (max-width: 380px) {
  .bk-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bk-d span, .bk-send, .bk-nav, .bk-panel fieldset { transition: none; }
}

/* Link all’informativa privacy accanto al consenso */
.bk-check a { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
