/* LumoraSite — tema B&B (dal design green-house.html: sabbia, inchiostro caldo, verde ulivo). */
:root {
  --bg: oklch(0.964 0.011 89.7);
  --surface: oklch(0.995 0.004 90);
  --fg: oklch(0.311 0.055 79.8);
  --muted: oklch(0.516 0.024 86.0);
  --border: oklch(0.904 0.018 89.4);
  --accent: oklch(0.462 0.108 157.8);
  --accent-ink: oklch(0.99 0.01 150);
  --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
  --danger: oklch(0.52 0.16 28);
  --sand: oklch(0.703 0.039 91.8);
  --wa: #1f9e55;
  --wa-testo: #15803d; /* verde WhatsApp più scuro: testo bianco leggibile */
  --font-display: 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --fs-h1: clamp(38px, 5.5vw, 66px);
  --fs-h2: clamp(28px, 3.8vw, 42px);
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgb(40 30 10 / 6%), 0 8px 24px rgb(40 30 10 / 6%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p, h1, h2, h3, dl, dd, figure, blockquote { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.stretto { max-width: 760px; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--border); }
.row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.grid-2, .grid-3 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.centro { align-items: center; }
.spazio { margin-top: 32px; }
@media (max-width: 880px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.grid-camere { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.eyebrow { font: 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin-top: 14px; }
.meta { font: 13px/1.5 var(--font-mono); color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.salta { position: absolute; left: -9999px; }
.salta:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.nascosto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* bottoni */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s; }
.btn:hover { border-color: var(--sand); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primario:hover { background: color-mix(in oklch, var(--accent) 88%, black); border-color: transparent; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.largo { width: 100%; justify-content: center; }
.btn-icona { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 20px; line-height: 1; }
.btn-icona:disabled { opacity: .35; cursor: default; }

/* header */
.topnav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topnav .container { min-height: 68px; }
.marchio img { height: 42px; width: auto; }
.topnav nav { display: flex; gap: 22px; }
.topnav nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topnav nav a:hover { color: var(--fg); }
.lingue { display: flex; gap: 2px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.topnav nav .lingue a { font: 12px var(--font-mono); padding: 3px 7px; border-radius: 6px; }
.topnav nav .lingue a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.wa-icona { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--wa); color: #fff; }
.wa-icona:hover { filter: brightness(1.08); }
.wa-flottante { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 10px 20px 10px 16px; border-radius: 999px; background: var(--wa-testo); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / 22%); }
.wa-flottante:hover { filter: brightness(1.08); }
.wa-flottante svg { width: 28px; height: 28px; flex: none; }
.barra-anteprima { background: #0d1b35; color: #f4efe3; font-size: 13px; padding: 8px 16px; text-align: center; }
.barra-anteprima strong { color: #c9a84c; }
@media (max-width: 760px) {
  html { scroll-padding-top: 124px; }
  .topnav .container { row-gap: 6px; padding-block: 10px; }
  .topnav nav { order: 3; width: 100%; justify-content: space-between; align-items: center; gap: 10px; }
  .topnav nav a { font-size: 14px; padding-block: 6px; }
  .azioni .btn { padding-inline: 14px; }
  .wa-flottante { right: 12px; bottom: 12px; min-height: 48px; padding: 8px 16px 8px 12px; font-size: 14px; }
}

/* hero */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; color: #fff; overflow: hidden; }
.hero-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 16 8 / 5%) 30%, rgb(20 16 8 / 68%)); }
.hero-testo { position: relative; z-index: 1; padding-block: 64px; }
.hero .eyebrow { color: #e9f3e4; }
.hero h1 { max-width: 16ch; }
.hero .lead { color: rgb(255 255 255 / 88%); margin-bottom: 26px; }

/* card e camere */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.camera { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.camera-foto > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.camera-mini { display: flex; gap: 8px; padding: 10px 22px 0; overflow-x: auto; scrollbar-width: none; }
.camera-mini a { flex: 0 0 64px; border-radius: 8px; overflow: hidden; opacity: .65; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .15s, outline-color .15s; }
.camera-mini a:hover, .camera-mini a[aria-current] { opacity: 1; outline-color: var(--accent); }
.camera-mini img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.camera-corpo { padding: 22px; display: grid; gap: 12px; flex: 1; grid-template-rows: auto auto 1fr auto; }
.camera-corpo > .spunte { align-self: start; }
.camera-corpo > p { color: var(--muted); }
.prezzo strong { font: 600 22px var(--font-mono); }
.spunte { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.spunte li { padding-left: 22px; position: relative; }
.spunte li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.foto-arrotondata { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.galleria { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.galleria img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: 100%; }
@media (max-width: 760px) { .galleria { grid-template-columns: 1fr 1fr; } .galleria img:first-child { grid-column: span 2; } }
.citazione blockquote { font: italic 22px/1.4 var(--font-display); }
.citazione figcaption { margin-top: 12px; font: 13px var(--font-mono); color: var(--muted); }

/* prenotazione */
.prenota { background: color-mix(in oklch, var(--accent) 5%, var(--bg)); }
.pren-griglia { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 920px) { .pren-griglia { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 6px; flex: 1; min-width: 140px; margin-top: 12px; }
.campo span { font-size: 13px; font-weight: 600; color: var(--muted); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.campo textarea { resize: vertical; }
.cal-testa { margin: 22px 0 10px; }
.cal-testa strong { font: 600 20px var(--font-display); text-transform: capitalize; }
.cal-giorni, .cal-griglia { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-giorni span { text-align: center; font: 11px var(--font-mono); text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal-griglia-box[aria-busy="true"] { opacity: .45; }
.giorno { aspect-ratio: 1 / 1; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer;
  display: grid; align-content: center; justify-items: center; gap: 1px; padding: 2px; transition: background .12s, border-color .12s; }
.giorno .n { font-weight: 600; font-size: 15px; line-height: 1; }
.giorno .p { font: 10px var(--font-mono); color: var(--accent); }
.giorno:hover:not(:disabled) { border-color: var(--accent); }
.giorno:disabled { cursor: default; color: color-mix(in oklch, var(--fg) 35%, transparent); background: transparent; }
.giorno.vuoto { border: 0; }
.giorno.occupato { background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in oklch, var(--fg) 7%, transparent) 5px 6px); }
.giorno.occupato .n { text-decoration: line-through; }
.giorno.occupato:not(:disabled) { color: var(--fg); }
.giorno.dentro { background: var(--accent-soft); border-color: transparent; }
.giorno.scelto { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.giorno.scelto .p { color: var(--accent-ink); }
.legenda { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.legenda span { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); }
.legenda .l-occ { background: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in oklch, var(--fg) 18%, transparent) 3px 4px); margin-left: 10px; }
.errore { color: var(--danger); font-weight: 600; margin-top: 10px; }
.ri { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.ri dt { color: var(--muted); }
.ri dd { text-align: right; }
.ri .totale { font-size: 22px; font-weight: 700; }
.acconto { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--accent-soft); }
.sconto { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); text-decoration: none; }
.sconto:hover { background: var(--accent-soft); }
.sconto small { display: block; color: var(--muted); }
.sconto svg { flex: none; }
.cin { margin-top: 10px; }
.ragg-nota { margin: 14px 0 20px; max-width: 52ch; }
.metodi { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.metodi legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.metodo { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--bg); }
.metodo:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.metodo input { margin-top: 4px; accent-color: var(--accent); }
.metodo small { display: block; color: var(--muted); }
.spunta { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; }
.spunta input { margin-top: 3px; accent-color: var(--accent); }
.esito { margin-top: 18px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--surface); display: grid; gap: 10px; }
.iban { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.iban dt { color: var(--muted); }
.iban dd { word-break: break-all; font-weight: 600; }
.avviso { margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }

/* contatti */
.contatti { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin-top: 24px; }
.contatti dt { font: 12px var(--font-mono); text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.mappa, .mappa iframe { width: 100%; min-height: 340px; border: 0; border-radius: var(--radius-lg); }
.mappa-vuota { min-height: 340px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px;
  border: 1px dashed var(--sand); border-radius: var(--radius-lg); background: var(--surface); }
.testo-lungo p { margin-top: 14px; }
.esito-pagina h1 { margin-bottom: 8px; }

.piede { padding-block: 32px 96px; border-top: 1px solid var(--border); font-size: 14px; }
.piede a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (max-width: 480px) {
  .cal > .row { flex-direction: column; align-items: stretch; gap: 0; }
}
