/* ==========================================================================
   Hotel Artuà & Solferino - nuovo frontend
   Font self-hosted (nessuna chiamata a Google Fonts), mobile-first.
   ========================================================================== */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/playfair-500-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-italic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jakarta-400-700.woff2') format('woff2');
}

:root {
  --gold: #9d7b38;
  --gold-dark: #7a5e26;
  --gold-soft: #f5efe2;
  --green: #2e4d41;
  --green-dark: #1f362d;
  --ink: #23211f;
  --muted: #5f5a54;
  --line: #e7e0d4;
  --bg: #fcfbf8;
  --bg-alt: #f5f1ea;
  --white: #fff;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(35, 33, 31, .08);
  --shadow-lg: 0 20px 50px rgba(35, 33, 31, .14);
  --header-h: 84px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.visually-hidden, .field-hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
.ic { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--gold-soft); color: var(--green-dark); }
.btn-sm { min-height: 40px; padding: .5em 1.05em; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: .8em 1.7em; font-size: 1rem; }
.btn-block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; text-decoration: none; color: var(--gold-dark);
}
.link-arrow .ic { transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(3px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 50%;
}
.icon-btn:hover { background: var(--bg-alt); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-dark); color: #e8e3d9; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-claim { margin: 0; display: none; }
.topbar-links { display: flex; gap: 18px; margin-left: auto; margin-right: auto; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar-links a:hover { color: #fff; }
.hide-sm { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  /* niente backdrop-filter/transform qui: renderebbero il drawer mobile (fixed) relativo all'header */
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: block; flex-shrink: 0; }
.brand-logo { height: 54px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; }
.hide-md { display: none !important; }

/* Mobile drawer */
.main-nav {
  position: fixed; inset: 0 0 0 auto; z-index: 120;
  width: min(86vw, 360px); height: 100dvh;
  background: var(--white); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .3s ease;
  overflow-y: auto;
}
.main-nav.is-open { transform: none; }
.main-nav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.25rem;
}
.nav-list { list-style: none; padding: 12px 0; }
.nav-link {
  display: block; padding: 13px 24px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-link:hover, .nav-link.is-active { color: var(--gold-dark); border-left-color: var(--gold); background: var(--gold-soft); }
.main-nav-foot { margin-top: auto; padding: 20px 24px 28px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.nav-overlay {
  /* sotto l'header (z 90): il drawer vive nello stacking context dell'header */
  position: fixed; inset: 0; z-index: 85; background: rgba(20, 20, 18, .45);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
body.nav-locked { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(68vh, 620px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--green-dark);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15, 22, 19, .15) 0%, rgba(15, 22, 19, .35) 45%, rgba(15, 22, 19, .82) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 110px; }
.hero-kicker {
  display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 7vw, 4.2rem); margin-bottom: 14px; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero-lead { max-width: 620px; font-size: clamp(1rem, 2.4vw, 1.2rem); color: rgba(255, 255, 255, .92); margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 74px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .5); transition: width .3s, background-color .3s; }
.hero-dot.is-active { width: 28px; background: #fff; }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--green-dark); overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; }
.page-hero > .container { width: 100%; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 40, 33, .9) 0%, rgba(23, 40, 33, .65) 55%, rgba(23, 40, 33, .35) 100%); }
.page-hero-inner { padding-top: 80px; padding-bottom: 64px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3.2rem); margin: 8px 0 12px; }
.page-lead { max-width: 720px; font-size: 1.08rem; color: rgba(255, 255, 255, .92); margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: inherit; opacity: .85; }
.breadcrumb [aria-current] { opacity: .85; }
.breadcrumb--dark { color: var(--muted); margin-bottom: 18px; }

/* ---------- Booking ---------- */
.booking { position: relative; z-index: 5; padding: 40px 0; }
.booking--overlap { margin-top: -56px; padding-top: 0; }
.booking-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 20px;
}
.booking-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 14px; }
.booking-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: clamp(1.1rem, 4vw, 1.3rem); font-weight: 600; margin: 0; color: var(--green-dark); }
.booking-title .ic { color: var(--gold); }
.booking-note { margin: 0; font-size: .9rem; color: var(--muted); }
.booking-widget { min-height: 74px; }
/* Widget WuBook (tema "dark" di default): ristilizzato con i colori del sito.
   Le regole sono scoperte sotto .booking-widget e con !important perché il CSS WuBook arriva dopo. */
.booking-widget .kw_container,
.booking-widget .kw_wrapper,
.booking-widget .kw_book { background: transparent !important; padding: 0 !important; width: 100% !important; }
.booking-widget .kw_wrapper > .kw_grid,
.booking-widget .kw_wrapper > .kw_grid > div,
.booking-widget .kw_book { width: 100% !important; margin: 0 !important; justify-content: stretch !important; }
.booking-widget .kw_book { gap: 10px; flex-wrap: wrap !important; }
.booking-widget .kw_book > .kw_grid__item { flex: 1 1 auto !important; padding: 0 !important; margin: 0 !important; }
.booking-widget .kw_book > .kw_grid__item:first-child { flex-grow: 2 !important; }
.booking-widget .kw_section { gap: 10px; flex-wrap: nowrap !important; margin: 0 !important; }
.booking-widget .kw_section__item { margin: 0 !important; flex: 1 1 auto !important; }
.booking-widget .kw_form_dates { width: 100% !important; gap: 10px; }
.booking-widget .kw_form_dates > div { flex: 1 1 0 !important; }

.booking-widget .kw_u_block--with_shadow {
  background: var(--bg) !important; background-image: none !important;
  border: 1.5px solid var(--line) !important; border-radius: 8px !important;
  box-shadow: none !important; transition: border-color .2s, background-color .2s;
  min-height: 74px; cursor: pointer;
}
.booking-widget .kw_u_block--with_shadow:hover { border-color: var(--gold) !important; background: var(--white) !important; }
.booking-widget .kw_block { padding: 12px 16px !important; }
.booking-widget .kw_block__head,
.booking-widget .kw_block__head .i18n {
  font-family: var(--sans) !important; font-size: .72rem !important; font-weight: 700 !important;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark) !important;
}
.booking-widget .kw_block__content,
.booking-widget .kw_form_dates__input {
  font-family: var(--sans) !important; font-size: 1.1rem !important; font-weight: 600 !important;
  color: var(--ink) !important; background: transparent !important; border: 0 !important; width: 100% !important;
}
.booking-widget .kw_form_dates__input { cursor: pointer; padding: 2px 0 0 !important; }
.booking-widget .kw_icon { opacity: .55; }
.booking-widget .js_kw_bwidget_occ { display: flex !important; }
.booking-widget .kw_form_occ { width: 100% !important; display: flex !important; justify-content: space-between; }
.booking-widget .kw_form_occ > .kw_block { flex: 1 1 0; }
.booking-widget .kw_form_occ__details { border-left: 1px solid var(--line); }
.booking-widget .kw_block__column { border: 0 !important; padding: 0 !important; display: flex !important; flex-direction: column; align-items: flex-start; width: auto !important; }
.booking-widget .kw_block__column .kw_icon { display: none; }
.booking-widget .kw_block__column .kw_block__head { display: block !important; }

.booking-widget .kw_book_button {
  background: var(--gold) !important; background-image: none !important; border-color: var(--gold) !important;
  display: flex !important; align-items: center; justify-content: center; text-align: center;
}
.booking-widget .kw_book_button:hover { background: var(--gold-dark) !important; border-color: var(--gold-dark) !important; }
.booking-widget .kw_book_button .kw_block__head,
.booking-widget .kw_book_button .i18n {
  color: #fff !important; font-size: .88rem !important; letter-spacing: .06em;
}

/* Calendario WuBook (aggiunto al body, fuori dal widget) */
#js_nebk_ui_daepicker.kw_ui_datepicker {
  font-family: var(--sans) !important; border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important; box-shadow: var(--shadow-lg) !important; padding: 6px !important;
}
#js_nebk_ui_daepicker .kw_ui_datepicker-title { font-family: var(--serif) !important; color: var(--green-dark) !important; }
#js_nebk_ui_daepicker td a.kw_ui_state-default { border-radius: 6px !important; }
#js_nebk_ui_daepicker td a.kw_ui_state-hover { background: var(--gold-soft) !important; color: var(--ink) !important; }
#js_nebk_ui_daepicker td a.kw_ui_state-active,
#js_nebk_ui_daepicker td.arrival_date_day a,
#js_nebk_ui_daepicker td.departure_date_day a { background: var(--gold) !important; color: #fff !important; }

@media (max-width: 759px) {
  .booking-widget .kw_book { flex-direction: column; }
  .booking-widget .kw_section { flex-wrap: wrap !important; }
  .booking-widget .kw_section__item { flex-basis: 100% !important; }
  .booking-widget .kw_book > .kw_grid__item:last-child .kw_section { flex-wrap: nowrap !important; }
  .booking-widget .kw_book > .kw_grid__item:last-child .kw_section__item { flex-basis: auto !important; }
}

.booking-alt { margin: 14px 0 0; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.booking-alt a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 24px 0 64px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--green-dark); color: #e9e5dc; }
.section-dark .section-title { color: #fff; }
.section-dark .eyebrow { color: #d9bf86; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 32px; }
.section-head > div { max-width: 700px; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4.4vw, 2.5rem); color: var(--green-dark); }
.section-lead { font-size: 1.05rem; color: var(--muted); margin: 0; }
.sub-title { font-family: var(--serif); font-size: 1.25rem; margin-top: 32px; color: var(--green-dark); }
.split { display: grid; gap: 36px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media { margin: 0; }

/* Highlights */
.highlights { padding: 8px 0 24px; }
.highlights-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.highlight { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.highlight .ic { color: var(--gold); }
.highlight strong { display: block; font-size: .95rem; color: var(--green-dark); }
.highlight span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* Story */
.story-grid { display: grid; gap: 40px; align-items: center; }
.story-quote {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.5;
  color: var(--green-dark); border-left: 3px solid var(--gold); padding-left: 18px; margin: 18px 0 20px;
}
.story-media { position: relative; margin: 0; }
.story-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.story-media figcaption {
  position: absolute; left: 16px; bottom: -22px; max-width: 230px;
  background: var(--green-dark); color: #fff; padding: 14px 18px; border-radius: var(--radius);
  font-size: .85rem; line-height: 1.4; box-shadow: var(--shadow);
}
.story-year { display: block; font-family: var(--serif); font-size: 2rem; color: #d9bf86; line-height: 1; margin-bottom: 4px; }

/* Rooms */
.room-grid { display: grid; gap: 24px; }
.room-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.room-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.room-card.is-hidden { display: none; }
.room-card:target { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.room-media { position: relative; display: block; padding: 0; border: 0; background: var(--bg-alt); aspect-ratio: 4 / 3; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-media img { transform: scale(1.04); }
.room-photos {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; background: rgba(20, 20, 18, .7); color: #fff; font-size: .78rem; font-weight: 600;
}
.room-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.room-title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--green-dark); margin-bottom: 12px; }
.room-title a { color: inherit; text-decoration: none; }
.room-title a:hover { color: var(--gold-dark); }
.room-facts { list-style: none; display: grid; gap: 6px; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.room-facts li { display: flex; gap: 8px; align-items: flex-start; }
.room-facts .ic { color: var(--gold); margin-top: 2px; }
.room-fact-note { color: #8a4b12; font-weight: 600; }
.room-fact-note .ic { color: #b36a1d; }
.room-text { font-size: .95rem; }
.room-plans { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.room-plans strong { color: var(--ink); }
.room-actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.plans-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  background: var(--gold-soft); border: 1px solid #e8dcc0; border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 28px;
}
.plans-box h3 { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; color: var(--green-dark); }
.plans-box p { margin: 0; font-size: .93rem; color: var(--muted); max-width: 760px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-size: .9rem; font-weight: 600;
}
.chip span { font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.chip:hover { border-color: var(--gold); }
a.chip { color: var(--ink); text-decoration: none; }
.room-types-nav {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 -20px 8px; padding: 12px 20px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.room-group { padding-top: 36px; scroll-margin-top: calc(var(--header-h) + 72px); }
.room-group + .room-group { margin-top: 24px; border-top: 1px solid var(--line); }
.room-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 22px; }
.room-group-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.6vw, 2rem); color: var(--green-dark); margin: 0; }
.room-group-intro { margin: 0; color: var(--muted); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.gallery-item:hover img { transform: scale(1.05); opacity: .92; }

/* Services */
.service-grid { display: grid; gap: 18px; }
.service { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.service p { margin: 0; font-size: .93rem; }
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(217, 191, 134, .16); color: #d9bf86; margin-bottom: 14px; }
.service-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; }
.service-grid--light .service { background: var(--white); border-color: var(--line); }
.service-grid--light .service p { color: var(--muted); }
.service-grid--light .service-title { color: var(--green-dark); }
.service-grid--light .service-icon { background: var(--gold-soft); color: var(--gold-dark); }

.ticks { list-style: none; display: grid; gap: 8px; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-card h3 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); color: var(--green-dark); }
.info-card .ic { color: var(--gold); }
.info-card dl { margin: 0; display: grid; gap: 4px; }
.info-card dt { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-top: 10px; }
.info-card dd { margin: 0; }

/* Location */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 18px 0 22px; border-radius: var(--radius); background: #fff7ea; border: 1px solid #f0d9ae; }
.notice .ic { color: #b36a1d; margin-top: 2px; }
.notice p { margin: 0; font-size: .93rem; }
.nearby { list-style: none; display: grid; gap: 10px; }
.nearby li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; }
.nearby .ic { color: var(--gold); }
.nearby--inline { grid-template-columns: 1fr 1fr; gap: 8px; }
.nearby-wrap { display: grid; gap: 18px; align-items: start; }
.nearby-photo { margin: 0 auto; max-width: 340px; width: 100%; }
.nearby-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.nearby-photo figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); text-align: center; font-style: italic; }
.nearby-wrap .nearby { grid-template-columns: 1fr; }
.nearby--inline li { padding: 10px 12px; font-size: .88rem; }
.address-block { font-style: normal; margin-bottom: 20px; line-height: 1.7; }

/* Mappa Leaflet / OpenStreetMap */
.osm-map {
  position: relative; z-index: 0; height: 420px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-alt);
}
.osm-map noscript a { display: grid; place-items: center; height: 100%; font-weight: 600; }
.osm-map .leaflet-popup-content-wrapper { border-radius: 8px; font-family: var(--sans); }
.osm-map .leaflet-popup-content { margin: 12px 16px; font-size: .9rem; line-height: 1.5; color: var(--ink); }
.osm-map .leaflet-popup-content strong { font-family: var(--serif); font-size: 1rem; color: var(--green-dark); }
.osm-map .leaflet-popup-content a { color: var(--gold-dark); font-weight: 600; }
.osm-map .leaflet-control-attribution { font-size: 11px; }
.map-pin span {
  position: absolute; left: 3px; top: 0; width: 28px; height: 28px;
  background: var(--gold); border: 3px solid #fff; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}
.map-pin span::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  margin: -4px 0 0 -4px; border-radius: 50%; background: #fff;
}
@media (min-width: 1000px) { .osm-map { height: 100%; min-height: 460px; } }

.ztl-alert { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--green-dark); color: #fff; margin-bottom: 28px; }
.ztl-alert .ic { color: #d9bf86; margin-top: 4px; }
.ztl-alert p { margin: 0; color: rgba(255, 255, 255, .88); }
.ztl-alert .ztl-hours { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: 6px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin-bottom: 36px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #fff; font-weight: 700;
}
.steps h3 { font-size: 1.05rem; color: var(--green-dark); margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.ztl-maps { display: grid; gap: 18px; align-items: start; }
.ztl-map { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); text-align: left; }
.ztl-map span { display: block; padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.ztl-legend { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ztl-legend figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.download-card { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--gold-soft); border: 1px solid #e8dcc0; text-decoration: none; color: var(--ink); }
.download-card .ic { color: var(--gold-dark); }
.download-card strong { display: block; }
.download-card small { color: var(--muted); }
.ztl-help { margin: 28px 0 0; }

/* Events */
.events {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--gold-dark), var(--gold)); color: #fff;
}
.events .eyebrow { color: #fbefd2; }
.events-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin-bottom: 6px; }
.events p { margin: 0; color: rgba(255, 255, 255, .92); }

/* Contact */
.contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 40px; }
.contact-list { list-style: none; display: grid; gap: 16px; margin: 24px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { color: var(--gold); margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold-dark); }
.contact-sign { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green-dark); }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  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(--gold); box-shadow: 0 0 0 3px rgba(157, 123, 56, .18); }
.field .is-invalid, .is-invalid { border-color: #b3261e !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.form-note { margin: -4px 0 0; font-size: .8rem; color: var(--muted); }
.check.is-invalid, .check:has(.is-invalid) { color: #8c1d18; }
.check input.is-invalid { outline: 2px solid #b3261e; outline-offset: 2px; }
.form-status:focus { outline: none; }
.form-status:empty { display: none; }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .92rem; }
.form-status.is-ok { background: #e8f4ec; color: #1d5a33; border: 1px solid #b9dcc4; }
.form-status.is-error { background: #fdecea; color: #8c1d18; border: 1px solid #f3c3bf; }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* Plain pages */
.page-plain { padding-top: 48px; }
.prose h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--green-dark); margin-top: 32px; }
.prose ul { padding-left: 20px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.notfound { text-align: left; min-height: 50vh; }
.notfound-links { list-style: none; display: grid; gap: 10px; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #191816; color: #c9c3b8; font-size: .92rem; padding-top: 56px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.footer-title { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #d9bf86; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #e9e5dc; text-decoration: none; }
.site-footer a:hover { color: #d9bf86; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contacts .ic { color: #d9bf86; margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 20px; padding-bottom: 90px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-size: .74rem; font-weight: 600; text-decoration: none; color: var(--green-dark); }
.mobile-bar .mobile-bar-book { background: var(--gold); color: #fff; }

.to-top {
  position: fixed; right: 16px; bottom: 76px; z-index: 70;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; background: var(--green-dark); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12, 12, 11, .95); color: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-top { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 20px; }
.lightbox-title { margin: 0; font-family: var(--serif); font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-count { margin: 0; font-size: .85rem; opacity: .75; }
.lightbox-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 0 8px 20px; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: calc(100dvh - 100px); object-fit: contain; border-radius: 4px; user-select: none; }
.lightbox-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next { display: none; }


/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 560px) {
  .hide-sm { display: inline-flex !important; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 32px; }
  .booking-card { padding: 26px 28px; }
  .ztl-maps { grid-template-columns: 1fr 1fr; }
  .ztl-map { grid-row: span 2; }
}

@media (min-width: 760px) {
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(4, 1fr); }
  .highlights { padding-top: 0; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .nearby { grid-template-columns: 1fr 1fr; }
  .nearby--inline { grid-template-columns: 1fr 1fr; }
  .nearby-wrap { grid-template-columns: minmax(280px, 1.15fr) 1fr; }
  .nearby-photo { max-width: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .topbar-claim { display: block; }
  .topbar-links { margin-right: 0; }
}

@media (min-width: 1000px) {
  /* Desktop: riga logo + azioni, sotto una barra menu a tutta larghezza */
  :root { --header-row: 92px; --nav-row: 50px; --header-h: calc(var(--header-row) + var(--nav-row)); }
  .header-inner { height: auto; flex-wrap: wrap; gap: 0 16px; }
  .brand { order: 1; display: flex; align-items: center; height: var(--header-row); }
  .brand-logo { height: 68px; }
  .header-actions { order: 2; gap: 18px; }
  .header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-dark); text-decoration: none; }
  .header-phone .ic { color: var(--gold); }
  .header-phone:hover { color: var(--gold-dark); }
  .hide-md { display: inline-flex !important; }
  .nav-toggle, .main-nav-head, .main-nav-foot, .nav-overlay { display: none !important; }
  /* fascia verde a tutta larghezza: è lo sfondo dell'header stesso (nessuno sbordo orizzontale) */
  .site-header { background: linear-gradient(to top, var(--green-dark) var(--nav-row), var(--white) var(--nav-row)); border-bottom: 0; }
  .main-nav {
    order: 3; flex: 0 0 100%; position: static; width: auto; height: var(--nav-row); transform: none; overflow: visible; display: block;
    background: none; box-shadow: none;
  }
  .nav-list { display: flex; justify-content: center; gap: 6px; padding: 0; height: 100%; }
  .nav-link {
    display: flex; align-items: center; height: 100%; padding: 0 20px; border-left: 0; border-radius: 0;
    font-size: .92rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #e9e5dc;
    border-bottom: 3px solid transparent; border-top: 3px solid transparent;
  }
  .nav-link:hover, .nav-link.is-active { background: rgba(255, 255, 255, .06); color: #fff; border-bottom-color: var(--gold); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse > :first-child { order: 2; }
  .split--narrow-left { grid-template-columns: .75fr 1.25fr; gap: 48px; }
  .story-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .room-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .service-grid--light { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
  .section { padding: 88px 0; }
  .page-hero { min-height: 460px; }
  .page-hero-inner { padding-top: 120px; padding-bottom: 96px; }
  .hero-inner { padding-bottom: 140px; }
  .hero-dots { bottom: 96px; }
  .booking--overlap { margin-top: -72px; }
  .mobile-bar { display: none; }
  .to-top { bottom: 24px; right: 24px; }
  .footer-bottom { padding-bottom: 24px; }
  .ztl-maps { grid-template-columns: 1.4fr 1fr; }
}

/* Schermi larghi: contenitore più ampio */
@media (min-width: 1440px) {
  :root { --container: 1360px; }
  .container { padding: 0 32px; }
}
@media (min-width: 1800px) {
  :root { --container: 1560px; }
}

@media print {
  .topbar, .site-header, .mobile-bar, .to-top, .booking, .contact-form, .hero-dots, .lightbox { display: none !important; }
  .hero, .page-hero { color: var(--ink); background: none; min-height: 0; }
  .hero-slides, .page-hero-media, .hero-shade { display: none; }
}
