/* ==========================================================================
   Stile pubblico del sito. Una base comune + un blocco per ogni tema.
   Colori principali, caratteri e altezza del logo arrivano dal pannello (Aspetto)
   come variabili: --primary, --accent, --on-primary, --font-head, --font-body, --logo-h.
   ========================================================================== */

/* ---------- Base comune ---------- */
:root {
  --bg: #ffffff; --surface: #ffffff; --text: #1d2433; --muted: #5b6474; --line: #e6e9ef;
  --header-bg: #ffffff; --header-text: #1d2433; --footer-bg: #f4f6fa; --footer-text: #1d2433; --footer-muted: #5b6474;
  --radius: 10px; --container: 1120px; --prose: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }
.center { text-align: center; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Intestazione ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 10px 0; }
.brand-logo { height: var(--logo-h); width: auto; display: block; }
.brand-name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.brand-tagline { font-size: .82rem; opacity: .75; line-height: 1.3; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { display: block; padding: 8px 12px; color: inherit; text-decoration: none; border-radius: calc(var(--radius) * .6); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--primary); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }

.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid currentColor; color: inherit; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Smartphone: menu a tendina */
@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding: 14px 4px; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
}

/* ---------- Contenuto ---------- */
.page { flex: 1; padding: 40px 0 72px; }
@media (min-width: 700px) { .page { padding: 64px 0 96px; } }
.prose { max-width: var(--prose); --w: var(--prose); }
.prose-wide { max-width: var(--container); --w: var(--container); }
.prose > :first-child { margin-top: 0; }
.page-title, .prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-head); line-height: 1.2; color: var(--heading, var(--text)); }
.page-title, .prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .6em; letter-spacing: -.01em; }
.prose h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); display: block; margin: 1.6em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5em; }
.prose blockquote { margin: 1.6em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--accent); font-size: 1.15rem; font-style: italic; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; }
.button, .prose a.button { display: inline-block; background: var(--primary); color: var(--on-primary); padding: 12px 24px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); font-size: .95rem; }
.site-footer a { color: inherit; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 32px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col p { margin: 0 0 .6em; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.footer-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--footer-muted); }
.footer-hours { color: var(--footer-muted); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: .45em; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid color-mix(in srgb, var(--footer-text) 15%, transparent); color: var(--footer-muted); font-size: .85rem; }

/* ==========================================================================
   TEMI
   ========================================================================== */

/* ---------- Chiaro: pulito, molto bianco ---------- */
[data-theme="chiaro"] {
  --header-bg: rgba(255, 255, 255, .92);
}
[data-theme="chiaro"] .site-header { backdrop-filter: saturate(1.4) blur(10px); }
[data-theme="chiaro"] .page-title { font-weight: 800; }

/* ---------- Elegante: toni caldi, grazie, tutto centrato ---------- */
[data-theme="elegante"] {
  --bg: #fbf8f3; --text: #2b2420; --muted: #6f625a; --line: #e8dfd3;
  --header-bg: #fbf8f3; --header-text: #2b2420;
  --footer-bg: #2b2420; --footer-text: #efe7dc; --footer-muted: #b9ab9b;
  --radius: 2px; --heading: var(--primary);
}
[data-theme="elegante"] .page-title, [data-theme="elegante"] .prose h1,
[data-theme="elegante"] .prose h2, [data-theme="elegante"] .prose h3 { font-weight: 400; }
[data-theme="elegante"] .page-title { text-align: center; }
[data-theme="elegante"] .page-title::after { content: ""; display: block; width: 56px; height: 2px; background: var(--accent); margin: .5em auto 0; }
[data-theme="elegante"] .prose { margin: 0 auto; }
[data-theme="elegante"] .brand-name { font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
[data-theme="elegante"] .site-nav a { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
@media (min-width: 860px) {
  [data-theme="elegante"] .header-inner { flex-direction: column; justify-content: center; gap: 0; padding: 14px 0 6px; }
  [data-theme="elegante"] .brand { align-items: center; }
  [data-theme="elegante"] .site-nav ul { justify-content: center; }
}
[data-theme="elegante"] .button { text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 500; }

/* ---------- Deciso: intestazione scura, titoli forti ---------- */
[data-theme="deciso"] {
  --text: #111418; --muted: #4b5260; --line: #e3e5e8;
  --header-bg: #111418; --header-text: #ffffff;
  --footer-bg: #111418; --footer-text: #ffffff; --footer-muted: #9aa1ad;
  --radius: 0;
}
[data-theme="deciso"] .site-header { border-bottom: 4px solid var(--primary); }
[data-theme="deciso"] .site-nav a { text-transform: uppercase; font-weight: 700; letter-spacing: .04em; font-size: .9rem; }
[data-theme="deciso"] .site-nav a:hover, [data-theme="deciso"] .site-nav a[aria-current="page"] { color: var(--accent); box-shadow: none; }
[data-theme="deciso"] .page-title, [data-theme="deciso"] .prose h1 { text-transform: uppercase; font-weight: 900; letter-spacing: -.01em; }
[data-theme="deciso"] .page-title::after { content: ""; display: block; width: 72px; height: 6px; background: var(--primary); margin-top: .35em; }
[data-theme="deciso"] .prose h2 { font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.8vw, 1.75rem); }
[data-theme="deciso"] .prose blockquote { border-left-width: 6px; border-left-color: var(--primary); font-style: normal; font-weight: 600; color: var(--text); }
[data-theme="deciso"] .button { text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
[data-theme="deciso"] .nav-toggle { border-radius: 0; }

/* ---------- Morbido: arrotondato, contenuto su "carta" ---------- */
[data-theme="morbido"] {
  --bg: #f4f8f7; --text: #22312f; --muted: #5c6e6b; --line: #dfe9e6;
  --header-bg: #ffffff; --header-text: #22312f;
  --footer-bg: #e4efec; --footer-text: #22312f; --footer-muted: #5c6e6b;
  --radius: 18px;
}
[data-theme="morbido"] .site-header { border-bottom: 0; box-shadow: 0 2px 18px rgba(34, 49, 47, .07); }
[data-theme="morbido"] .site-nav a { border-radius: 999px; }
[data-theme="morbido"] .site-nav a:hover, [data-theme="morbido"] .site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); box-shadow: none; }
[data-theme="morbido"] .page > .prose { background: #ffffff; padding: 28px 20px; border-radius: var(--radius); box-shadow: 0 6px 30px rgba(34, 49, 47, .06);
  width: auto; max-width: none; margin-inline: max(12px, calc((100% - var(--w)) / 2)); }
@media (min-width: 700px) { [data-theme="morbido"] .page > .prose { padding: 48px 56px; } }
[data-theme="morbido"] .page-title { font-weight: 800; }
[data-theme="morbido"] .button { border-radius: 999px; }
@media (max-width: 859px) { [data-theme="morbido"] .site-nav a { border-radius: 12px; padding-left: 12px; } }

/* ==========================================================================
   SEZIONI (valide per tutti i temi; ogni tema può rifinirle sotto)
   ========================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page.page-sections { padding: 0; }
.page-head-block { padding-top: clamp(40px, 6vw, 72px); }
.page-head-block + .sec { padding-top: clamp(24px, 4vw, 40px); }

.sec { padding: var(--sec-pad, clamp(64px, 9vw, 128px)) 0; --sec-bg: var(--bg); }
.sec-bg-alt { --sec-bg: var(--alt-bg, color-mix(in srgb, var(--primary) 5%, var(--bg))); background: var(--sec-bg); }
.sec-bg-dark { --sec-bg: var(--dark-bg, #1b2422); background: var(--sec-bg); color: #eef0ec;
  --text: #eef0ec; --muted: rgba(238, 240, 236, .72); --line: rgba(255, 255, 255, .16); --heading: #ffffff; }
.sec-bg-dark a:not(.button) { color: inherit; }

.sec-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center, .center .sec-head { text-align: center; margin-left: auto; margin-right: auto; }
.sec-kicker { font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--accent); margin: 0 0 .45em; }
.sec-title { font-family: var(--font-head); font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.1; margin: 0; color: var(--heading, var(--text)); letter-spacing: -.01em; }
.sec-title.center { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-lead { max-width: 62ch; color: var(--muted); margin: calc(clamp(32px, 5vw, 56px) * -0.55) 0 clamp(32px, 5vw, 56px); }
.sec-empty { color: var(--muted); font-style: italic; }
.sec-actions { margin-top: clamp(32px, 5vw, 48px); }
.img-ph { width: 100%; height: 100%; min-height: 160px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, var(--bg)), color-mix(in srgb, var(--accent) 26%, var(--bg))); }

.button-light { background: #ffffff; color: #15201e; }
.button-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px currentColor; }
.sec-bg-dark .button-outline { color: #ffffff; }
.button-block { display: block; text-align: center; width: 100%; }
.link-more { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.sec-bg-dark .link-more { color: #ffffff; }

/* ---- Intestazione: pulsante di prenotazione ---- */
.brand { order: 0; }
.site-nav { order: 1; margin-left: auto; }
.header-cta { order: 2; display: inline-block; padding: 10px 20px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.nav-toggle { order: 3; }
@media (max-width: 859px) {
  .header-inner { gap: 10px; }
  .js .header-cta { margin-left: auto; padding: 8px 14px; font-size: .9rem; }
  .nav-toggle { padding: 8px 12px; }
  .js .site-nav { order: 4; }
}
@media (max-width: 420px) { .brand-tagline { display: none; } .brand-name { font-size: 1.25rem; } }

/* ---- Copertina ---- */
.sec-hero { padding: 0; }
.hero { position: relative; display: flex; color: #ffffff; background: var(--dark-bg, #1b2422); }
.hero-full { min-height: 100vh; min-height: 100svh; }
.hero-medium { min-height: 72vh; min-height: 72svh; }
.hero-small { min-height: 46vh; }
.hero-noimg { background: var(--primary); color: var(--on-primary); }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 15, .42) 0%, rgba(10, 16, 15, .08) 38%, rgba(10, 16, 15, .62) 100%); }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 36px; padding-top: 128px; padding-bottom: clamp(28px, 5vw, 56px); }
.hero-text { max-width: 900px; }
.hero-kicker { font-family: var(--font-head); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.35rem); margin: 0 0 .6em; opacity: .92; }
.hero-title { font-family: var(--font-head); font-size: clamp(2.6rem, 7.6vw, 6.4rem); line-height: 1; letter-spacing: -.015em; margin: 0 0 .35em; max-width: 16ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 48ch; margin: 0 0 1.6em; opacity: .92; }

/* ---- Barra di prenotazione ---- */
.booking-bar { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.bk-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .82rem; font-weight: 500; }
.bk-field input, .bk-field select { width: 100%; min-width: 0; font: inherit; font-size: 1rem; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface, #fff); color: var(--text); min-height: 48px; }
.bk-submit { grid-column: 1 / -1; min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; cursor: pointer; }
.bk-submit:hover { filter: brightness(1.1); }
@media (min-width: 900px) {
  .booking-bar { grid-template-columns: 1.2fr 1.2fr .7fr .7fr auto; }
  .booking-bar.no-children { grid-template-columns: 1.3fr 1.3fr .8fr auto; }
  .bk-submit { grid-column: auto; }
}
.booking-block { padding: 20px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.booking-hero { padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); color: #ffffff; }
.booking-hero .bk-field input, .booking-hero .bk-field select { background: rgba(255, 255, 255, .94); border-color: transparent; color: #15201e; }
.booking-hero .bk-submit { background: var(--accent); color: var(--on-accent); }
.booking-wrap { display: grid; gap: 24px; }
.booking-intro .sec-title { margin-bottom: .3em; }
.booking-widget { width: 100%; }
/* Widget di qualsiasi booking engine: sempre sopra le sezioni successive, così calendari e menu a comparsa non vengono coperti */
.booking-code { position: relative; z-index: 5; min-height: 1px; color: inherit; }
.hero-inner:has(.booking-code) { z-index: 5; }
.booking-code-all { margin-top: 32px; margin-bottom: 32px; }

/* ---- Presentazione ---- */
.intro { text-align: center; }
.intro .sec-head { margin-bottom: 28px; }
.intro-text { margin: 0 auto; font-size: 1.15rem; }
.intro-text p { margin-left: auto; margin-right: auto; }
.intro-sign { font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--accent); margin: 1.4em 0 0; }

/* ---- Testo e foto ---- */
.ti { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ti-media img, .ti-media .img-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: var(--radius); }
.ti-text .sec-head { margin-bottom: 24px; }
.ti-text .prose { margin-bottom: 28px; }
@media (min-width: 900px) {
  .ti { grid-template-columns: 1.05fr .95fr; }
  .ti-right .ti-media { order: 2; }
}

/* ---- Camere ---- */
.room-grid { display: grid; gap: 48px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .room-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .room-grid { grid-template-columns: repeat(3, 1fr); } }
.room-card-media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.room-card-media img, .room-card-media .img-ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.room-card:hover .room-card-media img { transform: scale(1.035); }
.room-card-body { padding-top: 20px; }
.room-card-title { font-family: var(--font-head); font-size: 1.55rem; line-height: 1.15; margin: 0 0 .3em; }
.room-card-title a { color: inherit; text-decoration: none; }
.room-facts { color: var(--muted); font-size: .9rem; margin: 0 0 .8em; }
.room-card-text { margin: 0 0 1em; }
.room-card-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; }
.room-price { margin: 0; color: var(--muted); }
.room-price strong { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--text); }

/* ---- Servizi ---- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 359px) { .feature-grid { grid-template-columns: 1fr; } }
@media (min-width: 700px) { .feature-grid { gap: 40px 32px; } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.feature-title { font-family: var(--font-head); font-size: 1.2rem; margin: 0 0 .35em; }
.feature-text { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---- Galleria ---- */
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery-item a { display: block; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item figcaption { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gallery-grid .gallery-item { aspect-ratio: 1; }
@media (min-width: 800px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
/* Mosaico: colonne con foto di proporzioni alternate, mai spazi vuoti */
.gallery-mosaic { display: block; columns: 2; column-gap: 10px; }
.gallery-mosaic .gallery-item { break-inside: avoid; margin-bottom: 10px; aspect-ratio: 4 / 5; }
.gallery-mosaic .gallery-item:nth-child(3n + 2) { aspect-ratio: 4 / 3; }
.gallery-mosaic .gallery-item:nth-child(3n) { aspect-ratio: 1; }
@media (min-width: 800px) { .gallery-mosaic { columns: 3; column-gap: 14px; } .gallery-mosaic .gallery-item { margin-bottom: 14px; } }

/* ---- Recensioni ---- */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 440px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
@media (min-width: 1000px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; overflow: visible; padding-bottom: 0; } }
.review { margin: 0; scroll-snap-align: start; padding: clamp(24px, 3vw, 36px); background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.sec-bg-dark .review { background: rgba(255, 255, 255, .05); }
.review-stars { color: var(--accent); letter-spacing: .15em; margin: 0 0 14px; }
.review-text { margin: 0 0 22px; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.45; flex: 1; }
.review-author { font-weight: 600; font-size: .95rem; }
.review-author span { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }

/* ---- Offerte e schede ---- */
.offer-grid, .card-grid { display: grid; gap: 40px 28px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .offer-grid, .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .offer-grid, .card-grid { grid-template-columns: repeat(3, 1fr); } }
.offer { display: flex; flex-direction: column; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sec-bg-dark .offer { background: rgba(255, 255, 255, .05); }
.offer-media img, .offer-media .img-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.offer-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.offer-title, .xcard-title { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.2; margin: 0 0 .4em; }
.xcard-title a { color: inherit; text-decoration: none; }
.offer-text, .xcard-text { margin: 0 0 1.2em; color: var(--muted); }
.offer-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: baseline; }
.offer-price { margin: 0; font-family: var(--font-head); font-size: 1.2rem; color: var(--accent); }
.xcard-media { overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; }
.xcard-media img, .xcard-media .img-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* ---- Numeri ---- */
.numbers { display: grid; gap: 36px 24px; grid-template-columns: 1fr 1fr; margin: 0; }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.number { display: flex; flex-direction: column-reverse; text-align: center; }
.number dd { margin: 0; font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; color: var(--accent); }
.number dt { margin-top: 10px; color: var(--muted); }

/* ---- Domande frequenti ---- */
.faq-wrap { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-family: var(--font-head); font-size: 1.2rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 22px; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---- Dove siamo ---- */
.loc { display: grid; gap: 40px; }
@media (min-width: 900px) { .loc { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.loc-address { font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 1.2em; }
.loc-map iframe, .map-ph { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); display: block; }

/* ---- Modulo contatti ---- */
.contact { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: .8fr 1.2fr; } }
.contact-direct { list-style: none; padding: 0; margin: 1.4em 0 0; font-family: var(--font-head); font-size: 1.25rem; }
.contact-direct li { margin-bottom: .4em; }
.contact-direct a { color: inherit; }
.contact-form { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .contact-form { grid-template-columns: 1fr 1fr; } .f-wide { grid-column: 1 / -1; } }
.contact-form .f { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: .9rem; font-weight: 500; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form input[type=date], .contact-form textarea {
  font: inherit; font-size: 1rem; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface, #fff); color: var(--text); width: 100%; }
.sec-bg-dark .contact-form input, .sec-bg-dark .contact-form textarea { background: rgba(255, 255, 255, .95); color: #15201e; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 0; }
.f-check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: var(--radius); font-weight: 500; }
.form-msg-ok { background: #e7f4ec; color: #17603a; }
.form-msg-err { background: #fbeaea; color: #9b1c1c; }

/* ---- Invito all'azione ---- */
.sec-cta { padding: 0; }
.cta { position: relative; text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.cta-img { color: #ffffff; background: var(--dark-bg, #1b2422); }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 16, 15, .5); }
.cta-inner { position: relative; z-index: 1; max-width: 760px; }
.cta-title { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 .5em; }
.cta-inner p { font-size: 1.1rem; margin: 0 auto 1.6em; max-width: 52ch; }

/* ---- Testo libero ---- */
.prose-block { margin: 0 auto; }

/* ---- Pagina camera ---- */
.page-room { padding-top: clamp(32px, 5vw, 56px); padding-bottom: 0; }
.room-back { margin: 0 0 .8em; font-size: .92rem; }
.room-back a { color: var(--muted); }
.room-title { margin-bottom: .2em; }
.room-facts-lg { font-size: 1.05rem; margin-bottom: clamp(24px, 4vw, 40px); }
.room-gallery { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; position: relative; }
.room-gallery a { display: block; overflow: hidden; border-radius: var(--radius); }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rg-0 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.rg-1, .rg-2, .rg-3, .rg-4 { aspect-ratio: 4 / 3; }
.rg-3, .rg-4 { display: none !important; }
@media (min-width: 800px) {
  .room-gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; }
  .rg-0 { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; }
  .rg-1, .rg-2, .rg-3, .rg-4 { aspect-ratio: auto; }
  .rg-3, .rg-4 { display: block !important; }
  /* disposizione secondo il numero di foto, senza spazi vuoti */
  .rg-n1 { grid-template-columns: 1fr; grid-template-rows: 520px; }
  .rg-n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 240px 240px; }
  .rg-n2 .rg-1 { grid-row: 1 / 3; }
  .rg-n3 { grid-template-columns: 2fr 1fr; }
  .rg-n4 .rg-3 { grid-column: 2 / 4; }
}
.rg-more { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); color: #15201e; padding: 6px 12px; border-radius: 99px; font-size: .85rem; pointer-events: none; }
.room-body { display: grid; gap: 40px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); }
@media (min-width: 900px) { .room-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; } }
.room-lead { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.4; margin: 0 0 1.2em; }
.room-h2 { font-family: var(--font-head); font-size: 1.6rem; margin: 2em 0 .8em; }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 24px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .amenities { grid-template-columns: 1fr 1fr; } }
.amenities li { padding-left: 22px; position: relative; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.room-aside { align-self: start; }
@media (min-width: 900px) { .room-aside { position: sticky; top: 110px; } }
.room-box { padding: 28px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius); }
.room-price-lg { margin: 0 0 18px; font-size: 1rem; }
.room-price-lg strong { font-size: 1.9rem; }
.room-call { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }

/* ---- Foto a schermo intero ---- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 11, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #e8ebe7; font-size: .95rem; padding: 0 60px; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); color: #ffffff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb button:hover, .lb button:focus-visible { background: rgba(255, 255, 255, .22); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   TEMA HOTEL — lusso discreto
   Pietra chiara fredda, verde laguna, ottone brunito. Titoli Didone.
   ========================================================================== */
[data-theme="hotel"] {
  --bg: #f3f4f1; --surface: #ffffff; --text: #1f2624; --muted: #5d6965; --line: #dce0da;
  --header-bg: #f3f4f1; --header-text: #1f2624;
  --footer-bg: #142624; --footer-text: #e4e8e2; --footer-muted: #98a7a1;
  --alt-bg: #e8ebe5; --dark-bg: #142624;
  --radius: 2px; --container: 1240px;
}
[data-theme="hotel"] body, body[data-theme="hotel"] { font-size: 1.05rem; letter-spacing: .005em; }
[data-theme="hotel"] .page-title, [data-theme="hotel"] .prose h1, [data-theme="hotel"] .prose h2, [data-theme="hotel"] .prose h3,
[data-theme="hotel"] .sec-title, [data-theme="hotel"] .hero-title, [data-theme="hotel"] .cta-title,
[data-theme="hotel"] .room-card-title, [data-theme="hotel"] .offer-title, [data-theme="hotel"] .xcard-title, [data-theme="hotel"] .feature-title,
[data-theme="hotel"] .room-h2, [data-theme="hotel"] .faq-item summary { font-weight: 400; }
[data-theme="hotel"] .feature-title { font-size: 1.3rem; }
[data-theme="hotel"] .page-title { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
[data-theme="hotel"] .site-header { border-bottom-color: transparent; }
[data-theme="hotel"] .header-inner { min-height: 84px; }
[data-theme="hotel"] .brand-name { font-weight: 400; font-size: 1.65rem; letter-spacing: .01em; }
[data-theme="hotel"] .brand-tagline { font-style: italic; font-family: var(--font-head); font-size: .9rem; opacity: .8; }
[data-theme="hotel"] .site-nav a { font-weight: 400; font-size: .97rem; padding: 8px 14px; }
[data-theme="hotel"] .site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); color: inherit; }
[data-theme="hotel"] .site-nav a:hover { color: inherit; opacity: .7; }
[data-theme="hotel"] .header-cta { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; font-weight: 500; padding: 11px 24px; }
@media (max-width: 859px) { [data-theme="hotel"] .header-cta { padding: 8px 14px; } [data-theme="hotel"] .brand-name { font-size: 1.35rem; } }
[data-theme="hotel"] .header-cta:hover { background: var(--primary); color: var(--on-primary); box-shadow: inset 0 0 0 1px var(--primary); }
[data-theme="hotel"] .button { font-weight: 500; letter-spacing: .02em; padding: 15px 30px; }

/* Intestazione trasparente sopra la copertina, piena quando si scorre */
@media (min-width: 0px) {
  [data-theme="hotel"].has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; color: #ffffff; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
  [data-theme="hotel"].has-hero .site-header.is-scrolled,
  [data-theme="hotel"].has-hero .site-header.nav-open { background: var(--header-bg); color: var(--header-text); box-shadow: 0 1px 0 var(--line); }
  [data-theme="hotel"].has-hero .site-header .brand-logo { filter: brightness(0) invert(1); transition: filter .35s; }
  [data-theme="hotel"].has-hero .site-header.is-scrolled .brand-logo,
  [data-theme="hotel"].has-hero .site-header.nav-open .brand-logo { filter: none; }
}

/* La copertina: un solo movimento, lento, all'apertura della pagina */
@keyframes hotel-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
[data-theme="hotel"] .hero-full .hero-media img { animation: hotel-settle 2.4s cubic-bezier(.2, .6, .2, 1) both; }
[data-theme="hotel"] .hero-title { text-wrap: balance; }
[data-theme="hotel"] .hero-kicker { color: #e9dcc5; opacity: 1; }

[data-theme="hotel"] .sec-kicker { font-size: 1.2rem; }
[data-theme="hotel"] .intro-text { font-size: 1.2rem; line-height: 1.8; }

/* Servizi: una riga sottile sopra ogni voce, come un registro */
[data-theme="hotel"] .feature { border-top: 1px solid var(--line); padding-top: 22px; }
[data-theme="hotel"] .feature-icon { width: 30px; height: 30px; }
[data-theme="hotel"] .room-card-title { font-size: 1.7rem; }
[data-theme="hotel"] .review { border: 0; background: transparent; padding: 0 0 0 24px; border-left: 1px solid var(--accent); }
[data-theme="hotel"] .review-text { font-size: 1.35rem; }
[data-theme="hotel"] .offer { border: 0; background: transparent; }
[data-theme="hotel"] .offer-body { padding: 22px 0 0; }
[data-theme="hotel"] .booking-block { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
[data-theme="hotel"] .bk-field input, [data-theme="hotel"] .bk-field select { border-color: var(--line); }
[data-theme="hotel"] .site-footer { font-size: .95rem; }
[data-theme="hotel"] .footer-name { font-weight: 400; font-size: 1.5rem; }
[data-theme="hotel"] .footer-title { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 400; font-style: italic; font-family: var(--font-head); }

/* ==========================================================================
   ASPETTO AVANZATO (dal pannello)
   ========================================================================== */
/* Intestazione trasparente sopra la copertina per qualsiasi tema */
.header-over.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; color: #ffffff; border-bottom-color: transparent; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
.header-over.has-hero .site-header.is-scrolled, .header-over.has-hero .site-header.nav-open { background: var(--header-bg); color: var(--header-text); box-shadow: 0 1px 0 var(--line); }
.header-over.has-hero .site-header .brand-logo { filter: brightness(0) invert(1); transition: filter .35s; }
.header-over.has-hero .site-header.is-scrolled .brand-logo, .header-over.has-hero .site-header.nav-open .brand-logo { filter: none; }
/* Logo chiaro caricato a parte: niente filtro, si scambiano i due loghi */
.brand-logo-light { display: none; }
.header-over.has-hero .site-header:not(.is-scrolled):not(.nav-open) .brand-logo-main { display: none; }
.header-over.has-hero .site-header:not(.is-scrolled):not(.nav-open) .brand-logo-light { display: block; filter: none; }
/* Sfondi delle sezioni: colore e foto */
.sec-bg-image { background-size: cover; background-position: center; color: #ffffff; }
.sec-pad-compact { padding: clamp(32px, 5vw, 56px) 0; }
.sec-pad-wide { padding: clamp(96px, 13vw, 180px) 0; }
.sec-pad-none { padding: 0; }
.footer-about { opacity: .85; }
/* Pulsante WhatsApp */
.wa-float { position: fixed; bottom: 20px; z-index: 2147481000; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #ffffff; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.wa-float:hover { filter: brightness(1.05); }
.wa-right { right: 20px; } .wa-left { left: 20px; }
.wa-raised { bottom: 110px; }
@media (max-width: 700px) { .wa-raised { bottom: 96px; } }
/* Immagini responsive (libreria media) */
picture { display: contents; }

/* ---- Raccolte ---- */
.coll-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 28px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.coll-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 500; flex: 1 1 160px; }
.coll-filters select, .coll-filters input[type=number] { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); min-height: 44px; }
.coll-filters .coll-check { flex-direction: row; align-items: center; flex: 0 1 auto; min-height: 44px; }
.coll-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.coll-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.coll-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.coll-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.coll-card-title { font-family: var(--font-head); font-size: 1.3rem; margin: 0; line-height: 1.25; }
.coll-card-title a { color: inherit; text-decoration: none; }
.coll-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .95rem; }
.coll-facts li span { color: var(--muted); }
.coll-card-desc { margin: 0; color: var(--muted); font-size: .95rem; }
.coll-card .link-more { margin-top: auto; }
.coll-group { font-family: var(--font-head); font-size: 1.4rem; margin: 1.6em 0 .4em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.coll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.coll-li-head { display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
.coll-li-title a { color: inherit; }
.coll-li-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.coll-li-price { white-space: nowrap; }
.coll-li-desc, .coll-li-meta { margin: .2em 0 0; color: var(--muted); font-size: .95rem; }
.coll-table-wrap { overflow-x: auto; }
.coll-table { width: 100%; border-collapse: collapse; }
.coll-table th, .coll-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.item-page { padding: 120px 0 64px; }
.item-back { margin: 0 0 8px; }
.item-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .item-grid { grid-template-columns: 3fr 2fr; } }
.item-media { display: grid; gap: 12px; } .item-media img { width: 100%; border-radius: var(--radius); display: block; }
.item-facts { font-size: 1.05rem; gap: 8px; margin-bottom: 20px; }

/* ---- Selettore della lingua ---- */
.lang-switch { order: 2; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lang-switch a { display: block; padding: 6px 8px; color: inherit; text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .04em; opacity: .7; border-radius: calc(var(--radius) * .5); }
.lang-switch a:hover { opacity: 1; color: var(--primary); }
.lang-switch a[aria-current="true"] { opacity: 1; box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
@media (max-width: 859px) { .lang-switch { order: 3; } .lang-switch a { padding: 6px 5px; } }

/* ---- Selettore lingua a tendina (oltre 3 lingue) ---- */
.lang-drop details { position: relative; }
.lang-drop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; border-radius: calc(var(--radius) * .6); user-select: none; }
.lang-drop summary::-webkit-details-marker { display: none; }
.lang-drop summary:hover { color: var(--primary); }
.lang-drop .lang-caret { font-size: .7em; transition: transform .2s; }
.lang-drop details[open] .lang-caret { transform: rotate(180deg); }
.lang-drop ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: block; min-width: 170px; padding: 6px; margin: 0; list-style: none;
  background: var(--surface, #fff); color: var(--text, #222); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.lang-drop li a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; opacity: 1; font-weight: 500; letter-spacing: 0; font-size: .95rem; border-radius: calc(var(--radius) * .5); }
.lang-drop li a b { font-size: .75rem; opacity: .6; min-width: 22px; }
.lang-drop li a:hover { background: var(--alt-bg, rgba(0,0,0,.05)); color: inherit; }
.lang-drop li a[aria-current="true"] { box-shadow: none; border-radius: calc(var(--radius) * .5); background: var(--alt-bg, rgba(0,0,0,.05)); font-weight: 700; }
