/* =====================================================================
   Sicily Connection - interfaccia di prenotazione (2026)
   Widget della pagina escursione + checkout.
   Colori del marchio: nero #1c1c1c e ambra #eca13b. Il testo sui pulsanti
   ambra e' scuro, perche' il bianco su ambra non si legge abbastanza
   (contrasto 2,2:1; scuro su ambra 9:1).
   ===================================================================== */
:root {
  --scb-ink: #16130f;
  --scb-ink2: #46413a;
  --scb-muted: #6a645b;
  --scb-line: #e3ded5;
  --scb-line-strong: #b9b3a8;
  --scb-soft: #f6f3ee;
  --scb-brand: #eca13b;
  --scb-brand-d: #d48524;
  --scb-ok: #17693f;
  --scb-ok-bg: #edf7f1;
  --scb-err: #b3261e;
  --scb-warn: #8a5a00;
  --scb-radius: 16px;
  --scb-shadow: 0 6px 16px rgba(22, 19, 15, .08), 0 2px 4px rgba(22, 19, 15, .06);
  --scb-top: calc(var(--smart-nav-height-desktop-scrolled, 92px) + 18px);
  --scb-font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.scb-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- impianto della pagina ---------- */
.scb-page .scb-wrap { max-width: 1180px; font-family: var(--scb-font); color: var(--scb-ink); }
.scb-head { padding: 30px 0 4px; }
/* Foto in cima alla pagina, come GetYourGuide: copertina grande e, accanto, altre due foto;
   il pulsante apre tutte le foto a schermo intero. Larga quanto la pagina, non a tutto schermo.
   Su telefono le foto scorrono in orizzontale. */
.scb-page .scb-gallery {
  position: relative; display: grid; gap: 8px; height: clamp(300px, 33vw, 420px);
  margin: 18px 0 30px; border-radius: 18px; overflow: hidden;
}
.scb-gallery-n1 { grid-template-columns: minmax(0, 1fr); }
.scb-gallery-n2 { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.scb-gallery-n3 { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.scb-gallery-n3 .scb-gal-main { grid-row: 1 / span 2; }
.scb-gal-item { display: block; min-width: 0; min-height: 0; overflow: hidden; background: var(--scb-soft); }
.scb-gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.scb-gal-item:hover img { transform: scale(1.03); }
.scb-gal-item:focus-visible { outline: 3px solid var(--scb-brand-d); outline-offset: -3px; }
.scb-gal-extra { display: none; }
.scb-gal-all {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid rgba(22, 19, 15, .16); border-radius: 999px;
  background: #fff; color: var(--scb-ink); font: 800 14px/1 var(--scb-font); cursor: pointer;
  box-shadow: 0 2px 10px rgba(22, 19, 15, .18);
}
.scb-gal-all:hover { background: var(--scb-soft); }
.scb-gal-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scb-gal-all-n::before { content: "("; }
.scb-gal-all-n::after { content: ")"; }
/* la finestra delle foto sta sopra la barra di navigazione fissa */
.mfp-bg { z-index: 10800 !important; }
.mfp-wrap { z-index: 10810 !important; }
@media (max-width: 900px) {
  .scb-page .scb-gallery {
    display: flex; gap: 6px; height: auto; margin: 14px 0 22px; border-radius: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .scb-page .scb-gallery::-webkit-scrollbar { display: none; }
  .scb-gal-item, .scb-gal-extra { display: block; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .scb-gallery-n1 .scb-gal-item { aspect-ratio: 16 / 9; }
  .scb-gal-all { position: sticky; right: 10px; bottom: auto; align-self: flex-end; flex: 0 0 auto; margin: 0 10px 10px -120px; height: 34px; padding: 0 12px; font-size: 13px; }
  .scb-gal-all-text { display: none; }
  .scb-gal-all-n::before, .scb-gal-all-n::after { content: ""; }
}
@media (prefers-reduced-motion: reduce) { .scb-gal-item img { transition: none; } }
.scb-page .scb-head h1 {
  margin: 0 0 12px; padding: 0; text-align: left; color: var(--scb-ink);
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12;
}
.scb-head-meta {
  display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; padding: 0; list-style: none;
  color: var(--scb-ink2); font-size: 15px; font-weight: 700;
}
.scb-head-meta li + li::before { content: "\00b7"; margin: 0 10px; color: var(--scb-line-strong); }
.scb-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 368px; gap: 44px;
  align-items: start; padding: 22px 0 10px;
}
.scb-main { min-width: 0; }
.scb-desc { font-size: 16px; line-height: 1.65; color: var(--scb-ink2); }
.scb-desc p { margin: 0 0 1em; }
.scb-aside { position: sticky; top: var(--scb-top); }

/* ---------- widget ---------- */
.scb-widget {
  position: relative; padding: 22px; background: #fff; border: 1px solid var(--scb-line);
  border-radius: var(--scb-radius); box-shadow: var(--scb-shadow);
  font-family: var(--scb-font); color: var(--scb-ink);
}
.scb-sheet-head { display: none; }
.scb-price { margin-bottom: 16px; }
.scb-promo-tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 6px;
  background: #b3261e; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.scb-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; }
.scb-price-from, .scb-price-unit { font-size: 15px; color: var(--scb-ink2); }
.scb-price-old { font-size: 16px; color: var(--scb-muted); }
.scb-price-now { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.01em; }
.scb-price-sub { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: var(--scb-muted); }

.scb-field { position: relative; margin-bottom: 10px; }
.scb-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--scb-ink); }
.scb-select {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; margin: 0;
  padding: 0 16px; border: 0; border-radius: 999px; background: rgba(22, 19, 15, .075);
  color: var(--scb-ink); font: 700 15px/1.2 var(--scb-font); text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
.scb-select:hover { background: rgba(22, 19, 15, .12); }
.scb-select-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scb-select-native { padding-right: 16px; }
/* Riga informativa con lo stesso aspetto dei menu ma non cliccabile (lingua del tour: inglese) */
.scb-select-static, .scb-select-static:hover { cursor: default; background: rgba(22, 19, 15, .045); }
.scb-select-native select {
  flex: 1; min-width: 0; height: 50px; margin: 0; padding: 0; border: 0; background: transparent;
  color: inherit; font: inherit; cursor: pointer; appearance: none; -webkit-appearance: none; outline: 0;
}
.scb-select-native:focus-within { outline: 3px solid var(--scb-brand-d); outline-offset: 2px; }
/* il contorno di messa a fuoco lo disegna la pillola: il campo al suo interno non ne
   aggiunge un secondo (altrimenti si vedono due contorni, uno dentro l'altro) */
.scb-select-native select:focus, .scb-select-native select:focus-visible,
.scb-select-native input:focus, .scb-select-native input:focus-visible {
  outline: 0; box-shadow: none;
}
.scb-ico {
  flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.scb-ico-ok { color: var(--scb-ok); }
.scb-ico-fill { fill: currentColor; stroke: none; }
.scb-chev {
  flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; pointer-events: none;
}
.scb-select[aria-expanded="true"] .scb-chev { transform: rotate(180deg); }
.scb-hint { margin: 6px 4px 0; font-size: 13.5px; font-weight: 700; color: var(--scb-err); }
.scb-hint:empty { display: none; }

.scb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scb-seg-btn {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 14px;
  border: 1.5px solid var(--scb-line-strong); border-radius: 12px; background: #fff; color: var(--scb-ink);
  font: 700 14px/1.25 var(--scb-font); cursor: pointer; text-align: left;
}
.scb-seg-btn b { font-size: 16px; font-weight: 800; }
.scb-seg-btn.is-on { border-color: var(--scb-ink); background: var(--scb-ink); color: #fff; }

/* pulsanti */
.scb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 0 26px; border: 2px solid transparent; border-radius: 999px; background: none;
  font: 800 16px/1.2 var(--scb-font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .06s ease;
}
.scb-btn:active { transform: scale(.985); }
.scb-btn-block { width: 100%; }
.scb-btn-lg { min-height: 54px; padding: 0 34px; font-size: 17px; }
.scb-btn-primary { background: var(--scb-brand); border-color: var(--scb-brand); color: #1c1c1c; }
.scb-btn-primary:hover { background: var(--scb-brand-d); border-color: var(--scb-brand-d); color: #1c1c1c; }
.scb-btn-primary:disabled, .scb-btn-primary[aria-disabled="true"] {
  background: #ebe7e0; border-color: #ebe7e0; color: #7d776d; cursor: not-allowed; transform: none;
}
.scb-btn-dark { background: var(--scb-ink); border-color: var(--scb-ink); color: #fff; }
.scb-btn-dark:hover { background: #2e2a24; border-color: #2e2a24; color: #fff; }
.scb-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.scb-btn.is-busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(28, 28, 28, .25); border-top-color: #1c1c1c; animation: scb-spin .7s linear infinite;
}
@keyframes scb-spin { to { transform: rotate(360deg); } }
.scb-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--scb-ink); font-size: 20px; cursor: pointer;
}
.scb-iconbtn:hover { background: rgba(22, 19, 15, .08); }
.scb-iconbtn:disabled { color: #c9c3b9; cursor: not-allowed; background: transparent; }
.scb-link {
  padding: 4px 0; border: 0; background: none; color: var(--scb-ink); font: 800 15px/1.2 var(--scb-font);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.scb-link:hover { color: var(--scb-brand-d); }
.scb-widget :focus-visible, .scb-avail :focus-visible, .scb-bar :focus-visible, .scb-wa:focus-visible,
.scc :focus-visible {
  outline: 3px solid var(--scb-brand-d); outline-offset: 2px;
}

/* popover */
.scb-pop {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; padding: 18px;
  background: #fff; border: 1px solid var(--scb-line); border-radius: var(--scb-radius);
  box-shadow: 0 18px 44px rgba(22, 19, 15, .2);
}
.scb-pop[hidden] { display: none; }
.scb-pop-cal { left: auto; right: 0; width: min(660px, calc(100vw - 48px)); }
.scb-count-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--scb-line);
}
.scb-count-row:first-child { padding-top: 0; }
.scb-count-label { display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--scb-muted); }
.scb-count-label b { font-size: 16px; color: var(--scb-ink); }
.scb-count-note { color: var(--scb-ok); font-weight: 700; }
.scb-count { display: flex; align-items: center; gap: 6px; flex: none; }
.scb-count-btn {
  width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--scb-ink); border-radius: 50%; background: #fff;
  color: var(--scb-ink); font: 700 20px/1 var(--scb-font); cursor: pointer;
}
.scb-count-btn:hover { background: var(--scb-ink); color: #fff; }
.scb-count-btn:disabled { border-color: var(--scb-line); color: #c9c3b9; background: #fff; cursor: not-allowed; }
.scb-count-val { min-width: 30px; text-align: center; font-size: 17px; font-weight: 800; }
.scb-pop-note { margin: 12px 0 14px; font-size: 13px; line-height: 1.45; color: var(--scb-muted); }

/* calendario */
.scb-cal { position: relative; }
.scb-cal-nav { position: absolute; top: -6px; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.scb-cal-nav .scb-iconbtn { pointer-events: auto; }
.scb-cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.scb-cal-title { margin-bottom: 12px; text-align: center; font-size: 16px; font-weight: 800; line-height: 28px; text-transform: capitalize; }
.scb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; justify-items: center; }
.scb-cal-wd { padding: 4px 0 8px; font-size: 12px; font-weight: 700; color: var(--scb-muted); text-transform: capitalize; }
.scb-day {
  position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--scb-ink); font: 700 15px/1 var(--scb-font); cursor: pointer;
}
.scb-day:hover:not(:disabled) { background: rgba(22, 19, 15, .1); }
.scb-day.is-today { box-shadow: inset 0 0 0 1.5px var(--scb-line-strong); }
/* Colori della disponibilita' (gli stessi del calendario di prima): verde libero,
   giallo mezza giornata occupata, rosso pieno, grigio non prenotabile. */
.scb-day.is-free { background: #d9f0df; color: #155724; }
.scb-day.is-free:hover:not(:disabled) { background: #bfe5c8; }
.scb-day.is-part { background: #fff0c2; color: #6b4e00; }
.scb-day.is-part:hover:not(:disabled) { background: #ffe394; }
.scb-day.is-off { cursor: not-allowed; }
.scb-day.is-full { background: #f8d7da; color: #842029; text-decoration: line-through; }
.scb-day.is-past { background: transparent; color: #b3ada3; font-weight: 500; }
.scb-day.is-sel, .scb-day.is-sel:hover:not(:disabled) { background: var(--scb-ink); color: #fff; }
.scb-cal-legend {
  display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--scb-line); font-size: 13px; color: var(--scb-ink2);
}
.scb-cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.scb-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.scb-dot-free { background: #d9f0df; box-shadow: inset 0 0 0 1.5px #155724; }
.scb-dot-part { background: #fff0c2; box-shadow: inset 0 0 0 1.5px #6b4e00; }
.scb-dot-full { background: #f8d7da; box-shadow: inset 0 0 0 1.5px #842029; }

.scb-assure { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--scb-line); list-style: none; }
.scb-assure li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.4; font-weight: 700; }
.scb-assure li + li { margin-top: 9px; }
.scb-wa {
  display: block; margin: 14px 4px 0; text-align: center; font: 700 14px/1.4 var(--scb-font);
  color: var(--scb-ink2); text-decoration: underline; text-underline-offset: 3px;
}
.scb-wa:hover { color: var(--scb-ok); }

/* ---------- scheda disponibilita' ---------- */
.scb-avail { margin: 0 0 30px; scroll-margin-top: var(--scb-top); font-family: var(--scb-font); color: var(--scb-ink); }
.scb-avail[hidden] { display: none; }
.scb-card {
  margin: 0; padding: 24px; background: #fff; border: 2px solid var(--scb-brand);
  border-radius: var(--scb-radius); box-shadow: var(--scb-shadow); animation: scb-rise .25s ease-out;
}
@keyframes scb-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.scb-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.scb-kicker { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--scb-brand-d); }
.scb-avail .scb-card-title {
  margin: 0; padding: 0; text-align: left; color: var(--scb-ink);
  font: 800 21px/1.25 var(--scb-font); letter-spacing: 0; text-transform: none; outline: 0;
}
.scb-meta {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; margin: 16px 0 0; padding: 0;
  list-style: none; font-size: 15px; line-height: 1.4; color: var(--scb-ink2);
}
.scb-meta li { display: flex; gap: 9px; align-items: flex-start; min-width: 0; }
.scb-meta li[hidden] { display: none; }
.scb-meta span::first-letter { text-transform: uppercase; }
.scb-meta-ok { color: var(--scb-ok); font-weight: 700; }
.scb-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--scb-line); }
.scb-avail .scb-h3 {
  margin: 0 0 12px; padding: 0; text-align: left; color: var(--scb-ink);
  font: 800 16px/1.3 var(--scb-font); letter-spacing: 0; text-transform: none;
}
.scb-avail .scb-h3-lg { font-size: 20px; margin-bottom: 18px; }
.scb-status:empty { display: none; }
.scb-status { margin-bottom: 12px; font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.scb-status .text-success { color: var(--scb-ok) !important; }
.scb-status .text-danger { color: var(--scb-err) !important; }
.scb-status .text-warning { color: var(--scb-warn) !important; }
.scb-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.scb-slots .btn.duration-btn {
  min-width: 148px; min-height: 56px; margin: 0; padding: 9px 18px; border: 1.5px solid var(--scb-ink);
  border-radius: 12px; background: #fff; color: var(--scb-ink); font-family: var(--scb-font);
  text-align: left; line-height: 1.25; box-shadow: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.scb-slots .btn.duration-btn b { display: block; font-size: 16px; font-weight: 800; }
.scb-slots .btn.duration-btn span { display: block; font-size: 13.5px; color: var(--scb-muted); }
.scb-slots .btn.duration-btn:hover:not(:disabled) { background: var(--scb-soft); }
.scb-slots .btn.duration-btn.selected,
.scb-slots .btn.duration-btn.selected:hover:not(:disabled) { background: var(--scb-ink); color: #fff; }
.scb-slots .btn.duration-btn.selected span { color: #e3ded5; }
.scb-slots .btn.duration-btn:disabled {
  border-color: var(--scb-line); background: var(--scb-soft); color: #9d968b; opacity: 1; cursor: not-allowed;
}
.scb-slots .btn.duration-btn:disabled b { text-decoration: line-through; font-weight: 600; }
.scb-slots .btn.duration-btn:disabled span { color: #9d968b; }

.scb-breakdown { margin: 0 0 14px; }
.scb-break-row { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: 15px; }
.scb-break-row dt { margin: 0; font-weight: 500; color: var(--scb-ink2); }
.scb-break-row dd { margin: 0; font-weight: 700; white-space: nowrap; }
.scb-break-row.is-ok dt, .scb-break-row.is-ok dd { color: var(--scb-ok); font-weight: 700; }
.scb-total-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 24px; align-items: end; }
.scb-total-block .scb-breakdown { grid-column: 1 / -1; }
.scb-total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; grid-column: 1; }
.scb-total-label { display: block; font-size: 17px; font-weight: 800; }
.scb-total-sub { display: block; font-size: 13px; color: var(--scb-ok); font-weight: 700; }
.scb-total-note { font-size: 13px; font-weight: 700; color: var(--scb-ok); }
.scb-total { font-size: 28px; font-weight: 800; line-height: 1.1; white-space: nowrap; letter-spacing: -.01em; }
.scb-total-block > .scb-btn { grid-column: 2; }
.scb-total-block > .scb-btn[hidden] { display: none; }
.scb-total-block:has(> .scb-btn[hidden]) .scb-total-row { grid-column: 1 / -1; }

/* passo 2: dati */
.scb-details { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--scb-line); animation: scb-rise .25s ease-out; }
.scb-details[hidden] { display: none; }
.scb-input-group { margin-bottom: 18px; }
.scb-input {
  display: block; width: 100%; min-height: 50px; margin: 0; padding: 11px 14px; border: 1.5px solid var(--scb-line-strong);
  border-radius: 12px; background: #fff; color: var(--scb-ink); font: 500 16px/1.3 var(--scb-font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.scb-input::placeholder { color: #8e887e; }
.scb-input:hover { border-color: var(--scb-ink2); }
.scb-input:focus { border-color: var(--scb-ink); box-shadow: 0 0 0 3px rgba(236, 161, 59, .45); outline: 0; }
.scb-input[aria-invalid="true"] { border-color: var(--scb-err); }
select.scb-input { padding-right: 36px; cursor: pointer; }
.scb-input-icon { position: relative; }
.scb-input-icon .scb-ico { position: absolute; left: 14px; top: 15px; color: var(--scb-muted); pointer-events: none; }
.scb-input-icon .scb-input { padding-left: 44px; }
.scb-help { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--scb-muted); }
.scb-help.is-ok { color: var(--scb-ok); font-weight: 700; }
.scb-help.is-err { color: var(--scb-err); font-weight: 700; }
.scb-error { margin: 6px 0 0; font-size: 14px; line-height: 1.4; font-weight: 700; color: var(--scb-err); }
.scb-error[hidden] { display: none; }
.scb-alt { margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff7e8; border: 1px solid #f0d49c; }
.scb-disclosure { margin-bottom: 18px; }
.scb-disclosure summary {
  display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; list-style: none;
}
.scb-disclosure summary::-webkit-details-marker { display: none; }
.scb-discount { display: flex; gap: 8px; margin-top: 12px; }
.scb-discount .scb-input { flex: 1; min-width: 0; }
.scb-input-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scb-input-code.is-applied { background: var(--scb-ok-bg); border-color: var(--scb-ok); }
.scb-terms { margin: 4px 0 20px; padding: 16px; border-radius: 12px; background: var(--scb-soft); }
.scb-terms-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--scb-ink2); }
.scb-terms-text a { color: var(--scb-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.scb-check { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 15px; line-height: 1.45; font-weight: 600; cursor: pointer; }
.scb-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--scb-ink); cursor: pointer; }
.scb-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.scb-submit-note { display: flex; gap: 8px; flex: 1 1 260px; margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--scb-muted); }
.scb-submit-note .scb-ico { width: 18px; height: 18px; margin-top: 1px; }

/* ---------- barra fissa ---------- */
.scb-backdrop { position: fixed; inset: 0; z-index: 10690; background: rgba(22, 19, 15, .55); }
.scb-backdrop[hidden] { display: none; }
.scb-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 1040; display: flex; align-items: center; gap: 22px;
  padding: 10px 10px 10px 24px; background: #fff; border: 1px solid var(--scb-line); border-radius: 999px;
  box-shadow: 0 14px 36px rgba(22, 19, 15, .22); font-family: var(--scb-font); color: var(--scb-ink);
  transform: translate(-50%, 140%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
}
.scb-bar.is-visible { transform: translate(-50%, 0); visibility: visible; }
.scb-bar-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.scb-bar-price strong { font-size: 20px; font-weight: 800; }
.scb-bar-from, .scb-bar-unit { font-size: 14px; color: var(--scb-ink2); }
.scb-bar-unit[hidden] { display: none; }

/* ---------- tablet e telefono ---------- */
@media (max-width: 900px) {
  .scb-head { padding-top: 22px; }
  .scb-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 16px; }
  .scb-aside { position: static; }
  .scb-meta { grid-template-columns: minmax(0, 1fr); }
  .scb-card { padding: 18px 16px; }
  .scb-total-block { grid-template-columns: minmax(0, 1fr); }
  /* su telefono "Continua" sta nella barra fissa in basso: qui sarebbe un doppione */
  .scb-total-block > .scb-btn { display: none; }
  .scb-slots .btn.duration-btn { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .scb-submit .scb-btn { width: 100%; }
  .scb-submit-note { flex-basis: 100%; }

  /* il widget diventa un foglio che sale dal basso */
  .scb-widget {
    /* sopra la barra di navigazione fissa del sito (z-index 10600) */
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10700; max-height: 92vh; max-height: 92dvh;
    overflow-y: auto; overscroll-behavior: contain; padding: 0 18px calc(22px + env(safe-area-inset-bottom));
    border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(22, 19, 15, .28);
    transform: translateY(104%); visibility: hidden;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
  }
  .scb-widget.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .scb-sheet-head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    margin: 0 -18px 14px; padding: 12px 10px 10px 18px; background: #fff; border-bottom: 1px solid var(--scb-line);
    font-size: 17px;
  }
  .scb-pop, .scb-pop-cal {
    position: static; width: auto; margin-top: 8px; padding: 16px 14px; box-shadow: none;
  }
  .scb-cal-months { grid-template-columns: minmax(0, 1fr); }
  .scb-day { width: 44px; height: 44px; font-size: 16px; }
  .scb-count-btn { width: 44px; height: 44px; }
  .scb-wa { margin: 6px 0 18px; text-align: left; }

  .scb-bar {
    left: 0; right: 0; bottom: 0; justify-content: space-between; gap: 12px; border-radius: 0;
    border-width: 1px 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(22, 19, 15, .1); transform: none; visibility: visible;
  }
  .scb-bar.is-visible { transform: none; }
  .scb-bar-price { flex-wrap: wrap; gap: 0 6px; }
  .scb-bar .scb-btn { padding: 0 20px; }
  body.scb-has-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.scb-lock { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .scb-widget, .scb-bar, .scb-card, .scb-details, .scb-btn, .scb-chev { transition: none !important; animation: none !important; }
}
