/* Prenotazione 0.39: giorni → luogo → orari del luogo, una domanda alla volta su telefono, totale fisso in basso. */
.dgc-booking{--f-surface:#fff;--f-line:#e2e5ea;--f-ink:#14171c;--f-muted:#5c6470;--f-field:#f5f6f8;--f-sel:#fff4f5;--f-red:#e60023;--f-red-text:#c4001e;--f-ok:#1a7f37;--f-bar:#fff}
html[data-theme="dark"] .dgc-booking{--f-surface:#181b20;--f-line:#2a2e35;--f-ink:#f3f4f6;--f-muted:#a3a9b3;--f-field:#0f1114;--f-sel:#24121a;--f-red-text:#ff4d5e;--f-ok:#4ade80;--f-bar:#14171b}

/* luoghi: tre pulsanti compatti */
.dgc-flow .dgc-places{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
.dgc-flow .dgc-places>legend,.dgc-flow .dgc-places>.dgc-slot,.dgc-flow .dgc-places>.dgc-train,.dgc-flow .dgc-places>p,.dgc-flow .dgc-places>div:not(.dgc-slot):not(.dgc-train){grid-column:1/-1}
.dgc-flow .dgc-places>legend{float:left;width:100%;padding:0;margin:0 0 6px;font-size:19px;font-weight:800;color:var(--f-ink)}
.dgc-booking.dgc-flow .dgc-place{position:relative;display:flex;flex-direction:column!important;align-items:flex-start!important;justify-content:center;gap:2px;margin:0;padding:10px 12px;min-height:52px;border:1px solid var(--f-line);border-radius:10px;background:var(--f-field);text-align:left}
.dgc-flow .dgc-place:has(input:checked){border:2px solid var(--f-red);padding:9px 11px;background:var(--f-sel);box-shadow:none}
.dgc-flow .dgc-place input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0;flex:none}
.dgc-flow .dgc-place:has(input:focus-visible){outline:3px solid var(--f-red);outline-offset:2px}
.dgc-booking.dgc-flow .dgc-place-body{flex:none;gap:0;align-items:flex-start;text-align:left;max-width:100%}
.dgc-booking.dgc-flow .dgc-place-body strong{font-size:13.5px;font-weight:700;line-height:1.25;color:var(--f-ink);overflow-wrap:anywhere}
.dgc-flow .dgc-place-body small{display:none}
.dgc-booking.dgc-flow .dgc-place em{margin:0!important;font-size:12px;color:var(--f-ok)}

/* orari: pulsanti al posto del menu */
.dgc-slot-chips{margin-top:8px}
.dgc-slot-chips>label{font-size:15px;font-weight:800;color:var(--f-ink);margin:0 0 6px}
.dgc-slot-chips select{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;border:0;pointer-events:none}
.dgc-slot-chips>label{position:relative}
.dgc-times{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 4px}
.dgc-booking .dgc-time{flex:none;min-width:62px;min-height:44px;padding:0 10px;border:1px solid var(--f-line);border-radius:10px;background:var(--f-field);color:var(--f-ink);font-size:14px;font-weight:700;cursor:pointer}
.dgc-booking .dgc-time:hover{border-color:var(--f-muted);transform:none;background:var(--f-field)}
.dgc-booking .dgc-time.on{background:var(--f-red);border-color:var(--f-red);color:#fff;font-weight:800}
.dgc-slot-hint.dgc-err{color:var(--f-red-text);font-weight:700}
.dgc-booking .dgc-daytip{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 0;font-size:13px;color:var(--f-muted)}
.dgc-daytip b{background:var(--f-field);border:1px solid var(--f-line);color:var(--f-ink);font-weight:800;padding:3px 10px;border-radius:999px}

/* tariffe e pagamento: riquadri affiancati */
.dgc-flow .dgc-card:has(.dgc-plan){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dgc-flow .dgc-card:has(.dgc-plan)>:not(.dgc-plan){grid-column:1/-1;margin:0}
.dgc-booking.dgc-flow .dgc-plan,.dgc-booking.dgc-flow .dgc-payopt{position:relative;flex-direction:column;align-items:stretch;gap:4px;margin:0;padding:12px 14px;border:1px solid var(--f-line);border-radius:12px;background:var(--f-field)}
.dgc-flow .dgc-plan:has(input:checked),.dgc-flow .dgc-payopt:has(input:checked){border:2px solid var(--f-red);padding:11px 13px;background:var(--f-sel);box-shadow:none}
.dgc-flow .dgc-plan input,.dgc-flow .dgc-payopt input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.dgc-flow .dgc-plan:has(input:focus-visible),.dgc-flow .dgc-payopt:has(input:focus-visible){outline:3px solid var(--f-red);outline-offset:2px}
.dgc-flow .dgc-plan-body strong,.dgc-flow .dgc-payopt strong{font-size:14px;font-weight:800;color:var(--f-ink)}
.dgc-flow .dgc-plan-body small,.dgc-flow .dgc-payopt small{color:var(--f-muted)}
.dgc-flow .dgc-plan em,.dgc-flow .dgc-payopt em{text-align:left;font-size:19px;color:var(--f-ink);order:2}
.dgc-flow .dgc-plan em small{font-size:12px;color:var(--f-muted)}
.dgc-flow .dgc-plan .price-old{font-size:12px;font-weight:500;color:var(--f-muted)}
.dgc-flow .dgc-pay{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dgc-flow .dgc-pay>:not(.dgc-payopt){grid-column:1/-1;margin:0}
.dgc-flow .dgc-payopt b{color:var(--f-ink)}
.dgc-flow .dgc-payopt[hidden]{display:none}

/* passo 2: dati raggruppati */
.dgc-booking .dgc-login-hint{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin:0 0 14px;padding:13px 14px;border:1px solid var(--f-line);border-radius:12px;background:var(--f-field);color:var(--f-ink);font-size:14px;font-weight:700;text-decoration:none}
.dgc-login-hint b{color:var(--f-red-text)}
.dgc-booking .dgc-sub{grid-column:1/-1;margin:10px 0 -4px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--f-muted)}
.dgc-grid-data .dgc-f-name,.dgc-grid-data .dgc-f-address{grid-column:1/-1}

/* righe riepilogo delle domande e barra fissa: solo telefono */
.dgc-qsum,.dgc-bar{display:none}
@media(min-width:761px){
  .dgc-flow .dgc-card:has(.dgc-plan){display:grid}
  .dgc-flow section[data-stage="0"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;align-items:start}
  .dgc-flow section[data-stage="0"]>*{grid-column:1/-1}
  .dgc-flow section[data-stage="0"]>.dgc-places{grid-column:auto;height:100%;box-sizing:border-box;margin-bottom:18px}
  .dgc-summary .dgc-check{display:none}
}
@media(max-width:760px){
  .dgc-flow .dgc-steps,.dgc-flow section[data-stage="0"] .dgc-head{display:none}
  .dgc-flow .dgc-q{display:none}
  .dgc-flow .dgc-q.open{display:block;border:2px solid var(--f-red);border-radius:14px;margin:0 0 10px;padding:16px 14px;background:var(--f-surface);box-shadow:none}
  .dgc-flow .dgc-places.dgc-q.open{display:grid}
  .dgc-flow .dgc-card.dgc-q.open:has(.dgc-plan){display:grid}
  .dgc-flow .dgc-q.open h3,.dgc-flow .dgc-q.open>legend{font-size:20px;line-height:1.2;font-weight:800;margin:0 0 10px}
  .dgc-booking .dgc-qsum{width:100%;min-height:60px;margin:0 0 10px;padding:10px 14px;border:1px solid var(--f-line);border-radius:12px;background:var(--f-surface);color:var(--f-ink);text-align:left;font-weight:400}
  .dgc-booking .dgc-qsum:hover{background:var(--f-surface);transform:none}
  .dgc-booking .dgc-qsum{display:grid;grid-template-columns:20px minmax(0,1fr) auto;column-gap:12px;align-items:center}
  .dgc-qsum:before{content:'';grid-row:1/3;width:18px;height:18px;border-radius:50%;border:2px solid var(--f-line);box-sizing:border-box}
  .dgc-qsum.done:before{border:0;background:var(--f-ok);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.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'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
  .dgc-qsum .dgc-qsum-l{grid-column:2;grid-row:1;font-size:12px;font-weight:700;color:var(--f-muted);line-height:1.3}
  .dgc-qsum b{grid-column:2;grid-row:2;min-width:0;font-size:15px;font-weight:800;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dgc-qsum:not(.done) b{font-weight:600;color:var(--f-muted)}
  .dgc-qsum em{grid-column:3;grid-row:1/3;font-style:normal;font-size:13px;font-weight:700;color:var(--f-red-text)}
  .dgc-booking .dgc-qsum.is-open{display:none}
  .dgc-times{flex-wrap:nowrap;overflow-x:auto;margin:2px -14px 4px;padding:0 14px 6px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .dgc-times::-webkit-scrollbar{display:none}
  .dgc-booking .dgc-time{min-width:66px;min-height:48px;font-size:15px}
  .dgc-flow .dgc-summary .dgc-check,.dgc-flow .dgc-summary .dgc-go,.dgc-flow .dgc-navigation .dgc-next{display:none}
  .dgc-flow .dgc-navigation{justify-content:flex-start}
  .dgc-flow{padding-bottom:84px}
  .dgc-flow .dgc-sum-photo{aspect-ratio:auto;height:162px}
  .dgc-flow .dgc-sum-grad{background:linear-gradient(180deg,rgba(10,11,14,0) 18%,rgba(10,11,14,.92) 100%)}
  .dgc-flow .dgc-sum-cat{display:none}
  .dgc-flow .dgc-sum-name{font-size:18px;-webkit-line-clamp:2}
  .dgc-booking .dgc-submit{width:100%;min-height:54px;font-size:16px;font-weight:800;border-radius:12px}
  .dgc-booking .dgc-bar{display:none}
  body.dgc-in-booking .dgc-booking .dgc-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:60;align-items:center;gap:14px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));background:var(--f-bar);border-top:1px solid var(--f-line);box-shadow:0 -6px 20px rgba(0,0,0,.12)}
  .dgc-bar-l{flex:1;display:flex;flex-direction:column;min-width:0}
  .dgc-bar-l small{font-size:12px;color:var(--f-muted)}
  .dgc-bar-l strong{font-size:21px;font-weight:800;line-height:1.15;color:var(--f-ink)}
  .dgc-booking .dgc-bar-go{flex:none;min-height:50px;padding:14px 26px;border-radius:12px;background:var(--f-red);color:#fff;font-size:15px;font-weight:800}
  body.dgc-in-booking .mbar{display:none!important}
  .dgc-grid-data{grid-template-columns:1.4fr 1fr}
  .dgc-grid-data .dgc-f-email,.dgc-grid-data .dgc-f-phone{grid-column:1/-1}
}

/* ===== Scheda "Il tuo noleggio" ridisegnata ===== */
.dgc-booking .dgc-summary{background:var(--f-surface);border:1px solid var(--f-line);border-radius:18px;padding:0;overflow:hidden;box-shadow:0 12px 32px rgba(17,34,46,.05)}
html[data-theme="dark"] .dgc-booking .dgc-summary{box-shadow:none}
.dgc-booking .dgc-sum-photo{position:relative;aspect-ratio:16/10;background:#eceef1;display:block}
.dgc-booking .dgc-sum-photo img{width:100%;height:100%;object-fit:cover;object-position:center 66%;display:block}
.dgc-booking .dgc-sum-noimg{position:absolute;top:16px;left:0;right:0;text-align:center;color:#8a919b;font-size:13px}
html[data-theme="dark"] .dgc-booking .dgc-sum-photo{background:#23272e}
.dgc-booking .dgc-sum-grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,11,14,0) 42%,rgba(10,11,14,.86) 100%)}
.dgc-booking .dgc-sum-avail{position:absolute;top:14px;left:14px;display:inline-flex;align-items:center;gap:6px;background:rgba(13,30,19,.92);color:#7ee2a0;font-size:12px;font-weight:800;padding:6px 11px;border-radius:999px;margin:0}
.dgc-booking .dgc-sum-avail[hidden]{display:none}
.dgc-booking .dgc-sum-avail svg{width:14px;height:14px;fill:none;stroke:#4ade80;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.dgc-booking .dgc-sum-cap{position:absolute;left:16px;right:16px;bottom:12px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.dgc-booking .dgc-sum-cap-l{display:flex;flex-direction:column;min-width:0}
.dgc-booking .dgc-sum-cat{font-size:12px;font-weight:700;color:#c9ced6}
.dgc-booking .dgc-sum-name{font-size:22px;font-weight:800;letter-spacing:-.01em;color:#fff;line-height:1.15;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dgc-booking .dgc-sum-days{flex:none;font-size:13px;font-weight:700;color:#e9edf2;background:rgba(20,23,28,.55);padding:5px 10px;border-radius:8px}
.dgc-booking .dgc-sum-days[hidden]{display:none}
.dgc-booking .dgc-sum-body{padding:18px}
.dgc-booking .dgc-summary .dgc-quote{background:none;padding:0;margin:0;font-size:14px;display:flex;flex-direction:column;gap:16px;line-height:1.45}
.dgc-booking .dgc-summary .dgc-quote>div{border:0;padding:0;margin:0;line-height:inherit}
.dgc-booking .dgc-tl{display:flex;flex-direction:column}
.dgc-booking .dgc-tl-row{position:relative;display:flex;justify-content:space-between;gap:10px;padding:0 0 16px 26px;margin:0}
.dgc-booking .dgc-tl-row:last-child{padding-bottom:0}
.dgc-booking .dgc-tl-row::before{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;box-sizing:border-box;border:2px solid var(--f-red);background:var(--f-surface)}
.dgc-booking .dgc-tl-row.fill::before{background:var(--f-red)}
.dgc-booking .dgc-tl-row:not(:last-child)::after{content:'';position:absolute;left:8px;top:15px;bottom:-1px;width:2px;background:var(--f-line)}
.dgc-booking .dgc-tl-main{display:flex;flex-direction:column;min-width:0}
.dgc-booking .dgc-tl-lab{font-size:12px;font-weight:700;color:var(--f-muted)}
.dgc-booking .dgc-tl-when{font-size:15px;font-weight:700;color:var(--f-ink)}
.dgc-booking .dgc-tl-where{font-size:13px;color:var(--f-muted)}
.dgc-booking .dgc-tl-cost{flex:none;font-size:12px;font-weight:800;color:var(--f-muted);white-space:nowrap;align-self:center}
.dgc-booking .dgc-tl-cost.free{color:var(--f-ok)}
.dgc-booking .dgc-sum-chips{display:flex;flex-wrap:wrap;gap:8px}
.dgc-booking .dgc-sum-chips span{display:inline-flex;align-items:center;gap:6px;background:var(--f-field);border:1px solid var(--f-line);border-radius:999px;padding:7px 12px;font-size:12px;font-weight:600;color:var(--f-ink)}
.dgc-booking .dgc-sum-lines{display:flex;flex-direction:column;gap:9px;border-top:1px solid var(--f-line);padding-top:14px}
.dgc-booking .dgc-sum-line{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin:0}
.dgc-booking .dgc-sum-line span{color:var(--f-ink)}
.dgc-booking .dgc-sum-line b{font-weight:700;color:var(--f-ink);white-space:nowrap}
.dgc-booking .dgc-sum-line.dgc-free b{color:var(--f-ok)}
.dgc-booking .dgc-sum-promo span{color:var(--f-red-text);font-weight:700}
.dgc-booking .dgc-sum-promo s{color:var(--f-muted);font-weight:500}
.dgc-booking .dgc-sum-total{background:var(--f-field);border-radius:12px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.dgc-booking .dgc-sum-total-l{display:flex;flex-direction:column;min-width:0}
.dgc-booking .dgc-sum-total-lab{font-size:13px;color:var(--f-muted)}
.dgc-booking .dgc-sum-total-sub{font-size:12px;color:#5566d8}
html[data-theme="dark"] .dgc-booking .dgc-sum-total-sub{color:#8a9cff}
.dgc-booking .dgc-sum-total-v{font-size:26px;font-weight:800;letter-spacing:-.02em;color:var(--f-ink)}
.dgc-booking .dgc-summary .dgc-go{width:100%;margin-top:16px;min-height:52px;border-radius:12px;background:var(--f-red);color:#fff;font-weight:800;font-size:16px}
.dgc-booking .dgc-summary .dgc-go:disabled{background:var(--f-field);color:var(--f-muted);cursor:not-allowed}
.dgc-booking .dgc-sum-note{font-size:11px;color:var(--f-muted);margin:12px 0 0;line-height:1.5}
