/* Milano B&B di Caterina
   Palette from the house: plaster walls, pine beams (caramel), the plum sofa and rose walls, the garden. */

@font-face { font-family: 'Newsreader'; src: url('/assets/fonts/newsreader-opsz.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-wght.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --plaster: #F7F2EB;
  --paper: #FFFDFA;
  --rose: #F3E3DF;
  --honey: #F5E8D5;
  --sage: #E7EADD;
  --plum: #4E2238;
  --plum-2: #6B2F4A;
  --ink: #33232B;
  --ink-2: #65555C;
  --caramel: #A5652A;
  --caramel-d: #87501F;
  --key: #87501F;
  --gold: #E9B877;
  --line: rgb(78 34 56 / .14);
  --shadow: 0 1px 2px rgb(78 34 56 / .05), 0 14px 34px -14px rgb(78 34 56 / .2);
  --shadow-up: 0 2px 4px rgb(78 34 56 / .06), 0 24px 46px -16px rgb(78 34 56 / .28);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --move: cubic-bezier(0.77, 0, 0.175, 1);
  --drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --pad: clamp(20px, 4.2vw, 64px);
  --sec: clamp(52px, 5vw, 72px);
  --bar: 72px;
  --g1180: max(var(--pad), calc((100vw - 1180px) / 2));
  --g1240: max(var(--pad), calc((100vw - 1240px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); scrollbar-color: rgb(78 34 56 / .35) transparent; color-scheme: light; }
html.no-scroll, html.cal-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; overflow-x: clip;
  background: var(--plaster) url('/assets/images/intonaco.webp');
  color: var(--ink); font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--plum); color: var(--honey); }
:focus-visible { outline: 2px solid var(--caramel-d); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 90; padding: 10px 18px; background: var(--plum); color: #fff; border-radius: 999px; transition: top 160ms var(--out); }
.skip:focus { top: 12px; }
.ico { width: 1.5em; height: 1.5em; flex: none; }
.k { font-weight: 600; color: var(--key); }

.d1, .d2, .d3 { font-family: var(--serif); font-weight: 300; font-optical-sizing: auto; letter-spacing: -.016em; text-wrap: balance; }
.d1 { font-size: clamp(2.65rem, 5.5vw, 5rem); line-height: 1.05; }
.d2 { font-size: clamp(2.05rem, 3.7vw, 3.2rem); line-height: 1.1; }
.d3 { font-size: clamp(1.65rem, 2.7vw, 2.3rem); line-height: 1.16; font-weight: 350; }
.lead { font-size: clamp(1.06rem, 1.35vw, 1.2rem); max-width: 56ch; color: var(--ink-2); }
.w { display: inline-block; white-space: nowrap; }
.l { display: inline-block; }

/* Buttons: pills, caramel from the pine beams, never black */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 26px;
  border-radius: 999px; background: var(--caramel); color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; box-shadow: 0 8px 18px -10px rgb(135 80 31 / .9);
  transition: transform 160ms var(--out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--caramel); }
.btn-plum { background: var(--plum); box-shadow: 0 8px 18px -10px rgb(78 34 56 / .9); }
.btn-w { background: var(--paper); color: var(--plum); box-shadow: none; }
.btn-line { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn-s { min-height: 40px; padding: 0 20px; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--caramel-d); transform: translateY(-1px); }
  .btn-plum:hover { background: var(--plum-2); }
  .btn-w:hover { background: var(--honey); }
  .btn-line:hover { background: var(--plum); color: #fff; }
}

/* Nav: always visible, one line */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--bar); background: rgb(247 242 235 / .95); box-shadow: 0 1px 0 var(--line); transition: background-color 240ms ease, box-shadow 240ms ease; }
.bar-over { background: transparent; box-shadow: none; }
.bar-over.is-solid { background: rgb(247 242 235 / .95); box-shadow: 0 1px 0 var(--line); }
.bar-in { height: 100%; max-width: 1400px; margin: auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.mark-a { font: 400 1.34rem/1 var(--serif); letter-spacing: -.012em; }
.mark-b { font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; color: var(--ink-2); }
.bar-links { display: flex; gap: 34px; margin-left: auto; margin-right: 12px; }
.bar-links a { position: relative; padding: 6px 0; font-weight: 500; font-size: .98rem; text-decoration: none; }
.bar-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--caramel); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--out); }
.bar-links a[aria-current]::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .bar-links a:hover::after { transform: none; } }
.bar-side { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1.5px var(--plum); color: var(--plum); transition: transform 160ms var(--out); }
.menu-btn:active { transform: scale(.97); }
main { padding-top: var(--bar); }
.p-home main { padding-top: 0; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-2); }
.crumbs a { text-decoration: underline; }

/* Menu sheet: rises from the bottom in the plum of the sofa */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.sheet-scrim { position: absolute; inset: 0; background: rgb(51 35 43 / .46); opacity: 0; transition: opacity 280ms ease; }
.sheet-card { position: relative; width: 100%; max-height: 100dvh; overflow-y: auto; padding: 20px var(--pad) calc(26px + env(safe-area-inset-bottom)); background: var(--plum); color: #fff; border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform 420ms var(--drawer); }
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet.is-open .sheet-card { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mark-light .mark-b { color: rgb(255 255 255 / .78); }
.sheet-close { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .7); }
.sheet-links { display: flex; flex-direction: column; }
.sheet-links a { padding: 11px 0; font: 300 clamp(2.05rem, 9.6vw, 2.9rem)/1.1 var(--serif); text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .16); opacity: 0; transform: translateY(14px); transition: opacity 320ms ease, transform 420ms var(--out); transition-delay: calc((var(--i) + 1) * 42ms + 90ms); }
.sheet-links a[aria-current] { color: var(--gold); }
.sheet.is-open .sheet-links a { opacity: 1; transform: none; }
.sheet-foot { display: grid; gap: 10px; margin-top: 18px; font-weight: 500; }
.sheet-foot a:not(.btn) { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 34px; }
.sheet-foot .ico { color: var(--gold); }
.sheet-foot .btn { margin-top: 6px; }

/* Door intro (from the old site's opening): name, arch drawn, doors open */
.intro { display: none; }
.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 70; overflow: hidden; animation: introGone 1ms linear 1.46s forwards; }
.door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--plum); animation: doorL 700ms var(--move) 680ms forwards; }
.door-l { left: 0; }
.door-r { right: 0; animation-name: doorR; }
.intro-name { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--honey); animation: introFade 300ms ease-out 560ms forwards; }
.intro-name span { font: 300 clamp(2rem, 5vw, 3.2rem)/1 var(--serif); letter-spacing: -.01em; animation: introUp 480ms var(--out) both; }
.intro-name small { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 8px; animation: introUp 480ms var(--out) 70ms both; }
.intro-arch { width: 64px; height: 86px; margin-bottom: 16px; color: var(--gold); }
.intro-arch path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 620ms var(--move) forwards; }
.intro.is-skip { animation: introOut 220ms ease-out forwards; }
@keyframes doorL { to { transform: translateX(-101%); } }
@keyframes doorR { to { transform: translateX(101%); } }
@keyframes introGone { to { visibility: hidden; } }
@keyframes introFade { to { opacity: 0; } }
@keyframes introUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes introOut { to { opacity: 0; } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ==================== HOME ==================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 26px; padding: calc(var(--bar) + clamp(24px, 6vh, 68px)) var(--pad) clamp(24px, 5vh, 52px); overflow: hidden; text-align: center; isolation: isolate; }
.hero-img, .hero-wash { position: absolute; inset: 0; z-index: -1; }
.hero-img { overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-wash { background:
  radial-gradient(62% 56% at 50% 42%, rgb(250 245 238 / .8) 0%, rgb(250 245 238 / .58) 58%, rgb(250 245 238 / 0) 100%),
  linear-gradient(180deg, rgb(250 245 238 / .5) 0%, rgb(250 245 238 / .06) 48%, rgb(78 34 56 / .1) 100%); }
.hero-copy { max-width: 900px; margin-block: auto; padding-bottom: 8px; }
.hero-sub { max-width: 44ch; margin: 18px auto 0; font-size: clamp(1.04rem, 1.4vw, 1.2rem); color: var(--ink); }

.bk {
  position: relative; width: min(1120px, 100%); display: grid; grid-template-columns: 1.25fr 1.25fr .9fr .9fr auto; gap: 14px; align-items: end;
  padding: 18px 22px 12px; text-align: left; background: rgb(255 253 250 / .92); border-radius: 10px; box-shadow: var(--shadow-up);
}
.bk-field label { display: block; margin-bottom: 5px; font-size: .84rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.bk-field input, .bk-field select, .bk-dateb {
  width: 100%; min-height: 44px; padding: 0 12px; font: 500 .96rem/1 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.bk-field select { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2365555C'%3E%3Cpath d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; cursor: pointer; }
.bk-dateb { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; }
.bk-dateb .ico { color: var(--caramel-d); width: 1.25em; height: 1.25em; }
.bk-dateb-t { color: var(--ink-2); font-weight: 400; }
.bk-dateb.is-set .bk-dateb-t { color: var(--ink); font-weight: 500; }
.bk-field select:hover, .bk-dateb:hover, .bk-field input:hover { border-color: rgb(135 80 31 / .55); }
.bk-go { height: 44px; min-height: 44px; border-radius: 8px; padding: 0 24px; }
.bk-note { grid-column: 1 / -1; font-size: .8rem; color: var(--ink-2); }

/* Calendar: built from the site's own tokens */
.cal-scrim { position: fixed; inset: 0; z-index: 50; background: rgb(51 35 43 / .22); }
.cal { position: fixed; z-index: 55; width: 640px; max-width: calc(100vw - 32px); padding: 18px 20px; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-up); animation: calIn 200ms var(--out); transform-origin: left bottom; }
@keyframes calIn { from { opacity: 0; transform: scale(.97) translateY(6px); } }
.cal-nav { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cal-nav button, .cal-no { min-height: 36px; padding: 0 12px; font-size: .88rem; font-weight: 600; color: var(--plum); border-radius: 999px; transition: background-color 160ms ease; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .cal-nav button:not(:disabled):hover, .cal-no:hover { background: var(--rose); } }
.cal-ms { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cal-t { text-align: center; font: 400 1.16rem/1.2 var(--serif); text-transform: capitalize; margin-bottom: 8px; }
.cal-w, .cal-g { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-w span { text-align: center; font-size: .72rem; color: var(--ink-2); padding-bottom: 4px; }
.cal-d { position: relative; aspect-ratio: 1; font-size: .92rem; font-weight: 500; border-radius: 50%; color: var(--ink); isolation: isolate; transition: color 120ms ease; }
.cal-d:disabled { color: rgb(101 85 92 / .42); cursor: default; }
.cal-d::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; }
.cal-d.is-in { border-radius: 0; background: var(--honey); }
.cal-d.is-a, .cal-d.is-b { color: #fff; }
.cal-d.is-a::before, .cal-d.is-b::before { background: var(--plum); }
.cal-d.is-to::before { box-shadow: inset 0 0 0 1.5px var(--plum); }
@media (hover: hover) and (pointer: fine) { .cal-d:not(:disabled):not(.is-a):not(.is-b):hover::before { background: var(--rose); } }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-sum { font-size: .92rem; color: var(--ink-2); }
.cal-acts { display: flex; gap: 6px; flex: none; }
.cal-ok:disabled { opacity: .45; cursor: default; }

.stay { padding: var(--sec) var(--pad); }
.head-c { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 3.6vw, 48px); }
.head-c p { margin-top: 10px; color: var(--ink-2); }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); max-width: 1180px; margin: auto; perspective: 1400px; }
.room-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform 320ms var(--out), box-shadow 320ms ease; }
.room-card-img { display: block; overflow: hidden; aspect-ratio: 6 / 4.6; }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--out); }
.room-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 22px 24px 24px; }
.room-card h3 { font: 600 1.34rem/1.2 var(--sans); letter-spacing: -.012em; }
.room-card-body > p:not(.room-card-size) { margin-top: 8px; font-size: .97rem; line-height: 1.5; color: var(--ink-2); }
.room-card-size { margin: auto 0 16px; padding-top: 14px; font-size: .94rem; color: var(--ink-2); }
.room-card-size strong { font-size: 1.75rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.room-card-size span { margin-left: 4px; }
@media (hover: hover) and (pointer: fine) {
  .room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
  .room-card:hover .room-card-img img { transform: scale(1.05); }
}

/* Review band, as in the reference: big number left, quote right, over a warm room */
.band { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.band-img, .band-wash { position: absolute; inset: 0; z-index: -1; }
.band-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.band-wash { background: linear-gradient(90deg, rgb(52 26 38 / .84), rgb(70 36 50 / .62) 60%, rgb(70 36 50 / .52)); }
.band-in { max-width: 1180px; margin: auto; padding: clamp(46px, 6vw, 76px) var(--pad); display: grid; grid-template-columns: minmax(220px, .55fr) 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.band-num { text-align: center; }
.band-score { font: 700 clamp(5rem, 11vw, 8.6rem)/.95 var(--sans); letter-spacing: -.035em; }
.band-count { margin-top: 8px; font-size: 1rem; font-weight: 500; }
.band-quotes { min-height: 208px; display: flex; flex-direction: column; justify-content: center; }
.stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 14px; font-size: .92rem; }
.stars .ico { width: 1.2em; height: 1.2em; display: block; }
.band-q blockquote { font: 600 clamp(1.3rem, 2.3vw, 1.9rem)/1.28 var(--sans); letter-spacing: -.012em; max-width: 26em; text-wrap: pretty; }
.band-q figcaption { margin-top: 12px; font-size: .95rem; color: rgb(255 255 255 / .86); }
.band-pager { display: flex; gap: 6px; margin-top: 20px; }
.band-pager button { width: 34px; padding: 12px 0; }
.band-pager span { display: block; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .35); overflow: hidden; position: relative; }
.band-pager span::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.band-pager [aria-current] span::after { transform: none; }
.is-run .band-pager [aria-current] span::after { animation: fillBar 6500ms linear both; }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: none; } }
html:not(.js) .band-pager { display: none; }

/* Provider icons */
.provs { padding: var(--sec) var(--pad); background: var(--paper); text-align: center; }
.prov-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; max-width: 1180px; margin: clamp(24px, 3vw, 38px) auto 16px; }
.prov { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 8px 18px; border-radius: 14px; background: var(--plaster); text-decoration: none; transition: transform 240ms var(--out), box-shadow 240ms ease, background-color 240ms ease; }
.prov-logo { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; transition: transform 320ms var(--out); }
.prov-logo img { width: 36px; height: 36px; border-radius: 8px; }
.prov-svg { width: 36px; height: 36px; background: var(--c); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.prov-name { font-weight: 600; font-size: .97rem; }
.prov-score { font-size: .95rem; color: var(--ink-2); }
.prov-score b { font-size: 1.22rem; font-weight: 700; color: var(--ink); }
.prov-count { font-size: .84rem; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .prov:hover { transform: translateY(-5px); background: var(--paper); box-shadow: var(--shadow-up); }
  .prov:hover .prov-logo { transform: scale(1.12); }
}
.provs-note { font-size: .84rem; color: var(--ink-2); }

/* Marquee of guest words */
.voices { padding: var(--sec) 0; background: var(--rose); text-align: center; }
.voices h2 { padding: 0 var(--pad); margin-bottom: clamp(22px, 3vw, 34px); }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-t { display: flex; width: max-content; }
.marquee-g { display: flex; gap: 16px; padding-right: 16px; }
.q-card { width: min(380px, 78vw); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 22px 24px; border-radius: 14px; background: var(--paper); text-align: left; box-shadow: 0 10px 26px -18px rgb(78 34 56 / .4); }
.q-card blockquote { font: 400 1.14rem/1.38 var(--serif); }
.q-card figcaption { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.q-card figcaption b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-t { animation: slideAll 74s linear infinite; }
  .marquee:hover .marquee-t, .marquee:focus-within .marquee-t { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask: none; mask: none; }
  .marquee-g[aria-hidden] { display: none; }
}
@keyframes slideAll { to { transform: translateX(-50%); } }

.house { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(30px, 6vw, 88px); align-items: center; max-width: 1240px; margin: auto; padding: var(--sec) var(--pad); }
.house-photos { position: relative; padding: 0 clamp(36px, 7vw, 92px) clamp(36px, 5vw, 60px) 0; }
.house-a img { border-radius: 14px; width: 100%; aspect-ratio: 3 / 2.2; object-fit: cover; }
.house-b { position: absolute; right: 0; bottom: 0; width: 34%; }
.house-b img { border-radius: 14px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 0 0 6px var(--plaster), var(--shadow-up); }
.house-copy p { margin-top: 14px; max-width: 54ch; color: var(--ink-2); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 22px 0 26px; }
.mini li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .97rem; }
.mini .ico { color: var(--caramel-d); }

.close { position: relative; }
.close-img { height: clamp(360px, 44vw, 540px); overflow: hidden; }
.close-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.close-card { position: absolute; left: var(--g1240); bottom: clamp(24px, 4vw, 52px); max-width: 480px; padding: 28px 30px; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-up); }
.close-card p { margin: 10px 0 18px; color: var(--ink-2); font-size: 1rem; }

/* ==================== CAMERE ==================== */
.cam-head { padding: clamp(28px, 4vw, 52px) var(--pad) 0; background: var(--rose); text-align: center; }
.cam-head .crumbs { justify-content: center; margin-bottom: 14px; }
.cam-head .lead { margin: 12px auto 18px; }
.cam-jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; padding-bottom: clamp(26px, 3vw, 40px); font-weight: 500; font-size: .96rem; }
.cam-jump a { text-decoration-color: var(--caramel); }
.film { padding: 0 var(--pad) clamp(30px, 3.4vw, 46px); background: linear-gradient(var(--rose) 34%, transparent 34%); }
.film-frame { position: relative; max-width: 1180px; margin: auto; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-up); background: var(--plum); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-btn { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: rgb(255 253 250 / .94); color: var(--plum); font-size: .88rem; font-weight: 600; transition: transform 160ms var(--out); }
.film-btn:active { transform: scale(.97); }
.film-btn .ico { width: 1.2em; height: 1.2em; }
.film-btn.is-paused .ico { visibility: hidden; width: 0; }
html:not(.js) .film-btn { display: none; }
.film-cap { max-width: 1180px; margin: 12px auto 0; font: 400 .98rem/1.4 var(--sans); color: var(--ink-2); text-align: center; }

.rm { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: var(--sec) var(--g1240); }
.rm-doppia { background: var(--honey); grid-template-columns: 1fr 1.3fr; }
.rm-doppia .rm-gal { order: 2; }
.rm-tripla { background: var(--plum); color: #fff; }
.rm-tripla .k { color: var(--gold); }
.rm-tripla .rm-copy > p:not(.rm-size), .rm-tripla .rm-feat { color: rgb(255 255 255 / .9); }
.rm-tripla .rm-feat .ico, .rm-tripla .rm-size { color: var(--gold); }
.rm-main { overflow: hidden; clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%); }
.rm-doppia .rm-main { clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 100%); }
.gal-main-img { width: 100%; aspect-ratio: 3 / 2.15; object-fit: cover; }
.rm-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.thumb { flex: none; width: 76px; height: 56px; border-radius: 6px; overflow: hidden; opacity: .72; transition: opacity 180ms ease, transform 160ms var(--out), box-shadow 180ms ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:active { transform: scale(.96); }
.thumb[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--caramel); }
.rm-tripla .thumb[aria-current] { box-shadow: 0 0 0 2px var(--gold); }
@media (hover: hover) and (pointer: fine) { .thumb:hover { opacity: 1; } }
.rm-size { font: 300 clamp(2.6rem, 4.4vw, 3.8rem)/1 var(--serif); color: var(--caramel-d); margin-bottom: 8px; }
.rm-copy > p:not(.rm-size) { margin-top: 12px; max-width: 54ch; }
.rm-feat { display: grid; gap: 8px; margin: 18px 0 24px; font-size: .98rem; font-weight: 500; }
.rm-feat li { display: flex; align-items: center; gap: 10px; }
.rm-feat .ico { color: var(--caramel-d); }

.comf { padding: var(--sec) var(--pad); background: var(--sage); text-align: center; }
.comf-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 980px; margin: 22px auto 0; }
.comf-row li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: rgb(255 253 250 / .78); font-weight: 500; font-size: .96rem; }
.comf-row .ico { color: var(--plum-2); }

/* ==================== LA CASA ==================== */
.split-hero { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); min-height: calc(82svh - var(--bar)); background: var(--honey); }
.split-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: clamp(30px, 5vw, 64px) clamp(24px, 4vw, 56px) clamp(30px, 5vw, 64px) max(var(--pad), calc((100vw - 1400px) / 2 + var(--pad))); }
.split-copy .lead { color: var(--ink); }
.split-img { overflow: hidden; border-bottom-left-radius: clamp(44px, 7vw, 110px); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

.dot { padding: var(--sec) var(--pad); background: var(--paper); }
.dot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px) clamp(20px, 3.4vw, 54px); max-width: 1180px; margin: clamp(24px, 3vw, 40px) auto 0; perspective: 900px; }
.dot > h2 { max-width: 1180px; margin: auto; }
.dot-grid li { padding-top: 16px; border-top: 1px solid var(--line); }
.dot-grid .ico { width: 2rem; height: 2rem; color: var(--caramel-d); }
.dot-grid h3 { margin-top: 8px; font: 600 1.1rem/1.3 var(--sans); }
.dot-grid p { font-size: .97rem; color: var(--ink-2); }

.rail-sec { padding: var(--sec) 0; }
.rail-sec h2 { padding: 0 var(--g1180); margin-bottom: 20px; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--g1180) 10px; scrollbar-width: thin; scrollbar-color: rgb(78 34 56 / .3) transparent; overscroll-behavior-x: contain; }
.rail figure { flex: none; width: min(460px, 78vw); scroll-snap-align: center; }
.rail img { width: 100%; aspect-ratio: 3 / 2.1; object-fit: cover; border-radius: 12px; }
.rail figcaption { margin-top: 8px; font-size: .95rem; font-weight: 500; }

.brk { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; padding: var(--sec) var(--g1180); background: var(--plum); color: #fff; }
.brk-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.brk .k { color: var(--gold); }
.brk p { margin: 14px 0 22px; max-width: 52ch; color: rgb(255 255 255 / .92); }

.hours { padding: var(--sec) var(--pad); background: var(--sage); text-align: center; }
.hour-list { display: grid; gap: 18px; max-width: 760px; margin: 22px auto 14px; text-align: left; }
.hour-t { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hour-t b { font-weight: 600; }
.hour-t .ico { color: var(--plum-2); }
.hour-track { position: relative; height: 12px; border-bottom: 1.5px solid rgb(78 34 56 / .28); }
.hour-fill { position: absolute; bottom: -1.5px; height: 12px; background: var(--plum-2); border-radius: 3px 3px 0 0; transform-origin: left; }
.hour-scale { display: flex; justify-content: space-between; margin-top: -8px; font-size: .78rem; color: var(--ink-2); }
.hours-note { max-width: 56ch; margin: auto; color: var(--ink-2); font-size: .97rem; }

.faq { padding: var(--sec) var(--pad); background: var(--paper); }
.faq > h2, .faq-list { max-width: 820px; margin-inline: auto; }
.faq-list { margin-top: 18px; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; gap: 12px; min-height: 58px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { flex: 1; }
summary > .ico { color: var(--caramel-d); }
.faq-sign { display: grid; font-style: normal; color: var(--plum); transition: transform 280ms var(--drawer); }
.faq-sign .ico { width: 1.15em; height: 1.15em; }
details[open]:not([data-closing]) .faq-sign, details.is-open .faq-sign { transform: rotate(45deg); }
details[data-closing] .faq-sign { transform: none; }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 0 16px 38px; max-width: 62ch; color: var(--ink-2); }

/* ==================== CINISELLO ==================== */
.city-hero { position: relative; min-height: calc(88svh - var(--bar)); display: flex; align-items: flex-end; overflow: hidden; color: #fff; isolation: isolate; padding: clamp(28px, 5vw, 60px) max(var(--pad), calc((100vw - 1400px) / 2 + var(--pad))); }
.city-img, .city-wash { position: absolute; inset: 0; z-index: -1; }
.city-img { overflow: hidden; }
.city-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.city-wash { background: linear-gradient(0deg, rgb(40 24 32 / .84) 0%, rgb(40 24 32 / .46) 42%, rgb(40 24 32 / .06) 72%), linear-gradient(90deg, rgb(40 24 32 / .34), transparent 62%); }
.city-copy { max-width: 820px; }
.city-copy .crumbs, .city-copy .lead { color: #fff; }
.city-copy .crumbs { margin-bottom: 14px; }
.city-copy .lead { margin-top: 12px; }
.credit { position: absolute; right: var(--pad); bottom: 12px; font-size: .78rem; color: rgb(255 255 255 / .86); }

.dist { padding: var(--sec) var(--g1180); background: var(--paper); }
.dist-tabs { position: relative; display: inline-flex; gap: 4px; margin: 20px 0 26px; padding: 4px; max-width: 100%; background: var(--sage); border-radius: 999px; }
.dist-ind { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; background: var(--plum); border-radius: 999px; transition: transform 380ms var(--drawer), width 380ms var(--drawer); }
.dist-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 18px 0 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: color 200ms ease; }
.dist-tabs button[aria-selected="true"] { color: #fff; }
.dist-panel h3 { margin-bottom: 18px; }
.dist-panel ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dist-panel li { padding: 14px 18px 4px 0; border-top: 1.5px solid var(--plum); }
.dist-panel li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.dist-panel b { font: 300 clamp(2.9rem, 5.2vw, 4.5rem)/1 var(--serif); letter-spacing: -.02em; }
.dist-panel small { margin-left: 5px; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.dist-panel li > span { display: block; margin-top: 8px; font-size: .98rem; font-weight: 500; }
.dist-note { margin-top: 16px; font-size: .84rem; color: var(--ink-2); }

.villa { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; padding: var(--sec) var(--g1180); background: var(--sage); }
.villa p { margin-top: 14px; max-width: 54ch; color: var(--ink-2); }
.villa .k { color: #5D3412; }
.villa-links { display: grid; gap: 6px; margin-top: 16px; font-weight: 600; justify-items: start; }
.villa-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.villa-img figcaption { margin-top: 6px; font-size: .78rem; color: var(--ink-2); }
.city-cta { padding: var(--sec) var(--pad); background: var(--rose); text-align: center; }
.city-cta p { margin: 8px auto 20px; color: var(--ink-2); max-width: 52ch; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ==================== CONTATTI ==================== */
.ct-head { padding: clamp(28px, 4vw, 56px) var(--g1240) clamp(22px, 2.6vw, 34px); }
.ct-head h1 { margin-top: 12px; font-size: clamp(3rem, 7.4vw, 6rem); }
.ct-head .lead { margin-top: 12px; }
.ct-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 var(--g1240); perspective: 1200px; }
.tile { display: flex; flex-direction: column; min-height: clamp(220px, 22vw, 300px); padding: 26px 26px 22px; border-radius: 28px; text-decoration: none; transition: transform 320ms var(--out), box-shadow 320ms ease; }
.tile > .ico { width: 2.3rem; height: 2.3rem; margin-bottom: auto; transition: transform 320ms var(--out); }
.tile-k { margin-top: 26px; font-size: .92rem; }
.tile strong { display: flex; align-items: flex-end; min-height: 2.5rem; font: 300 clamp(1.5rem, 2.3vw, 2rem)/1.14 var(--serif); margin-top: 2px; overflow-wrap: anywhere; }
.tile-mail { font-size: clamp(1.2rem, 1.62vw, 1.5rem) !important; }
.tile-c { margin-top: 12px; font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.tile-a { background: var(--plum); color: #fff; }
.tile-a > .ico { color: var(--gold); }
.tile-b { background: var(--honey); }
.tile-c- { background: var(--rose); }
.tile-b > .ico, .tile-c- > .ico { color: var(--plum-2); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); }
  .tile:hover > .ico { transform: translateY(-3px) rotate(-6deg); }
}
.ct-book { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; max-width: 1240px; margin: auto; padding: clamp(30px, 3.6vw, 52px) var(--pad); }
.ct-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: var(--sage); }
.ct-map-copy { padding: var(--sec) clamp(24px, 4vw, 60px) var(--sec) var(--g1240); }
.ct-map address { margin-top: 12px; font: 300 clamp(1.3rem, 2vw, 1.7rem)/1.3 var(--serif); }
.ct-how { display: grid; gap: 10px; margin: 18px 0 24px; color: var(--ink); font-size: .98rem; }
.ct-how li { display: flex; gap: 10px; }
.ct-how .ico { color: var(--plum-2); margin-top: 1px; }
.ct-how b { font-weight: 600; }
.ct-map-frame { min-height: 420px; background: var(--rose); }
.ct-map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

.nf { min-height: 62svh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: var(--sec) var(--pad); text-align: center; }

/* ==================== FOOTER: one typographic line on the rose of the walls ==================== */
.foot { padding: clamp(40px, 5vw, 66px) var(--pad) 22px; background: var(--rose); text-align: center; }
.foot-mark { font: 300 clamp(2.3rem, 6.6vw, 5.6rem)/1.05 var(--serif); letter-spacing: -.02em; color: var(--plum); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 18px; font-weight: 600; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-contacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 12px; font-size: .96rem; }
.foot-contacts a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; overflow-wrap: anywhere; }
.foot-contacts a:hover { text-decoration: underline; }
.foot-contacts .ico { color: var(--plum-2); width: 1.3em; height: 1.3em; flex: none; }
.foot-legal { margin-top: 18px; font-size: .8rem; color: var(--ink-2); }

/* ==================== MOTION ==================== */
.js-motion .hero-img img { animation: heroSettle 1200ms var(--out) both; }
.js-motion .hero-sub { animation: upFade 620ms var(--out) 420ms both; }
.js-motion .bk { animation: barRise 720ms var(--out) 520ms both; }
.has-intro .hero-sub, .has-intro .bk { animation-delay: 1100ms; }
@keyframes heroSettle { from { transform: scale(1.07); } }
@keyframes upFade { from { opacity: 0; transform: translateY(12px); } }
@keyframes barRise { from { opacity: 0; transform: translateY(26px) scale(.985); } }

/* Each page's title enters in its own way */
.js-motion h1 .l { animation: letterRise 620ms var(--out) both; animation-delay: calc(var(--i) * 16ms + 40ms); }
.has-intro h1 .l { animation-delay: calc(var(--i) * 16ms + 800ms); }
.js-motion .p-camere h1 .l { animation-name: letterDrop; animation-duration: 760ms; animation-delay: calc(var(--i) * 34ms); }
.js-motion .p-struttura h1 .l { animation-name: letterSlide; }
.js-motion .p-esperienze h1 .l { animation-name: letterBlur; animation-duration: 720ms; }
.js-motion .p-contatti h1 .l { animation-name: letterScale; animation-delay: calc(var(--i) * 24ms); }
@keyframes letterRise { from { opacity: 0; transform: translateY(.42em); } }
@keyframes letterDrop { from { opacity: 0; transform: translateY(-.5em) rotate(-5deg); } }
@keyframes letterSlide { from { opacity: 0; transform: translateX(-.5em); } }
@keyframes letterBlur { from { opacity: 0; filter: blur(9px); } }
@keyframes letterScale { from { opacity: 0; transform: scale(.7); } }

.js-motion .split-img img { animation: splitOpen 900ms var(--out) both; }
@keyframes splitOpen { from { clip-path: inset(0 0 0 22%); transform: scale(1.05); } to { clip-path: inset(0 0 0 0); } }
.js-motion .city-img img { animation: heroSettle 1300ms var(--out) both; }
.js-motion .film-frame { animation: barRise 760ms var(--out) 160ms both; }

/* Scroll entrances: one family per moment, always under 900ms, never from a blank box */
.js-motion [data-a] { transition-delay: var(--d, 0ms); }
.js-motion [data-a="fade"]:not(.is-in) { opacity: 0; transform: translateY(14px); }
.js-motion [data-a="fade"] { transition: opacity 620ms ease, transform 720ms var(--out); transition-delay: var(--d, 0ms); }
.js-motion [data-a="rise"]:not(.is-in) { opacity: 0; transform: translateY(44px) rotateX(6deg); }
.js-motion [data-a="rise"] { transform-origin: 50% 100%; transition: opacity 560ms ease var(--d, 0ms), transform 820ms var(--out) var(--d, 0ms), box-shadow 320ms ease; }
.js-motion [data-a="rise"].is-in { transition: transform 320ms var(--out), box-shadow 320ms ease, opacity 560ms ease; }
.js-motion [data-a="words"] .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .18em; margin-bottom: -.18em; }
.js-motion [data-a="words"] .wm > span { display: inline-block; transition: transform 780ms var(--out); transition-delay: calc(var(--i) * 62ms); }
.js-motion [data-a="words"]:not(.is-in) .wm > span { transform: translateY(112%); }
.js-motion [data-a="wipe"] { transition: clip-path 820ms var(--move); }
.js-motion [data-a="wipe"]:not(.is-in) { clip-path: inset(-.3em 100% -.3em 0); }
.js-motion [data-a="wipe"].is-in { clip-path: inset(-.3em -1% -.3em 0); }
.js-motion [data-a="blur"] { transition: opacity 620ms ease, filter 780ms var(--out); }
.js-motion [data-a="blur"]:not(.is-in) { opacity: 0; filter: blur(12px); }
.js-motion [data-a="scale"] { transition: opacity 500ms ease, transform 760ms var(--out); }
.js-motion [data-a="scale"]:not(.is-in) { opacity: 0; transform: scale(.9); }
.js-motion [data-a="pop"] { transition: opacity 340ms ease var(--d, 0ms), transform 620ms var(--out) var(--d, 0ms), background-color 240ms ease, box-shadow 240ms ease; }
.js-motion .prov[data-a="pop"].is-in { transition: transform 240ms var(--out), box-shadow 240ms ease, background-color 240ms ease; }
.js-motion [data-a="pop"]:not(.is-in) { opacity: 0; transform: scale(.86) translateY(10px); }
.js-motion [data-a="slide-r"] { transition: opacity 560ms ease var(--d, 0ms), transform 800ms var(--out) var(--d, 0ms); }
.js-motion [data-a="slide-r"]:not(.is-in) { opacity: 0; transform: translateX(42px); }
.js-motion [data-a="slide-l"] { transition: opacity 560ms ease var(--d, 0ms), transform 800ms var(--out) var(--d, 0ms); }
.js-motion [data-a="slide-l"]:not(.is-in) { opacity: 0; transform: translateX(-34px); }
.js-motion [data-a="curtain"] { transition: clip-path 860ms var(--move); }
.js-motion [data-a="curtain"]:not(.is-in) { clip-path: inset(0 0 66% 0 round 14px); }
.js-motion [data-a="curtain"].is-in { clip-path: inset(0 0 0 0 round 14px); }
.js-motion [data-a="iris"] { transition: clip-path 760ms var(--out) 120ms, transform 760ms var(--out) 120ms; }
.js-motion [data-a="iris"]:not(.is-in) { clip-path: circle(26% at 50% 50%); transform: translateY(18px); }
.js-motion [data-a="iris"].is-in { clip-path: circle(90% at 50% 50%); }
.js-motion [data-a="iris-sq"] { transition: clip-path 860ms var(--out), opacity 500ms ease; }
.js-motion [data-a="iris-sq"]:not(.is-in) { clip-path: circle(30% at 50% 50%); opacity: .6; }
.js-motion [data-a="iris-sq"].is-in { clip-path: circle(90% at 50% 50%); }
.js-motion [data-a="card-up"] { transition: opacity 520ms ease 80ms, transform 860ms var(--out) 80ms; }
.js-motion [data-a="card-up"]:not(.is-in) { opacity: 0; transform: translateY(46px) scale(.97); }
.js-motion [data-a="tilt"] { transform-origin: 50% 0; transition: opacity 520ms ease var(--d, 0ms), transform 760ms var(--out) var(--d, 0ms); }
.js-motion [data-a="tilt"]:not(.is-in) { opacity: 0; transform: rotateX(-26deg) translateY(16px); }
.js-motion [data-a="rail"] { transition: opacity 500ms ease, transform 800ms var(--out); transition-delay: calc(var(--i) * 80ms); }
.js-motion [data-a="rail"]:not(.is-in) { opacity: .25; transform: translateX(70px); }
.js-motion [data-a="wipe-img"] { transition: clip-path 880ms var(--move); }
.js-motion [data-a="wipe-img"]:not(.is-in) { clip-path: inset(0 70% 0 0); }
.js-motion [data-a="wipe-img"].is-in { clip-path: inset(0 0 0 0); }
.js-motion [data-a="draw"] { transition: transform 880ms var(--move) 120ms; }
.js-motion [data-a="draw"]:not(.is-in) { transform: scaleX(.06); }
.js-motion [data-a="tile"] { transition: opacity 500ms ease var(--d, 0ms), transform 820ms var(--out) var(--d, 0ms), box-shadow 320ms ease; }
.js-motion [data-a="tile"].is-in { transition: transform 320ms var(--out), box-shadow 320ms ease, opacity 500ms ease; }
.js-motion [data-a="tile"]:not(.is-in) { opacity: 0; transform: translateY(40px) rotate(-2.4deg); }
.js-motion [data-a="slope-l"], .js-motion [data-a="slope-r"] { transition: clip-path 880ms var(--out), opacity 480ms ease; }
.js-motion [data-a="slope-l"]:not(.is-in) { clip-path: polygon(0 58%, 100% 40%, 100% 100%, 0 100%); opacity: .55; }
.js-motion [data-a="slope-r"]:not(.is-in) { clip-path: polygon(0 40%, 100% 58%, 100% 100%, 0 100%); opacity: .55; }
.js-motion [data-a="band-num"] { transition: opacity 500ms ease, transform 820ms var(--out); }
.js-motion [data-a="band-num"]:not(.is-in) { opacity: 0; transform: scale(.82); }
.js-motion [data-a="stars"]:not(.is-in) { opacity: 0; }
.js-motion [data-a="stars"] { transition: opacity 400ms ease; }
.js-motion [data-a="stars"] .stars > span { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 340ms var(--out); transition-delay: calc(var(--i) * 90ms + 120ms); }
.js-motion [data-a="stars"].is-in .stars > span { clip-path: inset(0 0 0 0); }
.js-motion [data-a="foot"] .l { transition: opacity 460ms ease, transform 620ms var(--out); transition-delay: calc(var(--i) * 18ms); }
.js-motion [data-a="foot"]:not(.is-in) .l { opacity: 0; transform: translateY(.34em); }
.js-motion .dist-panel:not([hidden]) li { animation: upFade 520ms var(--out) both; animation-delay: calc(var(--i) * 70ms); }
.js-motion .dist-panel:not([hidden]) h3 { animation: upFade 420ms var(--out) both; }

/* Scroll-linked depth where the browser supports it */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .parallax img { height: 118%; animation: drift linear both; animation-timeline: view(); }
    .band-img.parallax, .close-img.parallax { overflow: hidden; }
    .parallax-hero img { animation: heroSettle 1300ms var(--out) both; }
    .film-frame { animation: filmGrow linear both !important; animation-timeline: view() !important; animation-range: entry 0% cover 34% !important; }
  }
}
@keyframes drift { from { transform: translateY(-14%); } to { transform: translateY(0); } }
@keyframes filmGrow { from { transform: scale(.9); } to { transform: none; } }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1100px) {
  .prov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .bar-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .bk { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .bk-go { grid-column: 1 / -1; }
  .room-grid { display: flex; overflow-x: auto; gap: 14px; margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 18px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; perspective: none; }
  .room-card { flex: none; width: min(340px, 82vw); scroll-snap-align: center; }
  .house, .rm, .rm-doppia, .brk, .villa, .ct-map, .split-hero { grid-template-columns: minmax(0, 1fr); }
  .rm-doppia .rm-gal { order: 0; }
  .split-img { min-height: 46svh; border-bottom-left-radius: 0; border-top-left-radius: clamp(44px, 10vw, 80px); }
  .split-copy { padding-inline: var(--pad); }
  .ct-map-copy { padding: var(--sec) var(--pad); }
  .band-in { grid-template-columns: minmax(0, 1fr); gap: 20px; text-align: center; }
  .band-quotes { align-items: center; min-height: 262px; justify-content: flex-start; }
  .stars { justify-content: center; }
  .band-pager { justify-content: center; }
  .ct-tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 190px; }
  .dist-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .dist-panel li + li { padding-left: 0; border-left: 0; }
  .dot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --bar: 62px; --sec: 52px; }
  .bar-side .btn-s { padding: 0 16px; min-height: 38px; }
  .menu-btn { min-height: 38px; padding: 0 14px; }
  .mark-a { font-size: 1.14rem; }
  .mark-b { font-size: .69rem; letter-spacing: .1em; }
  .hero { gap: 18px; padding-top: calc(var(--bar) + 20px); padding-bottom: 18px; }
  .hero-wash { background:
    radial-gradient(120% 44% at 50% 30%, rgb(250 245 238 / .84) 0%, rgb(250 245 238 / .66) 62%, rgb(250 245 238 / .06) 100%),
    linear-gradient(180deg, rgb(250 245 238 / .55) 0%, rgb(250 245 238 / .08) 60%, rgb(78 34 56 / .14) 100%); }
  .hero-sub { margin-top: 12px; }
  .bk { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 14px 10px; }
  .bk-field label { font-size: .8rem; margin-bottom: 3px; }
  .bk-field input, .bk-field select, .bk-dateb { padding-inline: 10px; font-size: 16px; }
  .bk-dateb-t { font-size: .94rem; white-space: nowrap; }
  .bk-note { font-size: .76rem; text-align: center; }
  .cal { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); animation: calSheet 340ms var(--drawer); }
  @keyframes calSheet { from { transform: translateY(100%); } }
  .cal-ms { grid-template-columns: minmax(0, 1fr); }
  .cal-d { font-size: 1rem; }
  .cal-foot { flex-wrap: wrap; }
  .cal-sum { width: 100%; }
  .cal-acts { margin-left: auto; }
  .mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prov { padding: 16px 8px 14px; }
  .close-img { height: 340px; }
  .close-card { position: relative; left: auto; bottom: auto; margin: -56px var(--pad) 0; padding: 22px; }
  .close { padding-bottom: 0; }
  .house-b { width: 38%; }
  .rm-size { font-size: 2.5rem; }
  .ct-book { flex-direction: column; align-items: flex-start; }
  .dot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dist-tabs { display: flex; width: 100%; }
  .dist-tabs button { flex: 1; justify-content: center; padding: 0 8px; font-size: .86rem; gap: 5px; }
  .dist-tabs button .ico { display: none; }
  .foot-contacts { flex-direction: column; align-items: center; }
  .faq-body p { padding-left: 0; }
  .film-cap { font-size: .92rem; }
  .credit { position: static; }
  .city-hero { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px; }
}
@media (max-width: 350px) {
  .bar-side .btn-s { display: none; }
  .bk { grid-template-columns: minmax(0, 1fr); }
}
