/* ==========================================================================
   Casa Bora — foglio di stile (mobile first, nessun build step)
   ========================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --bg: #fbf8f4;
    --surface: #ffffff;
    --sand: #f3ece2;
    --stone: #e4dacb;
    --line: #e7dfd3;
    --ink: #1c2830;
    --text: #2e3a42;
    --muted: #5f6b72;
    --sea: #1f4e63;
    --sea-dark: #153847;
    --sea-soft: #e5eef1;
    --accent: #b85c38;
    --accent-dark: #9a4a2b;
    --accent-soft: #f6e5dc;
    --wa: #1f8f55;
    --radius: 16px;
    --radius-s: 10px;
    --shadow: 0 1px 2px rgba(28, 40, 48, .06), 0 8px 24px rgba(28, 40, 48, .07);
    --shadow-l: 0 2px 6px rgba(28, 40, 48, .08), 0 18px 40px rgba(28, 40, 48, .12);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: 20px;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sea); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, .h3, .h4, .h5 { font-family: var(--serif); color: var(--ink); font-weight: 560; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
h3, .h3 { font-size: 1.35rem; }
.h4 { font-size: 1.2rem; }
.h5 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mt-l { margin-top: 2.5rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.section { padding: 64px 0; }
.section-tight { padding: 32px 0 48px; }
.section-sand { background: var(--sand); }
.section-sea { background: var(--sea); color: #e9f1f4; }
.section-sea h2 { color: #fff; }
.section-sea .eyebrow { color: #f2c3a8; }
.section-sea .lead { color: #cddde3; }
.section-sea a { color: #fff; }
.rounded { border-radius: var(--radius); }

/* Pulsanti ----------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--sea); color: var(--sea); background: transparent; }
.btn-outline:hover { background: var(--sea); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #18774a; color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.btn-row.center { justify-content: center; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--stone); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.round-btn:hover { border-color: var(--sea); color: var(--sea); }
.text-link, .card-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; }
.text-link:hover .icon, .card-link:hover .icon { transform: translateX(3px); }
.text-link .icon, .card-link .icon { transition: transform .2s; }

/* Barra demo, header e navigazione ---------------------------------------- */
.demo-bar { background: var(--ink); color: #cfd8dc; font-size: .8rem; line-height: 1.4; }
.demo-bar .container { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; padding-top: 7px; padding-bottom: 7px; text-align: center; }
.demo-bar a { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 244, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(28, 40, 48, .05); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; margin-right: auto; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; }
.brand-place { font-size: .68rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.brand-light { color: #fff; }
.brand-light .brand-place { color: #f2c3a8; }

.nav-toggle { width: 46px; height: 46px; border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.header-cta { display: none; }
.header-lang { display: none; }

.main-nav { position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; background: var(--bg); padding: 16px var(--gutter) 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: block; padding: 14px 4px; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.main-nav li a[aria-current] { color: var(--accent); }
.nav-cta { align-self: stretch; }

.lang-switch { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.lang-switch a, .lang-switch span { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 8px; border-radius: 999px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--sea); background: var(--sea-soft); }
.lang-switch span { background: var(--ink); color: #fff; }

/* Breadcrumb ---------------------------------------------------------------- */
.breadcrumbs { padding-top: 14px; font-size: .85rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--stone); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sea); text-decoration: underline; }

/* Hero ---------------------------------------------------------------------- */
.hero { position: relative; min-height: min(82svh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--sea-dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 30, 38, .15) 0%, rgba(14, 30, 38, .05) 35%, rgba(14, 30, 38, .72) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 48px; }
.hero h1 { color: #fff; font-size: clamp(3rem, 12vw, 5.6rem); font-weight: 520; margin: 0 0 .1em; letter-spacing: -.02em; }
.hero-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #f6d9c7; margin: 0 0 12px; }
.hero-payoff { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.2rem, 3.6vw, 1.7rem); line-height: 1.35; max-width: 30ch; margin: 0 0 28px; color: #f4f1ec; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }

/* Intestazioni sezione ------------------------------------------------------ */
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2 { margin-bottom: .35em; }
.section-head .lead { margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-head-row .section-head { margin-bottom: 0; }
.head-link { display: none; }
.carousel-nav { display: none; gap: 8px; }

.page-head { padding-top: 28px; padding-bottom: 12px; }
.page-head h1 { margin-bottom: .3em; }
.page-head-image { position: relative; color: #fff; padding: 0; margin-top: 14px; min-height: 360px; display: flex; align-items: flex-end; background: var(--sea-dark); }
.page-head-image .page-head-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 30, 38, .1), rgba(14, 30, 38, .75)); }
.page-head-image .container { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 36px; }
.page-head-image h1 { color: #fff; }
.page-head-image .lead { color: #eef3f5; }

/* Intro home ---------------------------------------------------------------- */
.intro-grid { display: grid; gap: 32px; }
.intro-text p { max-width: 62ch; }
.highlights { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.highlights li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.highlights .icon { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--sea-soft); color: var(--sea); }
.intro-media img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Card ---------------------------------------------------------------------- */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-media { display: block; overflow: hidden; }
.card-media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-title { font-size: 1.3rem; margin-bottom: .4em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--sea); }
.card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.card-link { margin-top: auto; }
.card-body .btn { margin-top: auto; align-self: flex-start; }

.room-specs { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.room-specs li { display: inline-flex; align-items: center; gap: 6px; }
.room-specs .icon { color: var(--sea); }
.room-amenities { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 8px; }
.room-amenities li { width: 36px; height: 36px; border-radius: 50%; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; }

.card-grid { display: grid; gap: 20px; }
.room-list { display: grid; gap: 24px; }

/* Carosello (scroll-snap, nessuna libreria) --------------------------------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 360px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }

/* Servizi ------------------------------------------------------------------- */
.services { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: start; }
.service-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.service-icon .icon { width: 24px; height: 24px; }
.service h3 { font-size: 1.12rem; margin: 2px 0 2px; }
.service p { margin: 0; color: var(--muted); font-size: .96rem; }
.section-sand .service { border-color: transparent; }

/* Booking esterno ----------------------------------------------------------- */
.booking-grid { display: grid; gap: 28px; align-items: start; }
.booking { background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 18px; border: 1px solid var(--line); }
.booking-head { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px dashed var(--stone); }
.booking-form { display: grid; gap: 12px; }
.booking-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; font-style: italic; }
.booking-error { color: #a33; font-size: .9rem; margin: 10px 0 0; }
.booking-demo { display: flex; gap: 12px; margin-top: 14px; padding: 14px; border-radius: var(--radius-s); background: var(--sea-soft); color: var(--ink); font-size: .93rem; }
.booking-demo .icon { color: var(--sea); margin-top: 3px; }
.booking-demo p { margin: 4px 0 0; }
.booking-alt { margin-top: 12px; }
.section-sea .booking a { color: var(--sea); }

.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--stone); border-radius: var(--radius-s); background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.field [aria-invalid="true"] { border-color: #c0392b; }

/* Guide in home ------------------------------------------------------------- */
.guide-list { display: grid; gap: 12px; }
.guide-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 10px 16px 10px 10px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s; }
.guide-row:hover { transform: translateY(-2px); color: var(--text); }
.guide-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.guide-row strong { display: block; font-family: var(--serif); font-weight: 560; font-size: 1.1rem; color: var(--ink); line-height: 1.25; margin-bottom: 4px; }
.guide-row .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; line-height: 1.45; }
.guide-row > .icon { color: var(--accent); }

/* Dove siamo / mappa -------------------------------------------------------- */
.where-grid { display: grid; gap: 28px; }
.map { position: relative; height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--sea-soft) radial-gradient(circle at 50% 50%, #fff 0 6px, var(--accent) 7px 12px, transparent 13px); border: 1px solid var(--line); z-index: 0; }
.map-small { height: 240px; }
.map-note { font-size: .85rem; color: var(--muted); margin: 10px 0 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.address { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.address .icon { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.distances { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.distances li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.distance-name { font-weight: 600; color: var(--ink); }
.distance-name a { color: var(--ink); }
.distance-time { color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.cb-marker { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cb-marker-place { background: var(--sea); }
.leaflet-container { font: inherit; }
.leaflet-popup-content a { font-weight: 650; }

/* Contatti ------------------------------------------------------------------ */
.contact-grid { display: grid; gap: 28px; }
.contact-channels { display: grid; gap: 12px; align-content: start; }
.channel { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.channel strong { display: block; color: var(--ink); }
.channel:hover { color: var(--text); transform: translateY(-1px); }
.channel-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.channel-icon .icon { width: 22px; height: 22px; }
.channel-wa { background: #e3f4ea; color: var(--wa); }
.contact-form { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 14px; }
.contact-form h3 { margin: 0; }
.contact-form .small { margin: 0; }
.form-status { margin: 0; padding: 14px; border-radius: var(--radius-s); background: var(--sea-soft); color: var(--ink); font-size: .95rem; }
.form-status.is-error { background: #fbe9e7; color: #8c2a1c; }

/* Pagina camera ------------------------------------------------------------- */
.gallery { position: relative; padding-top: 14px; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { scroll-snap-align: start; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; display: block; }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-count { position: absolute; right: calc(var(--gutter) + 12px); bottom: 12px; margin: 0; background: rgba(28, 40, 48, .72); color: #fff; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; pointer-events: none; }

.room-layout { display: grid; gap: 36px; padding-top: 28px; padding-bottom: 56px; }
.room-main h1 { margin-bottom: .25em; }
.room-keyfacts { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.room-keyfacts li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px; font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.room-keyfacts .icon { color: var(--sea); width: 22px; height: 22px; margin-top: 2px; }
.room-keyfacts small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.checklist, .amenities { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.checklist li, .amenities li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--wa); margin-top: 4px; }
.amenities { grid-template-columns: 1fr 1fr; }
.amenities .icon { color: var(--sea); margin-top: 4px; }
.side-contact { margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--sand); }
.side-contact .btn-row { margin: 12px 0; }
.side-contact .btn { flex: 1; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 20, 25, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(12, 20, 25, .9); }
.lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lightbox .round-btn { position: absolute; background: rgba(255, 255, 255, .92); border: 0; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; }
.lightbox-next { right: 12px; top: 50%; }

.common-grid { display: grid; gap: 24px; }
.common { margin: 0; }
.common img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.common figcaption { margin-top: 12px; color: var(--muted); }
.common figcaption strong { color: var(--ink); display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 560; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--surface); border-radius: var(--radius-s); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare { min-width: 640px; }
.credits td img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }

/* Servizi: pagina ----------------------------------------------------------- */
.two-col { display: grid; gap: 32px; }
.practical { margin: 0; display: grid; gap: 0; }
.practical div { padding: 14px 0; border-bottom: 1px solid var(--stone); }
.practical dt { font-weight: 700; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.practical dt .icon { color: var(--accent); }
.practical dd { margin: 4px 0 0 28px; color: var(--muted); }
.note-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }

/* Pagine luogo e guida ------------------------------------------------------ */
.content-head { padding-top: 20px; }
.content-head-inner { max-width: 860px; margin-left: auto; margin-right: auto; }
.content-head h1 { font-size: clamp(2rem, 5.4vw, 3rem); }
.content-meta { color: var(--muted); font-size: .9rem; margin-top: -.3em; }
.in-short { background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-s) var(--radius-s) 0; padding: 16px 20px; margin: 20px 0 24px; box-shadow: var(--shadow); }
.in-short-title { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.in-short p { margin: 0; font-size: 1.06rem; color: var(--ink); }
.content-hero { margin: 0 auto; }
.content-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.content-layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 56px; }
.content-main { min-width: 0; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.facts dl { margin: 0; }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); line-height: 1.45; }
.side-map { margin-top: 20px; }
.toc { background: var(--sand); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--sea); text-decoration: underline; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 3.6vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; font-size: 1.22rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose .tip { margin: 1.5em 0; padding: 16px 20px 16px 52px; background: var(--sea-soft); border-radius: var(--radius-s); position: relative; color: var(--ink); }
.prose .tip::before { content: ""; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; background: var(--sea); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E") center / contain no-repeat; }
.prose .tip p { margin: 0; }
.prose .tip p + p { margin-top: .6em; }
.prose table { font-size: .93rem; }

.faq { margin-top: 48px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text); }
.disclaimer { font-size: .85rem; color: var(--muted); margin-top: 28px; display: flex; gap: 8px; }
.disclaimer .icon { margin-top: 3px; }

.stay-box { margin-top: 40px; display: grid; gap: 0; background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.stay-box > div:last-child { padding: 22px; }
.stay-box p { color: var(--muted); }
.stay-media img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.big-icon .icon { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 12px; display: block; }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9c4c9; padding: 56px 0 110px; font-size: .95rem; }
.site-footer a { color: #e4ebee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.footer-contacts { display: grid; gap: 6px; }
.footer-contacts a { display: inline-flex; gap: 8px; align-items: center; }
.footer-title { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8d9ba2; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-lang { margin-top: 18px; }
.footer-lang .lang-switch a { color: #b9c4c9; }
.footer-lang .lang-switch a:hover { background: rgba(255,255,255,.08); color: #fff; }
.footer-lang .lang-switch span { background: #fff; color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; display: grid; gap: 12px; font-size: .82rem; }
.footer-demo { margin: 0; max-width: 80ch; color: #8d9ba2; }
.powered { margin: 0; color: #8d9ba2; }
.powered a { color: #b9c4c9; }

/* Barra azioni mobile ------------------------------------------------------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 248, 244, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s ease; }
.mobile-bar.is-visible { transform: none; }
.mobile-bar-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; text-decoration: none; color: var(--ink); border: 1.5px solid var(--stone); border-radius: 999px; min-height: 48px; }
.mobile-bar .btn { min-height: 48px; padding: 10px 14px; }

/* Avviso (toast) ------------------------------------------------------------ */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 90; width: min(92vw, 460px); background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-l); font-size: .93rem; line-height: 1.45; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 700px) {
    :root { --gutter: 32px; }
    .hero-actions { flex-direction: row; max-width: none; }
    .card-grid, .room-list { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .highlights { grid-template-columns: 1fr 1fr; }
    .head-link, .carousel-nav { display: inline-flex; }
    .contact-grid { grid-template-columns: 1fr 1.2fr; }
    .common-grid { grid-template-columns: 1fr 1fr; }
    .stay-box { grid-template-columns: 280px 1fr; }
    .room-keyfacts { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer-bottom { grid-template-columns: 1fr auto; align-items: end; }
    .gallery-count { right: calc(var(--gutter) + 12px); }
    .booking-form { grid-template-columns: 1fr 1fr; }
    .booking-form .field:nth-child(3) { grid-column: 1 / -1; }
    .booking-form .btn { grid-column: 1 / -1; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 1000px) {
    :root { --header-h: 76px; }
    .section { padding: 96px 0; }
    .nav-toggle { display: none; }
    .main-nav { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; align-items: center; padding: 0; background: none; overflow: visible; gap: 0; }
    .main-nav ul { display: flex; gap: 2px; }
    .main-nav li a { font-family: var(--sans); font-size: .98rem; font-weight: 600; padding: 8px 12px; border: 0; border-radius: 999px; color: var(--text); }
    .main-nav li a:hover { background: var(--sand); color: var(--ink); }
    .main-nav li a[aria-current] { color: var(--accent); }
    .nav-cta, .nav-lang { display: none; }
    .header-lang { display: block; margin-left: 8px; }
    .header-cta { display: inline-flex; min-height: 44px; padding: 10px 18px; margin-left: 8px; }
    .hero { min-height: min(86vh, 820px); }
    .hero-img { object-position: 50% 55%; }
    .hero-content { padding-bottom: 72px; }
    .intro-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
    .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .services { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .services-3 { grid-template-columns: repeat(3, 1fr); }
    .service { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
    .service-icon { grid-row: auto; }
    .carousel { grid-auto-columns: calc((min(1180px, 100vw) - 2 * var(--gutter) - 48px) / 3); padding-left: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); scroll-padding: 0 max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); gap: 24px; }
    .carousel-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; max-width: 1180px; margin: 0 auto; padding: 4px var(--gutter) 0; }
    .booking-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
    .booking { padding: 24px; }
    .booking-form { grid-template-columns: 1fr 1fr 1fr; }
    .booking-form .field:nth-child(3) { grid-column: auto; }
    .guide-list { grid-template-columns: 1fr 1fr; gap: 16px; }
    .where-grid { grid-template-columns: 1.4fr 1fr; gap: 48px; }
    .map { height: 440px; }
    .map-small { height: 240px; }
    .room-list { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }

    .gallery-track { grid-auto-flow: row; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; overflow: visible; height: 520px; }
    .gallery-item { overflow: hidden; border-radius: var(--radius-s); }
    .gallery-item img { height: 100%; aspect-ratio: auto; transition: transform .5s; }
    .gallery-item:hover img { transform: scale(1.03); }
    .gallery-item:first-child { grid-row: span 2; }
    .gallery-item:nth-child(n+4) { display: none; }
    .gallery-count { display: none; }
    .room-layout { grid-template-columns: 1fr 380px; gap: 64px; padding-top: 40px; }
    .side-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
    .room-side .booking-form { grid-template-columns: 1fr 1fr; }
    .room-side .booking-form .field:nth-child(3) { grid-column: 1 / -1; }

    .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; }
    .content-side { order: 2; }
    .content-head-inner { max-width: 1180px; }
    .content-head h1 { max-width: 22ch; }
    .in-short { max-width: 820px; }
    .content-hero img { aspect-ratio: 21 / 9; }
    .site-footer { padding-bottom: 56px; }
    .mobile-bar { display: none; }
    .toast { bottom: 32px; }
}

@media (min-width: 1000px) and (max-width: 1120px) {
    .main-nav li a { padding: 8px 9px; font-size: .94rem; }
    .header-cta { padding: 10px 14px; }
}

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

@media print {
    .demo-bar, .site-header, .mobile-bar, .site-footer, .booking, .toast { display: none !important; }
}
