/* "Prenota ora": booking card, drawer, phone bar — every page */
[hidden] { display: none !important; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-ico { width: 19px; height: 19px; flex: none; fill: #1fa855; }

.btn-book { background: var(--brand-red); color: #fff; box-shadow: 0 12px 28px rgba(232, 32, 0, 0.28); }
.btn-book:hover { background: var(--brand-red-deep); transform: translateY(-1px); }
.btn-book:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Card */
.booker { background: var(--surface); color: var(--ink); border-radius: 28px; padding: 10px; box-shadow: var(--shadow-soft); }
.booker__head { padding: 14px 12px 4px; }
.booker__head h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; margin: 0; }
.booker__head p { margin: 6px 0 0; color: var(--mute); font-size: 14px; font-weight: 600; }
.booker .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg); border-radius: 20px; padding: 4px; }
.booker .tab { border: 0; background: transparent; border-radius: 16px; padding: 10px 4px; display: grid; justify-items: center; gap: 4px; font: 800 13px/1.2 var(--font); cursor: pointer; color: var(--mute); transition: background .2s, color .2s; }
.booker .tab .ico { width: 22px; height: 22px; }
.booker .tab.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(11, 18, 32, 0.07); }
.booker .tabs:empty { min-height: 64px; }
.booker--hero .booker__row { min-height: 84px; }
.booker--side .booker__row { min-height: 380px; }
@media (max-width: 899px) { .booker--hero .booker__row { min-height: 330px; } }
.booker__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 8px 6px; }
.booker__row .fld { flex: 1 1 130px; min-width: 0; }
.booker__row .f-wide { flex: 3 1 280px; }
.booker__row .f-small { flex: 0.7 1 96px; }
.booker__row .btn-book { flex: 0 0 auto; height: 52px; min-height: 52px; }
.booker__row.svc-transfer, .booker__row.svc-yacht { padding-bottom: 26px; }
.booker__row.svc-gozzo .f-wide { flex-basis: 100%; }
.booker__row.svc-transfer .fld:not(.f-wide) { flex-basis: 110px; }
.booker:not(.booker--side) .booker__row .fld:has(input[type="date"]) { flex: 1.2 1 160px; min-width: 156px; }
@media (min-width: 900px) {
  .booker:not(.booker--side) .booker__row.svc-transfer { display: grid; grid-template-columns: minmax(240px, 2.1fr) minmax(162px, 1fr) minmax(96px, .8fr) 78px 78px auto; }
}
.booker__row .f-wide { position: relative; }
.booker__row .f-wide .hint { position: absolute; left: 0; top: calc(100% + 6px); white-space: nowrap; }
.booker__note { margin: 0; padding: 6px 10px 8px; font-size: 13px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.booker__note b { color: var(--ink); font-weight: 800; }
.booker__note span::before { content: "✓ "; color: var(--brand-blue); font-weight: 800; }
.booker__off { flex: 1 1 100%; margin: 0 0 4px; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.fld select:disabled { color: var(--mute); background: var(--bg); }
@media (max-width: 899px) {
  .booker__row .btn-book { flex: 1 1 100%; }
  .booker__row.svc-transfer, .booker__row.svc-yacht { padding-bottom: 6px; }
  .booker .pkgs, .book-drawer .pkgs { grid-template-columns: repeat(2, 1fr); }
  .booker__row .f-wide .hint { position: static; white-space: normal; }
}
.booker--side .booker__row { flex-direction: column; align-items: stretch; }
.booker--side .booker__row > * { flex: none; width: 100%; min-width: 0; }
/* Narrow side card: the trip hint sits under its select instead of over the next field */
.booker--side .booker__row .f-wide .hint { position: static; white-space: normal; }
.booker--side .pkgs { grid-template-columns: repeat(2, 1fr); }
.booker--side .tabs { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }

/* Fields */
.fld { display: grid; gap: 6px; font-size: 11px; font-weight: 800; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.fld input, .fld select { font: 700 16px var(--font); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 12px; height: 52px; background: #fff; width: 100%; text-transform: none; letter-spacing: 0; }
.fld input:focus, .fld select:focus { outline: 2px solid var(--brand-blue); outline-offset: 1px; }
.fld .hint { font-size: 12px; font-weight: 700; color: var(--brand-blue); text-transform: none; letter-spacing: 0; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.pkg { border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; min-height: 52px; padding: 8px 8px; display: grid; align-content: center; gap: 2px; text-align: center; cursor: pointer; font: 800 15px/1.15 var(--font); color: var(--ink); text-transform: none; letter-spacing: 0; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.pkg small { font-weight: 700; color: var(--mute); font-size: 11.5px; line-height: 1.25; }
.pkg:hover { border-color: var(--brand-blue); }
.pkg.is-on { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; box-shadow: 0 8px 20px rgba(24, 72, 168, 0.28); }
.pkg.is-on small { color: rgba(255, 255, 255, 0.88); }
.pkg:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.route { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 6px; align-items: center; }
.swap { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--brand-blue); }

/* Drawer */
.book-scrim { position: fixed; inset: 0; background: rgba(6, 14, 30, 0.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.book-drawer { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; max-height: 94svh; overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 28px 28px 0 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .38s var(--ease); visibility: hidden; }
@media (min-width: 900px) { .book-drawer { left: auto; top: 0; bottom: 0; width: 460px; max-height: none; border-radius: 0; padding: 26px 28px; transform: translateX(105%); } }
.is-booking { overflow: hidden; }
.is-booking .book-scrim { opacity: 1; pointer-events: auto; }
.is-booking .book-drawer { transform: none; visibility: visible; }
.book-drawer__grab { width: 44px; height: 5px; border-radius: 5px; background: var(--bg-2); margin: 0 auto 12px; }
@media (min-width: 900px) { .book-drawer__grab { display: none; } }
.book-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.book-drawer__top h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 0; }
.book-drawer__close { border: 0; background: var(--bg); width: 42px; height: 42px; border-radius: 50%; font-size: 22px; cursor: pointer; color: var(--ink); }
.book-drawer .progress { height: 4px; background: var(--bg-2); border-radius: 4px; margin: 14px 0 6px; overflow: hidden; }
.book-drawer .progress i { display: block; height: 100%; width: 50%; background: var(--brand-blue); transition: width .3s var(--ease); }
.book-drawer .stepline { font-size: 13px; font-weight: 800; color: var(--mute); margin: 0 0 14px; }
.book-drawer .fld { margin-top: 14px; }
.book-drawer .btn { margin-top: 12px; }
.book-drawer .btn-book { margin-top: 20px; min-height: 56px; font-size: 16px; }
.opts { display: grid; gap: 8px; }
.opt { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 12px 14px; cursor: pointer; background: #fff; text-align: left; font-family: var(--font); color: var(--ink); }
.opt__i { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--brand-blue); }
.opt b { display: block; font-size: 15px; }
.opt small { color: var(--mute); font-weight: 700; font-size: 13px; }
.opt.is-on { border-color: var(--brand-blue); background: #e8eefb; }
.dfields { display: flex; flex-wrap: wrap; gap: 0 10px; }
.dfields .fld { flex: 1 1 140px; }
.dfields .f-wide { flex-basis: 100%; }
.summary { background: var(--bg); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; }
.summary b { font-size: 16px; }
.summary span { color: var(--mute); font-size: 14px; font-weight: 700; }
.linkbtn { justify-self: start; border: 0; background: none; padding: 4px 0 0; color: var(--brand-blue); font: 800 13px var(--font); cursor: pointer; }
.form-error { margin: 12px 0 0; color: #b42318; font-weight: 700; font-size: 14px; }
.form-error a { color: inherit; }
.assure { font-size: 13px; color: var(--mute); margin: 14px 0 0; display: grid; gap: 4px; }
.assure span::before { content: "✓ "; color: var(--brand-blue); font-weight: 800; }
.done { text-align: center; padding: 30px 0 10px; display: grid; gap: 10px; justify-items: center; }
.done__ok { width: 64px; height: 64px; border-radius: 50%; background: #e8eefb; color: var(--brand-blue); display: grid; place-items: center; font-size: 30px; }
.done h3 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 0; }
.done p { margin: 0; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Phone bar */
.mbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 80; display: grid; grid-template-columns: 1fr 54px 54px; gap: 8px; background: rgba(255, 253, 249, 0.96); backdrop-filter: blur(10px); border-radius: 22px; padding: 8px; box-shadow: var(--shadow-soft); transition: transform .35s var(--ease), opacity .35s; }
.mbar .btn { min-height: 54px; padding: 0 12px; }
.mbar__icon { color: var(--ink); }
.mbar.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .mbar { display: none; } }

/* Booking sections inside pages */
.page-book { margin: 34px 0; scroll-margin-top: 90px; }
