/* Sedendo e Mirando — homepage v2
   Layout: foto a tutto schermo, ritmo editoriale chiaro/scuro, l'occhio del logo come filo conduttore.
   Colori presi dalle foto: calce delle pareti, cotto delle volte, verde salvia delle persiane, luce calda delle lampade. */
:root {
  --calce: #F1ECE4;
  --calce-2: #E7E0D5;
  --notte: #171614;
  --notte-2: #22201D;
  --cotto: #9A4B2C;
  --cotto-2: #B5643F;
  --salvia: #9BB397;
  --lume: #D9A65E;
  --pietra: #7B746A;
  --ink: #1D1B18;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(20px, 4.5vw);
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--calce); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h2 i, h3 i, .hero-display i { font-style: italic; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lume); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--notte); color: #fff; padding: 10px 14px; }
.skip:focus { left: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 1px solid var(--cotto); background: var(--cotto); color: #fff; border-radius: 0; font: 500 .92rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s; }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--notte); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--notte); }
.btn-light { background: var(--calce); color: var(--notte); border-color: var(--calce); }
.btn-light::before { background: var(--cotto); }
.btn-light:hover { color: #fff; border-color: var(--cotto); }
.btn-line-light { background: transparent; color: var(--calce); border-color: rgba(241,236,228,.55); }
.btn-line-light::before { background: var(--calce); }
.btn-line-light:hover { color: var(--notte); border-color: var(--calce); }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 1px solid currentColor; }
.link-arrow::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 30px; }

/* Intro: l'occhio si apre */
.intro { position: fixed; inset: 0; z-index: 150; background: var(--notte); display: grid; place-items: center; pointer-events: none; }
.intro-eye { width: min(260px, 50vw); fill: none; stroke: var(--calce); stroke-width: 1.4; }
.intro-eye path, .intro-eye circle { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.3s var(--ease) forwards; }
.intro-eye .iris { animation-delay: .25s; }
.intro-eye .hill { stroke-width: 3; stroke-linecap: round; animation-delay: .55s; }
.intro.is-done { animation: open 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes open { 0% { clip-path: circle(150% at 50% 50%); } 100% { clip-path: circle(0% at 50% 50%); visibility: hidden; } }
.intro.is-done { clip-path: circle(150% at 50% 50%); }
@keyframes openBg { to { opacity: 0; } }

/* Header */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 28px; padding: 14px var(--gutter); color: var(--calce); transition: background-color .4s, color .4s, padding .4s, transform .4s var(--ease); }
.site-header.is-solid { background: rgba(241,236,228,.92); backdrop-filter: blur(12px); color: var(--ink); padding-block: 8px; box-shadow: 0 1px 0 rgba(29,27,24,.08); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: block; width: 58px; flex: none; }
.brand-logo { width: 58px; height: auto; transition: width .4s; }
.brand-dark { display: none; }
.is-solid .brand-light { display: none; }
.is-solid .brand-dark { display: block; }
.is-solid .brand-logo { width: 46px; }
.quick-nav { display: flex; gap: 30px; margin-left: auto; }
.quick-nav a { text-decoration: none; font-size: .92rem; letter-spacing: .03em; position: relative; }
.quick-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.quick-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { font-size: .85rem; text-decoration: none; opacity: .8; }
.btn-book { min-height: 42px; padding: 0 22px; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 8px 0; font-size: .92rem; letter-spacing: .03em; }
.menu-lines { width: 26px; height: 9px; position: relative; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s; }
.menu-open .menu-lines { transform: rotate(90deg); }

/* Menu panel */
.menu-panel { position: fixed; inset: 0; z-index: 55; background: var(--notte); color: var(--calce); display: grid; grid-template-columns: 1fr 1fr; }
.menu-panel:not([hidden]) { animation: menuIn .6s var(--ease); }
@keyframes menuIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu-photo { position: relative; overflow: hidden; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform 1.2s var(--ease); }
.menu-nav { display: flex; flex-direction: column; justify-content: center; padding: 110px var(--gutter) 40px; }
.menu-nav ul { list-style: none; margin: 0; padding: 0; }
.menu-nav li a { display: block; font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.2; text-decoration: none; padding: 2px 0; transition: color .3s, transform .4s var(--ease); }
.menu-nav li a:hover, .menu-nav li a:focus-visible { color: var(--lume); transform: translateX(14px); font-style: italic; }
.menu-foot { margin-top: 40px; font-size: .9rem; color: rgba(241,236,228,.7); }
.menu-open .site-header { color: var(--calce); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .brand-light { display: block; }
.menu-open .brand-dark { display: none; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 620px; color: var(--calce); overflow: hidden; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; background: var(--notte-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.6s var(--ease); will-change: transform; }
.is-ready .hero-media img { transform: scale(1.02); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,22,20,.55) 0%, rgba(23,22,20,0) 55%), linear-gradient(180deg, rgba(23,22,20,.45) 0%, rgba(23,22,20,0) 28%, rgba(23,22,20,.05) 50%, rgba(23,22,20,.78) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 0 var(--gutter) clamp(110px, 14vh, 150px); max-width: 1100px; }
.hero-verse { font-size: .95rem; max-width: 40ch; margin-bottom: 14px; opacity: .9; }
.hero-verse em { font-family: var(--serif); font-size: 1.15rem; display: block; }
.hero-verse span { font-size: .8rem; opacity: .75; letter-spacing: .04em; }
.hero-display { font-family: var(--serif); font-size: clamp(3.6rem, 11.5vw, 11rem); line-height: .88; letter-spacing: -.035em; margin: 0 0 22px; }
.hero-display .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-display .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero-display .ln:nth-child(2) { padding-left: .6em; }
.hero-display .ln:nth-child(2) > span { transition-delay: .12s; }
.is-ready .hero-display .ln > span { transform: none; }
.hero-title { font-family: var(--sans); font-weight: 400; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.5; max-width: 42ch; letter-spacing: .01em; margin-bottom: 28px; opacity: .92; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(110px, 14vh, 150px); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: right; font-size: .9rem; }
.hero-facts b { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; display: block; line-height: 1; color: var(--calce); }
.hero-facts li { padding-top: 10px; border-top: 1px solid rgba(241,236,228,.35); min-width: 220px; opacity: .9; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 2; width: 1px; height: 54px; background: rgba(241,236,228,.3); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--calce); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Booking */
.booking { position: relative; z-index: 5; margin: -56px var(--gutter) 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; background: var(--calce); box-shadow: 0 30px 60px -30px rgba(23,22,20,.45); }
.booking-field { display: flex; flex-direction: column; padding: 16px 24px; border-right: 1px solid var(--calce-2); min-width: 0; }
.booking-field label { font-size: .78rem; letter-spacing: .04em; color: var(--pietra); }
.booking-field input, .booking-field select { border: 0; background: transparent; font: 400 1.1rem var(--serif); color: var(--ink); padding: 4px 0; min-height: 34px; width: 100%; }
.booking .btn { margin: 12px; min-height: auto; }
.booking-note { grid-column: 1 / -1; margin: 0; padding: 12px 24px; font-size: .85rem; color: var(--pietra); border-top: 1px solid var(--calce-2); }

/* Casa / manifesto */
.casa { position: relative; padding: clamp(120px, 18vw, 240px) var(--gutter) clamp(100px, 14vw, 200px); min-height: 100vh; }
.manifesto { position: relative; z-index: 2; font-family: var(--serif); font-size: clamp(1.9rem, 4.1vw, 3.9rem); line-height: 1.16; letter-spacing: -.015em; max-width: 21ch; margin: 0 auto; text-align: left; }
.manifesto .w { color: rgba(29,27,24,.16); transition: color .4s; }
.manifesto .w.on { color: var(--ink); }
.casa-meta { position: relative; z-index: 2; max-width: 44ch; margin: clamp(48px, 6vw, 80px) 0 0 auto; margin-right: max(0px, calc((100% - 21 * 3.9rem * .55) / 2)); color: var(--pietra); }
.casa-meta .link-arrow { color: var(--ink); }
.casa-float { position: absolute; z-index: 1; overflow: hidden; will-change: transform; }
.casa-float img { width: 100%; height: 100%; object-fit: cover; }
.casa-float.f1 { width: clamp(140px, 17vw, 270px); aspect-ratio: 2/3; left: 3vw; top: 10%; }
.casa-float.f2 { width: clamp(120px, 14vw, 230px); aspect-ratio: 2/3; right: 4vw; top: 6%; }
.casa-float.f3 { width: clamp(120px, 15vw, 240px); aspect-ratio: 2/3; left: 12vw; bottom: 4%; }

/* Camere — orizzontale */
.camere { position: relative; background: var(--notte); color: var(--calce); }
.camere-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(280px, 30vw) 1fr; align-items: center; }
.camere-head { position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 3vw 0 var(--gutter); background: var(--notte); box-shadow: 30px 0 40px -10px var(--notte); }
.camere-head h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); margin-bottom: 24px; }
.camere-head h2 i { color: var(--lume); }
.camere-head p { color: rgba(241,236,228,.7); max-width: 36ch; }
.camere-progress { height: 1px; background: rgba(241,236,228,.2); margin-top: 32px; max-width: 260px; }
.camere-progress span { display: block; height: 100%; width: 100%; background: var(--lume); transform-origin: left; transform: scaleX(0); }
.camere-track { min-width: 0; display: flex; gap: 3vw; padding-right: var(--gutter); will-change: transform; outline: none; }
.room { flex: none; width: min(40vw, 620px); }
.room-media { overflow: hidden; aspect-ratio: 4/3; background: var(--notte-2); }
.room-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.room:hover .room-media img { transform: scale(1.12); }
.room-body { padding-top: 22px; }
.room-floor { font-size: .82rem; letter-spacing: .04em; color: var(--salvia); margin-bottom: 8px; }
.room h3 { font-size: clamp(1.9rem, 2.6vw, 2.6rem); margin-bottom: 12px; }
.room-body > p:not(.room-floor) { color: rgba(241,236,228,.72); max-width: 46ch; font-size: .98rem; }
.room-actions { display: flex; gap: 28px; margin-top: 8px; }

/* Lo sguardo */
.sguardo { background: var(--notte); }
.sguardo-stage { position: relative; height: 100vh; min-height: 560px; overflow: hidden; cursor: none; }
.sguardo-base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; filter: blur(6px) grayscale(.85) brightness(.55); transform: scale(1.06); }
.sguardo-lens { --x: 70%; --y: 50%; --r: clamp(110px, 16vw, 230px); position: absolute; inset: 0; background-size: cover; background-position: center 75%; transform: scale(1.06); clip-path: circle(var(--r) at var(--x) var(--y)); transition: clip-path .08s linear; }
.sguardo-lens::after { content: ""; position: absolute; inset: 0; }
.sguardo-text { position: absolute; left: var(--gutter); bottom: clamp(48px, 10vh, 100px); max-width: 520px; color: var(--calce); pointer-events: none; }
.sguardo-text h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); margin-bottom: 20px; }
.sguardo-text h2 i { color: var(--lume); }
.sguardo-text p { color: rgba(241,236,228,.82); max-width: 42ch; }
.sguardo-hint { font-size: .85rem; color: rgba(241,236,228,.6) !important; }

/* Veranda */
.veranda { padding: clamp(100px, 14vw, 200px) var(--gutter); }
.veranda-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 6vw; align-items: end; margin-bottom: clamp(56px, 8vw, 110px); }
.veranda-intro h2 { font-size: clamp(2.6rem, 5.5vw, 5.2rem); }
.veranda-intro h2 i { color: var(--cotto); }
.veranda-intro p { color: var(--pietra); max-width: 50ch; margin: 0; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 2vw; align-items: start; }
.mosaic figure { margin: 0; overflow: hidden; position: relative; will-change: transform; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mosaic figure:hover img { transform: scale(1.06); }
.mosaic figcaption { position: absolute; left: 16px; bottom: 14px; color: var(--calce); font-size: .85rem; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.m1 { grid-column: 1 / 8; aspect-ratio: 3/2; }
.m2 { grid-column: 9 / 13; aspect-ratio: 2/3; margin-top: 12vw !important; }
.m3 { grid-column: 2 / 6; aspect-ratio: 4/5; margin-top: -6vw !important; }
.m4 { grid-column: 7 / 12; aspect-ratio: 3/2; margin-top: 4vw !important; }
.servizi { list-style: none; margin: clamp(64px, 8vw, 120px) 0 0; padding: 32px 0 0; border-top: 1px solid rgba(29,27,24,.15); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.servizi li { display: flex; gap: 14px; align-items: center; font-size: .98rem; }
.servizi svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--cotto); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* Langhe */
.langhe { background: var(--calce-2); padding: clamp(100px, 12vw, 180px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; }
.langhe-copy h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); margin-bottom: 24px; }
.langhe-copy h2 i { color: var(--cotto); }
.langhe-copy > p { color: var(--pietra); max-width: 50ch; }
.dest { list-style: none; margin: 32px 0 10px; padding: 0; border-top: 1px solid var(--ink); }
.dest li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(29,27,24,.15); cursor: default; transition: padding .35s var(--ease), color .3s; }
.dest li span { font-family: var(--serif); font-size: 1.3rem; }
.dest li b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--pietra); white-space: nowrap; }
.dest li.on { padding-left: 14px; color: var(--cotto); }
.small { font-size: .85rem; color: var(--pietra); }
.radar svg { width: 100%; max-width: 560px; margin: 0 auto; display: block; overflow: visible; }
.radar circle { fill: none; stroke: rgba(29,27,24,.18); stroke-width: 1; }
.radar circle.outer { stroke: rgba(29,27,24,.35); }
.radar > svg > text { font: 500 11px var(--sans); fill: var(--pietra); text-anchor: middle; }
.radar .pts g circle { fill: var(--calce); stroke: var(--cotto); stroke-width: 1.5; transition: r .3s; }
.radar .pts g text { font: 400 14px var(--serif); fill: var(--ink); transition: fill .3s; }
.radar .pts g.on circle { fill: var(--cotto); r: 8; }
.radar .pts g.on text { fill: var(--cotto); }
.radar .home circle:first-child { fill: none; stroke: var(--cotto); stroke-width: 1.5; animation: pulse 2.4s ease-out infinite; transform-origin: center; }
.radar .home circle:last-child { fill: var(--cotto); stroke: none; }
@keyframes pulse { 0% { r: 6; opacity: 1; } 100% { r: 26; opacity: 0; } }
.tartufo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 28px 32px; background: var(--notte); color: var(--calce); }
.tartufo p { margin: 0; max-width: 64ch; }
.tartufo b { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--lume); }

/* Galleria */
.galleria { padding: clamp(100px, 12vw, 180px) var(--gutter); }
.galleria-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.galleria-head h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: none; border: 1px solid rgba(29,27,24,.25); padding: 9px 18px; cursor: pointer; font-size: .9rem; transition: background-color .3s, color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--calce); border-color: var(--ink); }
.grid { columns: 4 260px; column-gap: 14px; }
.grid button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--calce-2); cursor: zoom-in; overflow: hidden; break-inside: avoid; }
.grid img { width: 100%; height: auto; transition: transform 1s var(--ease), opacity .5s; }
.grid button:hover img { transform: scale(1.05); }

/* FAQ */
.faq { padding: clamp(80px, 10vw, 150px) var(--gutter); background: var(--calce-2); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6vw; }
.faq h2 { font-size: clamp(2.4rem, 4.5vw, 4.2rem); }
.faq h2 i { color: var(--cotto); }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid rgba(29,27,24,.18); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1px; background: var(--cotto); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { color: var(--pietra); max-width: 62ch; padding-bottom: 12px; }

/* Finale */
.finale { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: var(--calce); overflow: hidden; padding: 120px var(--gutter); }
.finale-media { position: absolute; inset: -12% 0; will-change: transform; }
.finale-media img { width: 100%; height: 100%; object-fit: cover; }
.finale-media::after { content: ""; position: absolute; inset: 0; background: rgba(23,22,20,.55); }
.finale-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.finale-logo { width: 96px; }
.finale h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); }
.finale h2 i { color: var(--lume); }
.finale address { font-style: normal; font-size: .95rem; color: rgba(241,236,228,.85); line-height: 1.9; }
.finale address a { color: var(--calce); }

.site-footer { background: var(--notte); color: rgba(241,236,228,.6); font-size: .82rem; padding: 28px var(--gutter) 36px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: rgba(241,236,228,.85); }

.float-book { position: fixed; z-index: 50; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 92px; height: 92px; border-radius: 50%; background: var(--cotto); color: #fff; display: grid; place-items: center; text-decoration: none; font-family: var(--serif); font-style: italic; font-size: 1.15rem; box-shadow: 0 14px 30px -12px rgba(23,22,20,.6); transform: scale(0); transition: transform .5s var(--ease), background-color .3s; }
.float-book.is-visible { transform: scale(1); }
.float-book:hover { background: var(--notte); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(23,22,20,.96); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; color: var(--calce); }
.lightbox:not([hidden]) { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox figcaption { font-size: .9rem; opacity: .75; }
.lightbox button { background: none; border: 0; cursor: pointer; color: var(--calce); }
.lb-prev, .lb-next { font-size: 2.6rem; font-family: var(--serif); height: 100%; }
.lb-close { position: absolute; top: 18px; right: 22px; font-size: .95rem; letter-spacing: .04em; border-bottom: 1px solid currentColor !important; }

/* Reveal (solo con JS) */
.js .rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .quick-nav { display: none; }
  .header-actions { margin-left: auto; }
  .room { width: min(56vw, 560px); }
}
@media (max-width: 860px) {
  .menu-panel { grid-template-columns: 1fr; }
  .menu-photo { display: none; }
  .hero-facts { display: none; }
  .hero-inner { padding-bottom: 96px; }
  .booking { grid-template-columns: 1fr 1fr; margin-top: -40px; }
  .booking-field:nth-child(2) { border-right: 0; }
  .booking-field:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--calce-2); border-right: 0; }
  .booking .btn { grid-column: 1 / -1; min-height: 50px; }
  .casa { min-height: 0; padding-top: 80px; }
  .casa-float.f3 { display: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(23,22,20,.5) 0%, rgba(23,22,20,.25) 35%, rgba(23,22,20,.85) 100%); }
  .casa-float { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; display: inline-block; width: calc(50% - 8px) !important; margin: 0 4px 28px; aspect-ratio: 3/4 !important; transform: none !important; }
  .casa-meta { margin: 40px 0 0; }
  .camere-sticky { position: relative; height: auto; display: block; padding: 90px 0 70px; }
  .camere-head { padding: 0 var(--gutter); margin-bottom: 36px; }
  .camere-progress { display: none; }
  .camere-track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 12px; gap: 16px; transform: none !important; scrollbar-width: none; }
  .camere-track::-webkit-scrollbar { display: none; }
  .room { width: 82vw; scroll-snap-align: start; }
  .camere { height: auto !important; }
  .sguardo-stage { height: 85vh; cursor: auto; }
  .veranda-intro, .langhe, .faq { grid-template-columns: minmax(0, 1fr); }
  .mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .mosaic figure { grid-column: auto !important; margin-top: 0 !important; transform: none !important; }
  .m1, .m4 { grid-column: 1 / -1 !important; }
  .servizi { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .radar { order: -1; }
  .grid { columns: 2 140px; column-gap: 8px; }
  .grid button { margin-bottom: 8px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .float-book { width: 74px; height: 74px; font-size: 1rem; }
}
@media (max-width: 520px) {
  .btn-book, .lang { display: none; }
  .booking { grid-template-columns: minmax(0, 1fr); margin-inline: 12px; }
  .booking-field { border-right: 0; border-bottom: 1px solid var(--calce-2); }
  .booking-field:nth-child(3) { border-top: 0; }
  .servizi { grid-template-columns: minmax(0, 1fr); }
  .hero-display { font-size: clamp(3.2rem, 17vw, 5rem); }
  .tartufo { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .intro { display: none; }
  .js .rv { opacity: 1; transform: none; }
}
