@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }


:root {
  --ink: #0B0B0C; --brand: #465FFF; --on-brand: #fff; --cloud: #F2F4F7; --card: #fff; --line: #E3E6EB; --muted: #667085; --soft: #2F343B;
  --tint: color-mix(in srgb, var(--brand) 12%, white);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--cloud); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.muted { color: var(--muted); } .center { text-align: center; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
#app.has-bar { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* testata nel colore dell'hotel */
.hero { background: var(--brand); color: var(--on-brand); padding: 0 22px 28px; border-radius: 0 0 28px 28px; }
.hero.small { padding-bottom: 20px; }
.top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding-top: calc(10px + env(safe-area-inset-top)); }
.back { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: inherit; padding: 10px 10px 10px 0; margin-left: -4px; font-weight: 500; font-size: 16px; cursor: pointer; }
.langs { display: flex; gap: 2px; margin-right: -8px; }
.langs button { border: 0; background: none; padding: 10px 8px; font-size: 14px; font-weight: 600; color: inherit; opacity: .68; cursor: pointer; letter-spacing: .02em; position: relative; }
.langs button[aria-pressed=true] { opacity: 1; }
.langs button[aria-pressed=true]::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 2px; background: currentColor; border-radius: 2px; }
.name { font-size: 34px; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; margin: 22px 0 6px; }
.page { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 650; margin: 14px 0 0; }
.tag { font-size: 17px; margin: 0; opacity: .85; }
.room { display: inline-block; margin: 16px 0 0; padding: 5px 12px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.18); }
.room b { font-weight: 650; }

.hero.photo { color: #fff; min-height: 300px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.68) 100%), var(--cover) center / cover no-repeat, var(--brand); }
.hero.photo .name { margin-top: auto; }
.hero.photo .room { background: rgba(255,255,255,.22); align-self: flex-start; }

.wrap { padding: 18px 16px 0; }

/* riquadri della home */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; min-height: 142px; padding: 18px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; cursor: pointer; }
.tile:active { transform: scale(.98); }
.ico { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile .t { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.tile .h { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* schede */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 18px; margin-top: 12px; }
.card.pad { padding: 16px 18px; }
.card h3 { margin: 14px 0 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.welcome { margin: 0; color: var(--soft); white-space: pre-line; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; word-break: break-word; }
.pill { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill:active { background: var(--cloud); }
.links { display: flex; flex-wrap: wrap; gap: 4px 22px; padding: 8px 0 12px; }
.links a { padding: 8px 0; font-weight: 600; text-decoration: none; color: var(--brand); }
.addr { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* elenchi */
.list { display: grid; gap: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left; padding: 16px 16px 16px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.row:active { background: #fafbfc; }
.row .tx { min-width: 0; flex: 1; }
.row .t { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.row .h { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.price { font-weight: 650; color: var(--ink); font-size: 15px; white-space: nowrap; }

/* pulsanti */
.btn { height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; font-weight: 600; font-size: 16px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); color: var(--ink); }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; }

/* barra contatti fissa */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(242,244,247,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.bar > div { max-width: 560px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.bar .btn { flex: 1; }

/* dettaglio e modulo */
.sheet-bg { position: fixed; inset: 0; background: rgba(11,11,12,.45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 24px 22px calc(26px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 6px; }
.sheet h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.025em; font-weight: 650; }
.x { border: 0; background: var(--cloud); border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; }
.desc { white-space: pre-line; margin: 12px 0 0; color: var(--soft); }
.meta { margin-top: 14px; }
.stack { display: grid; gap: 10px; margin-top: 22px; }
.stack .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }

form .f { margin-bottom: 14px; }
form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
form input, form textarea { width: 100%; border: 1px solid #CDD1D7; border-radius: 12px; padding: 13px 14px; background: #fff; font-size: 16px; }
form input { height: 50px; padding-top: 0; padding-bottom: 0; }
form input:focus, form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: #B42318; font-size: 14px; margin: 0 0 12px; }
.ok { padding: 28px 0 6px; }
.ok svg { width: 44px; height: 44px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ok h2 { margin: 14px 0 6px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 40; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(32px); opacity: .7 } }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-bg { animation: none; } }
