:root {
  --ink: #1d2522;
  --forest: #17372f;
  --forest-2: #21493e;
  --cream: #f3efe6;
  --paper: #fbfaf6;
  --terracotta: #c96d4b;
  --line: rgba(29, 37, 34, 0.16);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); }
body.menu-open { overflow: hidden; }
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* <picture> è inline per default: senza questo introduce un gap di
   baseline sotto ogni foto e non propaga l'altezza al figlio. */
picture { display: block; width: 100%; height: 100%; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; top: -60px; left: 12px; z-index: 100; background: white; padding: 12px 18px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 92px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 5vw;
  color: white; border-bottom: 1px solid rgba(255,255,255,.24); transition: height .35s ease, background .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled { height: 72px; color: var(--ink); background: rgba(251,250,246,.92); border-color: var(--line); box-shadow: 0 12px 35px rgba(20,37,31,.08); backdrop-filter: blur(16px); }
.site-header.scrolled .menu-toggle { color: var(--ink); }
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 14px; }
nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
nav a { position: relative; transition: opacity .2s; }
nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .3s ease; }
nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 12px 22px; border: 1px solid rgba(255,255,255,.7); border-radius: 99px; }
.menu-toggle { display: none; color: white; border: 0; background: transparent; width: 42px; height: 42px; }
.menu-toggle span { display: block; width: 24px; border-top: 1.5px solid currentColor; margin: 7px auto; transition: transform .25s ease; }

.hero { min-height: 780px; height: 100svh; position: relative; color: white; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: -4%; background: url("public/images/hero.jpg") center/cover no-repeat; transform: scale(1.04); will-change: transform; }
.hero-media { background-image: image-set(url("public/images/hero.avif") type("image/avif"), url("public/images/hero.jpg") type("image/jpeg")); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,23,.68) 0%, rgba(11,27,23,.24) 58%, rgba(11,27,23,.12)), linear-gradient(0deg, rgba(8,20,17,.42), transparent 55%); }
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 0 5vw 10vh; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; margin: 0 0 24px; color: var(--forest); }
.eyebrow.light { color: rgba(255,255,255,.8); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; margin: 0; line-height: .96; }
h1 { font-size: clamp(64px, 8.2vw, 126px); }
h1 em, h2 em { font-weight: 400; }
.hero-copy { max-width: 560px; margin: 28px 0 34px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; border: 0; border-radius: 2px; padding: 17px 24px; font-weight: 600; cursor: pointer; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translateX(4px); }
.button span { transition: transform .25s ease; }
.button-light { background: var(--cream); color: var(--forest); }
.text-link { font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.light-link { color: white; }
.hero-meta { position: absolute; z-index: 2; right: 5vw; bottom: 5vh; display: flex; gap: 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-meta span + span::before { content: "·"; margin-right: 20px; opacity: .7; }

.section { padding: 120px 7vw; }
.section-label { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 600; }
.section-label span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; }
.section-label.light { color: rgba(255,255,255,.72); }
.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1.15fr .65fr; gap: 10vw; margin-top: 90px; align-items: end; }
.intro h2, .gallery h2, .about h2, .booking h2 { font-size: clamp(48px, 6vw, 88px); }
.intro-copy { font-size: 17px; line-height: 1.75; color: #55615d; max-width: 550px; }
.intro-copy p:first-child { color: var(--ink); font-size: 20px; }
.feature-strip { margin-top: 100px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-strip div { padding: 10px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; transition: transform .3s ease; }
.feature-strip div:hover { transform: translateY(-5px); }
.feature-strip div:first-child { border-left: 0; padding-left: 0; }
.feature-strip strong { color: var(--terracotta); font-family: var(--serif); font-weight: 400; font-size: 26px; }
.feature-strip span { font-size: 14px; }

.gallery { background: var(--cream); }
.gallery-heading { display: grid; grid-template-columns: .55fr 1.2fr .65fr; gap: 5vw; align-items: end; margin-bottom: 70px; }
.gallery-heading p { color: #65706c; line-height: 1.7; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.gallery-item { position: relative; display: block; width: 100%; height: 360px; padding: 0; margin: 0; overflow: hidden; border: 0; color: white; text-align: left; cursor: zoom-in; background: #ddd7ca; }
.gallery-main { grid-row: span 2; height: 738px; }
.gallery-wide { grid-column: 1 / -1; height: 480px; }
.gallery-small { height: 330px; }
.gallery-small:last-child { grid-column: 1 / -1; height: 440px; }
.gallery-item img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.045); }
.gallery-item::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(10,20,17,.45) 45%, rgba(8,17,14,.82)); }
.gallery-caption { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; color: white; display: flex; justify-content: space-between; align-items: end; }
.gallery-caption > span { font-family: var(--serif); font-size: 28px; text-shadow: 0 1px 4px rgba(8,17,14,.45); }
.gallery-caption small { opacity: .88; text-shadow: 0 1px 3px rgba(8,17,14,.5); }
.gallery-expand { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(251,250,246,.9); color: var(--forest); transform: scale(.8); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.gallery-item:hover .gallery-expand, .gallery-item:focus-visible .gallery-expand { opacity: 1; transform: scale(1); }
.gallery-item:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.gallery-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); margin-top: 34px; }
.gallery-footer p { margin: 0; color: #65706c; font-size: 13px; }
.gallery-footer strong { color: var(--ink); }
.outline-button { display: inline-flex; gap: 12px; align-items: center; padding: 14px 19px; color: var(--forest); background: transparent; border: 1px solid var(--forest); cursor: pointer; transition: background .25s ease, color .25s ease, transform .25s ease; }
.outline-button:hover { color: white; background: var(--forest); transform: translateY(-2px); }

.essentials { position: relative; overflow: hidden; background: var(--paper); }
.essentials::before { content: "CP"; position: absolute; top: 20px; right: -1vw; color: rgba(23,55,47,.035); font: 400 clamp(180px, 28vw, 420px)/1 var(--serif); letter-spacing: -.08em; pointer-events: none; }
.essentials-head { position: relative; max-width: 960px; }
.essentials-head .eyebrow { margin-top: 72px; }
.essentials h2 { font-size: clamp(52px, 6.5vw, 94px); }
.trust-row { position: relative; display: grid; grid-template-columns: .55fr .7fr .75fr 1.6fr; align-items: center; margin-top: 85px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-row > div { min-height: 142px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 30px; border-right: 1px solid var(--line); }
.trust-row > div:first-child { padding-left: 0; }
.trust-row strong { color: var(--forest); font: 400 42px/1 var(--serif); }
.trust-row span { color: #6e7873; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.trust-row p { margin: 0; padding-left: 42px; color: #57625e; font: 400 19px/1.55 var(--serif); }
.details-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; margin-top: 100px; align-items: start; }
.card-kicker { display: block; color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.sleep-card { padding: 52px; color: white; background: var(--forest); box-shadow: 0 30px 65px rgba(19,43,36,.15); }
.sleep-card h3, .amenities h3 { margin: 22px 0 38px; font: 400 clamp(36px, 4vw, 56px)/1.04 var(--serif); letter-spacing: -.035em; }
.room-list { border-top: 1px solid rgba(255,255,255,.2); }
.room-list > div { display: grid; grid-template-columns: .7fr 1.2fr; gap: 8px 20px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.room-list span { grid-row: span 2; color: #dda183; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.room-list strong { font-size: 14px; font-weight: 500; }
.room-list small { color: rgba(255,255,255,.58); }
.amenities { padding-top: 16px; }
.amenities h3 { color: var(--forest); }
.amenities ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.amenities li { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.amenities li > span { color: var(--terracotta); font: 400 20px/1 var(--serif); }
.amenities li div { display: flex; flex-direction: column; gap: 7px; }
.amenities li strong { font-size: 14px; }
.amenities li small { color: #6f7974; line-height: 1.5; }
.location-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; margin-top: 110px; padding: 58px; color: white; background: var(--terracotta); }
.location-lead { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.location-lead span { max-width: 260px; font: 400 28px/1.15 var(--serif); }
.location-lead strong { font: 400 clamp(90px, 12vw, 150px)/.7 var(--serif); letter-spacing: -.08em; }
.location-routes > div { display: grid; grid-template-columns: 80px 1fr; gap: 25px; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.location-routes div:first-child { padding-top: 0; }
.location-routes span { font: 400 24px/1 var(--serif); }
.location-routes p { margin: 0; color: rgba(255,255,255,.8); line-height: 1.5; }
.stay-notes { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stay-notes > div { min-height: 160px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; border-left: 1px solid var(--line); transition: background .3s ease; }
.stay-notes > div:first-child { padding-left: 0; border-left: 0; }
.stay-notes > div:hover { background: rgba(23,55,47,.035); }
.stay-notes span { color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.stay-notes strong { color: var(--forest); font: 400 23px/1.15 var(--serif); }
.stay-notes small { color: #747d79; line-height: 1.45; }

.guest-guide { position: relative; overflow: hidden; color: white; background: var(--forest); }
.guest-guide::before { content: "FIRENZE"; position: absolute; top: 14px; right: -14px; color: rgba(255,255,255,.025); font: 400 clamp(110px, 19vw, 290px)/.8 var(--serif); letter-spacing: -.07em; pointer-events: none; }
.guide-head { position: relative; display: grid; grid-template-columns: .55fr 1.15fr .65fr; gap: 5vw; align-items: end; }
.guide-head h2 { font-size: clamp(52px, 6.4vw, 94px); }
.guide-head > p { margin: 0; color: rgba(255,255,255,.63); font-size: 15px; line-height: 1.7; }
.guide-filters { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin: 64px 0 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.16); }
.guide-filters button { padding: 11px 18px; color: rgba(255,255,255,.72); background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease; }
.guide-filters button:hover { color: white; border-color: rgba(255,255,255,.7); transform: translateY(-2px); }
.guide-filters button.active { color: var(--forest); background: var(--cream); border-color: var(--cream); }
.guide-filters button:focus-visible { outline: 2px solid #e4a585; outline-offset: 3px; }
.guide-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; }
.guide-card { min-height: 0; padding: 0; overflow: hidden; color: var(--ink); background: var(--paper); border: 1px solid rgba(255,255,255,.09); transition: box-shadow .3s ease; }
.guide-card:hover, .guide-card[open] { box-shadow: 0 16px 38px rgba(4,18,14,.18); }
.guide-card[hidden] { display: none !important; }
.guide-card summary { min-height: 104px; display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr) 44px; gap: 30px; align-items: center; padding: 20px 28px; cursor: pointer; list-style: none; }
.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary:focus-visible { outline: 2px solid #e4a585; outline-offset: -4px; }
.guide-card-top { display: flex; align-items: center; gap: 18px; }
.guide-card-top span { color: #77807c; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.guide-card-top b { order: -1; min-width: 28px; color: var(--terracotta); font: 400 18px/1 var(--serif); }
.guide-title { color: var(--forest); font: 400 clamp(25px, 3vw, 36px)/1.05 var(--serif); letter-spacing: -.025em; }
.guide-toggle { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--terracotta); font-size: 25px; font-weight: 300; transition: color .25s ease, background .25s ease, transform .35s ease; }
.guide-card[open] .guide-toggle { color: white; background: var(--terracotta); border-color: var(--terracotta); transform: rotate(45deg); }
.guide-card-body { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr) auto; gap: 30px; align-items: end; margin: 0 28px; padding: 26px 0 30px; border-top: 1px solid var(--line); animation: guide-open .35s ease both; }
.guide-card p { max-width: 660px; margin: 0; color: #65706b; font-size: 14px; line-height: 1.65; }
.guide-card-body p { grid-column: 2; }
.guide-card a { grid-column: 3; width: fit-content; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--forest); font-size: 12px; font-weight: 600; white-space: nowrap; }
.guide-card a span { display: inline-block; margin-left: 6px; transition: transform .25s ease; }
.guide-card a:hover span { transform: translate(3px, -3px); }
.guide-card-accent { color: white; background: var(--terracotta); }
.guide-card-dark { color: white; background: #10241f; }
.guide-card-accent .guide-card-body, .guide-card-dark .guide-card-body { border-color: rgba(255,255,255,.22); }
.guide-card-accent .guide-card-top span, .guide-card-accent p, .guide-card-dark .guide-card-top span, .guide-card-dark p { color: rgba(255,255,255,.72); }
.guide-card-accent .guide-card-top b, .guide-card-dark .guide-card-top b { color: #f1c4aa; }
.guide-card-accent .guide-title, .guide-card-accent a, .guide-card-dark .guide-title, .guide-card-dark a { color: white; }
.guide-card-accent .guide-toggle, .guide-card-dark .guide-toggle { color: white; border-color: rgba(255,255,255,.35); }
.guide-card-accent[open] .guide-toggle, .guide-card-dark[open] .guide-toggle { color: var(--forest); background: white; border-color: white; }
@keyframes guide-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.day-route { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; margin-top: 86px; padding: 62px; color: var(--ink); background: var(--cream); }
.day-route-intro h3 { margin: 24px 0 22px; color: var(--forest); font: 400 clamp(36px, 4vw, 57px)/1.02 var(--serif); letter-spacing: -.035em; }
.day-route-intro p { max-width: 470px; margin: 0; color: #65706b; line-height: 1.65; }
.day-route ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.day-route li { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.day-route li > span { color: var(--terracotta); font: 400 18px/1.2 var(--serif); }
.day-route li div { display: flex; flex-direction: column; gap: 6px; }
.day-route li strong { color: var(--forest); font-size: 14px; }
.day-route li small { color: #747d79; line-height: 1.45; }
.guide-disclaimer { margin: 22px 0 0; color: rgba(255,255,255,.46); font-size: 11px; line-height: 1.5; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; color: white; background: #0b1714; overflow: hidden; }
.lightbox::backdrop { background: rgba(6,14,12,.96); }
.lightbox[open] { animation: lightbox-in .35s ease both; }
.lightbox-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 4vw; }
.lightbox-counter { font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.65); }
.lightbox-close, .lightbox-nav { display: grid; place-items: center; color: white; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.lightbox-close { width: 44px; height: 44px; font-size: 27px; font-weight: 300; }
.lightbox-nav { width: 54px; height: 54px; font-size: 20px; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--forest); background: white; transform: scale(1.05); }
.lightbox-stage { height: 100%; display: grid; grid-template-columns: 80px minmax(0,1fr) 80px; gap: 3vw; align-items: center; padding: 85px 4vw 35px; }
.lightbox-stage figure { height: 100%; min-height: 0; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; }
.lightbox-stage img { min-height: 0; object-fit: contain; animation: photo-in .35s ease both; }
.lightbox-stage figcaption { display: flex; justify-content: space-between; gap: 25px; padding-top: 18px; }
.lightbox-stage figcaption strong { font: 400 23px/1.2 var(--serif); }
.lightbox-stage figcaption span { color: rgba(255,255,255,.58); font-size: 13px; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-in { from { opacity: .25; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }

.about { display: grid; grid-template-columns: 1fr 1fr; padding: 0; min-height: 780px; background: var(--paper); }
.about-image { position: relative; min-height: 700px; }
.image-stamp { position: absolute; right: -56px; bottom: 80px; display: grid; place-items: center; text-align: center; width: 116px; height: 116px; background: var(--terracotta); color: white; border-radius: 50%; font-family: var(--serif); font-size: 16px; line-height: 1.2; transform: rotate(-8deg); }
.about-copy { padding: 110px 9vw; display: flex; flex-direction: column; justify-content: center; }
.about-copy .eyebrow { margin-top: 80px; }
.about-copy h2 { font-size: clamp(48px, 5vw, 76px); }
.about-copy > p:not(.eyebrow) { color: #59645f; line-height: 1.75; font-size: 17px; }
.about-copy > p:nth-of-type(2) { margin-top: 36px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 24px; margin-top: 24px; color: var(--forest); }

.booking { background: var(--forest); color: white; display: grid; grid-template-columns: .9fr 1fr; gap: 9vw; }
.booking-intro > p:not(.eyebrow) { color: rgba(255,255,255,.68); line-height: 1.75; font-size: 17px; max-width: 560px; }
.booking-intro .eyebrow { margin-top: 75px; }
.direct-benefits { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; font-size: 14px; color: rgba(255,255,255,.84); }
.direct-benefits b { color: #d79a78; margin-right: 10px; }
.booking-panel { background: var(--paper); color: var(--ink); align-self: center; box-shadow: 0 28px 60px rgba(4,14,11,.2); min-width: 0; }
.booking-form { padding: 42px; }
.booking-form label { display: flex; flex-direction: column; gap: 9px; margin-bottom: 19px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.booking-form label span { color: #8b938f; font-weight: 400; text-transform: none; letter-spacing: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea { width: 100%; border: 0; border-bottom: 1px solid #c8cbc5; background: transparent; border-radius: 0; color: var(--ink); padding: 13px 2px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--terracotta); box-shadow: 0 1px 0 var(--terracotta); }
textarea { resize: vertical; }
.button-accent { width: 100%; background: var(--terracotta); color: white; margin-top: 6px; }
.button-accent:hover { background: #b85f40; }
.form-note { color: #7b837f; font-size: 11px; line-height: 1.5; text-align: center; margin: 14px 0 0; }
.form-status { display: none; margin-top: 18px; padding: 16px; background: #e7efe9; color: var(--forest); font-size: 14px; line-height: 1.5; }
.form-status.visible { display: block; }
.smoobu-slot { min-height: 540px; padding: 20px; background: var(--paper); }
.smoobu-slot iframe { display: block; width: 100% !important; max-width: 100%; min-height: 620px; border: 0; }
.smoobu-loading { padding: 54px 36px; text-align: center; color: #65706c; font-size: 14px; }
.smoobu-error { margin: 28px 28px 0; padding: 16px 18px; background: #f7e9e2; color: #743a29; font-size: 13px; line-height: 1.5; }
.smoobu-error strong, .smoobu-error span { display: block; }
.smoobu-error span { margin-top: 4px; color: #805a4e; }

.arrival { display: grid; grid-template-columns: .86fr 1.14fr; gap: 7vw; align-items: stretch; background: var(--paper); }
.arrival-copy { padding: 18px 0; }
.arrival-copy .eyebrow { margin-top: 72px; }
.arrival h2 { font-size: clamp(52px, 6.2vw, 88px); }
.arrival-address { display: flex; flex-direction: column; gap: 7px; margin: 42px 0 34px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.arrival-address span { color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.arrival-address strong { color: var(--forest); font: 400 25px/1.2 var(--serif); }
.arrival-routes > div { display: grid; grid-template-columns: 34px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.arrival-routes > div > span { color: var(--terracotta); font: 400 17px/1.35 var(--serif); }
.arrival-routes p { display: flex; flex-direction: column; gap: 5px; margin: 0; color: #69736f; font-size: 13px; line-height: 1.55; }
.arrival-routes strong { color: var(--ink); font-size: 14px; }
.map-button { width: 100%; margin-top: 32px; color: white; background: var(--terracotta); }
.map-button:hover { background: #b85f40; }
.map-wrap { position: relative; min-height: 650px; overflow: hidden; background: #e7e2d8; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 650px; border: 0; filter: saturate(.72) contrast(.96); }
.map-overlay { position: absolute; z-index: 1; inset: 0; }
.map-overlay:focus-visible { outline: 4px solid var(--terracotta); outline-offset: -4px; }
.map-pin-label { position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; align-items: center; gap: 10px; padding: 10px 15px 10px 9px; color: var(--forest); background: rgba(251,250,246,.96); border-radius: 99px; box-shadow: 0 14px 35px rgba(20,37,31,.22); transform: translate(-50%, -50%); pointer-events: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.map-pin-label b { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--terracotta); border-radius: 50%; font: 400 12px/1 var(--serif); }

.contact { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 9vw; align-items: center; color: white; background: var(--forest); }
.contact::after { content: "CP"; position: absolute; right: -35px; bottom: -70px; color: rgba(255,255,255,.035); font: 400 clamp(180px, 25vw, 360px)/1 var(--serif); letter-spacing: -.08em; pointer-events: none; }
.contact-heading, .contact-card { position: relative; z-index: 1; }
.contact-heading .eyebrow { margin-top: 72px; }
.contact h2 { font-size: clamp(52px, 6.4vw, 92px); }
.contact-card { padding: 42px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 60px rgba(4,14,11,.2); }
.contact-card > p { margin: 0 0 30px; color: #626d68; line-height: 1.7; }
.whatsapp-button { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 16px; color: white; background: #1f8f5f; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.whatsapp-button:hover { background: #19794f; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,80,55,.2); }
.whatsapp-mark { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.whatsapp-button > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.whatsapp-button strong { font-size: 15px; }
.whatsapp-button small { color: rgba(255,255,255,.75); }
.whatsapp-button > b { font-size: 21px; font-weight: 400; transition: transform .25s ease; }
.whatsapp-button:hover > b { transform: translate(3px, -3px); }
.contact-note { display: block; margin-top: 15px; color: #7b837f; font-size: 11px; line-height: 1.5; }

footer { background: #10241f; color: white; padding: 70px 7vw 28px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; }
.footer-brand { font-size: 18px; }
footer > p { font-family: var(--serif); font-size: 20px; color: rgba(255,255,255,.68); }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; margin-top: 35px; display: flex; justify-content: space-between; color: rgba(255,255,255,.48); font-size: 11px; }
.mobile-book { display: none; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.65,.2,1), transform .8s cubic-bezier(.2,.65,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.gallery-grid .reveal:nth-child(2) { transition-delay: .06s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: .12s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: .06s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .site-header { height: 76px; }
  .menu-toggle { display: block; }
  nav { position: absolute; z-index: 1; inset: 0; min-height: 100%; padding: 100px 24px 36px; overflow-y: auto; background: var(--forest); display: flex; flex-direction: column; justify-content: center; font-family: var(--serif); font-size: 38px; visibility: hidden; opacity: 0; transform: translateX(18px); transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), visibility .25s; }
  nav.open { visibility: visible; opacity: 1; transform: translateX(0); }
  nav.open { color: white; }
  body.menu-open .site-header { height: 100dvh; color: white; background: var(--forest); border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; align-items: flex-start; padding-top: 18px; }
  body.menu-open .brand { position: relative; z-index: 2; }
  body.menu-open .site-header .menu-toggle { position: relative; z-index: 2; color: white; }
  body.menu-open .menu-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  body.menu-open .menu-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu-toggle { position: relative; z-index: 2; }
  .nav-cta { border: 0; padding: 0; color: #e5a27d; }
  .hero { min-height: 680px; }
  .hero-content { padding-bottom: 16vh; }
  .hero-meta { left: 5vw; right: auto; bottom: 5vh; }
  .section { padding: 88px 6vw; }
  .intro-grid, .gallery-heading, .booking, .details-layout, .location-band, .guide-head, .day-route, .arrival, .contact { grid-template-columns: 1fr; }
  .intro-grid { gap: 35px; margin-top: 58px; }
  .feature-strip { grid-template-columns: 1fr 1fr; gap: 0; margin-top: 68px; }
  .feature-strip div { border-bottom: 1px solid var(--line); padding: 22px; }
  .feature-strip div:nth-child(odd) { border-left: 0; }
  .gallery-heading { gap: 26px; }
  .gallery-heading p { max-width: 550px; }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
  .trust-row > div { padding: 20px; }
  .trust-row p { grid-column: 1 / -1; padding: 30px 0; }
  .details-layout { gap: 70px; }
  .location-lead { min-height: 170px; }
  .stay-notes { grid-template-columns: 1fr 1fr; }
  .stay-notes > div:nth-child(3) { border-left: 0; }
  .guide-head { gap: 28px; }
  .guide-head > p { max-width: 560px; }
  .guide-card-body { grid-template-columns: minmax(0, 1fr) auto; }
  .guide-card-body p { grid-column: 1; }
  .guide-card a { grid-column: 2; }
  .day-route { gap: 48px; padding: 48px; }
  .about { grid-template-columns: 1fr; }
  .about-image { min-height: 560px; }
  .image-stamp { right: 7vw; bottom: -58px; }
  .about-copy { padding: 110px 7vw 90px; }
  .booking { gap: 60px; }
  .booking-intro .eyebrow { margin-top: 55px; }
  .arrival { gap: 58px; }
  .map-wrap, .map-wrap iframe { min-height: 520px; }
  .contact { gap: 54px; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; padding: 0 20px; }
  .site-header.scrolled { height: 64px; }
  .brand { gap: 9px; font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; font-size: 12px; }
  body.menu-open .site-header { padding: 15px 20px 0; }
  nav { gap: 22px; padding: 90px 24px 34px; font-size: clamp(30px, 9vw, 38px); }
  nav .nav-cta { margin-top: 5px; padding: 12px 24px; color: var(--forest); background: var(--cream); border-radius: 99px; font-family: var(--sans); font-size: 14px; }
  .hero { min-height: 650px; height: 100svh; }
  .hero-media { background-position: 56% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(8,20,17,.82) 0%, rgba(9,22,18,.66) 45%, rgba(10,24,20,.4) 75%, rgba(10,24,20,.3)); }
  .hero-content { padding: 0 20px 158px; }
  h1 { font-size: clamp(54px, 17vw, 72px); line-height: .91; }
  .eyebrow { margin-bottom: 17px; font-size: 10px; }
  .hero-copy { margin: 22px 0 26px; font-size: 15px; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 15px; }
  .hero-actions .button { width: 100%; min-height: 52px; }
  .hero-actions .text-link { align-self: center; }
  .hero-meta { left: 20px; right: 20px; bottom: 86px; justify-content: center; gap: 10px; font-size: 10.5px; letter-spacing: .06em; white-space: nowrap; }
  .hero-meta span + span::before { margin-right: 9px; }
  .section { padding: 72px 20px; scroll-margin-top: 64px; }
  .section-label { font-size: 9px; }
  .section-label span { width: 27px; height: 27px; }
  .intro-grid { margin-top: 44px; gap: 24px; }
  .intro h2, .gallery h2, .essentials h2, .guide-head h2, .about h2, .booking h2, .arrival h2, .contact h2 { font-size: clamp(42px, 13vw, 52px); }
  .intro-copy, .about-copy > p:not(.eyebrow), .booking-intro > p:not(.eyebrow) { font-size: 15px; line-height: 1.65; }
  .intro-copy p:first-child { font-size: 17px; }
  .feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .feature-strip div { min-height: 112px; padding: 18px 14px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 12px; }
  .feature-strip div:first-child { padding-left: 14px; }
  .feature-strip div:nth-child(even) { border-left: 1px solid var(--line); }
  .feature-strip strong { font-size: 22px; }
  .feature-strip span { font-size: 12px; }
  .gallery-heading { margin-bottom: 38px; }
  .gallery-grid { display: flex; gap: 12px; margin-right: -20px; padding-right: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-item, .gallery-main, .gallery-wide, .gallery-small, .gallery-small:last-child { flex: 0 0 84vw; grid-column: auto; grid-row: auto; height: min(112vw, 470px); scroll-snap-align: start; }
  .gallery-caption { left: 18px; right: 18px; bottom: 18px; }
  .gallery-caption > span { font-size: 24px; }
  .gallery-caption small { display: none; }
  .gallery-expand { opacity: 1; transform: scale(.85); }
  .gallery-footer { align-items: stretch; flex-direction: column; margin-top: 24px; }
  .outline-button { justify-content: center; }
  .essentials-head .eyebrow { margin-top: 48px; }
  .trust-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; }
  .trust-row > div, .trust-row > div:first-child { min-height: 112px; padding: 16px 7px; align-items: center; text-align: center; border-right: 1px solid var(--line); border-bottom: 0; }
  .trust-row > div:nth-child(3) { border-right: 0; }
  .trust-row strong { font-size: 31px; }
  .trust-row span { font-size: 8px; line-height: 1.35; }
  .trust-row p { grid-column: 1 / -1; padding: 24px 0; font-size: 17px; }
  .details-layout { margin-top: 64px; gap: 54px; }
  .sleep-card { padding: 34px 22px; }
  .sleep-card h3, .amenities h3 { margin: 18px 0 28px; font-size: 37px; }
  .room-list > div { grid-template-columns: 1fr; }
  .room-list span { grid-row: auto; }
  .amenities li { grid-template-columns: 34px 1fr; gap: 12px; padding: 19px 0; }
  .location-band { margin: 68px -20px 0; padding: 38px 20px; }
  .location-lead { min-height: 145px; }
  .location-lead span { font-size: 24px; }
  .location-lead strong { font-size: 88px; }
  .location-routes > div { grid-template-columns: 64px 1fr; gap: 16px; }
  .location-routes span { font-size: 21px; }
  .location-routes p { font-size: 13px; }
  .stay-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-notes > div, .stay-notes > div:first-child { min-height: 138px; padding: 20px 12px; border-left: 0; border-bottom: 1px solid var(--line); }
  .stay-notes > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .stay-notes strong { font-size: 19px; }
  .stay-notes small { font-size: 11px; }
  .guide-head { gap: 22px; }
  .guide-head > p { font-size: 13px; }
  .guide-filters { margin-top: 48px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .guide-filters::-webkit-scrollbar { display: none; }
  .guide-filters button { flex: 0 0 auto; min-height: 44px; }
  .guide-card summary { min-height: 102px; grid-template-columns: minmax(0, 1fr) 38px; gap: 7px 14px; padding: 17px; }
  .guide-card-top { grid-column: 1; gap: 12px; }
  .guide-title { grid-column: 1; font-size: 25px; }
  .guide-toggle { grid-column: 2; grid-row: 1 / span 2; width: 38px; height: 38px; }
  .guide-card-body { grid-template-columns: 1fr; gap: 20px; margin: 0 17px; padding: 20px 0 22px; }
  .guide-card-body p, .guide-card a { grid-column: 1; }
  .guide-card a { white-space: normal; }
  .day-route { margin: 54px -20px 0; padding: 38px 20px; gap: 34px; }
  .day-route-intro h3 { font-size: 38px; }
  .day-route li { grid-template-columns: 34px 1fr; gap: 12px; }
  .lightbox-bar { height: 66px; padding: 0 16px; }
  .lightbox-stage { grid-template-columns: 1fr; padding: 68px 12px calc(20px + env(safe-area-inset-bottom)); }
  .lightbox-nav { position: absolute; z-index: 2; top: 50%; width: 44px; height: 44px; background: rgba(11,23,20,.68); }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }
  .lightbox-stage figcaption { flex-direction: column; gap: 5px; }
  .about-image { min-height: 0; height: min(96vw, 430px); }
  .image-stamp { right: 20px; bottom: -44px; width: 92px; height: 92px; font-size: 13px; }
  .about-copy { padding: 88px 20px 72px; }
  .about-copy .eyebrow, .booking-intro .eyebrow { margin-top: 46px; }
  .signature { font-size: 21px; }
  .booking { gap: 44px; }
  .direct-benefits { margin-top: 28px; font-size: 13px; }
  .booking-form { padding: 28px 22px; }
  .smoobu-slot { padding: 10px; }
  .smoobu-slot iframe { min-height: 690px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  input, select, textarea { min-height: 48px; font-size: 16px; }
  textarea { min-height: 96px; }
  .button-accent { min-height: 52px; }
  .arrival { gap: 40px; padding-bottom: 0; }
  .arrival-copy { padding: 0; }
  .arrival-copy .eyebrow { margin-top: 46px; }
  .arrival-address { margin: 30px 0 22px; }
  .arrival-address strong { font-size: 22px; }
  .arrival-routes > div { padding: 15px 0; }
  .map-button { min-height: 52px; text-align: center; line-height: 1.35; }
  .map-wrap { min-height: 420px; margin: 0 -20px; }
  .map-wrap iframe { min-height: 420px; }
  .contact { gap: 38px; }
  .contact-heading .eyebrow { margin-top: 46px; }
  .contact-card { padding: 28px 20px; }
  .contact-card > p { margin-bottom: 24px; font-size: 14px; }
  .whatsapp-button { grid-template-columns: 42px 1fr auto; gap: 12px; padding: 14px 13px; }
  .whatsapp-mark { width: 42px; height: 42px; }
  footer { grid-template-columns: 1fr; gap: 22px; padding: 54px 20px calc(100px + env(safe-area-inset-bottom)); }
  footer > p { margin: 0; font-size: 18px; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .mobile-book { display: block; position: fixed; z-index: 12; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; min-height: 52px; padding: 15px; background: var(--terracotta); color: white; text-align: center; font-weight: 600; border-radius: 2px; box-shadow: 0 8px 28px rgba(20,30,26,.26); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
}

@media (max-width: 380px) {
  .hero-content { padding-bottom: 150px; }
  h1 { font-size: 51px; }
  .hero-meta { font-size: 9.5px; gap: 7px; }
  .intro h2, .gallery h2, .essentials h2, .guide-head h2, .about h2, .booking h2, .arrival h2, .contact h2 { font-size: 40px; }
  .trust-row strong { font-size: 28px; }
  .guide-title { font-size: 23px; }
}

/* ─────────────────────────────────────────────────────────────
   Modulo di richiesta: consenso privacy, anti-spam, esiti
   ───────────────────────────────────────────────────────────── */

/* L'attributo hidden deve vincere su qualsiasi `display` impostato da una
   classe: senza questa riga un elemento con `display: flex` resterebbe
   visibile anche da nascosto (capitava all'etichetta sulla mappa). */
[hidden] { display: none !important; }

/* Le ancore non devono finire sotto l'header fisso. */
html { scroll-padding-top: 96px; }

/* Campo trappola per i bot: tolto dal flusso, invisibile, non focalizzabile. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent-field { display: grid !important; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-bottom: 22px; font-size: 12px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.55; color: #5c6763; }
.consent-field input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--terracotta); flex: none; }
.consent-field a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.consent-field a:hover { color: var(--terracotta); }
.consent-field input:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

.form-status { display: none; margin-top: 18px; padding: 18px; font-size: 14px; line-height: 1.55; }
.form-status.visible { display: grid; gap: 9px; }
.form-status.is-success { background: #e7efe9; color: var(--forest); }
.form-status.is-error { background: #f7e9e2; color: #743a29; }
.form-status strong { font-size: 15px; }
.form-status a { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.form-status code { padding: 1px 5px; background: rgba(0,0,0,.07); font-size: 12px; }

/* ─────────────────────────────────────────────────────────────
   Mappa caricata solo su consenso
   ───────────────────────────────────────────────────────────── */

.map-consent { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 42px; background: var(--cream); text-align: left; }
.map-consent strong { font: 400 26px/1.15 var(--serif); color: var(--forest); letter-spacing: -.02em; }
.map-consent p { margin: 0; max-width: 42ch; color: #5c6763; font-size: 13px; line-height: 1.6; }
.map-consent p a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }
.map-consent .outline-button { align-self: start; }
.map-consent small { color: #7b837f; font-size: 11px; line-height: 1.5; max-width: 40ch; }

/* ─────────────────────────────────────────────────────────────
   Footer: CIN e link legali
   ───────────────────────────────────────────────────────────── */

.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; color: rgba(255,255,255,.48); font-size: 11px; }
.footer-legal span { text-transform: uppercase; letter-spacing: .1em; }
.footer-legal strong { color: rgba(255,255,255,.82); font-weight: 500; letter-spacing: .06em; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: rgba(255,255,255,.85); }

/* La barra fissa è ridondante quando il modulo è già sullo schermo. */
body.booking-in-view .mobile-book { transform: translateY(120%); pointer-events: none; }

@media (max-width: 620px) {
  html { scroll-padding-top: 76px; }
  .map-consent { padding: 28px 22px; gap: 12px; }
  .map-consent strong { font-size: 22px; }
}

/* ─────────────────────────────────────────────────────────────
   Pagina legale (informativa privacy e cookie)
   ───────────────────────────────────────────────────────────── */

.legal-page { background: var(--paper); }
.legal-page .site-header { position: sticky; }
.legal { padding: 150px 7vw 110px; max-width: 1180px; margin: 0 auto; }
.legal-head { padding-bottom: 46px; border-bottom: 1px solid var(--line); }
.legal h1 { font: 400 clamp(44px, 6vw, 82px)/.98 var(--serif); letter-spacing: -.045em; margin: 26px 0 0; }
.legal h1 em { font-style: italic; color: var(--terracotta); }
.legal-updated { margin: 26px 0 0; color: #7b837f; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.legal-body { max-width: 74ch; margin-top: 64px; color: #47524e; font-size: 16px; line-height: 1.78; }
.legal-lead { font: 400 21px/1.6 var(--serif); color: var(--ink); }
.legal-body section { margin-top: 62px; }
.legal h2 { font: 400 clamp(26px, 3vw, 34px)/1.15 var(--serif); color: var(--forest); letter-spacing: -.025em; margin: 0 0 22px; }
.legal h3 { margin: 38px 0 12px; color: var(--ink); font-size: 15px; font-weight: 600; }
.legal p { margin: 0 0 18px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--terracotta); }
.legal code { padding: 2px 6px; background: var(--cream); font-size: 13px; }
.legal-cin { padding: 14px 18px; background: var(--cream); border-left: 3px solid var(--terracotta); }
.legal-note { padding: 16px 18px; background: var(--cream); font-size: 14px; }

.legal-list { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.legal-list li { padding: 16px 0 16px 26px; border-bottom: 1px solid var(--line); position: relative; }
.legal-list li::before { content: "—"; position: absolute; left: 0; color: var(--terracotta); }

.legal-table { margin: 0 0 22px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-table > div { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.legal-table > div:first-child { color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.legal-back { display: inline-flex; gap: 12px; align-items: center; margin-top: 80px; }

@media (max-width: 900px) {
  .legal { padding: 120px 20px 80px; }
  .legal-body { margin-top: 44px; font-size: 15px; }
  .legal-body section { margin-top: 48px; }
  .legal-table > div { grid-template-columns: 1fr; gap: 6px; }
  .legal-table > div:first-child { display: none; }
  .legal-table > div span::before { display: block; color: var(--terracotta); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
  .legal-table > div span:nth-child(1)::before { content: "Finalità"; }
  .legal-table > div span:nth-child(2)::before { content: "Base giuridica"; }
  .legal-table > div span:nth-child(3)::before { content: "Conservazione"; }
}

/* Avviso sui costi non inclusi nel totale (imposta di soggiorno). */
.stay-disclosure { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 30px 0 0; padding: 16px 18px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; max-width: 560px; }
.stay-disclosure strong { color: white; font-weight: 500; }
.stay-disclosure b { display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font: 400 12px/1 var(--serif); font-style: italic; }

/* ─────────────────────────────────────────────────────────────
   Pagina 404
   ───────────────────────────────────────────────────────────── */

.not-found { display: flex; flex-direction: column; align-items: start; gap: 22px; max-width: 900px; margin: 0 auto; padding: 190px 7vw 130px; }
.not-found h1 { margin: 6px 0 0; font: 400 clamp(46px, 7vw, 92px)/.98 var(--serif); letter-spacing: -.045em; }
.not-found h1 em { font-style: italic; color: var(--terracotta); }
.not-found > p { margin: 0; max-width: 46ch; color: #57625e; font-size: 17px; line-height: 1.75; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
/* .button-accent nasce a larghezza piena per il modulo di prenotazione:
   qui affianca un secondo pulsante, quindi torna a misura del testo. */
.not-found-links .button-accent { width: auto; margin-top: 0; }
.not-found-map { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; }
.not-found-map a { color: #65706c; border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .25s ease, border-color .25s ease; }
.not-found-map a:hover { color: var(--forest); border-color: currentColor; }

@media (max-width: 620px) {
  .not-found { padding: 130px 20px 90px; }
  .not-found > p { font-size: 15px; }
  .not-found-links { width: 100%; }
  .not-found-links > a { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   Selettore di lingua
   ───────────────────────────────────────────────────────────── */

/* Piccolo e defilato: è un'uscita di servizio, non una voce di menu.
   Chi ne ha bisogno lo cerca; chi è già nella lingua giusta lo ignora. */
.lang-switch { padding: 5px 11px; border: 1px solid currentColor; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .1em; opacity: .62; transition: opacity .25s ease, background .25s ease, color .25s ease; }
.lang-switch:hover { opacity: 1; }
.site-header:not(.scrolled) .lang-switch:hover { color: var(--forest); background: white; }
.site-header.scrolled .lang-switch:hover { color: var(--paper); background: var(--forest); }
/* Il sottolineato animato delle altre voci qui stonerebbe sul bordo. */
nav a.lang-switch::after { display: none; }

@media (max-width: 900px) {
  /* Nel menu a tutto schermo diventa una voce come le altre, ma resta
     distinta dal bordo e più piccola del resto. */
  nav .lang-switch { align-self: start; margin-top: 18px; padding: 9px 20px; font-size: 13px; letter-spacing: .12em; opacity: .75; }
}

/* ─────────────────────────────────────────────────────────────
   Motore Smoobu: altezza contenuta su desktop
   ───────────────────────────────────────────────────────────── */

/* Smoobu mette l'intero flusso — ricerca, form contatti, condizioni,
   consenso — in una pagina sola, e il suo iframe-resizer la misura tutta:
   oltre 3000px. Su desktop, dentro un pannello affiancato al testo, è una
   colonna sproporzionata che sfonda la pagina.

   Invece di combattere con l'iframe (che si ridimensiona da sé), limitiamo
   il CONTENITORE e lo lasciamo scorrere al suo interno: l'iframe resta
   alto quanto vuole, il pannello resta una scheda di dimensioni sensate.
   `overscroll-behavior` impedisce che, arrivati in fondo, lo scorrimento
   prosegua sulla pagina sottostante. */
@media (min-width: 901px) {
  .smoobu-slot[data-ready="true"] {
    max-height: min(780px, calc(100svh - 140px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

/* Su mobile non si tocca: una colonna sola che scorre con la pagina è il
   comportamento naturale di qualsiasi modulo lungo, e due aree di
   scorrimento annidate su schermo piccolo sono solo un fastidio. */

/* ─────────────────────────────────────────────────────────────
   Blocco «Con i bambini» e «Sui balconi»
   ───────────────────────────────────────────────────────────── */

/* Erano due righe in fondo a un elenco di sei ed è esattamente lì che
   sparivano: la dotazione per bambini è il tratto distintivo più forte
   della casa e merita spazio proprio, non una riga fra le altre. */
.living-band { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 90px; }
.living-band article { padding: 46px; background: var(--cream); }
.living-band h3 { margin: 20px 0 20px; font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--serif); letter-spacing: -.03em; color: var(--forest); }
.living-band p { margin: 0; max-width: 46ch; color: #57625e; font-size: 16px; line-height: 1.7; }

.living-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 26px 0 0; }
.living-list li { padding: 7px 15px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: var(--ink); background: var(--paper); }

.living-band-accent { background: var(--forest) !important; }
.living-band-accent h3 { color: white; }
.living-band-accent p { color: rgba(255,255,255,.72); }
.living-band-accent .card-kicker { color: #dda183; }

@media (max-width: 900px) {
  .living-band { grid-template-columns: 1fr; margin-top: 60px; }
  .living-band article { padding: 34px 28px; }
}
@media (max-width: 620px) {
  .living-band article { padding: 30px 22px; }
  .living-band p { font-size: 15px; }
}
