@font-face { font-family: "Averia Serif Libre"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/averia-regular.woff2") format("woff2"); }
@font-face { font-family: "Averia Serif Libre"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/averia-bold.woff2") format("woff2"); }
@font-face { font-family: "Averia Serif Libre"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/averia-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/inter-variable.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../assets/fonts/manrope-variable.woff2") format("woff2"); }

/* =========================================================
   B&B Bibò — sistema visivo
   Struttura e movimenti dal template Sunrise Livigno (Trela re-tokenizzato),
   palette calda presa dai colori reali della casa: intonaco pesca, legno
   chiaro, crema, ferro battuto. Un solo layer, nessun override.
   ========================================================= */

:root {
  --snow: #f8f0e5;        /* sfondo pagina */
  --snow-deep: #efddca;   /* neutro caldo profondo */
  --paper: #fffbf5;       /* sfondo alternato + card */
  --ink: #35251d;         /* testo */
  --ink-soft: #6f5b4e;    /* testo attenuato */
  --pine: #a85434;        /* brand primario: terracotta pesca, dalle pareti della casa */
  --pine-2: #6e3420;      /* brand scuro: fondi pieni, hover */
  --sage: #d9b48f;        /* titoli colonne footer */
  --ice: #f6e3d3;         /* blocco colorato */
  --sun: #b85c2e;         /* accento: corallo acceso */
  --sun-soft: #edbb72;    /* accento su fondi scuri */
  --line: #e1cbb4;        /* hairline */
  --honey-light: #fff1d8; /* chip icona */
  --shadow: 0 23px 60px -39px rgba(85, 46, 27, .36);
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Averia Serif Libre", Georgia, serif;
  --max: 1240px;
  --pad: var(--bibo-page-pad, clamp(20px, 4vw, 56px));
  --radius: 16px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, .7, .25, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--snow);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open, body.panel-open, body.lightbox-open { overflow: hidden; }
img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--pine); color: white; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
.title, .display, .lead, .hero-title, .hero-sub, .page-title, .page-intro,
.form-card > p, .form-note, .cal-verdict { text-wrap: pretty; }

.container { width: min(var(--max), calc(100% - (var(--pad) * 2))); margin-inline: auto; }
.section { padding: clamp(82px, 9vw, 128px) 0; }
.section-sm { padding: clamp(60px, 7vw, 92px) 0; }
.bg-paper { background: var(--paper); }
.bg-ice { background: var(--ice); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 15px; color: #fff; background: var(--pine-2); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #e8a93d; outline-offset: 3px; }

/* ---------- Tipografia ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--pine-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .25em;
  line-height: 1.2;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--sun);
  -webkit-mask: url("../assets/bibo/sunburst.svg") center / contain no-repeat;
  mask: url("../assets/bibo/sunburst.svg") center / contain no-repeat;
}
.kicker.light { color: var(--ice); }
.kicker.light::before { background: var(--sun-soft); }
.display {
  max-width: 15ch;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.04;
}
.title {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.display em, .title em, .hero-title em, .page-title em,
.panorama-copy h2 em, .final-cta h2 em {
  color: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.lead { max-width: 62ch; color: var(--ink-soft); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; }
.lead.light { color: rgba(255,255,255,.76); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  color: var(--pine);
  border-bottom: 1px solid currentColor;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.text-link::after { content: "↗"; font-size: 15px; }
.text-link.light { color: white; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--bibo-button-radius, 999px);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--pine); box-shadow: 0 14px 30px -16px rgba(79, 43, 22, .68); }
.btn-primary:hover { background: var(--pine-2); }
.btn-sun { color: #fff; background: #b0512b; }
.btn-sun:hover { background: #8f3d1e; }
.btn-light { color: var(--pine-2); background: white; }
.btn-outline { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-outline:hover { color: white; border-color: var(--pine); background: var(--pine); }
.btn-glass { color: white; border-color: rgba(255,255,255,.55); background: rgba(45,28,18,.14); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navigazione ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 80; padding: 16px var(--pad); transition: padding .3s var(--ease); }
.nav-shell {
  width: fit-content;
  max-width: 100%;
  min-height: 58px;
  margin: auto;
  padding: 7px 7px 7px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  color: var(--ink);
  background: rgba(255, 253, 249, .9);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  box-shadow: 0 14px 40px -24px rgba(59, 43, 27, .42);
  backdrop-filter: blur(18px) saturate(1.25);
}
.site-header.scrolled { padding-top: 10px; }
.site-header.scrolled .nav-shell { background: rgba(255, 253, 249, .97); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; border-radius: 50%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy b { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 23px; }
.nav-links a { position: relative; color: #69584c; font-size: 14px; font-weight: 600; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 -6px; height: 2px; background: var(--sun); transform: scaleX(0); transition: transform .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 44px; padding-inline: 21px; }
.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lang-switch a[aria-current="true"] { color: #fff; background: var(--pine); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; place-items: center; border: 0; background: transparent; cursor: pointer; }
.menu-toggle svg { width: 25px; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 96px var(--pad) 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  color: white;
  background: var(--pine-2);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  transition: .35s var(--ease);
}
.mobile-menu.open { visibility: visible; opacity: 1; transform: none; }
.mobile-menu a:not(.btn) { padding: 7px 0; font-family: var(--display); font-size: clamp(38px, 12vw, 60px); line-height: 1; }
.mobile-close { position: absolute; top: 26px; right: var(--pad); width: 48px; height: 48px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: transparent; font-size: 27px; line-height: 1; cursor: pointer; }
.mobile-menu .btn { align-self: flex-start; margin-top: 22px; }
.mobile-menu .lang-switch { align-self: flex-start; margin-top: 18px; border-color: rgba(255, 255, 255, .3); }
.mobile-menu .lang-switch a { color: rgba(255, 255, 255, .7); }
.mobile-menu .lang-switch a[aria-current="true"] { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Hero home ---------- */
.home-hero { position: relative; min-height: max(740px, 100svh); display: grid; place-items: center; color: white; overflow: hidden; }
.home-hero-media { position: absolute; inset: 0; }
.home-hero-media img { height: 100%; object-fit: cover; object-position: 50% 55%; animation: heroZoom 30s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(45, 28, 18, .72) 0%, rgba(45, 28, 18, .3) 42%, rgba(45, 28, 18, .12) 100%); }
.hero-content { position: relative; z-index: 2; width: min(980px, 100%); padding: 0 var(--pad); text-align: center; }
.hero-loc { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero-loc svg { width: 17px; }
.hero-title { max-width: 1180px; margin: 0 auto 20px; font-family: var(--display); font-size: clamp(70px, 7.2vw, 110px); font-weight: 500; letter-spacing: -.045em; line-height: .9; }
.hero-title em { color: #ffe3ad; }
.hero-sub { max-width: 590px; margin: 0 auto 28px; color: rgba(255,255,255,.9); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.quick-facts { position: relative; z-index: 5; margin-top: -54px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.quick-item { min-height: 105px; padding: 23px 25px; display: flex; align-items: center; gap: 16px; border-right: 1px solid var(--line); }
.quick-item:last-child { border-right: 0; }
.quick-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: none; color: var(--pine-2); background: var(--honey-light); border: 1px solid #e9c987; border-radius: 50%; box-shadow: inset 0 1px 3px rgba(255,255,255,.75); }
.quick-icon svg { display: block; margin: 0; width: 20px; height: 20px; stroke-linecap: round; stroke-linejoin: round; }
.quick-item b { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1; color: var(--pine-2); }
.quick-item > div > span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Layout editoriali ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(38px, 6vw, 80px); align-items: center; }
.home-page .intro-grid > .portrait-stack { order: 2; }
.home-page .intro-grid > :not(.portrait-stack) { order: 1; }
.portrait-stack { position: relative; min-height: 570px; }
.portrait-stack .main-img { position: absolute; inset: 0 10% 8% 0; height: 92%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait-stack .small-img { display: none; position: absolute; right: 0; bottom: 0; width: 43%; aspect-ratio: 4 / 5; object-fit: cover; border: 8px solid var(--snow); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.home-page .portrait-stack .small-img { display: block; }
.host-note {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin: 26px 0 30px;
  padding: 21px 23px;
  background: #fff7eb;
  border: 1px solid #e8cba2;
  border-radius: var(--radius);
  box-shadow: 0 13px 32px -29px rgba(70,38,22,.48);
}
.host-note svg { width: 42px; height: 42px; flex: none; color: var(--sun); }
.host-note p { margin: 0 0 12px; color: var(--pine-2); font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.4; }
.host-note strong { display: block; font-size: 13px; line-height: 1.3; }
.host-note span { color: var(--ink-soft); font-size: 12px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 27px 0 32px; padding: 0; list-style: none; }
.feature-list li { padding: 12px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.feature-list svg { width: 18px; height: 18px; color: var(--sun); flex: none; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-heading > div { max-width: 740px; }
.section-heading.center { justify-content: center; text-align: center; }
.section-heading.center > div { max-width: 900px; }

.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 190px 190px; gap: 14px; }
.mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.mosaic figure:first-child { grid-column: span 3; grid-row: span 2; }
.mosaic figure:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.mosaic figure:nth-child(3), .mosaic figure:nth-child(4) { grid-column: span 3; }
.mosaic img { height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; inset: auto 14px 14px; width: fit-content; padding: 8px 12px; color: white; background: rgba(82, 47, 28, .84); border-radius: 999px; backdrop-filter: blur(8px); font-size: 11px; font-weight: 750; }

.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.album-grid figure { position: relative; margin: 0; overflow: hidden; height: 360px; border-radius: var(--radius); background: var(--snow-deep); }
.album-grid img { height: 100%; object-fit: cover; }
.album-grid figure:nth-child(1) img, .album-grid figure:nth-child(3) img { object-position: center 22%; }
.album-grid figcaption { position: absolute; inset: auto 14px 14px; width: fit-content; padding: 8px 12px; color: white; background: rgba(82, 47, 28, .84); border-radius: 999px; backdrop-filter: blur(8px); font-size: 11px; font-weight: 750; }
@media (max-width: 760px) { .album-grid { grid-template-columns: 1fr; } .album-grid figure { height: 300px; } }

.amenity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.amenity-card {
  min-height: 160px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  background: #fffaf2;
  border: 1px solid #e5cdb0;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px -29px rgba(80,43,25,.35);
}
.amenity-card svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  flex: none;
  color: var(--pine);
  background: var(--honey-light);
  border: 1px solid #ebcf9d;
  border-radius: 50%;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenity-card h3 { margin: 22px 0 7px; font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1.2; }
.amenity-card p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.panorama { position: relative; min-height: 620px; display: grid; place-items: end start; color: white; overflow: hidden; }
.panorama > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.panorama::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(65, 35, 22, .83), rgba(65, 35, 22, .08) 75%); }
.panorama-copy { position: relative; z-index: 2; max-width: 900px; padding: 74px max(var(--pad), calc((100vw - var(--max)) / 2)); }
.panorama-copy h2 { margin-bottom: 20px; font-family: var(--display); font-size: clamp(40px, 6vw, 68px); font-weight: 600; line-height: .92; }
.panorama-copy h2 span, .panorama-copy h2 em { display: block; }
.panorama-copy p { max-width: 60ch; color: rgba(255,255,255,.82); font-size: 18px; }
.home-return { min-height: 570px; }
.home-return > img { object-position: 50% 55%; }
.home-return::after { background: linear-gradient(90deg, rgba(46,27,17,.78), rgba(46,27,17,.22) 75%), linear-gradient(0deg, rgba(46,27,17,.55), transparent 70%); }
.home-return .panorama-copy { width: min(100%, 1380px); max-width: none; padding-top: 74px; padding-bottom: 74px; padding-right: var(--pad); }
.home-return .panorama-copy h2 { max-width: 930px; font-size: clamp(42px, 5.3vw, 72px); line-height: 1.04; }
.home-return .panorama-copy h2 span, .home-return .panorama-copy h2 em { white-space: nowrap; }

.nearby-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(38px, 6vw, 76px); align-items: center; }
.distance-list { margin: 0; padding: 0; list-style: none; }
.distance-list li { display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.distance-list li:first-child { border-top: 1px solid var(--line); }
.distance-list strong { color: var(--pine); font-family: var(--serif); font-size: 25px; font-style: italic; font-weight: 400; line-height: 1; }
.distance-list strong small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.distance-list b { display: block; margin-bottom: 3px; }
.distance-list span { color: var(--ink-soft); font-size: 14px; }
.nearby-photo { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.nearby-photo img { width: 100%; min-height: 540px; max-height: 630px; object-fit: cover; object-position: center 54%; }
.nearby-photo-label { position: absolute; inset: auto 22px 22px; padding: 14px 18px; color: white; background: rgba(77,44,30,.93); border-radius: var(--radius-sm); backdrop-filter: blur(10px); }
.nearby-photo-label b { display: block; font-family: var(--display); font-size: 24px; }
.nearby-photo-label span { font-size: 12px; opacity: .76; }

/* ---------- Hero pagine interne ---------- */
.page-hero { position: relative; min-height: 560px; display: grid; place-items: end start; color: white; overflow: hidden; text-align: center; }
.page-hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45, 28, 18, .25), rgba(45, 28, 18, .76)); }
.page-hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - (var(--pad) * 2))); margin: 0 auto; padding: 180px 0 66px; }
.page-title { max-width: 900px; margin: 0 auto 16px; font-family: var(--display); font-size: clamp(46px, 7vw, 78px); font-weight: 600; letter-spacing: -.03em; line-height: .98; }
.page-intro { max-width: 620px; margin: 0 auto; color: rgba(255,255,255,.84); font-size: clamp(17px, 2vw, 21px); }
.page-chip { display: inline-flex; gap: 9px; margin-bottom: 24px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Pagina storia ---------- */
.storia-hero { min-height: 640px; background: #33241c; }
.storia-hero > img { z-index: 1; object-fit: cover; object-position: center 8%; }
.storia-hero::after { z-index: 2; }
.storia-hero .page-hero-content { z-index: 3; }
.story-quote { position: relative; overflow: hidden; min-height: 560px; display: grid; place-items: center; color: white; text-align: center; border-radius: var(--radius); }
.story-quote > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.story-quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(45,28,18,.88), rgba(45,28,18,.42) 72%); }
.story-quote blockquote { position: relative; z-index: 2; width: min(860px, calc(100% - (var(--pad) * 2))); margin: 0; padding: 76px 0; }
.story-quote p { font-family: var(--serif); font-size: clamp(19px, 2.3vw, 26px); line-height: 1.6; }
.story-quote .quote-final { margin-top: 30px; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.15; }
.story-quote .quote-final em { color: var(--sun-soft); font-style: italic; font-weight: 500; }
.story-quote .quote-heart { color: var(--sun-soft); }

/* ---------- Stanze / dettagli ---------- */
.space-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.space-card { position: relative; min-height: 440px; overflow: hidden; border-radius: var(--radius); }
.space-card.wide { grid-column: 1 / 3; min-height: 510px; }
.space-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.space-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(53, 31, 20, .8), transparent 64%); }
.space-copy { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(25px, 4vw, 42px); color: white; }
.space-copy h3 { margin: 0 0 7px; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.space-copy p { max-width: 48ch; margin: 0; color: rgba(255,255,255,.76); font-size: 14px; }

.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-group { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.detail-group h3 { margin: 0 0 18px; font-family: var(--display); font-size: 25px; font-weight: 700; }
.check-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.check-list li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--sun); font-weight: 900; }
.notice { margin-top: 22px; padding: 22px 26px; background: var(--ice); border-left: 3px solid var(--pine); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- Camere: schede unità ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.unit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.unit-media { position: relative; height: 310px; overflow: hidden; }
.unit-media img { height: 100%; object-fit: cover; }
.unit-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  color: var(--pine-2);
  background: rgba(255, 253, 249, .93);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.unit-copy { display: flex; flex: 1; flex-direction: column; gap: 15px; padding: 28px 30px 32px; }
.unit-copy h3 { margin: 0; font-family: var(--display); font-size: 31px; font-weight: 700; line-height: 1.05; }
.unit-copy h3 em { color: inherit; font-family: var(--serif); font-style: italic; font-weight: 400; }
.unit-copy > p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.unit-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.unit-meta span { display: inline-flex; align-items: center; gap: 7px; color: var(--pine-2); font-size: 13px; font-weight: 700; }
.unit-meta svg { width: 16px; height: 16px; flex: none; }
.unit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.unit-cin { color: var(--ink-soft); font-size: 11px; letter-spacing: .06em; }

/* ---------- Galleria ---------- */
.gallery-filters { display: grid; gap: 12px; margin-bottom: 34px; }
.gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 0; }
.gallery-toolbar > b { min-width: 86px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.filter-btn { padding: 10px 17px; min-height: 44px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.filter-btn:hover, .filter-btn.active { color: white; border-color: var(--pine); background: var(--pine); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 14px; }
.gallery-item { grid-column: span 4; margin: 0; height: 350px; position: relative; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--snow-deep); cursor: zoom-in; }
.gallery-item.wide { grid-column: span 8; }
.gallery-item.tall { height: 520px; }
.gallery-grid:not(.filter-bagni) .gallery-item.tall { height: 350px; }
.gallery-item.hidden { display: none; }
.gallery-item img { height: 100%; object-fit: cover; }
.gallery-item::after { content: "+"; position: absolute; right: 16px; bottom: 16px; width: 42px; height: 42px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(85, 52, 35, .65); backdrop-filter: blur(8px); opacity: 0; transform: translateY(5px); transition: .25s; font-size: 22px; }
.gallery-empty { padding: 34px 0; color: var(--ink-soft); font-size: 15px; }
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 74px 7vw 50px; color: white; background: rgba(32, 21, 15, .96); visibility: hidden; opacity: 0; transition: opacity .3s; }
.lightbox.open { visibility: visible; opacity: 1; }
.lightbox img { width: auto; max-width: min(1500px, 100%); max-height: calc(100svh - 145px); object-fit: contain; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(255,255,255,.07); cursor: pointer; }
.lightbox-close { top: 18px; right: 20px; font-size: 26px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 26px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); font-size: 13px; text-align: center; }

/* ---------- Ravenna ---------- */
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.season-card { position: relative; min-height: 560px; overflow: hidden; border-radius: var(--radius); color: white; }
.season-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.season-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(53, 31, 20, .84), rgba(53, 31, 20, .06) 70%); }
.season-copy { position: absolute; z-index: 2; inset: auto 0 0; padding: clamp(28px, 4vw, 46px); }
.season-copy h3 { margin: 0 0 10px; font-family: var(--display); font-size: 40px; font-weight: 700; line-height: .95; }
.season-copy p { color: rgba(255,255,255,.77); }
.season-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.season-tags span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(0,0,0,.12); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.place-card { padding: 28px; border-top: 1px solid var(--line); }
.place-card span { display: block; margin-bottom: 14px; color: var(--pine); font-family: var(--serif); font-style: italic; font-size: 36px; }
.place-card h3 { margin-bottom: 8px; font-size: 17px; }
.place-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.map-card { overflow: hidden; border-radius: var(--radius); background: var(--snow-deep); box-shadow: var(--shadow); }
.map-card iframe { display: block; width: 100%; min-height: 520px; border: 0; filter: saturate(.7) contrast(1.05); }
.photo-credits { margin: 22px auto 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; text-align: center; }
.photo-credits a { color: var(--pine-2); text-decoration: underline; text-underline-offset: 2px; }
.site-footer .photo-credits a { color: #e8cba2; }

/* ---------- Contatti e form ---------- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(44px, 8vw, 120px); align-items: start; }
.contact-lines { margin-top: 36px; }
.contact-line { padding: 20px 0; display: grid; grid-template-columns: 110px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line small { color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-line a, .contact-line span { font-weight: 700; }
.contact-line a:hover { color: var(--sun); }
.form-card { padding: clamp(28px, 5vw, 52px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 8px; font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; }
.form-card > p { margin-bottom: 30px; color: var(--ink-soft); font-size: 14px; }
.form-card.sent { text-align: center; }
.form-card.sent h2 { margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / 3; }
.field label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; min-height: 51px; padding: 13px 14px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(112, 64, 41, .14); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(192, 114, 74, .16); }
.form-note { margin: 16px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.form-error { margin-top: 16px; color: #9b321f; font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.consent input { flex: none; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--pine); }
.consent a { color: var(--pine); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.selected-dates { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ice); }
.selected-dates > .kicker { display: block; margin: 0; color: var(--pine-2); }
.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.date-fields .field { margin: 0; }

/* ---------- Calendario disponibilità ---------- */
.cal { margin-top: 30px; padding: clamp(20px, 3vw, 30px); background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius); }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.cal-rooms { display: flex; flex-wrap: wrap; gap: 8px; }
.cal-room { padding: 9px 16px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cal-room:hover { border-color: var(--pine); color: var(--pine); }
.cal-room.active { color: #fff; border-color: var(--pine); background: var(--pine); }
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-range { color: var(--pine-2); font-family: var(--serif); font-size: 17px; font-style: italic; text-transform: capitalize; }
.cal-arrow { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 18px; line-height: 1; cursor: pointer; }
.cal-arrow:hover { border-color: var(--pine); color: var(--pine); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cal-month > b { display: block; margin-bottom: 10px; font-family: var(--display); font-size: 19px; font-weight: 700; text-transform: capitalize; }
.cal-month > b span { color: var(--ink-soft); font-weight: 600; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week { margin-bottom: 6px; }
.cal-week i { color: var(--ink-soft); font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; text-align: center; }
.cal-day { aspect-ratio: 1 / 1; display: grid; place-items: center; color: var(--ink); border: 1px solid transparent; border-radius: 10px; background: var(--paper); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.cal-day:hover:not([disabled]) { border-color: var(--pine); }
.cal-day.occupato { background: var(--snow-deep); color: rgba(111, 91, 78, .55); text-decoration: line-through; cursor: not-allowed; }
.cal-day.passato { background: transparent; color: rgba(111, 91, 78, .35); cursor: not-allowed; }
.cal-day.nel-range { background: var(--ice); }
.cal-day.scelto { color: #fff; background: var(--pine); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.cal-dot { width: 12px; height: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.cal-dot.occupato { background: var(--snow-deep); }
.cal-dot.scelto { background: var(--pine); border-color: var(--pine); }
.cal-dot.passato { background: transparent; }
.cal-verdict { margin: 18px 0 0; padding: 14px 18px; color: var(--pine-2); background: var(--ice); border-left: 3px solid var(--pine); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; font-weight: 600; }
.cal-updated { margin: 10px 0 0; color: var(--ink-soft); font-size: 11px; }
.calendar-page { background: var(--paper); }
.calendar-hero { min-height: 390px; }
.calendar-hero .page-hero-content { padding-top: 132px; padding-bottom: 48px; }
.calendar-hero .page-title { font-size: clamp(44px, 6vw, 72px); }
.calendar-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.calendar-intro .lead { margin-right: auto; margin-left: auto; }
.calendar-shell { max-width: 1080px; margin: 0 auto; }
.calendar-shell .cal { margin-top: 0; box-shadow: var(--shadow); }
.calendar-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Recensioni ---------- */
.review-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.score-num { color: var(--pine-2); font-family: var(--serif); font-size: clamp(48px, 6vw, 72px); font-style: italic; line-height: 1; }
.score-meta { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.stars { color: var(--sun); font-size: 18px; letter-spacing: 3px; }
.badge-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.badge-pill { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -22px rgba(59, 43, 27, .32); font-size: 13px; font-weight: 700; }
.badge-pill svg { width: 16px; height: 16px; color: var(--pine); flex: none; }
.review-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.review-card blockquote { margin: 0; color: var(--ink-soft); font-size: 14px; }
.review-card blockquote p { margin: 0; }
.review-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar { width: 42px; height: 42px; display: grid; place-items: center; color: var(--pine-2); background: var(--ice); border-radius: 50%; font-family: var(--serif); font-size: 18px; font-style: italic; flex: none; }
.review-who b { display: block; font-size: 14px; }
.review-who small { display: block; color: var(--ink-soft); font-size: 11px; }
.review-stars { color: var(--sun); font-size: 13px; letter-spacing: 1px; }
.review-ticker {
  margin-top: 46px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.review-track { display: flex; width: max-content; animation: review-scroll 300s linear infinite; will-change: transform; }
.review-track .review-card { margin-right: 14px; width: 340px; flex: none; }
.review-ticker:hover .review-track, .review-ticker:focus-within .review-track { animation-play-state: paused; }
.review-source { margin: 24px 0 0; text-align: center; }
@keyframes review-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- FAQ ---------- */
.faq-heading { text-align: center; }
.faq { max-width: 850px; margin: 34px auto 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-button { width: 100%; padding: 21px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; background: transparent; text-align: left; font-weight: 750; cursor: pointer; }
.faq-button > span:first-child { flex: 1; min-width: 0; }
.faq-button > span:last-child { width: 30px; height: 30px; display: grid; place-items: center; flex: none; color: var(--pine); border: 1px solid var(--line); border-radius: 50%; transition: transform .25s; }
.faq-item.open .faq-button > span:last-child { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-answer > div { overflow: hidden; }
.faq-answer p { max-width: 68ch; margin: 0 0 24px; color: var(--ink-soft); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }

/* ---------- CTA finale ---------- */
.final-cta { position: relative; min-height: 500px; display: grid; place-items: center; color: white; text-align: center; overflow: hidden; }
.final-cta img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.final-cta::after { content: ""; position: absolute; inset: 0; background: rgba(53, 31, 20, .67); }
.final-cta-copy { position: relative; z-index: 2; width: min(760px, calc(100% - 40px)); }
.final-cta h2 { margin-bottom: 18px; font-family: var(--display); font-size: clamp(42px, 6vw, 66px); font-weight: 600; line-height: 1; }
.final-cta p { color: rgba(255,255,255,.8); font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 26px; color: white; background: var(--pine-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 50px; padding-bottom: 54px; }
.site-footer .brand { margin-bottom: 22px; }
.site-footer .brand-copy b { color: #fff7e9; }
.site-footer .brand-copy small { color: rgba(255,255,255,.56); }
.footer-about p { max-width: 430px; color: rgba(255,255,255,.62); font-size: 14px; }
.footer-title { margin-bottom: 18px; color: var(--sage); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; color: rgba(255,255,255,.76); font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-bottom { padding-top: 23px; display: flex; justify-content: space-between; gap: 20px; color: #d2bfae; border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Pannello contatti ---------- */
.panel-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(38, 22, 12, .48); visibility: hidden; opacity: 0; transition: opacity .3s; }
.contact-panel { position: fixed; z-index: 99; inset: 0 0 0 auto; width: min(480px, 100%); padding: 90px 42px 42px; color: white; background: var(--pine-2); transform: translateX(102%); transition: transform .42s var(--ease); overflow-y: auto; }
.panel-backdrop.open { visibility: visible; opacity: 1; }
.contact-panel.open { transform: none; }
.contact-panel[aria-hidden="true"] { visibility: hidden; }
.contact-panel.open { visibility: visible; }
/* fixed: resta raggiungibile quando il pannello scorre. */
.panel-close { position: fixed; top: 25px; right: 26px; width: 46px; height: 46px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: var(--pine-2); font-size: 24px; line-height: 1; cursor: pointer; }
.contact-panel h2 { margin: 0 0 14px; font-family: var(--display); font-size: 43px; font-weight: 600; line-height: .95; }
.contact-panel > p { margin-bottom: 30px; color: rgba(255,255,255,.66); }
.panel-options { display: grid; gap: 10px; }
.panel-option { padding: 18px; display: flex; align-items: center; gap: 16px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-sm); background: rgba(255,255,255,.05); }
.panel-option:hover { background: rgba(255,255,255,.1); }
.panel-option svg { width: 24px; height: 24px; color: var(--sun-soft); }
.panel-option small { display: block; color: rgba(255,255,255,.55); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.panel-option b { font-size: 15px; }

/* ---------- WhatsApp flottante ---------- */
.wa-fab {
  position: fixed;
  right: calc(var(--pad) * .5);
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: #25d366;
  box-shadow: 0 20px 34px -18px rgba(9, 44, 33, .85);
  transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.wa-fab:hover { background: #1eb85a; transform: translateY(-3px); }
.wa-fab svg { width: 28px; height: 28px; fill: currentColor; }
.wa-fab::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  padding: 10px 15px;
  border-radius: 999px;
  color: #fff;
  background: var(--pine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.wa-fab:hover::after, .wa-fab:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Movimenti discreti ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.home-hero-media img, .page-hero > img { animation: photo-arrive 1.3s var(--ease) both; }
.hero-loc, .page-chip { animation: copy-arrive .75s .08s var(--ease) both; }
.hero-title, .page-title { animation: copy-arrive .85s .18s var(--ease) both; }
.hero-sub, .page-intro { animation: copy-arrive .85s .32s var(--ease) both; }
.hero-actions { animation: copy-arrive .85s .46s var(--ease) both; }
@keyframes photo-arrive { from { opacity: .6; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
@keyframes copy-arrive { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.mosaic figure img, .space-card img, .season-card img, .nearby-photo img,
.unit-media img, .gallery-item img, .cuore-card img { transition: transform .75s var(--ease), filter .5s var(--ease); }
.amenity-card, .place-card, .filter-btn { transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease), color .28s var(--ease); }
@media (hover: hover) {
  .mosaic figure:hover img, .space-card:hover img, .season-card:hover img,
  .nearby-photo:hover img, .unit-card:hover .unit-media img,
  .cuore-card:hover img { transform: scale(1.035); }
  .gallery-item:hover img { transform: scale(1.045); filter: brightness(.88); }
  .gallery-item:hover::after { opacity: 1; transform: none; }
  .amenity-card:hover, .place-card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px -33px rgba(65,35,22,.42); }
  .filter-btn:hover { transform: translateY(-2px); }
}

/* ---------- Quality gate ---------- */
:where(a, button, select, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
  border-radius: 8px;
}
.lightbox:focus-visible, .wa-fab:focus-visible { outline-color: var(--sun-soft); }
.cal-arrow { min-width: 44px; min-height: 44px; }
.gallery-item:focus-visible { outline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-shell { width: min(640px, 100%); justify-content: space-between; }
  .nav-links { gap: 8px; }
  .nav-links a:not(.lang-switch a) { display: none; }
  .nav-shell > .btn { display: none; }
  .nav-shell .lang-switch { display: none; }
  .menu-toggle { display: grid; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .intro-grid, .nearby-grid, .contact-grid { grid-template-columns: 1fr; }
  .home-page .intro-grid > .portrait-stack,
  .home-page .intro-grid > :not(.portrait-stack) { order: initial; }
  .portrait-stack { min-height: 500px; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .detail-group:last-child { grid-column: 1 / 3; }
  .gallery-item { grid-column: span 6; }
  .gallery-item.wide { grid-column: span 12; }
  .amenity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-card.combined .unit-media { width: 44%; min-height: 360px; }
}

@media (max-width: 760px) {
  :root { --pad: var(--bibo-page-pad, 20px); }
  body { font-size: 15px; }
  .kicker::before { width: 22px; height: 2px; border-radius: 999px; background: var(--sun); -webkit-mask: none; mask: none; }
  .kicker.light::before { background: var(--sun-soft); }
  .site-header { padding: 10px 16px; }
  .nav-shell { width: 100%; min-height: 58px; padding: 7px 8px 7px 12px; }
  .brand-copy b { font-size: 16px; }
  .brand-copy small { font-size: 8px; }
  .home-hero { min-height: 100svh; }
  .home-hero-media img { animation: none; will-change: auto; object-position: 50% 50%; transform: scale(1); }
  .home-hero::after { background: linear-gradient(180deg, rgba(42,25,15,.22), rgba(42,25,15,.46) 45%, rgba(40,22,14,.88)); }
  .hero-content { align-self: center; padding-bottom: 0; transform: translateY(36px); }
  .hero-title { max-width: 680px; font-size: clamp(46px, 13.5vw, 58px); line-height: .9; }
  .hero-sub { font-size: 17px; }
  .hero-actions { gap: 12px; }
  .quick-facts { margin-top: -34px; }
  .quick-item { min-height: 96px; padding: 17px 14px; gap: 11px; }
  .quick-icon { width: 36px; height: 36px; }
  .quick-item b { font-size: 21px; }
  .quick-item > div > span { font-size: 8px; }
  .portrait-stack { min-height: 410px; }
  .portrait-stack .main-img { inset: 0; height: 100%; }
  .home-page .portrait-stack .small-img { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 32px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 190px 190px; }
  .mosaic figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .mosaic figure:nth-child(2) { grid-column: 1 / 3; grid-row: auto; }
  .mosaic figure:nth-child(3), .mosaic figure:nth-child(4) { grid-column: span 1; }
  .amenity-grid { grid-template-columns: 1fr; }
  .amenity-card { min-height: 130px; }
  .panorama { min-height: 560px; }
  .home-return { min-height: 520px; }
  .home-return::after { background: linear-gradient(0deg, rgba(46,27,17,.9), rgba(46,27,17,.18) 82%); }
  .home-return .panorama-copy { padding: 68px var(--pad); }
  .home-return .panorama-copy h2 { font-size: clamp(34px, 9vw, 46px); }
  .home-return .panorama-copy h2 span, .home-return .panorama-copy h2 em { white-space: normal; }
  .nearby-photo img { min-height: 420px; }
  .page-hero { min-height: 520px; }
  .page-hero-content { padding-top: 130px; }
  .page-title { font-size: clamp(42px, 12vw, 60px); }
  .storia-hero { min-height: 560px; }
  .space-grid, .season-grid { grid-template-columns: 1fr; }
  .space-card, .space-card.wide { grid-column: auto; min-height: 390px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-group:last-child { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-item, .gallery-item.wide { grid-column: span 1; height: 240px; }
  .gallery-item.tall { height: 340px; }
  .gallery-grid:not(.filter-bagni) .gallery-item.tall { height: 240px; }
  .gallery-item:nth-child(5n+1) { grid-column: 1 / 3; }
  .gallery-toolbar > b { min-width: 100%; }
  .lightbox { padding-inline: 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-caption { bottom: 28px; max-width: 55%; }
  .season-card { min-height: 480px; }
  .places-grid { grid-template-columns: 1fr; }
  .unit-grid { grid-template-columns: 1fr; }
  .unit-media { height: 240px; }
  .unit-copy { padding: 24px 22px 26px; }
  .unit-card.combined { flex-direction: column; }
  .unit-card.combined .unit-media { width: 100%; height: 240px; min-height: 0; }
  .unit-card.combined .unit-copy { padding: 24px 22px 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .date-fields { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-day { aspect-ratio: auto; min-height: 44px; }
  .calendar-hero { min-height: 335px; }
  .calendar-hero .page-hero-content { padding-top: 106px; padding-bottom: 28px; }
  .calendar-hero .page-title { font-size: clamp(38px, 10vw, 48px); }
  .calendar-page { padding-top: 54px; }
  .calendar-intro { margin-bottom: 25px; }
  .calendar-actions { justify-content: stretch; }
  .calendar-actions .btn { width: 100%; }
  .contact-line { grid-template-columns: 84px 1fr; gap: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .contact-panel { padding-inline: 24px; }
  .wa-fab { width: 54px; height: 54px; }
  .wa-fab svg { width: 30px; height: 30px; }
  .wa-fab::after { content: none; }
  .story-quote { min-height: 480px; }
  .review-ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .review-track { animation: none; width: auto; }
}

@media (max-width: 430px) {
  .brand-copy small { display: none; }
  .quick-item { align-items: flex-start; flex-direction: column; }
  .quick-item b { font-size: 20px; }
  .gallery-item, .gallery-item.tall { height: 210px; }
  .contact-line { grid-template-columns: 1fr; gap: 2px; }
  .contact-line a, .contact-line span { min-width: 0; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .home-hero-media img { animation: none; }
  .review-track { animation: none; }
}

/* Sezioni controllate da Sanity: i valori mancanti lasciano il design originale. */
.bibo-section-hidden { display: none !important; }
section[data-bibo-title-size] :is(h1, h2, h3) { font-size: var(--bibo-section-title-size) !important; }
section[data-bibo-image-position] img { object-position: var(--bibo-image-position) !important; }
section[data-bibo-custom-text] :is(h1, h2, h3, p, li, small, strong, em, figcaption) {
  color: var(--bibo-custom-text) !important;
}
:is(.home-hero, .page-hero, .panorama, .final-cta)[data-bibo-overlay]::after {
  opacity: var(--bibo-overlay-opacity) !important;
}
.bibo-created-section { background: var(--paper); }
.bibo-created-section .bibo-created-inner { display: grid; gap: 20px; align-items: center; }
.bibo-created-section h2 { margin: 0; font-family: var(--display); font-size: clamp(32px, 4vw, 56px); line-height: 1.08; }
.bibo-created-section p { max-width: 72ch; margin: 0; white-space: pre-line; }
.bibo-created-section img { max-height: 620px; height: auto; object-fit: cover; border-radius: var(--radius); }
.bibo-created-section .btn { width: fit-content; }
.bibo-created-section[data-bibo-model="immagine"] .bibo-created-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bibo-created-section[data-bibo-model="immagine"] img { grid-column: 2; grid-row: 1 / span 2; }
.bibo-created-section[data-bibo-model="cta"] { color: white; background: var(--pine-2); }
.bibo-created-section[data-bibo-model="cta"] .btn { color: var(--pine-2); background: white; }
.bibo-created-section [hidden] { display: none !important; }
@media (max-width: 700px) {
  .bibo-created-section[data-bibo-model="immagine"] .bibo-created-inner { grid-template-columns: 1fr; }
  .bibo-created-section[data-bibo-model="immagine"] img { grid-column: auto; grid-row: auto; }
}

/* Informative e scelta effettiva dei contenuti esterni. */
.legal-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; width: min(var(--max), calc(100% - (var(--pad) * 2))); margin: 24px auto 0; font-size: 13px; }
.legal-footer a, .legal-footer button { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal-footer button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.legal-page { max-width: 850px; padding-block: clamp(115px, 11vw, 160px) 90px; }
.legal-page h1 { font-family: var(--display); font-size: clamp(42px, 6vw, 68px); line-height: 1.1; }
.legal-page h2 { margin: 42px 0 12px; font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
.legal-page h3 { margin: 26px 0 8px; font-family: var(--display); font-size: 20px; }
.legal-page p, .legal-page li { max-width: 75ch; }
.legal-page a { color: var(--pine-2); text-decoration: underline; text-underline-offset: 3px; }
.legal-page ul { padding-left: 22px; }
.legal-page .legal-note { padding: 18px 22px; border-left: 3px solid var(--pine); background: var(--ice); }
.legal-page .legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.map-card { position: relative; }
.map-card iframe[hidden] { display: none; }
.map-consent { display: flex; min-height: 390px; padding: 30px; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; background: var(--ice); }
.map-consent[hidden] { display: none; }
.map-consent h3 { margin: 0; font-family: var(--display); font-size: 26px; }
.map-consent p { max-width: 53ch; margin: 0; }
.map-consent button { border: 0; cursor: pointer; }
.cookie-banner { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; width: min(760px, calc(100% - 32px)); margin-inline: auto; padding: 22px 26px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 65px rgba(40, 24, 16, .25); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 8px; font-family: var(--display); font-size: 23px; line-height: 1.2; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-banner a { color: var(--pine-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.cookie-actions button { flex: 1 1 170px; min-height: 46px; padding: 9px 16px; border: 1px solid var(--pine-2); border-radius: 999px; font-weight: 700; cursor: pointer; }
.cookie-actions .cookie-reject { color: var(--pine-2); background: transparent; }
.cookie-actions .cookie-accept { color: white; background: var(--pine-2); }
@media (max-width: 650px) {
  .legal-table { display: block; overflow-x: auto; }
  .cookie-banner { padding: 17px; }
  .cookie-actions button { flex-basis: 100%; }
  .map-consent { min-height: 300px; }
}
