:root {
  --forest: #283e35;
  --sage: #78877a;
  --terracotta: #a3604b;
  --ivory: #f8f6f1;
  --sand: #eeeae2;
  --charcoal: #292f2b;
  --muted: #626a63;
  --line: #dcded5;
  --white: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font: 16px/1.75 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
body.cookie-dialog-open { overflow: hidden; }
.whatsapp-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 35; display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid var(--white); border-radius: 50%; background: #187c45; color: var(--white); box-shadow: 0 4px 18px #15231c40; transition: background .2s, transform .2s; }
.whatsapp-float:hover { background: #126238; transform: translateY(-2px); }
.whatsapp-float svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp-float .whatsapp-phone { fill: currentColor; stroke: none; }
/* Keep footer links and focusable content clear of the floating contact shortcut. */
body:has(.whatsapp-float) .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.whatsapp-contact { margin-top: 24px; }
.whatsapp-contact .button { gap: 10px; }
.whatsapp-contact .contact-phone { display: inline-block; margin-top: 12px; overflow-wrap: anywhere; }
.footer-legal button { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.cookie-dialog { width: min(700px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--sage); border-radius: 12px; background: var(--ivory); color: var(--charcoal); box-shadow: 0 24px 90px #15231c40; }
.cookie-dialog::backdrop { background: #15231c8c; }
.cookie-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-heading .eyebrow { margin: 0; }
.cookie-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--forest); font-size: 1.6rem; }
.cookie-dialog h2 { margin: 12px 0 16px; color: var(--forest); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; }
.cookie-dialog h2:focus { outline: none; }
.cookie-dialog p { font-size: .9rem; line-height: 1.6; }
.cookie-provider-note { padding: 12px 16px; background: var(--sand); border-left: 3px solid var(--terracotta); }
.cookie-categories { min-width: 0; padding: 0; margin: 20px 0; border: 0; }
.cookie-categories legend { margin-bottom: 8px; font-size: .88rem; font-weight: 600; }
.cookie-category { display: flex; align-items: flex-start; gap: 14px; min-height: 60px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cookie-category input { flex-shrink: 0; width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--forest); }
.cookie-category strong, .cookie-category small { display: block; }
.cookie-category strong { font-size: .95rem; }
.cookie-category small { margin-top: 2px; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cookie-actions .button { gap: 0; padding: 12px 8px; font-size: .85rem; }
.cookie-dialog .cookie-links { margin: 20px 0 12px; }
.cookie-links a { display: inline-block; padding-block: 6px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-dialog .cookie-small { margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.cookie-storage-status:not([hidden]) { position: fixed; z-index: 40; right: 16px; bottom: 16px; left: 16px; max-width: 700px; margin: 0 auto; padding: 16px; border: 1px solid var(--sage); background: var(--ivory); color: var(--forest); box-shadow: 0 4px 20px #15231c20; }
@media (max-width: 500px) {
  .cookie-dialog { padding: 20px; }
  .cookie-actions { grid-template-columns: minmax(0, 1fr); }
}
h1, h2, h3, .brand { font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif; font-weight: 400; }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 5px; }
::selection { background: #d9e0d6; }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.section { padding: 104px 0; }
.section--sand { background: var(--sand); }
.eyebrow { display: block; margin-bottom: 20px; color: var(--terracotta); font-size: .68rem; font-weight: 600; letter-spacing: .21em; line-height: 1.6; text-transform: uppercase; }
.section-title { max-width: 760px; margin-bottom: 28px; color: var(--forest); font-size: clamp(2.2rem, 3.6vw, 3.7rem); line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
.section-intro { max-width: 580px; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.section-heading .section-title { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 24px; padding: 10px 0; border-bottom: 1px solid var(--sage); color: var(--forest); font-size: .82rem; font-weight: 600; }
.text-link::after { content: '↗'; font-size: 1.2rem; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 12px 24px; background: var(--white); color: var(--forest); }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; z-index: 30; top: 0; background: rgba(248,246,241,.97); border-bottom: 1px solid var(--line); }
.nav { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex-shrink: 0; color: var(--forest); font-size: 1.35rem; line-height: 1.2; }
.brand small { display: block; margin-top: 7px; color: var(--terracotta); font: 500 .6rem/1.5 'Segoe UI', Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.brand--logo { width: 225px; height: 94px; display: flex; align-items: center; }
.brand--logo img { width: 100%; height: 100%; object-fit: contain; }
.menu { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 25px); }
.menu > a { position: relative; padding-block: 12px; font-size: 1rem; font-weight: 600; white-space: nowrap; }
.menu > a:not(.nav-contact)::after { content: ''; position: absolute; bottom: 5px; left: 0; width: 0; height: 1px; background: var(--terracotta); transition: width .2s; }
.menu > a:hover::after, .menu > a[aria-current='page']::after { width: 100%; }
.menu > a.nav-contact { padding: 10px 20px; background: var(--forest); color: var(--white); }
.language-switch { display: inline-flex; gap: 2px; padding-left: 10px; border-left: 1px solid var(--line); }
.language-switch a { display: inline-flex; justify-content: center; align-items: center; min-width: 32px; min-height: 44px; color: var(--muted); font-size: .8125rem; }
.language-switch a.is-active { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: none; color: var(--forest); font-size: 1.2rem; }
.hero { padding: 56px 0 64px; }
.hero-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 86px); align-items: center; }
.hero-content { padding-block: 28px; }
.hero h1 { margin-bottom: 28px; color: var(--forest); font-size: clamp(3.3rem, 5.6vw, 6rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.hero .hero-location { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--sage); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hero-location::before { content: ''; width: 32px; height: 1px; background: var(--sage); }
.hero p { max-width: 440px; color: var(--muted); font-size: .95rem; }
.hero-image { position: relative; min-width: 0; margin: 0; }
.hero-image::before { position: absolute; z-index: -1; top: -15px; right: -15px; bottom: 30px; left: 40px; border: 1px solid #c8cfc3; content: ''; }
.hero-image > figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 15px; color: var(--muted); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.hero.hero--home { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 640px; padding: 72px 0; background: var(--sand) url('home/hero_16_residence_lucca.webp') center center / cover no-repeat; }
.hero--home::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(90deg, rgba(248,246,241,.96), rgba(248,246,241,.88) 25%, rgba(248,246,241,.45) 46%, rgba(248,246,241,0) 70%); }
.hero--home .hero-layout { display: block; }
.hero--home .hero-content { max-width: 600px; padding: 0; }
.hero--home h1 { font-size: clamp(3.3rem, 5vw, 5rem); }
.hero--home p { max-width: 460px; color: #3b483f; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 25px; min-height: 50px; padding: 14px 24px; border: 1px solid var(--forest); background: var(--forest); color: var(--white); font-size: .76rem; font-weight: 500; line-height: 1.4; transition: background .2s, border-color .2s; }
.button:hover { background: #3d5548; border-color: #3d5548; }
.button--outline { background: transparent; color: var(--forest); }
.button--outline:hover { background: var(--forest); color: var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { display: flex; align-items: center; gap: 15px; padding: 6px 25px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border: 0; }
.fact strong { color: var(--forest); font-family: Georgia, serif; font-size: 1.9rem; font-weight: 400; }
.fact span { color: var(--muted); font-size: .74rem; }
.fact svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--sage); stroke-width: 1.3; }
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 28px 0; border-top: 1px solid var(--line); }
.service-icon { display: block; width: 112px; height: 112px; margin: 0 0 20px; object-fit: contain; }
.fact .service-icon { width: 64px; height: 64px; margin: 0; flex-shrink: 0; }
.feature .number { display: block; margin-bottom: 25px; color: var(--terracotta); font-size: .72rem; letter-spacing: .12em; }
.feature h3 { margin-bottom: 12px; color: var(--forest); font-size: 1.7rem; line-height: 1.2; }
.feature p { margin: 0; color: var(--muted); font-size: .91rem; }
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.image-frame { overflow: hidden; min-width: 0; }
.image-frame img { height: auto; object-fit: contain; }
.image-text p { color: var(--muted); font-size: .94rem; }
.list { display: grid; gap: 12px; padding: 0; margin: 25px 0; list-style: none; }
.list li { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: .9rem; }
.list li::before { content: '+'; margin-right: 15px; color: var(--terracotta); }
.page-hero { padding: 72px 0 60px; border-bottom: 1px solid var(--line); background: var(--sand); }
.page-hero h1 { max-width: 880px; margin-bottom: 24px; color: var(--forest); font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: 1.1; letter-spacing: -.04em; text-wrap: balance; }
.page-hero p { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: .98rem; }
.page-hero.rules-hero, .page-hero.amenities-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: max(360px, calc((100svh - 100px) / 2)); padding: 60px 0; background: var(--sand) url('hero/banner_regole_casa.webp') center / cover no-repeat; }
.page-hero.amenities-hero { background-image: url('hero/hero_17_comfort_inclusi.webp'); }
.rules-hero::before, .amenities-hero::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(90deg, rgba(248,246,241,.85), rgba(248,246,241,.65) 35%, rgba(248,246,241,0) 70%); }
.rules-hero h1, .amenities-hero h1 { max-width: 650px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.rules-hero p, .amenities-hero p { max-width: 490px; color: #3b483f; }
.apartment-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: max(360px, calc((100svh - 100px) / 2)); padding: 40px 0 110px; overflow: hidden; background: var(--ivory); }
.apartment-hero-background, .apartment-hero-slide { position: absolute; inset: 0; }
.apartment-hero-background { z-index: -2; }
.apartment-hero-slide { background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity 1.6s ease-in-out; }
.apartment-hero-slide.is-active { opacity: 1; }
.apartment-hero-slide--living { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_03_soggiorno_cucina.webp'); }
.apartment-hero-slide--bedroom { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_04_camera_matrimoniale.webp'); }
.apartment-hero-slide--small-bedroom { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_11_camera_singola.webp'); }
.apartment-hero-slide--bathroom { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_13_bagno_lavabo.webp'); }
.apartment-hero-slide--entrance { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_14_ingresso_disimpegno.webp'); }
.apartment-hero-slide--attic-detail { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_15_mansarda_dettaglio.webp'); }
.apartment-hero::before { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(248,246,241,.92), rgba(248,246,241,.82) 24%, rgba(248,246,241,.35) 48%, rgba(248,246,241,0) 72%); content: ''; }
.apartment-hero h1 { max-width: 650px; font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 16px; }
.apartment-hero p { max-width: 490px; color: #3b483f; font-size: 1.05rem; }
.apartment-hero-content { position: relative; }
.hero-slider-controls { position: absolute; right: 0; bottom: 32px; left: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hero-slider-controls[hidden] { display: none; }
.hero-slider-pages { display: flex; gap: 12px; }
.hero-slider-controls button { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 16px; border: 1px solid rgba(40,62,53,.3); background: rgba(248,246,241,.93); color: var(--forest); font-size: .75rem; }
.hero-slider-controls [aria-pressed='true'] { border-color: var(--forest); background: var(--forest); color: var(--white); }
.hero-slider-controls .hero-slider-pause { flex-shrink: 0; }
.apartment-hero--extended .hero-slider-pages { gap: 6px; }
.apartment-hero--extended .hero-slider-pages button { justify-content: center; min-width: 44px; padding-inline: 10px; }
.apartment-hero--extended .hero-slider-pages span { display: none; }
.page-hero.location-hero { min-height: max(360px, calc((100svh - 100px) / 2)); padding: 40px 0 110px; }
.location-hero h1 { max-width: 650px; font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: 16px; }
.location-hero p { max-width: 520px; font-size: .98rem; }
.location-hero .apartment-hero-slide { background-position: center 35%; }
.location-hero .hero-slider-pages { gap: 6px; }
.location-hero .hero-slider-pages button { justify-content: center; min-width: 44px; padding-inline: 10px; }
.location-hero .hero-slider-pages span { display: none; }
.location-slide--guinigi { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_01_lucca_torre_guinigi.webp'); }
.location-slide--anfiteatro { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_02_piazza_anfiteatro.webp'); }
.location-slide--mura { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_06_mura_di_lucca.webp'); }
.location-slide--san-michele { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_07_san_michele_in_foro.webp'); }
.location-slide--duomo { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_08_duomo_san_martino.webp'); }
.location-slide--san-frediano { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_09_basilica_san_frediano.webp'); }
.location-slide--comics { background-image: url('hero/Residence_le_Tortore_Hero_fondi/hero_10_lucca_comics.webp'); }
/* Natural proportions: no fixed-height crop, including gallery thumbnails. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; align-items: start; }
.gallery figure { min-width: 0; width: 100%; margin: 0; }
.gallery img { width: 100%; height: auto; object-fit: contain; }
.gallery figcaption { padding: 10px 0 0; color: var(--muted); font-size: .75rem; }
.living-intro { max-width: 800px; }
.living-intro p { color: var(--muted); font-size: .94rem; }
.gallery.living-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.photo-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: var(--sand); text-align: left; }
.photo-button img { width: 100%; height: auto; object-fit: contain; transition: filter .25s; }
.photo-button:hover img { filter: brightness(.91); }
.photo-button::after { content: '↗'; position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; background: rgba(248,246,241,.94); color: var(--forest); font-size: 1.2rem; }
.gallery-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-preview figure { margin-bottom: 0; }
.gallery-tip { display: block; margin-bottom: 28px; color: var(--muted); font-size: .8rem; }
.stay-banner { padding: 72px 0; background: var(--forest); color: var(--ivory); }
.stay-banner .container { display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.stay-banner .eyebrow { color: #d1c5ae; }
.stay-banner h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.15; }
.stay-banner .button { flex-shrink: 0; background: var(--ivory); color: var(--forest); border-color: var(--ivory); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.contact-card { padding: 36px; background: var(--forest); color: var(--ivory); }
.contact-card h2 { margin-bottom: 25px; font-size: 2.2rem; line-height: 1.2; }
.contact-card p { color: #e0e5dc; font-size: .92rem; }
.contact-card a { padding-bottom: 5px; border-bottom: 1px solid #a7b1a2; font-size: .85rem; }
.contact-card a[href^='mailto:'] { overflow-wrap: anywhere; }
.form { padding: 36px; border: 1px solid var(--line); background: #fdfcf9; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
label { display: block; margin-bottom: 22px; color: var(--forest); font-size: .76rem; font-weight: 500; }
input, textarea, select { width: 100%; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--charcoal); }
textarea { min-height: 140px; resize: vertical; }
.form-note, .form-status { color: var(--muted); font-size: .8rem; }
.form-status { padding: 15px; border-left: 2px solid var(--terracotta); background: var(--sand); }
.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-retry { margin-top: 12px; }
.form-retry[hidden] { display: none; }
.form button:disabled { opacity: .6; cursor: not-allowed; }
.form-privacy { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 0; font-size: .85rem; line-height: 1.6; cursor: pointer; }
.form-privacy input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; accent-color: var(--forest); cursor: pointer; }
.form-privacy a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.form-privacy input:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.notice { padding: 24px 28px; border-left: 2px solid var(--terracotta); background: var(--sand); color: var(--charcoal); font-size: .91rem; }
.site-footer { padding: 58px 0 24px; border-top: 1px solid var(--line); background: #eaece4; color: var(--forest); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 64px; }
.site-footer .brand--logo { margin-top: -20px; margin-left: -20px; }
.site-footer p { max-width: 320px; margin-top: 12px; color: var(--muted); font-size: .82rem; }
.site-footer h3 { margin-bottom: 16px; font: 600 .68rem/1.6 'Segoe UI', Arial, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer a:not(.brand) { font-size: .81rem; }
.site-footer a:hover { color: var(--terracotta); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; margin-top: 40px; border-top: 1px solid #cfd5c9; color: var(--muted); font-size: .7rem; }
.footer-bottom { flex-wrap: wrap; align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.legal-content { max-width: 900px; }
.legal-content section + section { margin-top: 40px; }
.legal-content h2 { margin-bottom: 18px; color: var(--forest); font-size: clamp(1.55rem, 2.5vw, 2rem); line-height: 1.25; }
.legal-content p, .legal-content li, .legal-content address { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.legal-content address { padding: 24px; margin-bottom: 22px; border-left: 2px solid var(--terracotta); background: var(--sand); font-style: normal; }
.legal-content ul { padding-left: 24px; }
.legal-content li + li { margin-top: 12px; }
.legal-content a, .form-note a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.legal-content .legal-updated { margin-bottom: 28px; font-size: .8rem; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #15201bf5; color: white; }
.lightbox::backdrop { background: #15201b; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox-top, .lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 28px; }
.lightbox-top { font-size: .75rem; letter-spacing: .08em; }
.lightbox-top a { text-decoration: underline; text-underline-offset: 4px; }
.lightbox button { min-width: 48px; min-height: 48px; border: 1px solid #ffffff50; background: transparent; color: white; font-size: 1.3rem; }
.lightbox-toolbar { display: flex; gap: 20px; align-items: center; }
.lightbox-stage { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 16px; align-items: center; min-height: 0; padding: 0 28px; }
.lightbox-stage img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.lightbox-caption { margin: 0; font-size: .85rem; }
.lightbox-counter { flex-shrink: 0; color: #c5cec5; font-size: .75rem; }
@media (min-width: 1500px) { .hero-layout { grid-template-columns: .85fr 1.15fr; } }
@media (max-width: 1100px) {
  .container { width: calc(100% - 56px); }
  .nav { gap: 16px; }
  .brand--logo { width: 150px; }
  .menu { gap: 10px; }
  .menu > a { font-size: .9375rem; }
  .menu > a.nav-contact { padding-inline: 14px; }
  .hero-layout { gap: 35px; }
  .fact { padding-inline: 15px; }
}
@media (max-width: 900px) {
  .apartment-hero { min-height: max(360px, calc((100svh - 84px) / 2)); }
  .nav { min-height: 84px; }
  .brand--logo { width: 210px; height: 82px; }
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 84px; right: 0; left: 0; max-height: calc(100dvh - 84px); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 5px; padding: 24px 28px; border-bottom: 1px solid var(--line); background: var(--ivory); }
  .menu.is-open { display: flex; }
  .menu > a { padding: 10px 0; font-size: .9rem; }
  .menu > a.nav-contact { text-align: center; margin-block: 8px; }
  .language-switch { align-self: flex-start; padding-left: 0; border: 0; }
  .hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); }
  .hero-layout { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(3) { padding-left: 0; }
  .section { padding: 72px 0; }
  .grid.amenities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
  .amenities-grid .feature { min-width: 0; }
  .image-text { gap: 32px; }
  .contact-layout { gap: 24px; }
  .form, .contact-card { padding: 25px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { gap: 30px; }
}
@media (max-width: 650px) {
  .page-hero.rules-hero, .page-hero.amenities-hero { min-height: max(360px, calc((100svh - 84px) / 2)); padding: 48px 0; background-position: 62% center; }
  .page-hero.rules-hero h1, .page-hero.amenities-hero h1 { font-size: 2.1rem; }
  .rules-hero::before, .amenities-hero::before { background: linear-gradient(90deg, rgba(248,246,241,.94), rgba(248,246,241,.82) 55%, rgba(248,246,241,.4)); }
  .hero.hero--home { min-height: 600px; padding: 48px 0; background-position: 62% center; }
  .hero--home::before { background: linear-gradient(90deg, rgba(248,246,241,.94), rgba(248,246,241,.83) 55%, rgba(248,246,241,.45)); }
  .page-hero.apartment-hero { min-height: max(360px, calc((100svh - 84px) / 2)); padding: 32px 0 86px; }
  .page-hero.apartment-hero h1 { font-size: 2.1rem; }
  .page-hero.location-hero { min-height: max(360px, calc((100svh - 84px) / 2)); padding: 32px 0 132px; }
  .page-hero.location-hero h1 { font-size: 2.1rem; }
  .location-hero .apartment-hero-slide { background-position: 68% center; }
  .location-hero .hero-slider-controls { flex-direction: column; align-items: flex-start; gap: 10px; bottom: 16px; }
  .location-hero .hero-slider-pages { gap: 4px; }
  .location-hero .hero-slider-pages button { min-width: 36px; padding-inline: 6px; }
  .apartment-hero-slide { background-position: 62% center; }
  .apartment-hero::before { background: linear-gradient(90deg, rgba(248,246,241,.94), rgba(248,246,241,.83) 45%, rgba(248,246,241,.4)), linear-gradient(0deg, rgba(248,246,241,.5), transparent 35%); }
  .apartment-hero h1 { max-width: 500px; }
  .hero-slider-controls { bottom: 24px; gap: 8px; }
  .hero-slider-pages { gap: 8px; }
  .hero-slider-pages button { min-width: 44px; padding-inline: 12px; }
  .apartment-hero--extended .hero-slider-pages { gap: 4px; }
  .apartment-hero--extended .hero-slider-pages button { min-width: 32px; padding-inline: 6px; }
  .apartment-hero--extended .hero-slider-pause { justify-content: center; width: 44px; padding-inline: 6px; font-size: 0; }
  .apartment-hero--extended .hero-slider-pause::after { content: '⏸'; font-size: 1rem; }
  .apartment-hero--extended[data-playing='false'] .hero-slider-pause::after { content: '▶'; }
  .hero-slider-pages button span { display: none; }
  .container { width: calc(100% - 40px); }
  .hero { padding: 32px 0 36px; }
  .hero-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-content { padding: 0; }
  .hero h1 { max-width: 500px; font-size: clamp(3rem, 10.5vw, 4.6rem); }
  .hero p { max-width: none; }
  .hero-image::before { right: -7px; top: -7px; }
  .hero-image > figcaption { letter-spacing: .04em; font-size: .61rem; }
  .actions { gap: 16px; }
  .facts { padding-block: 22px; }
  .fact { gap: 10px; padding-inline: 8px; min-width: 0; }
  .fact .service-icon { width: 48px; height: 48px; }
  .fact span { font-size: .7rem; }
  .fact strong { font-size: 1.6rem; }
  .section { padding: 58px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 28px; }
  .grid-3, .grid-2, .image-text, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .grid { gap: 10px; }
  .feature { padding-block: 24px; }
  .grid.amenities-grid { gap: 12px 16px; }
  .amenities-grid .feature { padding-block: 20px; }
  .amenities-grid h3 { font-size: clamp(1.15rem, 4vw, 1.45rem); hyphens: auto; overflow-wrap: anywhere; }
  .amenities-grid p { font-size: .85rem; line-height: 1.65; }
  .feature .number { margin-bottom: 14px; }
  .page-hero { padding: 48px 0; }
  .page-hero h1 { font-size: clamp(2.5rem, 9vw, 3.4rem); }
  .gallery { grid-template-columns: 1fr; gap: 28px; }
  .gallery.living-gallery { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: 1fr; gap: 22px; }
  .gallery-preview figure:nth-child(2) { margin-top: 0; }
  .gallery-preview figure { margin-bottom: 0; }
  .stay-banner { padding: 48px 0; }
  .stay-banner .container { flex-direction: column; align-items: start; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .lightbox-top, .lightbox-bottom { padding: 12px 16px; gap: 12px; }
  .lightbox-stage { grid-template-columns: 40px minmax(0, 1fr) 40px; padding: 0 6px; gap: 4px; }
  .lightbox-stage button { min-width: 40px; min-height: 48px; }
  .lightbox-top > span { display: none; }
  .lightbox-toolbar { justify-content: space-between; width: 100%; }
}
/* On narrow screens the illustration has its own unobstructed band.
   Text and slider controls sit below it on solid ivory, rather than washing
   out a tall, heavily cropped background with an opaque overlay. */
@media (max-width: 900px) {
  .hero.hero--home, .page-hero.apartment-hero, .page-hero.location-hero,
  .page-hero.rules-hero, .page-hero.amenities-hero {
    --mobile-hero-art-height: clamp(190px, 56.25vw, 340px);
    min-height: 0;
    padding: calc(var(--mobile-hero-art-height) + 28px) 0 32px;
    background-color: var(--ivory);
    background-size: 0 0;
  }
  .hero.hero--home, .page-hero.rules-hero, .page-hero.amenities-hero { display: block; }
  .hero--home::before, .rules-hero::before, .amenities-hero::before {
    inset: 0 0 auto;
    height: var(--mobile-hero-art-height);
    background-color: var(--sand);
    background-image: inherit;
    background-size: cover;
    background-position: 70% center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--line);
  }
  .hero--home .hero-content { max-width: none; }
  .hero--home h1 { font-size: clamp(2.5rem, 7vw, 3.4rem); }
  .hero--home p { max-width: 650px; }
  .page-hero.apartment-hero, .page-hero.location-hero {
    justify-content: flex-start;
    padding-top: calc(var(--mobile-hero-art-height) + 12px);
  }
  .apartment-hero-background { bottom: auto; height: var(--mobile-hero-art-height); }
  .apartment-hero-slide, .location-hero .apartment-hero-slide { background-position: 70% center; }
  .apartment-hero::before { display: none; }
  .page-hero.apartment-hero h1, .page-hero.location-hero h1,
  .page-hero.rules-hero h1, .page-hero.amenities-hero h1 { font-size: clamp(2.1rem, 5vw, 2.7rem); }
  .apartment-hero-content p, .rules-hero p, .amenities-hero p { max-width: 650px; }
  .apartment-hero .hero-slider-controls {
    position: static;
    order: -1;
    margin-top: 0;
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}