/* CasaVaiano — tokens */
:root {
  --ground: #f3f6f0;
  --field: #e7ede2;
  --sage: #c6cfb9;
  --sage-deep: #9aa78a;
  --ink: #23261f;
  --ink-2: #4f5448;
  --olive: #3d4a2f;
  --olive-2: #2c3622;
  --rule: #d5ddd0;
  --on-photo: #fbfcf9;

  --font: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --inset: 12px;
  --radius: 22px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --space: clamp(88px, 11vw, 160px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sage); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 300; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.3rem; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
figure, blockquote { margin: 0; }
.muted { color: var(--ink-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--sage-deep) var(--ground); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em; border-radius: 999px; border: 1px solid transparent;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer;
}
.btn .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-light { background: var(--on-photo); color: var(--ink); }
.btn-light:hover { background: var(--sage); }
.btn-line-light { border-color: rgb(251 252 249 / .7); color: var(--on-photo); }
.btn-line-light:hover { background: var(--on-photo); border-color: var(--on-photo); color: var(--ink); }  /* al passaggio si riempie di bianco, come «Prenota»: niente pillola grigia */
.btn-dark { background: var(--olive); color: var(--on-photo); }
.btn-dark:hover { background: var(--olive-2); }
.link {
  display: inline-flex; align-items: center; gap: .5em; background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: .5em;
}
.link .ico { width: 16px; height: 16px; }
/* area di tocco più grande dei link testuali (su telefono il testo è alto solo 20px) */
.link { position: relative; }
.link::after { content: ""; position: absolute; inset: -12px -6px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--ink); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), opacity .25s;
}
.round:hover { background: var(--ink); color: var(--ground); }
.round:disabled { opacity: .3; pointer-events: none; }

/* ---------- Top bar ---------- */
.topbar { position: fixed; top: 22px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.pill {
  pointer-events: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px;  /* colonne laterali uguali: il nome resta al centro */
  padding: 6px; border-radius: 999px;
  background: rgb(243 246 240 / .9); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 2px 6px rgb(35 38 31 / .06), 0 10px 30px rgb(35 38 31 / .1);
}
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 0; background: none; cursor: pointer; text-decoration: none;
  font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s var(--ease);
}
.pill-btn:hover { background: var(--field); }
.pill-btn .ico { width: 18px; height: 18px; }
.pill-book { background: var(--olive); color: var(--on-photo); justify-self: end; }
.pill > .pill-btn:first-child { justify-self: start; }
.pill .wordmark { text-align: center; }
.pill-book:hover { background: var(--olive-2); }
.wordmark { font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; text-decoration: none; padding: 0 18px; }

/* Barra aperta in cima alla pagina: scorrendo le voci si stringono verso il centro e lascia il posto alla pillola */
.topnav { position: absolute; top: -4px; left: 0; right: 0; margin: 0 auto; width: min(calc(100% - 2 * var(--gutter) - 2 * var(--inset)), calc(var(--wrap) - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; height: 56px; color: var(--on-photo); pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s; }
.topnav a { text-decoration: none; color: inherit; text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
.topnav-brand { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; transition: transform .6s var(--ease); }
.topnav-links { display: flex; gap: clamp(20px, 2.6vw, 40px); transition: gap .6s var(--ease); }
.topnav-links a { font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.topnav-links a:hover { background-size: 100% 1px; }
.topnav-book { display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--on-photo); color: var(--ink) !important; text-shadow: none !important;
  font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: transform .6s var(--ease), background .25s; }
.topnav-book:hover { background: var(--sage); }
.pill { transition: opacity .4s ease, transform .55s var(--ease), visibility 0s; }
@media (min-width: 1000px) {
  .topbar.is-top .topnav { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .topbar:not(.is-top) .topnav-links { gap: 0; }
  .topbar:not(.is-top) .topnav-brand { transform: translateX(min(30vw, 420px)); }
  .topbar:not(.is-top) .topnav-end { transform: translateX(max(-30vw, -420px)); }
  .topbar.is-top .pill { opacity: 0; visibility: hidden; transform: scale(.82) translateY(-8px); pointer-events: none; transition: opacity .3s ease, transform .55s var(--ease), visibility 0s linear .3s; }
}
@media (prefers-reduced-motion: reduce) { .topnav, .topnav *, .pill { transition: none !important; } }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--ground);
  display: grid; grid-template-rows: auto 1fr auto; padding: 22px var(--gutter) 28px; gap: clamp(16px, 3vh, 32px);
  animation: menuIn .55s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-closing { animation: menuOut .35s var(--ease) forwards; }
@keyframes menuIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
@keyframes menuOut { to { opacity: 0; clip-path: inset(0 0 100% 0); } }
.menu-bar { display: flex; justify-content: space-between; align-items: center; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.menu-bar .wordmark { padding: 0; font-size: 1.3rem; }
.menu-close { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 20px; border-radius: 999px; border: 1px solid var(--rule); background: none; cursor: pointer; color: var(--ink);
  font: inherit; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; transition: background .2s; }
.menu-close .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--ink); color: var(--ground); }
.menu-close:hover { background: var(--field); }
.menu-body { display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter); min-height: 0; }
.menu-links { display: flex; flex-direction: column; align-items: flex-start; }
.menu-links a { display: flex; align-items: baseline; gap: 18px; font-size: clamp(2rem, min(5.2vw, 7.2vh), 4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.12;
  text-decoration: none; color: var(--ink-2); transition: color .25s, transform .45s var(--ease); }
.menu-num { font-size: .78rem; letter-spacing: .1em; color: var(--ink-2); opacity: .6; font-variant-numeric: tabular-nums; transform: translateY(-.2em); }
.menu-links a:hover, .menu-links a:focus-visible, .menu-links a.is-active { color: var(--ink); transform: translateX(10px); }
.menu-links a.is-active .menu-num { opacity: 1; color: var(--olive); }
.menu:not([hidden]) .menu-links a { animation: menuLink .7s var(--ease) backwards; }
.menu-links a:nth-child(2) { animation-delay: .04s !important; } .menu-links a:nth-child(3) { animation-delay: .08s !important; }
.menu-links a:nth-child(4) { animation-delay: .12s !important; } .menu-links a:nth-child(5) { animation-delay: .16s !important; }
.menu-links a:nth-child(6) { animation-delay: .2s !important; } .menu-links a:nth-child(7) { animation-delay: .24s !important; }
@keyframes menuLink { from { opacity: 0; transform: translateY(28px); } }
.menu-photo { position: relative; margin: 0; height: min(62vh, 620px); border-radius: var(--radius); overflow: hidden; background: var(--field); }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform 1.4s var(--ease); }
.menu-photo img.is-fading { opacity: 0; transform: scale(1.03); }
.menu-photo figcaption { position: absolute; left: 20px; bottom: 18px; padding: 7px 14px; border-radius: 999px; background: rgb(243 246 240 / .92); font-size: .85rem; color: var(--ink); }
.menu-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter))); margin: 0 auto; padding: 20px 0 0; border-top: 1px solid var(--rule); }
.menu-contacts { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .92rem; color: var(--ink-2); }
.menu-contacts a { text-decoration: none; }
.menu-contacts a:hover { color: var(--ink); text-decoration: underline; }
.menu-actions { display: flex; align-items: center; gap: 22px; }
.menu-actions .btn { white-space: nowrap; }
@media (max-width: 1320px) and (min-width: 901px), (max-height: 720px) { .menu-contacts span { display: none; } }
.menu-social { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.menu-social:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .menu { padding: 16px 0 20px; }
  .menu-body { grid-template-columns: 1fr; align-items: start; padding-top: 4vh; }
  .menu-photo { display: none; }
  .menu-links a { font-size: clamp(1.8rem, min(11vw, 5.6vh), 3.4rem); gap: 12px; line-height: 1.18; }
  .menu-body { overflow-y: auto; }
  .menu-foot { flex-direction: column; align-items: flex-start; }
  .menu-contacts { flex-direction: column; }
  .menu-actions { width: 100%; gap: 14px 22px; flex-wrap: wrap; }
  .menu-actions .btn { order: -1; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .menu, .menu.is-closing, .menu:not([hidden]) .menu-links a { animation: none; } }

/* ---------- Framed photography ---------- */
.frame { position: relative; margin: 0 var(--inset); border-radius: var(--radius); overflow: hidden; background: #4a5540; isolation: isolate; }
.frame > picture { display: contents; }
.frame > img, .frame > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-frame::after, .closing .band-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 56% 42% at 50% 50%, rgb(20 24 16 / .42) 0%, rgb(20 24 16 / 0) 100%),
  linear-gradient(180deg, rgb(20 24 16 / .22) 0%, rgb(20 24 16 / 0) 30%, rgb(20 24 16 / 0) 70%, rgb(20 24 16 / .3) 100%); }
.photo-frame { margin: 0 var(--inset); height: min(82svh, 780px); }
.band-text { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px clamp(32px, 6vw, 96px); align-items: start; padding-top: clamp(48px, 6vw, 80px); }
.band-text p { margin: .3em 0 0; max-width: 56ch; font-size: 1.1rem; }
.pool { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: var(--space); }
.pool-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.pool-text h2 { margin-bottom: .5em; }
.band-copy p, .hero-copy > p { text-shadow: 0 1px 16px rgb(0 0 0 / .35); }

/* ---------- Hero ---------- */
.hero { padding-top: var(--inset); }
.hero-frame { height: calc(100svh - var(--inset) * 2); min-height: 560px; display: grid; place-items: center; color: var(--on-photo); }
.hero-img { animation: settle 2.4s var(--ease) both; }
.hero-video { position: absolute; inset: 0; z-index: -2; overflow: hidden; opacity: 0; transition: opacity 1.6s var(--ease); pointer-events: none; }
.hero-video iframe { position: absolute; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%) scale(1.18);
  width: max(100%, calc((100svh - var(--inset) * 2) * 16 / 9)); height: max(100%, calc((100vw - var(--inset) * 2) * 9 / 16)); }
.hero-video.is-playing { opacity: 1; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-pause { position: absolute; right: 24px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--on-photo); border: 1px solid rgb(251 252 249 / .5); cursor: pointer; transition: background .25s var(--ease); }
.hero-pause:hover { background: rgb(251 252 249 / .16); }
.hero-pause[hidden] { display: none; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.hero-copy { text-align: center; max-width: 980px; padding: 0 var(--gutter); }
.hero-copy h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); letter-spacing: -.035em; margin-bottom: .45em; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.hero-copy > p { font-size: clamp(1rem, 1.4vw, 1.2rem); opacity: .95; margin-bottom: 2.2em; }
.hero-copy h1, .hero-copy > p, .hero-copy .actions { animation: rise 1.2s var(--ease) both; }
.hero-copy > p { animation-delay: .15s; }
.hero-copy .actions { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-rating { position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 14px; padding: 9px 18px 9px 14px; border-radius: 999px;
  background: rgb(20 23 17 / .32); backdrop-filter: blur(12px) saturate(1.2); border: 1px solid rgb(251 252 249 / .22); color: var(--on-photo);
  font-size: .85rem; text-decoration: none; transition: background .25s, border-color .25s; }
.hero-rating:hover { background: rgb(20 23 17 / .5); border-color: rgb(251 252 249 / .4); }
.hr-item { display: inline-flex; align-items: baseline; gap: 6px; }
.hr-item b { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.hr-item span { color: rgb(251 252 249 / .78); }
.hr-star { width: 14px; height: 14px; align-self: center; color: #f2c46d; }
.hr-sep { width: 1px; height: 16px; background: rgb(251 252 249 / .3); }
.stars { display: inline-flex; gap: 2px; color: var(--on-photo); }
.stars svg { width: 15px; height: 15px; }
.stars-dark { color: var(--olive); }
.hero-down { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(251 252 249 / .5); }
.hero-down .ico { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ---------- Intro ---------- */
.intro { padding: var(--space) 0 0; }
figcaption { margin-top: 12px; font-size: .85rem; color: var(--ink-2); }

/* ---------- Hosts ---------- */
.hosts { padding: var(--space) 0; }
.hosts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: clamp(32px, 7vw, 120px); align-items: start; }
.hosts-grid::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--rule); margin-bottom: clamp(40px, 5vw, 64px); }
.hosts-name h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.hosts-text blockquote { margin: 0; }
.hosts-text blockquote p { font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 300; line-height: 1.4; letter-spacing: -.015em; text-wrap: pretty; }
.hosts-text .muted { max-width: 52ch; margin-top: 1.6em; }

/* ---------- Bands ---------- */
.band-frame { min-height: min(86svh, 820px); display: grid; place-items: center; color: var(--on-photo); }
.band-copy { text-align: center; max-width: 760px; padding: 64px var(--gutter); }
.band-copy h2 { margin-bottom: .55em; text-shadow: 0 2px 26px rgb(0 0 0 / .25); }
.band-copy p { font-size: 1.12rem; max-width: 52ch; margin: 0 auto 1.6em; }

.rows { list-style: none; padding: 0; margin: clamp(56px, 7vw, 96px) 0 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.rows h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 300; }
.rows p { margin: 0; color: var(--ink-2); max-width: 56ch; }

/* ---------- Apartments ---------- */
.apartments { padding: var(--space) 0; }
.apt-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
.apt-head h2 { margin: 0; }
.apt-head p { margin: 0; max-width: 56ch; }
.apt-facts { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 1.2em; }
.apt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.chip { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(243 246 240 / .92); color: var(--ink); font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* inclusi e supplementi */
.included { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px clamp(32px, 6vw, 96px); margin-top: clamp(56px, 6vw, 88px); padding-top: 48px; background: linear-gradient(var(--rule), var(--rule)) top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.included h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 1em; }
.ticks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.ticks li { position: relative; padding: 0 0 0 26px; margin-bottom: .7em; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: rotate(-45deg); }
/* supplementi: riquadro verde chiaro, prezzo a destra e spiegazione sotto il nome */
.extras-card { align-self: start; background: var(--field); border-radius: 22px; padding: clamp(24px, 3vw, 36px); }
.extras { margin: 0; }
.extras div { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--sage); }
.extras div:first-child { border-top: 1px solid var(--sage); }
.extras div:last-child { border-bottom: 0; padding-bottom: 0; }
.extras dt small { display: block; margin-top: 3px; color: var(--ink-2); font-size: .86rem; line-height: 1.45; }
.extras dd { margin: 0; font-size: 1.35rem; font-weight: 300; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* scorrimento orizzontale */
.h-scroller { position: relative; }
.h-sticky { overflow: hidden; }
.h-scroller.is-pinned .h-sticky { position: sticky; top: var(--stick-top, 0px); }
.h-track { display: flex; gap: clamp(20px, 2.5vw, 40px); padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; will-change: transform; }
.h-track::-webkit-scrollbar { display: none; }
.h-scroller.is-pinned .h-track { overflow: visible; scroll-snap-type: none; }
.h-ui { width: 100%; display: flex; align-items: center; gap: 24px; margin-top: clamp(20px, 3vh, 36px); }
.h-bar { flex: 1; height: 2px; background: var(--rule); overflow: hidden; }
.h-bar span { display: block; height: 100%; background: var(--olive); transform-origin: left; transform: scaleX(.125); transition: transform .15s linear; }
.h-nav { display: flex; gap: 10px; }


/* foto con parallasse */
[data-par] { will-change: transform; transition: none !important; }
.link-light { color: var(--on-photo); }

/* pannelli: foto grande incorniciata, nome sopra la foto */
.c-panel { position: relative; flex: 0 0 min(1040px, 72vw); height: min(64svh, 620px); min-height: 420px; border-radius: 18px; overflow: hidden; scroll-snap-align: center; color: var(--on-photo); }
.c-bg { position: absolute; inset: 0; padding: 0; border: 0; cursor: zoom-in; background: #2c3622; overflow: hidden; }
.c-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.c-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(18 22 14 / .55) 0%, rgb(18 22 14 / .12) 42%, rgb(18 22 14 / 0) 60%); }
.c-copy { position: absolute; left: clamp(24px, 3.5vw, 48px); right: clamp(24px, 3.5vw, 48px); bottom: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; pointer-events: none; }
.c-copy > div:first-child { max-width: 620px; }
.c-copy .apt-actions { pointer-events: auto; }
.c-meta { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin: 1em 0 0; }
.c-copy h3 { font-size: clamp(3.4rem, 7vw, 6.4rem); font-weight: 300; letter-spacing: -.045em; line-height: .92; margin-bottom: .14em; text-shadow: 0 2px 26px rgb(0 0 0 / .25); }
.c-tag { font-size: clamp(1.02rem, 1.3vw, 1.18rem); font-weight: 300; line-height: 1.4; max-width: 38ch; margin: 0; text-shadow: 0 1px 12px rgb(0 0 0 / .25); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: none; }
dialog::backdrop { background: rgb(28 32 24 / .55); backdrop-filter: blur(4px); }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: var(--ground); cursor: pointer; box-shadow: 0 2px 10px rgb(0 0 0 / .12); }

/* ---------- Dettaglio appartamento ---------- */
html.is-locked { overflow: hidden; }
.apt-detail { width: min(1240px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; background: none; }
.apt-detail::backdrop { background: rgb(28 32 24 / .62); backdrop-filter: blur(6px); }
.apt-detail[open]::backdrop { animation: det-fade .4s ease both; }
.apt-detail.is-closing::backdrop { animation: det-fade .24s ease-in reverse both; }
@keyframes det-fade { from { opacity: 0; } to { opacity: 1; } }
.det-close { z-index: 6; }
.det-box { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: 100%; height: min(760px, calc(100dvh - 32px)); overflow: hidden; background: var(--ground); border-radius: 22px; box-shadow: 0 30px 80px rgb(20 24 16 / .35); }
.det-gallery { display: flex; flex-direction: column; padding: 14px; min-width: 0; min-height: 0; }
.det-main { position: relative; flex: 1; min-height: 0; }
.det-img { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--field); }
.det-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.det-main .round { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(243 246 240 / .9); border-color: transparent; }
.det-main .round:hover { background: var(--on-photo); color: var(--ink); }
.det-prev { left: 14px; } .det-next { right: 14px; }
.det-thumbs { flex: none; display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.det-thumbs::-webkit-scrollbar { display: none; }
.det-thumbs button { flex: 0 0 88px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--field); }
.det-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .7; transition: opacity .2s; }
.det-thumbs button:hover img, .det-thumbs button[aria-current="true"] img { opacity: 1; }
.det-thumbs button[aria-current="true"] { border-color: var(--olive); }
.det-info { display: flex; flex-direction: column; padding: clamp(32px, 3.4vw, 52px) clamp(24px, 3vw, 44px) 28px; min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.det-meta { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .9em; }
.det-info h2 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-bottom: .2em; }
.det-tag { font-size: 1.2rem; font-weight: 300; line-height: 1.4; margin-bottom: 1.2em; }
.det-text { color: var(--ink-2); }
.det-info h3 { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 1.7em 0 .9em; }
.det-info .ticks { columns: 1; }
.det-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.det-tags li { padding: 5px 12px; border-radius: 999px; background: var(--field); font-size: .85rem; }
.det-book { align-self: flex-start; margin-top: 2.2em; }
.det-foot { margin-top: auto; padding-top: 28px; }
.det-foot .det-book { margin-top: 0; }
.det-apts { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
/* su desktop "Verifica disponibilità" e il cambio appartamento restano sempre visibili in fondo, anche se il testo scorre */
@media (min-width: 901px) {
  .det-foot { position: sticky; bottom: -28px; margin: auto -4px -28px; padding: 18px 4px 14px; background: var(--ground); border-top: 1px solid var(--rule); z-index: 1; }
}
.det-apts button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.det-apts button:hover { color: var(--ink); }
.det-apts .ico { width: 16px; height: 16px; }
@media (max-width: 800px) {
  .apt-detail { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .det-box { display: block; height: 100dvh; overflow-y: auto; border-radius: 0; }   /* su telefono foto e testo uno sotto l'altro */
  .det-gallery { display: block; }
  .det-img { height: auto; }
  .det-img img { height: auto; aspect-ratio: 4 / 3; }
  .det-info { overflow: visible; }
  .det-gallery { padding: 8px 8px 0; }
  .det-info { padding: 24px 20px 32px; }
  .det-close { top: 16px; right: 16px; }
}

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(20 23 17 / .94); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: 10px; }
.lightbox .round { position: absolute; top: 50%; transform: translateY(-50%); color: var(--on-photo); border-color: rgb(251 252 249 / .4); }
.lightbox .round:hover { background: var(--on-photo); color: var(--ink); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lightbox img { transition: opacity .22s ease; touch-action: pan-y; }
.lightbox img.is-fading { opacity: 0; }
.lb-foot { position: absolute; bottom: 16px; left: 70px; right: 70px; margin: 0; display: flex; justify-content: center; gap: 14px; color: rgb(251 252 249 / .75); font-size: .85rem; }
.lb-cap { color: var(--on-photo); }
.lb-cap:empty { display: none; }
.lb-count { font-variant-numeric: tabular-nums; }

/* ---------- Tutte le foto ---------- */
.allphotos { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; background: var(--ground); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.allphotos::backdrop { background: rgb(20 23 17 / .5); }
.allphotos[open] { animation: ap-in .45s var(--ease); }
@keyframes ap-in { from { opacity: 0; transform: translateY(24px); } }
.ap-head { position: sticky; top: 0; z-index: 2; background: rgb(243 246 240 / .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.ap-bar { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 12px; display: flex; align-items: center; justify-content: space-between; }
.ap-bar h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.ap-bar .sheet-close { position: static; }
.ap-nav { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ap-nav::-webkit-scrollbar { display: none; }
.ap-nav a { flex: none; padding: 7px 15px; border: 1px solid var(--sage); border-radius: 999px; font-size: .84rem; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.ap-nav a:hover { border-color: var(--ink-2); background: var(--field); }
.ap-body { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter) 80px; }
.ap-group { padding-top: 44px; scroll-margin-top: 130px; }
.ap-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--rule); }
.ap-group-head h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 300; letter-spacing: -.02em; }
.ap-group-head span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ap-grid button { aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--field); cursor: zoom-in; }
.ap-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.ap-grid button:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
  .ap-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .ap-group-head { flex-direction: column; gap: 4px; }
  .ap-group { scroll-margin-top: 120px; }
  .lb-foot { left: 70px; right: 70px; bottom: 26px; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
}

/* ---------- Surroundings ---------- */
.around { padding: var(--space) 0; background: var(--field); margin-top: var(--space); }
.around-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); }
.around-head h2 { margin: 0; }
.around-head p { margin: 0; max-width: 52ch; }
/* dintorni: pannelli più piccoli (foto 800×600), due per schermata */
.p-panel { flex-basis: min(640px, 44vw); height: min(56svh, 500px); min-height: 360px; }
.p-panel .c-copy h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.det-gallery.is-single .det-main { flex: 1; }

/* ---------- Gallery ---------- */
.gallery { padding: var(--space) 0 0; }
.gallery-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 36px; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 236px); grid-auto-flow: dense; gap: 12px; }
.g-item { position: relative; margin: 0; min-width: 0; border-radius: 12px; overflow: hidden; background: var(--field); }
.g-item.is-big { grid-column: span 2; grid-row: span 2; }
.g-item.is-wide { grid-column: span 2; }
.g-item.is-tall { grid-row: span 2; }
.g-item button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
/* didascalia: compare passando sopra la foto (su touch è sempre visibile) */
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; pointer-events: none;
  color: var(--on-photo); font-size: .85rem; line-height: 1.35; background: linear-gradient(transparent, rgb(20 23 17 / .6));
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .5s var(--ease); }
.g-item:hover figcaption, .g-item:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .g-item.is-big figcaption, .g-item.is-wide figcaption { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(130px, 30vw, 230px); gap: 8px; }
}

/* ---------- Reviews ---------- */
.reviews { padding: var(--space) 0; }
.rv-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.rv-head h2 { line-height: 1; }
.rv-scores { display: flex; gap: clamp(28px, 4vw, 64px); }
.rv-score { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.rv-num { font-size: clamp(3.4rem, 6vw, 5.2rem); font-weight: 300; letter-spacing: -.05em; line-height: .9; }
.rv-num small { font-size: .3em; letter-spacing: 0; color: var(--ink-2); margin-left: 4px; }
.rv-meta { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--ink-2); }
.rv-meta strong { font-weight: 500; color: var(--ink); font-size: .95rem; }
.rv-score:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.rv-badge { align-self: flex-start; padding: 2px 8px; border-radius: 6px; background: var(--olive); color: var(--ground); font-size: .72rem; letter-spacing: .04em; margin-bottom: 2px; }
.rv-cats { list-style: none; margin: 36px 0 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rv-cats li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .85rem; color: var(--ink-2); }
.rv-cats b { font-weight: 400; font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-feature { margin: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); max-width: 980px; }
.rv-feature blockquote { font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 300; line-height: 1.22; letter-spacing: -.025em; margin: 0 0 .8em; text-indent: -.4em; }
.rv-stars { margin-left: 6px; vertical-align: -2px; color: #c4a666; }
.rv-stars svg { width: 12px; height: 12px; }
.rv-src { display: block; margin-top: 3px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); opacity: .85; }
.rv-feature figcaption, .rv-grid figcaption { font-size: .88rem; color: var(--ink); }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 56px); }
.rv-grid figure { margin: 0; padding: 32px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; }
.rv-tr { margin: -.4em 0 1.4em; font-size: .8rem; color: var(--ink-2); }
.rv-tr button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rv-tr button:hover { color: var(--ink); }
.rv-grid blockquote { margin: 0 0 1.2em; font-size: clamp(1.05rem, 1.35vw, 1.2rem); font-weight: 300; line-height: 1.5; flex: 1; }
.rv-more { display: flex; gap: 32px; flex-wrap: wrap; margin: 28px 0 0; }
.rv-more .ico { width: 14px; height: 14px; }

/* ---------- Closing & contact ---------- */
.contact-grid { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 64px); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 24px clamp(24px, 3vw, 48px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 0 !important; }
.contact-list li { display: flex; gap: 14px; padding: 26px 0; }
.contact-list .ico { margin-top: 3px; color: var(--olive); }
.contact-list span { display: block; font-size: .8rem; color: var(--ink-2); letter-spacing: .04em; }
.contact-list a:not(.link) { font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.contact-list .link { white-space: nowrap; }
.contact-list a:not(.link):hover { text-decoration: underline; }
.contact-list address { font-style: normal; font-size: 1.05rem; margin-bottom: .8em; }
.contact-note { margin: 2px 0 .7em; font-size: .95rem; color: var(--ink); max-width: 26ch; }
.map { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--field); }
/* mappa interattiva (assets/js/map.js) */
.map[data-map] { aspect-ratio: auto; z-index: 0; font: inherit; }
.map-wide { width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter))); margin: 0 auto var(--space); border-radius: 16px; height: clamp(420px, 38vw, 540px); }
.map .leaflet-control-zoom { border: 0; box-shadow: 0 2px 10px rgb(0 0 0 / .12); border-radius: 12px; overflow: hidden; margin: 14px 14px 0 0; }
.map .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 36px; font-size: 20px; font-weight: 300; color: var(--ink); background: rgb(243 246 240 / .95); border-color: var(--rule); }
.map .leaflet-control-attribution { font-size: 10px; background: rgb(243 246 240 / .8); color: var(--ink-2); }
.map .leaflet-control-attribution a { color: inherit; }
.mk-wrap { background: none; border: 0; }
.mk-line { stroke: var(--olive); stroke-width: 1.4; stroke-dasharray: 3 6; stroke-linecap: round; opacity: .55; fill: none; }
.map.is-satellite .mk-line { stroke: #fff; opacity: .7; }
.mk-place { position: relative; display: block; cursor: pointer; }
.mk-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); border: 3px solid var(--olive); box-shadow: 0 1px 4px rgb(0 0 0 / .25); transition: transform .25s var(--ease); }
.mk-label { position: absolute; left: 20px; top: -5px; white-space: nowrap; padding: 3px 9px 4px; border-radius: 999px; background: rgb(243 246 240 / .94); color: var(--ink); font-size: 12.5px; line-height: 1.3; box-shadow: 0 1px 6px rgb(0 0 0 / .14); transition: background .2s, color .2s; }
.mk-label small { margin-left: 6px; font-size: 11px; color: var(--ink-2); }
.mk-place.is-city .mk-label { font-weight: 500; }
.mk-place:hover .mk-dot { transform: scale(1.25); }
.mk-place:hover .mk-label { background: var(--ink); color: var(--ground); }
.mk-place:hover .mk-label small { color: rgb(243 246 240 / .7); }
.mk-home { position: relative; display: block; }
.mk-home::before { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--olive); border: 3px solid var(--ground); box-shadow: 0 2px 8px rgb(0 0 0 / .3); z-index: 1; }
.mk-pulse { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; background: var(--olive); opacity: .3; animation: mk-pulse 2.6s ease-out infinite; }
@keyframes mk-pulse { from { transform: scale(.4); opacity: .45; } to { transform: scale(1.5); opacity: 0; } }
.mk-home-tag { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; padding: 6px 13px 7px; border-radius: 999px; background: var(--olive); color: var(--ground); font-size: 13.5px; font-weight: 500; box-shadow: 0 3px 12px rgb(0 0 0 / .25); }
.mk-home-tag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--olive); transform: translateX(-50%) rotate(45deg); }
.map.is-far .mk-place:not(.is-city) .mk-label { opacity: 0; pointer-events: none; }
.map.is-far .mk-place:not(.is-city):hover .mk-label { opacity: 1; }
.map-views { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(243 246 240 / .95); box-shadow: 0 2px 10px rgb(0 0 0 / .14); margin: 0 0 14px 14px !important; }
.map-views button { padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.map-views button[aria-pressed="true"] { background: var(--olive); color: var(--ground); }
@media (prefers-reduced-motion: reduce) { .mk-pulse { animation: none; } }
@media (max-width: 900px) { .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; } .contact-list li { padding: 20px 0; } }
@media (max-width: 900px) { .map-wide { height: clamp(380px, 105vw, 480px); } }
@media (max-width: 640px) {
  .contact-list { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .contact-list li + li { border-top: 1px solid var(--rule); }
  .contact-list li:nth-child(2) { border-top: 0; }               /* i due telefoni affiancati sulla stessa riga */
  .contact-list li:nth-child(n+3) { grid-column: 1 / -1; }
  .contact-list li:nth-child(-n+2) a:not(.link) { font-size: 1.02rem; }
  .contact-list li:nth-child(-n+2) { gap: 10px; }
  .contact-list li:nth-child(-n+2) > .ico { display: none; }   /* sui telefoni stretti l'icona non ci sta */
}
@media (max-width: 520px) {
  .mk-label { font-size: 11px; left: 17px; top: -4px; padding: 2px 7px 3px; }
  .mk-label small { display: none; }
  .mk-place.is-minor .mk-label { display: none; }   /* Via Francigena: solo il punto, il nome si accavalla con Gambassi */
  .mk-home-tag { font-size: 12px; padding: 4px 10px 5px; }
  .map-views button { padding: 6px 11px; font-size: 12px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--olive-2); color: #e7eadf; padding: clamp(64px, 8vw, 104px) 0 112px; }  /* sotto resta posto per il pulsante di Rocco, che altrimenti copre lingue e "Torna su" */
.footer-col a, .footer-up, .footer .wordmark { color: inherit; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, auto); justify-content: space-between; gap: 48px clamp(32px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 72px); }
.footer .wordmark { padding: 0; font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -.03em; text-decoration: none; }
.footer-brand p { margin: 14px 0 28px; max-width: 30ch; color: rgb(231 234 223 / .72); line-height: 1.55; }
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer-col h2 { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgb(231 234 223 / .55); margin: 6px 0 8px; }
.footer-col a { text-decoration: none; white-space: nowrap; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col address { font-style: normal; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid rgb(231 234 223 / .16); }
.footer-up { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.footer-up .ico { width: 15px; height: 15px; transform: rotate(180deg); }
.footer-up:hover { text-decoration: underline; }
@media (max-width: 1100px) { .footer-top { grid-template-columns: repeat(4, auto); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .footer-top { grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 36px 24px; }
  .footer-col.is-wide { grid-column: 1 / -1; }
  .footer-site { display: none; }   /* su telefono le sezioni sono già nel menu in alto */
  .footer-top { gap: 32px 20px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
.legal-vat { white-space: nowrap; }
.legal-link { color: inherit; text-underline-offset: 3px; }
.legal-link:hover { color: var(--on-photo); }
@media (max-width: 700px) { .legal-sep, .legal br { display: none; } .legal-vat, .legal-codes, .legal-link { display: block; } .legal-link { margin-top: 6px; } }
.legal { margin: 0; font-size: .85rem; color: #c3c9b6; }

/* ---------- Chat: Rocco, assistente virtuale ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat[hidden] { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sage); box-shadow: 0 0 0 2px var(--ground); }
.chat-launcher { display: flex; align-items: center; gap: 11px; padding: 5px 20px 5px 5px; border: 0; border-radius: 999px; background: var(--ground); color: var(--ink); cursor: pointer; text-align: left; box-shadow: 0 2px 6px rgb(35 38 31 / .08), 0 12px 32px rgb(35 38 31 / .16); transition: transform .3s var(--ease); }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher .avatar { width: 46px; height: 46px; }
.chat-launcher strong { display: block; font-weight: 500; font-size: .95rem; line-height: 1.2; }
.chat-launcher small { display: block; font-size: .74rem; color: var(--ink-2); letter-spacing: .02em; }
.chat.is-open .chat-launcher { display: none; }
.chat-panel { width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 40px)); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--ground); box-shadow: 0 4px 12px rgb(35 38 31 / .08), 0 24px 64px rgb(35 38 31 / .24); animation: rise .4s var(--ease); }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--rule); }
.chat-panel header div { flex: 1; min-width: 0; }
.chat-panel header strong { display: block; font-weight: 500; font-size: 1.02rem; }
.chat-panel header span { display: block; font-size: .78rem; color: var(--ink-2); }
.chat-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.chat-x:hover { background: var(--field); }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { margin: 0; padding: 10px 14px; border-radius: 18px; max-width: 86%; font-size: .94rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-assistant { background: var(--field); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg-user { background: var(--olive); color: var(--on-photo); align-self: flex-end; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.msg a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.msg strong { font-weight: 600; }
.msg-note { background: none; border: 1px solid var(--rule); color: var(--ink-2); font-size: .88rem; }
.msg-typing { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .86rem; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); opacity: .35; animation: dot 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 2px; }
.chat-suggest button { font: inherit; font-size: .86rem; color: var(--olive); padding: 7px 13px; border: 1px solid var(--sage); border-radius: 999px; background: none; cursor: pointer; text-align: left; }
.chat-suggest button:hover { background: var(--field); border-color: var(--olive); }
.chat-contact { align-self: stretch; display: grid; gap: 8px; padding: 14px; border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.chat-contact .cc-title { margin: 0 0 2px; font-size: .9rem; font-weight: 500; }
.chat-contact label { display: grid; gap: 3px; font-size: .74rem; color: var(--ink-2); letter-spacing: .02em; }
.chat-contact input, .chat-contact textarea { font: inherit; font-size: 16px; color: var(--ink); padding: 8px 11px; border: 1px solid var(--rule); border-radius: 10px; background: var(--ground); resize: vertical; }
.chat-contact input:focus, .chat-contact textarea:focus { outline: none; border-color: var(--olive); }
.chat-contact .cc-error { margin: 0; font-size: .82rem; color: #9a3b2b; }
.chat-contact .cc-send { justify-self: start; font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--olive); color: var(--on-photo); cursor: pointer; }
.chat-contact .cc-send:disabled { opacity: .5; cursor: default; }
.chat-contact.is-done { background: var(--field); border-color: transparent; }
.chat-contact.is-done .cc-title { margin: 0; }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--rule); }
.chat-form textarea { flex: 1; min-width: 0; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); padding: 11px 16px; border: 1px solid var(--rule); border-radius: 22px; background: #fff; caret-color: var(--olive); resize: none; max-height: 120px; overflow-y: hidden; }
.chat-form textarea::placeholder { color: #6b7063; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-form textarea:focus { outline: none; border-color: var(--olive); }
.chat-form button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--olive); color: var(--on-photo); cursor: pointer; display: grid; place-items: center; transition: opacity .2s; }
.chat-form button:hover { background: var(--olive-2); }
.chat-form button:disabled { opacity: .35; cursor: default; background: var(--olive); }
.chat-note { margin: 0; padding: 0 16px 10px; font-size: .72rem; color: var(--ink-2); line-height: 1.4; text-align: center; }
.chat-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: .35; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .around-head { grid-template-columns: 1fr; }
  /* su telefono la foto resta verticale ma non riempie lo schermo: misura legata alla larghezza */
  .c-panel { flex-basis: 86vw; height: min(70svh, 112vw); min-height: 380px; }
  .p-panel { flex-basis: 86vw; height: min(56svh, 100vw); min-height: 340px; }
  .c-copy { flex-direction: column; align-items: flex-start; }
        .hosts-grid, .around-grid, .contact-grid, .included, .apt-head, .band-text, .pool { grid-template-columns: 1fr; }
  .rows li { grid-template-columns: 1fr; gap: 8px; }
  .rv-grid { grid-template-columns: 1fr 1fr; }
  .rv-cats { grid-template-columns: 1fr 1fr; gap: 12px 32px; }
}
@media (max-width: 640px) {
  :root { --inset: 8px; --radius: 18px; }
  body { font-size: 1rem; }
  .topbar { top: 14px; }
  .pill-btn span { display: none; }
  .pill-btn { padding: 0 12px; }
  .wordmark { padding: 0 8px; font-size: 1.05rem; }
  .hero-frame { min-height: 520px; }
  .hero-copy .actions .btn { width: 100%; justify-content: center; }
  /* su telefono i voti stanno sotto i pulsanti, nel flusso: non possono sovrapporsi */
  .hero-frame { grid-template-rows: 1fr auto; }
  .hero-copy { grid-row: 1; }
  .hero-rating { position: static; grid-row: 2; justify-self: center; margin: 0 0 78px; white-space: nowrap; font-size: .8rem; }
  .ticks { columns: 1; }
  .rv-grid { grid-template-columns: 1fr; }
  .lightbox img { max-width: calc(100vw - 24px); }
  .lightbox .round { top: auto; bottom: 14px; transform: none; }
  .chat { right: 12px; bottom: 12px; }
  .chat-launcher { padding: 4px 16px 4px 4px; gap: 9px; }
  .chat-launcher .avatar { width: 40px; height: 40px; }
  .chat-launcher small { display: none; }
  .chat-launcher strong { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Dintorni: contenuti della finestra di dettaglio ---------- */
.det-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.det-list li { border-bottom: 1px solid var(--rule); }
.det-list a, .det-list li > div { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; padding: 12px 0; text-decoration: none; }
.det-list a .ico { grid-row: span 2; align-self: center; width: 16px; height: 16px; color: var(--ink-2); transition: transform .25s var(--ease), color .2s; }
.det-list a:hover .ico { transform: translate(2px, -2px); color: var(--olive); }
.det-list a:hover .dl-name { text-decoration: underline; text-underline-offset: .2em; }
.dl-name { font-size: 1rem; }
.dl-desc { grid-column: 1; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.det-tip { margin: 1.2em 0 0; padding: 12px 16px; border-radius: 12px; background: var(--field); font-size: .9rem; }
.det-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 2em; }
.det-links .link .ico { width: 15px; height: 15px; }
.det-gallery.is-map iframe { flex: 1; width: 100%; min-height: 0; border: 0; border-radius: 14px; background: var(--field); }
/* luoghi a pochi minuti, sotto le città */
.near { margin-top: clamp(48px, 6vw, 80px); }
.near-title { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 16px; }
.near-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1180px) { .near-cards { grid-template-columns: repeat(3, 1fr); } }
.near-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 22px 20px; border: 1px solid var(--sage); border-radius: 16px; background: var(--ground); text-align: left; cursor: pointer; color: var(--ink); font: inherit; transition: border-color .2s, transform .3s var(--ease); }
.near-card:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.near-where { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.near-name { font-size: 1.6rem; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.near-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.near-more .ico { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .near-cards { grid-template-columns: 1fr 1fr; }
  .near-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .det-gallery.is-map iframe { height: 46vh; flex: none; }
}
@media (max-width: 520px) {
  /* due schede per riga anche su telefono, più compatte */
  .near-cards { gap: 10px; }
  .near-card { padding: 8px 8px 14px; gap: 4px; border-radius: 14px; }
  .near-where { font-size: .62rem; letter-spacing: .1em; padding: 0 4px; min-height: 3.4em; display: flex; align-items: flex-end; }   /* nomi allineati anche se l'etichetta va su due righe */
  .near-name { font-size: 1.15rem; margin-bottom: 8px; padding: 0 4px; }
  .near-more { font-size: .66rem; padding: 0 4px; }
  .near-photo { width: 100%; margin: 0 0 8px; border-radius: 9px; }
}
/* finestra dei luoghi: colonna di testo più larga e "Da non perdere" su due colonne, così sta tutto senza scorrere */
@media (min-width: 901px) {
  .det-box.is-place { grid-template-columns: 1fr 1.2fr; }
  .det-box.is-place .det-info { padding: clamp(28px, 2.6vw, 40px) clamp(24px, 2.6vw, 40px) 20px; }
  .det-box.is-place .det-info h2 { font-size: clamp(2.4rem, 3.4vw, 3.2rem); }
  .det-box.is-place .det-tag { margin-bottom: .8em; }
  .det-box.is-place .det-text { font-size: .95rem; line-height: 1.6; }
  .det-box.is-place .det-info h3 { margin: 1.3em 0 .5em; }
  .det-box.is-place .det-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 0; }
  .det-box.is-place .det-list li { border-top: 1px solid var(--rule); border-bottom: 0; }
  .det-box.is-place .det-list a, .det-box.is-place .det-list li > div { padding: 10px 0; }
  .det-box.is-place .dl-name { font-size: .95rem; }
  .det-box.is-place .dl-desc { font-size: .82rem; line-height: 1.45; }
  .det-box.is-place .det-tip { margin-top: 1em; padding: 10px 14px; font-size: .85rem; }
  .det-box.is-place .det-links { margin-top: 1.4em; }
  .det-box.is-place .det-foot { position: static; margin: auto 0 0; padding: 18px 0 0; border-top: 0; background: none; }
  .det-box.is-place .det-apts { padding-top: 0; }
  /* inglese e tedesco sono più lunghi: con poca altezza si stringe un po', così sta tutto senza scorrere */
  .det-box.is-place:lang(en) .det-text, .det-box.is-place:lang(de) .det-text { line-height: 1.5; }
  .det-box.is-place:lang(en) .det-list a, .det-box.is-place:lang(en) .det-list li > div,
  .det-box.is-place:lang(de) .det-list a, .det-box.is-place:lang(de) .det-list li > div { padding: 8px 0; }
  .det-box.is-place:lang(en) .dl-desc, .det-box.is-place:lang(de) .dl-desc { line-height: 1.38; }
  .det-box.is-place:lang(en) .det-links, .det-box.is-place:lang(de) .det-links { margin-top: 1.1em; }
  .det-box.is-place:lang(en) .det-foot, .det-box.is-place:lang(de) .det-foot { padding-top: 10px; }
}
/* didascalia con i crediti delle foto (Wikimedia Commons) */
.det-credit { flex: none; margin: 8px 2px 0; font-size: .75rem; line-height: 1.4; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.det-credit span { opacity: .8; }
.det-credit a { color: inherit; }
.near-card { padding-top: 12px; }
@media (min-width: 1181px) { .near-card { padding-left: 16px; padding-right: 16px; } .near-where { letter-spacing: .1em; } }
.near-photo { display: block; width: calc(100% + 10px); margin: 0 -5px 12px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--field); }
.near-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.near-card:hover .near-photo img { transform: scale(1.04); }
@media (max-width: 900px) { .det-credit { white-space: normal; padding: 0 4px; } }

/* ---------- Selettore di lingua (IT · EN · DE): testo semplice, la lingua attiva è sottolineata ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch button { height: 32px; padding: 0 7px; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: .72rem; font-weight: 500; letter-spacing: .14em; opacity: .55; transition: opacity .2s; }
.lang-switch button:hover { opacity: .9; }
.lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch button:not([aria-pressed="true"]) { opacity: .5; }
.lang-switch button:not([aria-pressed="true"]):hover { opacity: .9; }
.topnav-end, .menu-bar-end, .footer-end { display: flex; align-items: center; gap: 18px; }
.topnav-end { transition: transform .6s var(--ease); }
.topnav-end .lang-switch { padding-right: 18px; border-right: 1px solid rgb(251 252 249 / .35); }
.topnav .lang-switch button { text-shadow: 0 1px 12px rgb(0 0 0 / .35); }
@media (max-width: 700px) { .footer-end { width: 100%; justify-content: space-between; } }
@media (max-width: 520px) { .menu-close span { display: none; } .menu-close { padding: 0 7px; } .menu-bar .wordmark { font-size: 1.15rem; } }

/* ---------- La casa: frase e testo affiancati, tre foto in fila ---------- */
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1.2rem; }
.casa-body { color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; max-width: 44ch; margin: 0; }
.casa figure { margin: 0; }
.casa figure img { width: 100%; display: block; object-fit: cover; border-radius: 14px; }
.casa figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-2); }
.casa h2 { letter-spacing: -.03em; line-height: 1.15; text-wrap: pretty; }
.casa6-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.casa6-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); max-width: 22ch; }
.casa6-head .casa-body { padding-bottom: .3em; }
.casa6-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(48px, 6vw, 80px); }
.casa6-row img { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .casa6-head { grid-template-columns: 1fr; }
  .casa6-row { grid-template-columns: 1fr 1fr; }
  .casa6-row figure:first-child { grid-column: 1 / -1; }
  .casa6-row figure:first-child img { aspect-ratio: 4 / 3; }
}

/* Recensioni su telefono: titolo sopra, i due voti affiancati sotto; la recensione grande e solo due brevi */
@media (max-width: 700px) {
  .rv-head { flex-direction: column; align-items: flex-start; gap: 28px; }
  .rv-scores { flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
  .rv-num { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .rv-grid figure:nth-child(n+3) { display: none; }
  .rv-feature { margin: 48px 0 36px; }
}
@media (max-width: 900px) { .hosts-grid { gap: 20px; } }
@media (max-height: 600px) and (max-width: 900px) { .menu-links a { line-height: 1.08; } .menu-foot { padding-top: 14px; } }
.det-box:focus { outline: none; }


/* schede trascinabili col mouse */
@media (hover: hover) and (pointer: fine) { .h-track { cursor: grab; } .h-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; } .h-track.is-dragging a { pointer-events: none; } }

/* chat a tutto schermo sui telefoni */
@media (max-width: 520px) {
  .chat.is-open { inset: 0; }
  .chat-panel { width: 100vw; height: 100dvh; border-radius: 0; animation: none; }
}

/* pausa del video accanto alla freccia, al centro: in basso a destra c'è Rocco */
.hero-pause { right: auto; left: calc(50% + 6px); }
.hero-pause:not([hidden]) ~ .hero-down { transform: translateX(calc(-100% - 6px)); }

/* fumetto sull'avatar del bottone: fa capire che è una chat */
.chat-launcher { position: relative; }
.chat-launcher::after { content: ""; position: absolute; left: 34px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #5d8a3a; box-shadow: 0 0 0 2px var(--ground); }
@media (max-width: 900px) { .chat-launcher::after { left: 30px; } }
/* telefono: pausa in basso a sinistra, freccia al centro, Rocco a destra */
@media (max-width: 900px) {
  .hero-pause { left: 20px; }
  .hero-pause:not([hidden]) ~ .hero-down { transform: translateX(-50%); }
}

/* chat ingrandita (pulsante nell'intestazione) */
.chat-size { margin-right: -6px; }
.chat-panel { transition: width .35s var(--ease), height .35s var(--ease); }
.chat.is-big .chat-panel { width: min(760px, calc(100vw - 40px)); height: min(920px, calc(100dvh - 40px)); }
.chat.is-big .msg { max-width: 76%; font-size: 1rem; }
@media (max-width: 520px) { .chat-size { display: none; } .chat.is-big .chat-panel { width: 100vw; height: 100dvh; } }

/* ---------- Verifica disponibilità (pannello che apre Slope già compilato) ---------- */
.bk { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--radius); background: var(--ground); color: var(--ink); box-shadow: 0 24px 64px rgb(35 38 31 / .3); overflow: auto; }
.bk::backdrop { background: rgb(28 32 24 / .55); backdrop-filter: blur(4px); }
.bk[open] { animation: rise .35s var(--ease); }
.bk-box { position: relative; display: grid; gap: 14px; padding: 30px 28px 24px; }
.bk h2 { margin: 0; padding: 0 36px; text-align: center; font-size: 1.7rem; font-weight: 400; letter-spacing: -.02em; }
.bk-sub { margin: -6px 0 4px; font-size: .9rem; color: var(--ink-2); padding: 0 36px; text-align: center; text-wrap: balance; }
.bk-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.bk-x:hover { background: var(--field); }
.bk label { display: grid; gap: 5px; font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.bk select { font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 11px 12px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; min-width: 0; width: 100%; }
.bk select:focus { outline: none; border-color: var(--olive); }
.bk-nights { margin: -6px 0 0; min-height: 1.2em; font-size: .82rem; color: var(--olive); }
.bk-guests { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bk-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-step > span { font-size: 1rem; }
.bk-step small { display: block; font-size: .76rem; color: var(--ink-2); }
.bk-step > div { display: flex; align-items: center; gap: 12px; }
.bk-step button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--sage); background: none; color: var(--olive); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.bk-step button:hover:not(:disabled) { background: var(--field); border-color: var(--olive); }
.bk-step button:disabled { opacity: .3; cursor: default; }
.bk-step output { min-width: 1.4em; text-align: center; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.bk-ages { margin: 0; font-size: .8rem; color: var(--ink-2); }
.bk-ages:empty { display: none; }
.bk-error { margin: 0; font-size: .86rem; color: #9a3b2b; }
.bk-go { width: 100%; justify-content: center; }
.bk-alt { margin: 0; text-align: center; font-size: .84rem; }
.bk-alt a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 520px) {
  .bk { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .bk-box { padding: 24px 18px 20px; align-content: start; }
}

/* calendario su misura (al posto di quello di sistema) */
.bk { width: min(720px, calc(100vw - 24px)); }
.bk-box { padding: 32px 32px 26px; gap: 16px; outline: none; }
.bk h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 300; letter-spacing: -.03em; }
.bk-sum { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: 16px; background: #fff; overflow: hidden; }
.bk-sum button { display: grid; gap: 3px; padding: 12px 18px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); position: relative; transition: background .2s; }
.bk-sum button + button { border-left: 1px solid var(--rule); }
.bk-sum button span { font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bk-sum button strong { font-weight: 400; font-size: 1rem; }
.bk-sum button strong::first-letter { text-transform: uppercase; }
.bk-sum button.is-empty strong { color: #8b9083; text-transform: none; }
.bk-sum button.is-active { background: var(--field); }
.bk-sum button.is-active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--olive); border-radius: 2px; }
.bk-cal { position: relative; }
.bk-cal-nav { position: absolute; left: -6px; right: -6px; top: -4px; display: flex; justify-content: space-between; pointer-events: none; }
.bk-cal-nav button { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.bk-cal-nav button:hover:not(:disabled) { background: var(--field); }
.bk-cal-nav button:disabled { opacity: .25; cursor: default; }
.bk-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 32px; }
.bk-mtitle { margin: 4px 0 12px; text-align: center; font-size: 1rem; font-weight: 500; letter-spacing: -.005em; }
.bk-mtitle::first-letter { text-transform: uppercase; }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.bk-wd { padding-bottom: 6px; text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8b9083; }
.bk-grid button { position: relative; aspect-ratio: 1; max-height: 44px; border: 0; background: none; font: inherit; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; z-index: 0; }
.bk-grid button::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; z-index: -1; transition: background .15s; }
.bk-grid button:hover:not(:disabled)::before { background: var(--field); box-shadow: inset 0 0 0 1px var(--olive); }
.bk-grid button.is-past { color: #b9bdb1; cursor: default; text-decoration: line-through; text-decoration-color: rgb(0 0 0 / .12); }
.bk-grid button.is-today { font-weight: 600; }
.bk-grid button.is-in { background: var(--field); }
.bk-grid button.is-start, .bk-grid button.is-end { color: var(--on-photo); font-weight: 500; }
.bk-grid button.is-start::before, .bk-grid button.is-end::before { background: var(--olive); box-shadow: none; }
.bk-grid button.is-preview::before { background: var(--olive-2); opacity: .55; }
/* fascia continua tra arrivo e partenza */
.bk-grid button.is-start.has-end { background: linear-gradient(90deg, transparent 50%, var(--field) 50%); }
.bk-grid button.is-end { background: linear-gradient(90deg, var(--field) 50%, transparent 50%); }
.bk-grid button.is-start.is-end { background: none; }
.bk-grid button.is-end:first-of-type, .bk-grid button.is-start.has-end:last-child { background: none; }
.bk-grid button.is-off { color: #c3c7bc; cursor: default; }
.bk-grid button.is-sat { font-weight: 600; color: #6e5524; }
.bk-grid button.is-sat::before { box-shadow: inset 0 0 0 1.5px #c4a666; }
.bk-grid button.is-start.is-sat, .bk-grid button.is-end.is-sat { color: var(--on-photo); }
.bk-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 14px 0 0; font-size: .8rem; color: var(--ink-2); }
.bk-legend span { display: inline-flex; align-items: center; gap: 8px; }
.bk-legend i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: #9a7b3c; }
.bk-legend i.ring { width: 14px; height: 14px; background: none; box-shadow: inset 0 0 0 1.5px #c4a666; }
.bk-nights { margin: -4px 0 0; font-size: .86rem; color: var(--olive); font-weight: 500; }
.bk-nights:empty { display: none; }
@media (min-width: 720px) {
  .bk-guests { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .bk-ages { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .bk { width: 100vw; }
  .bk-box { padding: 22px 18px 20px; gap: 14px; }
  .bk-sum button { padding: 10px 14px; }
  .bk-sum button strong { font-size: .92rem; }
}

/* pulsante di Rocco: fumetto con una domanda d'esempio che cambia (larghezza fissa, vedi chat.js) */
.chat-launcher { gap: 12px; padding: 6px 20px 6px 6px; border-radius: 22px 22px 6px 22px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgb(35 38 31 / .06), 0 2px 6px rgb(35 38 31 / .08), 0 12px 32px rgb(35 38 31 / .18); }
.chat-launcher .avatar { width: 44px; height: 44px; border-radius: 16px 16px 4px 16px; box-shadow: none; }
.chat-launcher::after { left: 42px; top: 42px; width: 10px; height: 10px; background: #5d8a3a; box-shadow: 0 0 0 2.5px #fff; }
.chat-launcher small { display: block; margin-bottom: 1px; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8b9083; }
.chat-launcher strong { display: block; font-weight: 400; font-style: italic; font-size: .98rem; line-height: 1.25; white-space: nowrap; transition: opacity .35s, transform .35s var(--ease); }
.chat-launcher strong.is-out { opacity: 0; transform: translateY(4px); }
@media (max-width: 900px) {
  .chat-launcher { padding: 5px 16px 5px 5px; gap: 10px; }
  .chat-launcher .avatar { width: 40px; height: 40px; }
  .chat-launcher::after { left: 37px; top: 37px; }
  .chat-launcher small { display: block; }
  .chat-launcher strong { font-size: .92rem; }
}
/* telefono: pausa e freccia insieme a sinistra, Rocco a destra senza sovrapporsi */
@media (max-width: 520px) {
  .hero-down, .hero-pause:not([hidden]) ~ .hero-down { left: 20px; transform: none; }
  .hero-pause:not([hidden]) ~ .hero-down { left: 74px; }
}
/* sul pulsante Rocco guarda verso la pagina (a sinistra); l'angolo stretto resta in basso a destra */
.chat-launcher .avatar { transform: scaleX(-1); border-radius: 16px 16px 16px 4px; }
