/* =========================================================
   Gio.ia Web — componenti condivisi
   Ogni sito definisce i suoi token su :root:
   --bg --surface --surface-2 --text --muted --line
   --accent --accent-ink --radius --font-display --font-body
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.gw-has-demo { padding-bottom: 84px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Superfici Gio.ia Web (barra demo, Personalizza, avvisi, pannello gestore) ----------
   Stessa famiglia di Wine/Work: notte tinta, Geist, card con bordo in tinta, verde come NFC.
   Restano identiche su ogni stile: sono "il prodotto", non il sito del locale. */
.gw-demo, .gw-panel, .gw-toast, .gw-admin {
  --g-notte: #0e1210;
  --g-surface: #171d1a;
  --g-surface-2: #1e2622;
  --g-line: #2b3630;
  --g-crema: #eef3f0;
  --g-muted: #8ba498;
  --g-verde: #34a06a;
  --g-verde-light: #2af598;
  --g-verde-dark: #0e8b4d;
  --g-grad: linear-gradient(155deg, var(--g-verde-light) 0%, var(--g-verde) 50%, var(--g-verde-dark) 100%);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.4;
}
.gw-demo :focus-visible, .gw-panel :focus-visible, .gw-admin :focus-visible { outline: 2px solid var(--g-verde-light); outline-offset: 2px; }
.gw-demo {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 1000;
  display: flex; align-items: center; gap: 4px;
  padding: 5px;
  background: color-mix(in srgb, var(--g-notte) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--g-crema);
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--g-verde) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 40px rgba(0,0,0,.35), 0 0 40px -8px rgba(52,160,106,.45);
  font-size: 13px;
  max-width: calc(100vw - 20px);
}
.gw-demo a, .gw-demo button {
  border: 0; background: transparent; color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 999px;
  white-space: nowrap; font-weight: 600;
}
.gw-demo a:hover, .gw-demo__btn:hover { background: rgba(255,255,255,.08); }
.gw-demo svg { width: 16px; height: 16px; flex: none; }
.gw-demo__logo { width: 22px; height: 22px; flex: none; }
.gw-seg { display: flex; background: var(--g-surface-2); border-radius: 999px; padding: 2px; }
.gw-seg button { height: 32px; padding: 0 12px; color: var(--g-muted); }
.gw-seg button[aria-pressed="true"] { background: var(--g-grad); color: #04140b; font-weight: 800; }
.gw-demo__tag { padding: 0 8px 0 12px; color: var(--g-muted); font-size: 12px; }
@media (max-width: 560px) {
  .gw-demo__label { display: none; }
  .gw-demo a, .gw-demo button { padding: 0 9px; }
  .gw-seg button { padding: 0 9px; }
}

.gw-panel {
  position: fixed; z-index: 1001;
  right: 16px; bottom: 74px; width: 340px; max-width: calc(100vw - 32px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--g-verde-light) 5%, var(--g-surface)) 0%, var(--g-surface) 55%);
  color: var(--g-crema);
  border-radius: 22px; padding: 18px;
  border: 2px solid color-mix(in srgb, var(--g-verde) 25%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.45);
  font-size: 14px;
}
.gw-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.gw-panel__head strong { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.gw-panel__head img { width: 24px; height: 24px; }
.gw-x { border: 0; background: rgba(255,255,255,.08); color: var(--g-crema); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; }
.gw-field { display: block; margin-bottom: 14px; }
.gw-field > span { display: block; font-size: 11px; font-weight: 700; color: var(--g-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
.gw-field input[type=text], .gw-panel .gw-link {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-surface-2); color: var(--g-crema);
}
.gw-field input[type=text]:focus { outline: 2px solid var(--g-verde); outline-offset: 1px; }
.gw-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gw-swatch {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--g-surface);
  box-shadow: 0 0 0 1px var(--g-line); padding: 0;
}
.gw-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--g-verde-light); }
.gw-swatches input[type=color] { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.gw-panel__actions { display: flex; gap: 8px; margin-top: 4px; }
.gw-btn {
  flex: 1; height: 42px; border-radius: 999px; border: 1px solid var(--g-line);
  background: transparent; color: var(--g-crema); font-weight: 700; font-size: 13px;
}
.gw-btn--dark { background: var(--g-grad); color: #04140b; border-color: transparent; }
.gw-panel small { display: block; color: var(--g-muted); margin-top: 10px; font-size: 12px; }
.gw-panel .gw-link { margin-top: 10px; font-size: 12px; }
@media (max-width: 560px) { .gw-panel { right: 16px; left: 16px; width: auto; } }

.gw-toast {
  position: fixed; left: 50%; bottom: 78px; transform: translate(-50%, 10px);
  z-index: 1002; opacity: 0; pointer-events: none;
  background: var(--g-surface); color: var(--g-crema);
  border: 2px solid color-mix(in srgb, var(--g-verde) 30%, transparent);
  padding: 10px 16px; border-radius: 14px; font-size: 13px;
  box-shadow: 0 14px 30px -6px rgba(0,0,0,.5);
  max-width: calc(100vw - 32px); text-align: center;
  transition: opacity .2s, transform .2s;
}
.gw-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gw-toast b { color: var(--g-verde-light); }
.gw-toast a { color: var(--g-verde-light); font-weight: 700; }

/* ---------- Motore di prenotazione (prende i colori del sito) ---------- */
.bk {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 32px);
  text-align: left;
}
.bk__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.bk__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bk h3 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); margin: 6px 0 4px; font-weight: 600; line-height: 1.2; }
.bk__sub { color: var(--muted); margin: 0 0 20px; }
.bk h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 10px; font-weight: 700; }

.bk__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .bk__cta { grid-template-columns: 1fr; } }
.bk__big {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 20px; border-radius: calc(var(--radius) * .7);
  font-weight: 700; text-decoration: none; font-size: 16px;
  border: 1.5px solid var(--text);
}
.bk__big svg { width: 20px; height: 20px; }
.bk__big--fill { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bk__note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.bk__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.bk__grid .bk__full { grid-column: 1 / -1; }
@media (max-width: 520px) { .bk__grid { grid-template-columns: 1fr; } }
.bk label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.bk input, .bk select, .bk textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) * .5);
  background: var(--bg);
}
.bk textarea { min-height: 80px; resize: vertical; }
.bk input:focus, .bk select:focus, .bk textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.bk__submit {
  margin-top: 18px; width: 100%; min-height: 54px; border: 0;
  border-radius: calc(var(--radius) * .7);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px;
}
.bk__submit:disabled { opacity: .45; cursor: not-allowed; }
.bk__err { color: #b3261e; font-size: 13px; margin: 10px 0 0; }

.bk__people { display: flex; align-items: center; gap: 14px; }
.bk__step {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); font-size: 20px; line-height: 1;
}
.bk__step:disabled { opacity: .35; cursor: not-allowed; }
.bk__people output { font-family: var(--font-display); font-size: 26px; min-width: 2ch; text-align: center; font-weight: 600; }

.bk__dates {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.bk__date {
  flex: none; scroll-snap-align: start;
  width: 68px; padding: 10px 0; border-radius: calc(var(--radius) * .6);
  border: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bk__date small { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bk__date b { font-size: 22px; font-family: var(--font-display); line-height: 1.1; }
.bk__date[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk__date[aria-pressed="true"] small { color: inherit; opacity: .8; }
.bk__date:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.bk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk__slot {
  min-height: 56px; border-radius: calc(var(--radius) * .5);
  border: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700;
}
.bk__slot small { font-weight: 500; font-size: 11px; color: var(--muted); }
.bk__slot--few small { color: var(--accent); font-weight: 700; }
.bk__slot:disabled { cursor: not-allowed; opacity: .45; background: transparent; }
.bk__slot:disabled b { text-decoration: line-through; }
.bk__slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bk__slot[aria-pressed="true"] small { color: inherit; }

.bk__details { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.bk__summary { font-weight: 600; margin: 0 0 14px; }

.bk__done { display: grid; gap: 18px; }
@media (min-width: 760px) { .bk__done--split { grid-template-columns: 1fr 1fr; } }
.bk__ok {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}
.bk__ok svg { width: 26px; height: 26px; }
.bk__card { border: 1px solid var(--line); border-radius: calc(var(--radius) * .7); padding: 18px; background: var(--bg); }
.bk__card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 15px; }
.bk__card dt { color: var(--muted); }
.bk__card dd { margin: 0; font-weight: 600; }
.bk__code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.bk__links { display: flex; flex-wrap: wrap; gap: 10px; }
.bk__ghost {
  min-height: 42px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 14px;
}
.bk__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Anteprima telefono del gestore (Plus) — volutamente "WhatsApp-like", non del sito */
.bk__phone {
  background: #e9e1d6; border-radius: 22px; padding: 14px;
  font-family: "Geist", system-ui, sans-serif; color: #111b21; font-size: 14px;
  border: 6px solid #1d1a15;
}
.bk__phone-top { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid rgba(0,0,0,.08); margin-bottom: 12px; }
.bk__phone-top img { width: 34px; height: 34px; border-radius: 50%; background: #0e1210; padding: 3px; }
.bk__phone-top small { display: block; color: #667781; font-size: 11px; }
.bk__msg { background: #fff; border-radius: 10px 10px 10px 2px; padding: 10px 12px; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; max-width: 92%; }
.bk__msg--out { background: #d9fdd3; border-radius: 10px 10px 2px 10px; margin-left: auto; margin-top: 10px; }
.bk__msg time { display: block; text-align: right; font-size: 10px; color: #667781; margin-top: 4px; }
.bk__msg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; max-width: 92%; }
.bk__msg-actions button { min-height: 40px; border-radius: 10px; border: 0; background: #fff; color: #027eb5; font-weight: 600; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bk__msg-actions button:disabled { opacity: .5; }

/* ---------- Anteprima pannello gestore (Premium): e' un'app Gio.ia, scura come Wine ---------- */
.gw-admin {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(5, 8, 6, .7);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px;
}
.gw-admin__box {
  position: relative;
  width: min(900px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overflow-x: hidden;
  background: var(--g-notte); color: var(--g-crema); border-radius: 24px;
  border: 2px solid color-mix(in srgb, var(--g-verde) 25%, transparent);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 80px -20px rgba(52,160,106,.4);
}
.gw-admin__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: color-mix(in srgb, var(--g-notte) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.gw-admin__brand { display: flex; align-items: center; gap: 10px; }
.gw-admin__brand img { width: 32px; height: 32px; }
.gw-admin__head b { font-weight: 800; }
.gw-admin__head small { display: block; color: var(--g-muted); font-size: 12px; }
.gw-admin__body { position: relative; z-index: 1; padding: 20px; display: grid; gap: 16px; }
.gw-admin__note {
  border-radius: 14px; padding: 10px 14px; font-size: 13px; margin: 0;
  background: color-mix(in srgb, var(--g-verde) 10%, transparent); color: #b8e6cb;
  border: 1px dashed color-mix(in srgb, var(--g-verde) 40%, transparent);
}
.gw-admin__note--new { background: color-mix(in srgb, var(--g-verde) 20%, transparent); border-style: solid; color: var(--g-crema); }
.gw-admin__glow {
  position: absolute; z-index: 0; width: 460px; height: 380px; border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle, rgba(52,160,106,.22), transparent 70%); filter: blur(16px);
  top: -120px; right: -120px; animation: gw-beat 5s ease-in-out infinite;
}
@keyframes gw-beat {
  0%, 100% { opacity: .45; transform: scale(1); }
  8% { opacity: .75; transform: scale(1.12); }
  16% { opacity: .52; transform: scale(1.02); }
  26% { opacity: .68; transform: scale(1.09); }
  38% { opacity: .45; transform: scale(1); }
}
.gw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .gw-stats { grid-template-columns: repeat(2, 1fr); } }
.gw-stat, .gw-card {
  border-radius: 18px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--g-verde-light) 5%, var(--g-surface)) 0%, var(--g-surface) 55%);
  border: 2px solid color-mix(in srgb, var(--g-verde) 15%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 18px -4px rgba(0,0,0,.5);
}
.gw-stat { padding: 14px; }
.gw-stat small { color: var(--g-muted); font-size: 12px; }
.gw-stat b { display: block; font-size: 26px; font-weight: 900; margin-top: 2px; letter-spacing: -.02em; }
.gw-stat b span { font-size: 14px; color: var(--g-muted); font-weight: 600; }
.gw-card { padding: 16px; }
.gw-card h5 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--g-muted); font-weight: 700; }
.gw-bars { display: grid; gap: 10px; }
.gw-bar { display: grid; grid-template-columns: 52px 1fr 64px auto; gap: 10px; align-items: center; font-size: 13px; }
.gw-bar b { font-variant-numeric: tabular-nums; }
.gw-bar span { color: var(--g-muted); font-variant-numeric: tabular-nums; }
.gw-bar__track { height: 10px; background: var(--g-surface-2); border-radius: 99px; overflow: hidden; }
.gw-bar__fill { height: 100%; background: var(--g-grad); border-radius: 99px; }
.gw-bar.is-blocked .gw-bar__fill { background: repeating-linear-gradient(45deg, #3a4640 0 6px, #252f2a 6px 12px); width: 100% !important; }
.gw-mini { border: 1px solid var(--g-line); background: var(--g-surface-2); color: var(--g-crema); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 5px 10px; }
.gw-mini[aria-pressed="true"] { background: var(--g-crema); color: var(--g-notte); border-color: var(--g-crema); }
.gw-list { list-style: none; margin: 0; padding: 0; }
.gw-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.gw-row:first-child { border-top: 0; }
.gw-row b { font-variant-numeric: tabular-nums; }
.gw-row small { display: block; color: var(--g-muted); font-size: 12px; }
.gw-row.is-new { background: color-mix(in srgb, var(--g-verde) 14%, transparent); margin: 0 -16px; padding: 10px 16px; }
.gw-pill { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--g-grad); color: #04140b; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.gw-row__act { display: flex; gap: 6px; }
.gw-row__act .gw-mini[data-st="arrived"][aria-pressed="true"] { background: var(--g-grad); color: #04140b; border-color: transparent; }
.gw-row__act .gw-mini[data-st="noshow"][aria-pressed="true"] { background: #ff6b6b; color: #2a0505; border-color: #ff6b6b; }
@media (max-width: 520px) { .gw-row { grid-template-columns: 44px 1fr; } .gw-row__act { grid-column: 2; } }

/* ---------- selettore lingua (colori del sito) ---------- */
.gw-lang { position: relative; }
.gw-lang__btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 34px; padding: 0 10px 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 700 12px/1 var(--font-body); letter-spacing: .06em;
}
.gw-lang__btn svg { width: 14px; height: 14px; }
.gw-lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 190px;
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.35);
}
.gw-lang__menu button {
  width: 100%; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border: 0; background: none; color: inherit; text-align: left;
  padding: 9px 10px; border-radius: 9px; font: 500 14px var(--font-body);
}
.gw-lang__menu button:hover { background: var(--surface-2, var(--bg)); }
.gw-lang__menu button b { width: 24px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.gw-lang__menu button[aria-pressed="true"] { color: var(--accent); }
.gw-lang__menu button[aria-pressed="true"] b { color: var(--accent); }
.gw-lang__menu small { flex-basis: 100%; padding-left: 34px; font-size: 11px; color: var(--muted); }

/* traduzione automatica: niente barra di Google in cima alla pagina */
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ---------- Studio: pannello Personalizza a schede ---------- */
.gw-studio { width: 380px; max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.gw-tabs { display: flex; gap: 4px; background: var(--g-surface-2); border-radius: 999px; padding: 3px; margin-bottom: 16px; }
.gw-tabs button { flex: 1; border: 0; background: none; color: var(--g-muted); height: 32px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.gw-tabs button[aria-selected="true"] { background: var(--g-grad); color: #04140b; }
.gw-pane { display: grid; gap: 2px; }
.gw-field small { display: block; color: var(--g-muted); font-size: 11px; margin-top: 5px; }
.gw-field input[type=tel] { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--g-line); border-radius: 12px; background: var(--g-surface-2); color: var(--g-crema); }
.gw-files { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gw-files .gw-btn { flex: none; height: 36px; padding: 0 14px; }
.gw-btn--file { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gw-btn--file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gw-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--g-line); background: #fff; }
.gw-fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gw-fonts button { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--g-line); background: var(--g-surface-2); color: var(--g-crema); border-radius: 12px; padding: 8px 10px; font-size: 12px; font-weight: 600; }
.gw-fonts button b { font-size: 22px; font-weight: 400; line-height: 1; width: 34px; }
.gw-fonts button[aria-pressed="true"], .gw-opts button[aria-pressed="true"] { border-color: var(--g-verde-light); box-shadow: 0 0 0 1px var(--g-verde-light) inset; }
.gw-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-opts button { border: 1px solid var(--g-line); background: var(--g-surface-2); color: var(--g-crema); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; }
.gw-checks { display: grid; gap: 6px; }
.gw-checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.gw-checks input { accent-color: #34a06a; width: 16px; height: 16px; }
.gw-note { color: var(--g-muted); font-size: 13px; margin: 0 0 12px; }
.gw-note b { color: var(--g-crema); }
.gw-btn--wide { width: 100%; flex: none; margin-bottom: 12px; }
.gw-demo [data-gw-edit][aria-pressed="true"] { background: var(--g-grad); color: #04140b; }
@media (max-width: 560px) { .gw-studio { width: auto; } }

/* modifica testi sulla pagina */
.gw-editing [data-gw-editable] { outline: 1px dashed rgba(52,160,106,.6); outline-offset: 3px; cursor: text; border-radius: 2px; }
.gw-editing [data-gw-editable]:hover { outline: 1px solid #34a06a; }
.gw-editing [data-gw-editable]:focus { outline: 2px solid #2af598; background: rgba(42,245,152,.06); }

/* logo caricato al posto del nome */
.logo.gw-has-logo > :not(.gw-logo-img) { display: none !important; }
.gw-logo-img { display: block; height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.foot .gw-logo-img, footer .gw-logo-img { height: 54px; }

/* impaginazioni della parte alta (attributi data-gw-hero-* nei siti) */
[data-gw-hero="inverti"] [data-gw-hero-media] { order: -1; }
[data-gw-hero="centrato"] [data-gw-hero-grid] { grid-template-columns: 1fr !important; justify-items: center; text-align: center; }
[data-gw-hero="centrato"] [data-gw-hero-text] { display: flex; flex-direction: column; align-items: center; text-align: center; }
[data-gw-hero="centrato"] [data-gw-hero-text] > * { margin-left: auto; margin-right: auto; }
[data-gw-hero="centrato"] [data-gw-hero-text] [class*="ctas"], [data-gw-hero="centrato"] [data-gw-hero-text] [class*="proof"],
[data-gw-hero="centrato"] [data-gw-hero-text] [class*="note"], [data-gw-hero="centrato"] [data-gw-hero-text] [class*="row"] { justify-content: center; align-items: center; }
[data-gw-hero="centrato"] [data-gw-hero-grid] [data-gw-hero-media] { order: 2; width: 100%; max-width: 920px; margin: 0 auto; }
[data-gw-hero="centrato"] [data-gw-hero-grid] [data-gw-hero-media] img { aspect-ratio: 16 / 8 !important; border-radius: var(--radius) !important; max-height: none !important; }
[data-gw-hero="copertina"] [data-gw-hero-grid] { grid-template-columns: 1fr !important; position: relative; min-height: min(82vh, 760px); align-items: end; padding: clamp(24px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
[data-gw-hero="copertina"] [data-gw-hero-media] { position: absolute !important; inset: 0; z-index: -1; order: 0; max-width: none; margin: 0; aspect-ratio: auto !important; border-radius: 0; }
[data-gw-hero="copertina"] [data-gw-hero-media] img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; border-radius: 0 !important; max-height: none !important; }
[data-gw-hero="copertina"] [data-gw-hero-media]::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.78) 100%); }
[data-gw-hero="copertina"] [data-gw-hero-media] > :not(img) { display: none; }
[data-gw-hero="copertina"] [data-gw-hero-text], [data-gw-hero="copertina"] [data-gw-hero-text] h1, [data-gw-hero="copertina"] [data-gw-hero-text] p { color: #fff !important; }
[data-gw-hero="copertina"] [data-gw-hero-text] h1, [data-gw-hero="copertina"] [data-gw-hero-text] p { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
[data-gw-hero="copertina"] [data-gw-hero-text] a:not([class*="fill"]):not([class*="red"]):not([class*="solid"]) { color: #fff; border-color: rgba(255,255,255,.8); background: transparent; box-shadow: none; }

/* il motore di prenotazione non deve mai allargare la pagina (la riga dei giorni scorre dentro) */
#gw-booking, .bk { min-width: 0; max-width: 100%; }
.bk__dates { max-width: 100%; }
html, body { overflow-x: clip; }
