/* Nixsa Beach · pagine pubbliche (sito, prenotazione, area cliente, ordini, ristorante). Prefisso sx- */
:root {
  --sx-sabbia: #fbf7ef;
  --sx-sabbia-2: #f4ecdc;
  --sx-cielo: #e8f5f7;
  --sx-testo: #0c2433;
  --sx-r: 20px;
  --sx-ombra: 0 1px 2px rgba(12, 36, 51, .05), 0 8px 24px -6px rgba(12, 36, 51, .10);
  --sx-ombra-forte: 0 2px 4px rgba(12, 36, 51, .05), 0 24px 60px -12px rgba(12, 36, 51, .22);
  --sx-testa-h: 68px;
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.sx { background: var(--sx-sabbia); color: var(--sx-testo); font-size: 15.5px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body.sx main { flex: 1; }
.sx .ic { width: 1.15em; height: 1.15em; flex: none; }
.sx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sx-wrap-stretto { max-width: 760px; }
.sx-wrap-medio { max-width: 980px; }
.sx h1, .sx h2, .sx h3 { color: var(--mare-900); letter-spacing: -.02em; }
:where(.sx a:not(.btn)) { color: var(--acqua-600); text-decoration: none; }
:where(.sx a:not(.btn):hover) { text-decoration: underline; text-underline-offset: 3px; }
.sx .btn { text-decoration: none; }
.sx .btn-l { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 14px; }
.sx .btn-primario { background: var(--mare-800); border-color: var(--mare-800); box-shadow: 0 6px 16px -6px rgba(11, 50, 71, .55); }
.sx .btn-primario:hover { background: var(--mare-900); border-color: var(--mare-900); }
.sx .btn-acqua { box-shadow: 0 6px 16px -6px rgba(14, 124, 134, .6); }
.sx-btn-sole { background: linear-gradient(180deg, #f8b733, #ef9d10); border: 0; color: #3a2400; box-shadow: 0 8px 20px -8px rgba(239, 157, 16, .8); }
.sx-btn-sole:hover { background: linear-gradient(180deg, #f6ad1f, #e5920a); }
.sx-btn-vetro { background: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); }
.sx .input { height: 46px; border-radius: 12px; font-size: 16px; border-color: #d8dfe4; background: #fff; }
.sx textarea.input { min-height: 88px; padding: 11px 13px; }
.sx .campo > span { font-size: 13px; color: var(--ink-2); }
.sx .campo small { color: var(--ink-3); font-size: 12.5px; }
.sx .campo.errore .input { border-color: var(--corallo-500); box-shadow: 0 0 0 3px rgba(236, 95, 79, .12); }
.sx-occhiello { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acqua-600); }
.sx-occhiello::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.sx-titolo-sez { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin: 10px 0 12px; }
.sx-sottotitolo { color: var(--ink-2); font-size: 16.5px; max-width: 620px; margin: 0; }

/* ---------- intestazione ---------- */
.sx-testa { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s, box-shadow .2s; }
.sx-testa.scorsa, .sx-testa.aperta { border-bottom-color: rgba(12, 36, 51, .08); background: rgba(251, 247, 239, .94); }
.sx-testa-in { height: var(--sx-testa-h); display: flex; align-items: center; gap: 22px; }
.sx-logo { display: flex; align-items: center; gap: 11px; color: var(--mare-900) !important; text-decoration: none !important; min-width: 0; }
.sx-logo span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sx-logo b { font-family: var(--font-titoli); font-size: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.sx-logo small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-marchio { width: 40px; height: 40px; flex: none; border-radius: 12px; box-shadow: 0 4px 12px -4px rgba(11, 79, 107, .5); }
.sx-nav { display: flex; gap: 4px; margin-left: auto; }
.sx-nav a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 13px; border-radius: 10px; text-decoration: none !important; transition: background .15s, color .15s; }
.sx-nav a:hover { background: rgba(12, 36, 51, .05); color: var(--mare-900); }
.sx-nav a.attivo { color: var(--mare-900); background: rgba(19, 163, 169, .12); }
.sx-testa-az { display: flex; align-items: center; gap: 8px; }
.sx-burger { display: none; }
.sx-tendina { border-top: 1px solid rgba(12, 36, 51, .06); padding: 8px 14px 16px; display: flex; flex-direction: column; }
.sx-tendina a { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font-weight: 600; font-size: 16px; color: var(--mare-900); border-bottom: 1px solid rgba(12, 36, 51, .06); text-decoration: none !important; }
.sx-tendina a .ic { color: var(--ink-3); }
.sx-tendina a.attivo { color: var(--acqua-600); }
.sx-tendina .sx-tendina-tel { justify-content: flex-start; gap: 10px; color: var(--acqua-600); border: 0; }
@media (max-width: 920px) {
  .sx-nav { display: none; }
  .sx-burger { display: inline-flex; }
  .sx-testa-az { margin-left: auto; }
}
@media (min-width: 921px) { .sx-tendina { display: none !important; } }
@media (max-width: 400px) {
  .sx-btn-testa span { display: none; }
  .sx-btn-testa { width: 38px; padding: 0; }
  .sx-logo small { display: none; }
}

/* ---------- piè di pagina ---------- */
.sx-piede { background: var(--mare-900); color: #b9cbd6; margin-top: 72px; padding: 52px 0 26px; font-size: 14px; }
.sx-piede h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; font-family: var(--font); }
.sx-piede p { margin: 0; line-height: 1.7; }
.sx-piede a { color: #dceaf0; }
.sx-piede-griglia { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.sx-piede-marca p { margin-top: 14px; max-width: 320px; }
.sx-logo-chiaro { color: #fff !important; }
.sx-logo-chiaro small { color: #8fa9b8; white-space: normal; }
.sx-piede-fondo { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; color: #7f9aab; }
.sx-piede-link { display: inline-flex; gap: 10px; }
.sx-piede-link a { color: #9fb6c4; }
@media (max-width: 820px) { .sx-piede-griglia { grid-template-columns: 1fr 1fr; } .sx-piede-marca { grid-column: 1 / -1; } }
@media (max-width: 460px) { .sx-piede-griglia { grid-template-columns: minmax(0, 1fr); gap: 24px; } .sx-piede { margin-top: 48px; } }

/* ---------- elementi comuni ---------- */
.sx-scheda { background: #fff; border: 1px solid rgba(12, 36, 51, .07); border-radius: var(--sx-r); box-shadow: var(--sx-ombra); }
.sx-scheda-pad { padding: 24px; }
@media (max-width: 560px) { .sx-scheda-pad { padding: 18px; } }
.sx-scheda h3 { font-size: 17px; }
.sx-scheda-testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--linea-2); }
.sx-scheda-testa h3 { display: flex; align-items: center; gap: 10px; }
.sx-scheda-testa h3 .ic { color: var(--acqua-600); width: 20px; height: 20px; }
.sx-scheda-corpo { padding: 18px 22px; }
@media (max-width: 560px) { .sx-scheda-testa, .sx-scheda-corpo { padding-left: 16px; padding-right: 16px; } }
.sx-pagina { padding: 28px 0 0; }
.sx-pagina-testa { margin-bottom: 22px; }
.sx-pagina-testa h1 { font-size: clamp(26px, 4.4vw, 36px); font-weight: 800; }
.sx-pagina-testa p { color: var(--ink-2); margin: 6px 0 0; }
.sx-problema { text-align: center; padding: 56px 20px; max-width: 460px; margin: 0 auto; }
.sx-problema-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--sole-100); color: #b06f00; }
.sx-problema-ic .ic { width: 30px; height: 30px; }
.sx-problema h2 { font-size: 22px; margin-bottom: 8px; }
.sx-problema p { color: var(--ink-2); margin: 0; }
.sx-problema-az { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.sx-avviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--acqua-50); color: #0b5d65; border: 1px solid #c9ecea; font-size: 14px; }
.sx-avviso .ic { width: 20px; height: 20px; margin-top: 1px; }
.sx-avviso.giallo { background: #fff8e6; color: #7a4f00; border-color: #f6e2b0; }
.sx-avviso.rosso { background: #fff1ef; color: #a2321f; border-color: #f8cfc8; }
.sx-avviso b { color: inherit; }
.sx-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0; font-size: 14.5px; }
.sx-dl dt { color: var(--ink-3); }
.sx-dl dd { margin: 0; font-weight: 600; text-align: right; }
.sx-righe > * + * { border-top: 1px solid var(--linea-2); }
.sx-riga { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: inherit; text-decoration: none !important; }
.sx-riga-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--acqua-50); color: var(--acqua-600); display: grid; place-items: center; flex: none; }
.sx-riga-ic .ic { width: 21px; height: 21px; }
.sx-riga-t { flex: 1; min-width: 0; }
.sx-riga-t b { display: block; font-size: 15px; color: var(--mare-900); }
.sx-riga-t small { color: var(--ink-3); font-size: 13px; }
.sx-riga > .ic { color: var(--ink-3); }
a.sx-riga:hover b { color: var(--acqua-600); }
.sx-stepper { display: inline-flex; align-items: center; background: #fff; border: 1px solid #d8dfe4; border-radius: 13px; overflow: hidden; height: 46px; }
.sx-stepper button { width: 46px; height: 100%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--mare-800); }
.sx-stepper button:hover:not(:disabled) { background: var(--acqua-50); }
.sx-stepper button:disabled { color: #c3cdd3; cursor: not-allowed; }
.sx-stepper button .ic { width: 18px; height: 18px; }
.sx-stepper output { min-width: 38px; text-align: center; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.sx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; -webkit-overflow-scrolling: touch; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chip { flex: none; height: 38px; padding: 0 15px; border-radius: 99px; border: 1px solid #dbe2e7; background: #fff; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: all .15s; }
.sx-chip:hover { border-color: #b9c7cf; }
.sx-chip.attivo { background: var(--mare-800); border-color: var(--mare-800); color: #fff; }
.sx-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sx-chip:disabled { opacity: .45; cursor: not-allowed; }
.sx-velo .finestra { border-radius: 22px; }
.sx-finestra-testo { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .sx-velo .finestra { border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); } }
.sx-toast-box { bottom: calc(22px + env(safe-area-inset-bottom)); }
.sx .badge { height: 25px; padding: 0 10px; font-size: 12px; }

/* segmenti grandi */
.sx-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: #efe8da; padding: 4px; border-radius: 14px; }
.sx-seg button { border: 0; background: transparent; padding: 10px 8px; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.2; }
.sx-seg button small { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.sx-seg button.attivo { background: #fff; color: var(--mare-900); box-shadow: 0 1px 3px rgba(12, 36, 51, .12); }
.sx-seg button:disabled { opacity: .45; cursor: not-allowed; }

/* calendario */
.sx-cal { user-select: none; }
.sx-cal-testa { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sx-cal-testa b { font-family: var(--font-titoli); font-size: 16px; }
.sx-cal-sett, .sx-cal-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.sx-cal-sett span { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 4px 0; }
.sx-cal-g { aspect-ratio: 1; max-height: 48px; border: 0; border-radius: 12px; background: #fff; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--mare-900); box-shadow: inset 0 0 0 1px #e6e0d2; transition: background .12s, box-shadow .12s; font-variant-numeric: tabular-nums; position: relative; }
.sx-cal-g:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--acqua-500); }
.sx-cal-g:disabled { background: transparent; color: #c5c0b4; box-shadow: none; cursor: default; font-weight: 500; }
.sx-cal-g.oggi::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--corallo-500); }
.sx-cal-g.scelto { background: var(--mare-800); color: #fff; box-shadow: 0 6px 14px -6px rgba(11, 50, 71, .7); }
.sx-cal-g.scelto::after { background: #fff; }

/* passi */
.sx-passi { display: flex; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.sx-passi li { flex: 1; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); min-width: 0; }
.sx-passi li::before { content: ""; height: 4px; border-radius: 4px; background: #e7dfcf; transition: background .25s; }
.sx-passi li.fatto::before { background: var(--acqua-500); }
.sx-passi li.attivo::before { background: var(--mare-800); }
.sx-passi li.attivo { color: var(--mare-900); }
.sx-passi li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-passi li b { font-variant-numeric: tabular-nums; margin-right: 4px; }

/* QR e biglietti */
.sx-qr { background: #fff; padding: 14px; border-radius: 18px; border: 1px solid var(--linea); display: inline-flex; box-shadow: 0 1px 2px rgba(12, 36, 51, .04); }
.sx-qr img { width: 200px; height: 200px; display: block; }
.sx-qr.grande img { width: min(260px, 64vw); height: min(260px, 64vw); }
.sx-codice { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-weight: 800; letter-spacing: .14em; font-size: 22px; color: var(--mare-900); }
.sx-biglietto { position: relative; background: #fff; border-radius: 24px; box-shadow: var(--sx-ombra-forte); overflow: hidden; }
.sx-biglietto-testa { position: relative; color: #fff; padding: 26px 26px 34px; background: radial-gradient(120% 140% at 100% 0%, #2bb3b0 0%, transparent 55%), linear-gradient(135deg, #0b4f6b, #072f44); overflow: hidden; }
.sx-biglietto-testa h1, .sx-biglietto-testa h2 { color: #fff; }
.sx-biglietto-testa .sx-onde-deco { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 34px; }
.sx-biglietto-taglio { position: relative; height: 0; border-top: 2px dashed #e5ddcc; margin: 0 22px; }
.sx-biglietto-taglio::before, .sx-biglietto-taglio::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--sx-sabbia); }
.sx-biglietto-taglio::before { left: -35px; }
.sx-biglietto-taglio::after { right: -35px; }
.sx-biglietto-corpo { padding: 22px 26px 26px; }
@media (max-width: 560px) {
  .sx-biglietto-testa { padding: 22px 20px 30px; }
  .sx-biglietto-corpo { padding: 20px 18px 22px; }
  .sx-biglietto-taglio { margin: 0 16px; }
  .sx-biglietto-taglio::before { left: -29px; }
  .sx-biglietto-taglio::after { right: -29px; }
}
.sx-fatti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sx-fatto { background: var(--sx-sabbia); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.sx-fatto span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.sx-fatto b { display: block; font-size: 15.5px; color: var(--mare-900); font-family: var(--font-titoli); overflow-wrap: anywhere; }
.sx-azioni { display: flex; gap: 10px; flex-wrap: wrap; }
.sx-azioni .btn { flex: 1 1 auto; }
@media (max-width: 560px) { .sx-azioni .btn { flex: 1 1 100%; } }

/* barra fissa in basso (telefono) */
.sx-barra-fondo { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid rgba(12, 36, 51, .08); box-shadow: 0 -10px 30px -12px rgba(12, 36, 51, .18); animation: sxSale .22s ease; }
@keyframes sxSale { from { transform: translateY(100%); } }
.sx-spazio-barra { height: 96px; }

/* ---------- carico ---------- */
.sx-scheletro { background: linear-gradient(90deg, #f0ebe0 0%, #f8f4ec 50%, #f0ebe0 100%); background-size: 200% 100%; animation: sxLuce 1.3s infinite linear; border-radius: 12px; }
@keyframes sxLuce { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0s !important; transition: none !important; scroll-behavior: auto !important; } }
.sx-testa.sx-testa-trasp:not(.scorsa):not(.aperta) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sx-tendina[hidden] { display: none; }
.sx [hidden] { display: none !important; }
button.sx-riga { background: none; border: 0; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.sx-riga:hover b { color: var(--acqua-600); }
.sx-righe > * + button.sx-riga { border-top: 1px solid var(--linea-2); }
.sx-input-codice { text-transform: uppercase; font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.sx-input-codice::placeholder { text-transform: none; font-family: var(--font); letter-spacing: 0; }

/* ---------- fascia dell'istanza dimostrativa (solo in modalità demo) ---------- */
.sx-demo { background: var(--mare-900); color: #a9c4d0; font-size: 13px; line-height: 1.35; position: relative; z-index: 60; }
.sx-demo-in { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.sx-demo p { margin: 0; min-width: 0; }
.sx-demo-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sx-demo-t b { color: #fff; font-weight: 700; white-space: nowrap; }
.sx-demo-t b::before { content: ""; display: inline-block; vertical-align: middle; width: 7px; height: 7px; margin: -2px 9px 0 1px; border-radius: 50%; background: #5fd6d3; box-shadow: 0 0 0 3px rgba(95, 214, 211, .18); }
.sx-demo-sep { color: #5d7d8c; }
.sx-demo-az { display: flex; align-items: center; gap: 16px; flex: none; }
.sx-demo a, .sx-demo-prova { color: #dff4f6 !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.sx-demo a:hover { color: #fff !important; text-decoration: underline !important; text-underline-offset: 3px; }
.sx-demo-prova { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; border: 1px solid rgba(95, 214, 211, .45); background: rgba(19, 163, 169, .16); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.sx-demo-prova:hover { background: rgba(19, 163, 169, .32); border-color: #5fd6d3; }
.sx-demo-prova:disabled { opacity: .6; cursor: wait; }
.sx-demo-prova .ic { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .sx-demo { font-size: 12.5px; }
  .sx-demo-in { justify-content: center; text-align: center; gap: 5px 14px; padding-top: 8px; padding-bottom: 8px; }
  .sx-demo-t { justify-content: center; gap: 2px 7px; }
  .sx-demo-lungo { display: none; }
}
@media print { .sx-demo { display: none; } }
