/* ============================================================
   HOTEL LE BOTTI — Foglio di stile condiviso
   Usato da index.html e dalle pagine delle camere.
   ============================================================ */

:root {
  --bordo: #7a2230;
  --bordo-dark: #5c1a25;
  --gold: #c8a24a;
  --cream: #faf7f2;
  --sand: #f1e9df;
  --ink: #2a2320;
  --muted: #6f6660;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(42, 35, 32, .10);
  --radius: 14px;
  --header-h: 68px;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

/* ---------- Base (mobile first) ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

.container { width: min(1140px, 92%); margin-inline: auto; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--bordo); color: var(--white);
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(250, 247, 242, .97);
  box-shadow: 0 2px 14px rgba(42, 35, 32, .06);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(42, 35, 32, .14); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; position: relative; z-index: 120; }
.logo-img { height: 44px; width: auto; }
.logo-fallback { display: none; align-items: center; gap: .55rem; }
.logo-fallback svg { width: 28px; height: 28px; stroke: var(--bordo); }
.logo-fallback span {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 700;
  letter-spacing: .02em; color: var(--ink);
}
.logo-fallback em { font-style: normal; color: var(--bordo); }

.main-nav {
  position: fixed; inset: 0; background: var(--cream);
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 3rem;
  overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.main-nav.open { opacity: 1; pointer-events: auto; }
.main-nav ul { list-style: none; display: flex; flex-direction: column; gap: 1.8rem; text-align: center; }
.main-nav a {
  text-decoration: none; font-size: 1.25rem; font-weight: 400;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  display: inline-block; padding: .4rem .8rem;
  transition: color .2s;
}
.main-nav a:hover { color: var(--bordo); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: var(--white); }

body.nav-open { overflow: hidden; }

.nav-toggle {
  display: block; cursor: pointer;
  width: 46px; height: 46px; position: relative; z-index: 120;
  background: var(--white);
  border: 1px solid #e3d6c8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(42, 35, 32, .10);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; margin: 5px auto;
  background: var(--bordo); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: .95rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .85rem 1.9rem; border-radius: 50px; border: 1px solid transparent;
  min-height: 44px;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--bordo); color: var(--white); }
.btn-primary:hover { background: var(--bordo-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ---------- Hero home (con effetto vetro) ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: flex; align-items: center;
  background:
    url('img/hero.jpg'),
    radial-gradient(circle at 80% 20%, #a4523f 0%, #5c1a25 45%, #2a1c18 100%);
  background-size: cover; background-position: center;
  color: var(--white);
  padding: calc(var(--header-h) + 3rem) 0 5.5rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(160deg,
    rgba(42, 28, 24, .10) 0%,
    rgba(92, 26, 37, .08) 55%,
    rgba(122, 34, 48, .06) 100%);
  backdrop-filter: saturate(1.15);
  -webkit-backdrop-filter: saturate(1.15);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 42rem; }
.eyebrow {
  font-size: .82rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 400;
}
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--white); }
.hero p { font-size: 1.1rem; max-width: 56ch; margin-bottom: 1.8rem; color: rgba(255,255,255,.92); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

.chips { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50px;
  padding: .45rem 1rem; font-size: .85rem; letter-spacing: .05em;
  color: rgba(255,255,255,.95); background: rgba(255,255,255,.08);
}
.chip svg { width: 16px; height: 16px; stroke: var(--gold); }

/* ---------- Prenotazione (Beddy) ---------- */
.booking { margin-top: -3rem; position: relative; z-index: 10; }
.booking-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem 1.4rem;
}
.booking-card h2 { font-size: 1.6rem; margin-bottom: .35rem; color: var(--bordo); }
.booking-card > p { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
beddy-bar { display: block; width: 100%; min-height: 60px; }
.booking-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
.booking-note a { color: var(--bordo); }

/* ---------- Sezioni generiche ---------- */
.section { padding: 3.8rem 0; }
.section-alt { background: var(--sand); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.6rem; }
.section-head .eyebrow { color: var(--bordo); }
.section-head h2 { font-size: clamp(1.9rem, 6vw, 2.9rem); margin-bottom: .8rem; }
.section-head p { color: var(--muted); }

/* ---------- Storia ---------- */
.about-grid { display: grid; gap: 2.4rem; }
.about-grid h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-bottom: 1.2rem; }
.about-grid p + p { margin-top: 1rem; }
.about-grid .firma { font-family: var(--font-head); font-style: italic; font-size: 1.25rem; color: var(--bordo); margin-top: 1.4rem; }
.features { list-style: none; display: grid; gap: 1.1rem; align-content: start; }
.features li {
  background: var(--white); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
  display: flex; gap: .9rem; align-items: flex-start;
}
.features svg { flex: none; width: 24px; height: 24px; stroke: var(--bordo); margin-top: .15rem; }
.features strong { display: block; font-weight: 500; }
.features small { color: var(--muted); font-size: .9rem; }

/* ---------- Target ---------- */
.audience { display: grid; gap: 1.2rem; }
.audience-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.7rem 1.5rem;
  border-top: 3px solid var(--gold);
  transition: transform .25s ease;
}
.audience-card:hover { transform: translateY(-5px); }
.audience-card svg { width: 30px; height: 30px; stroke: var(--bordo); margin-bottom: .8rem; }
.audience-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.audience-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Esperienze ---------- */
.exp { display: grid; gap: 0; margin-bottom: 3rem; }
.exp:last-child { margin-bottom: 0; }
.exp-media {
  position: relative; overflow: hidden;
  min-height: 240px; border-radius: var(--radius) var(--radius) 0 0;
}
.exp-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-bici .exp-media { background: linear-gradient(150deg, #3d5c43, #22392a); }
.exp-piscina .exp-media { background: linear-gradient(150deg, #2e5f6e, #1b3a44); }
.exp-spa .exp-media { background: linear-gradient(150deg, #7a2230, #4a1420); }
.exp-body {
  background: var(--white); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem 1.5rem;
}
.exp-body .num { font-family: var(--font-head); font-style: italic; font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.exp-body h3 { font-size: 1.8rem; margin: .3rem 0 .8rem; }
.exp-body p { color: var(--muted); }
.exp-body p + p { margin-top: .8rem; }
.exp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.exp-tags li { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bordo); background: rgba(122,34,48,.08); padding: .35rem .8rem; border-radius: 50px; }

/* ---------- Card camere ---------- */
.cards { display: grid; gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(42,35,32,.14); }
.card .tag { align-self: flex-start; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bordo); background: rgba(122,34,48,.08); padding: .3rem .8rem; border-radius: 50px; }
.card h3 { font-size: 1.5rem; }
.card ul { list-style: none; color: var(--muted); font-size: .95rem; display: grid; gap: .35rem; }
.card ul li::before { content: "—"; color: var(--gold); margin-right: .5rem; }
.card .card-link { margin-top: auto; padding-top: .6rem; color: var(--bordo); font-weight: 500; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.card .card-link:hover { text-decoration: underline; }
.cards-note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: .98rem; }
.cards-note a { color: var(--bordo); }

/* ---------- Territorio ---------- */
.places { display: grid; gap: 1.2rem; }
.place {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 2.2rem 1.5rem; color: var(--white);
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, rgba(92,26,37,.85), rgba(42,28,24,.9));
  transition: transform .25s ease;
}
.place img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.place::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(42,28,24,.05) 30%, rgba(42,28,24,.88) 100%); }
.place h3, .place p { position: relative; z-index: 2; }
.place:hover { transform: translateY(-6px); }
.place:hover img { transform: scale(1.06); }
.place h3 { font-size: 1.45rem; }
.place p { font-size: .92rem; color: rgba(255,255,255,.9); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: 1.2rem; }
.contact-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.8rem 1.5rem; text-align: center; text-decoration: none;
  transition: transform .25s ease;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card svg { width: 28px; height: 28px; stroke: var(--bordo); margin-bottom: .7rem; }
.contact-card strong { display: block; font-weight: 500; margin-bottom: .2rem; }
.contact-card span { color: var(--muted); font-size: .95rem; }
.socials { display: flex; justify-content: center; gap: 1rem; margin-top: 2.2rem; }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow); transition: background .2s, transform .2s; }
.socials a:hover { background: var(--bordo); transform: translateY(-3px); }
.socials a:hover svg { stroke: var(--white); }
.socials svg { width: 20px; height: 20px; stroke: var(--bordo); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 3rem 0 2rem; font-size: .9rem; }
.site-footer .container { text-align: center; display: grid; gap: .8rem; }
.site-footer .logo { justify-content: center; }
.site-footer .logo-img { height: 40px; filter: brightness(0) invert(1); opacity: .9; }
.site-footer .logo-fallback span { color: var(--white); }
.site-footer .logo-fallback em { color: var(--gold); }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal { font-size: .8rem; color: rgba(255,255,255,.5); }

/* ---------- Animazioni ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   PAGINE CAMERA — componenti specifici
   ============================================================ */

/* Mini-hero della pagina camera */
.room-hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: 46vh;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, #a4523f 0%, #5c1a25 45%, #2a1c18 100%);
  background-size: cover; background-position: center;
}
.room-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(42,28,24,.25) 0%, rgba(42,28,24,.72) 100%);
}
.room-hero .container { position: relative; z-index: 1; }
.room-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: .6rem; }
.room-hero .eyebrow { margin-bottom: .8rem; }
.room-hero p.lead { font-size: 1.1rem; max-width: 60ch; color: rgba(255,255,255,.92); }
.breadcrumb { font-size: .85rem; letter-spacing: .06em; margin-bottom: 1.2rem; color: rgba(255,255,255,.75); }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Layout dettaglio camera: testo + scheda */
.room-layout { display: grid; gap: 2.4rem; }
.room-desc h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; color: var(--bordo); }
.room-desc p + p { margin-top: 1rem; }

.spec-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem 1.6rem;
  align-self: start;
  border-top: 3px solid var(--gold);
}
.spec-card h2 { font-size: 1.4rem; color: var(--bordo); margin-bottom: 1rem; }
.spec-list { list-style: none; display: grid; gap: .7rem; }
.spec-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: .7rem; border-bottom: 1px solid #efe6da;
  font-size: .95rem;
}
.spec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 500; text-align: right; }
.spec-card .btn { width: 100%; text-align: center; margin-top: 1.4rem; }

/* ---------- Galleria camera (3 foto + lightbox) ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.gallery-item {
  border: 0; padding: 0; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--sand);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(42,35,32,.16); }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .45s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox (creato via JS) */
.lightbox {
  position: fixed; inset: 0; z-index: 1200;
  display: grid; place-items: center;
  background: rgba(26, 18, 15, .92);
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 94vw; max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.28); }
body.lightbox-open { overflow: hidden; }

/* Dotazioni */
.amenities { list-style: none; display: grid; gap: .8rem; grid-template-columns: 1fr; }
.amenities li {
  display: flex; gap: .7rem; align-items: center;
  background: var(--white); border-radius: 10px;
  padding: .8rem 1rem; box-shadow: 0 4px 14px rgba(42,35,32,.06);
  font-size: .95rem;
}
.amenities svg { flex: none; width: 20px; height: 20px; stroke: var(--bordo); }

/* Box info pratiche */
.info-box {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem 1.6rem;
  display: grid; gap: 1rem;
}
.info-box h3 { color: var(--bordo); font-size: 1.3rem; }
.info-box p { color: var(--muted); font-size: .95rem; }
.info-box strong { color: var(--ink); font-weight: 500; }

/* ---------- Widget chat ---------- */
.chat-toggle, .chat-container {
  --primary-1: #8B4350;
  --primary-2: #6B2737;
  --primary-3: #4A1A23;
  --chat-gold: #C9A961;
  --chat-surface: rgba(250,246,242,.85);
  --chat-text: #3A2E2B;
  --chat-border: rgba(201,169,97,.25);
  --chat-radius: 1.25rem;
  --chat-shadow-light: 0 8px 28px rgba(74,26,35,.12);
  --chat-shadow-heavy: 0 18px 45px rgba(107,39,55,.30);
  --chat-blur: 16px;
}
body.chat-open { overflow: hidden; }
.chat-toggle { position: fixed; bottom: calc(5.5rem + env(safe-area-inset-bottom)); right: 1.5rem; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-2), var(--primary-3)); box-shadow: 0 0 0 4px rgba(201,169,97,.25), var(--chat-shadow-light), 0 0 0 6px var(--chat-gold); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .25s, opacity .3s; opacity: 1; visibility: visible; animation: toggle-glow 2.5s ease-in-out infinite alternate; z-index: 1002; }
.chat-toggle svg { width: 30px; height: 30px; fill: #fff; }
.chat-toggle.is-hidden { opacity: 0; transform: scale(.8); pointer-events: none; animation: none; }
.chat-toggle:hover { transform: scale(1.1); }
@keyframes toggle-glow { 0% { box-shadow: 0 0 0 4px rgba(201,169,97,.25), var(--chat-shadow-light), 0 0 0 3px var(--chat-gold); } 100% { box-shadow: 0 0 0 4px rgba(201,169,97,.45), var(--chat-shadow-light), 0 0 0 6px rgba(201,169,97,.85); } }
.chat-container { position: fixed; bottom: calc(1.5rem + env(safe-area-inset-bottom)); right: 1.5rem; width: 380px; max-width: calc(100vw - 3rem); height: 78vh; max-height: 620px; display: flex; flex-direction: column; z-index: 1001; background: transparent; border: 1px solid var(--chat-border); border-radius: var(--chat-radius); box-shadow: var(--chat-shadow-heavy); opacity: 0; transform: scale(0.3); transform-origin: bottom right; visibility: hidden; font-family: "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--chat-text); transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s; }
.chat-container::before { content: ''; position: absolute; inset: 0; background: var(--chat-surface); backdrop-filter: blur(var(--chat-blur)); border-radius: var(--chat-radius); z-index: -1; }
.chat-container.is-open { opacity: 1; transform: scale(1); visibility: visible; transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s; }
@media (max-width: 600px), (max-height: 520px) { .chat-container { top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh; border-radius: 0; transform-origin: center; } .chat-container.is-open { transform: scale(1); border: 0; box-shadow: none; } .chat-container::before { border-radius: 0; } }
.brand-header { flex: 0 0 auto; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: linear-gradient(135deg, var(--primary-2), var(--primary-3)); color: #fff; position: relative; z-index: 1; border-top-left-radius: var(--chat-radius); border-top-right-radius: var(--chat-radius); }
.brand-header img { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--chat-gold); background: #fff; padding: 2px; }
.brand-header span { font-weight: 600; font-size: 1rem; }
.close-button { position: absolute; top: 50%; right: .8rem; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; line-height: 1.9rem; transition: background .25s ease, color .25s ease; }
.close-button:hover { background: rgba(255,255,255,.30); }
.chat-messages { flex: 1 1 auto; display: flex; flex-direction: column; gap: .4rem; padding: .75rem .9rem; overflow-y: auto; overscroll-behavior: contain; background: transparent; scroll-behavior: smooth; }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(6px) scale(.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.chat-message { padding: .4rem .7rem; border-radius: calc(var(--chat-radius) - .25rem); max-width: 85%; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: pop-in .28s ease forwards; opacity: 0; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.chat-message.utente { background: linear-gradient(135deg, var(--primary-1), var(--primary-2)); color: #fff; align-self: flex-end; border-radius: calc(var(--chat-radius) - .25rem) calc(var(--chat-radius) - .25rem) .4rem calc(var(--chat-radius) - .25rem); }
.chat-message.bot { background: rgba(255,255,255,.95); color: var(--chat-text); align-self: flex-start; border-radius: calc(var(--chat-radius) - .25rem) calc(var(--chat-radius) - .25rem) calc(var(--chat-radius) - .25rem) .4rem; border-left: 3px solid var(--chat-gold); }
.chat-message a { color: var(--primary-2); text-decoration: underline; text-decoration-color: var(--chat-gold); }
.chat-message.bot > * { margin: 0 !important; padding: 0 !important; }
.chat-message.bot > * + * { margin-top: 0.35em !important; }
.chat-message.bot ul, .chat-message.bot ol { margin: 0.25em 0 0 0 !important; padding-left: 1.2em !important; list-style-position: outside; }
.chat-message.bot li { margin: 0.1em 0 !important; padding: 0 !important; line-height: 1.4; }
.chat-input { flex: 0 0 auto; display: flex; gap: .55rem; align-items: center; padding: .75rem .9rem; padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--chat-border); }
.chat-input textarea { flex: 1; max-height: 130px; min-height: 2.9rem; padding: .7rem .9rem; border: 1px solid rgba(201,169,97,.35); border-radius: calc(var(--chat-radius)/1.3); background: rgba(255,255,255,.75); color: var(--chat-text); font-family: inherit; font-size: 1rem; line-height: 1.35; resize: none; outline: none; overflow-y: auto; transition: border-color .25s ease, box-shadow .25s ease; }
.chat-input textarea:focus { border-color: var(--chat-gold); box-shadow: 0 0 0 3px rgba(201,169,97,.25); }
.chat-input button { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-2), var(--primary-3)); color: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(107,39,55,.25); transition: transform .25s, box-shadow .25s ease; }
.chat-input button:hover:not(:disabled) { transform: scale(1.12); box-shadow: 0 6px 18px rgba(107,39,55,.35); }
.chat-input button svg { width: 19px; height: 19px; fill: #fff; }
.typing-dots { display: inline-block; margin-left: .3rem; }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
.typing-dots span { display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin: 0 1px; animation: blink 1.2s infinite both; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }

/* ============================================================
   TABLET
   ============================================================ */
@media (min-width: 720px) {
  .section { padding: 4.5rem 0; }
  .booking-card { padding: 2rem 2.2rem; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .places { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .info-box { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .section { padding: 5.5rem 0; }
  .site-header { backdrop-filter: blur(8px); }
  .nav-toggle { display: none; }
  .main-nav { position: static; background: none; display: block; padding: 0; overflow: visible; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: row; align-items: center; gap: 1.6rem; }
  .main-nav a { font-size: .9rem; padding: .4rem 0; }
  .btn-nav { padding: .55rem 1.4rem !important; font-size: .82rem !important; }

  .hero { min-height: 92vh; min-height: 92svh; }
  
  .hero::before { backdrop-filter: saturate(1.15); -webkit-backdrop-filter: saturate(1.15); }
  
  .chips { overflow: visible; flex-wrap: wrap; }

  .about-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
  .features { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(4, 1fr); }
  .exp { grid-template-columns: 1fr 1fr; align-items: stretch; margin-bottom: 3.5rem; }
  .exp-media { min-height: 360px; border-radius: var(--radius) 0 0 var(--radius); }
  .exp-body { border-radius: 0 var(--radius) var(--radius) 0; padding: 2.6rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
  .exp:nth-child(even) .exp-media { order: 2; border-radius: 0 var(--radius) var(--radius) 0; }
  .exp:nth-child(even) .exp-body { order: 1; border-radius: var(--radius) 0 0 var(--radius); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .places { grid-template-columns: repeat(4, 1fr); }
  .place { min-height: 240px; }

  /* Pagina camera */
  .room-hero { min-height: 54vh; }
  .room-layout { grid-template-columns: 1.4fr .8fr; gap: 3.5rem; align-items: start; }
  .amenities { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  
  /* Ripristina la posizione della chat in basso su schermi grandi */
  .chat-toggle { bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}
/* ============================================================
   COOKIE BANNER (Con Consenso Marketing)
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10000;
  background: var(--white);
  border-left: 4px solid var(--bordo);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(42, 35, 32, 0.25);
  padding: 1.2rem 1.4rem;
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s, visibility 0.5s;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.cookie-link {
  font-size: 0.85rem;
  color: var(--bordo);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-buttons {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}
.cookie-buttons .btn-sm {
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  min-height: auto;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
#reject-cookies {
  color: var(--muted);
  border: 1px solid #ddd;
  background: transparent;
}
#reject-cookies:hover {
  background: #f5f5f5;
  color: var(--ink);
}

@media (min-width: 720px) {
  .cookie-banner {
    max-width: 480px;
    right: auto;
    bottom: 2rem;
    left: 2rem;
  }
  .cookie-actions {
    flex-direction: row;
    justify-content: space-between;
  }
  .cookie-buttons {
    width: auto;
  }
}