/* Appartamento Le Palme — "Sentirsi a casa, altrove"
   Foglio di stile unico, mobile-first. Nessuna build: si modifica e si carica. */

/* Font ospitati nel sito (Google Fonts, licenza SIL OFL), solo sottoinsieme latino */
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/fraunces-italic-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/fraunces-normal-200.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/fraunces-normal-200.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-tight-normal-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-tight-normal-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --espresso: #4a382d;
  --espresso-deep: #2e231c;
  --ivory: #f5efe6;
  --ivory-deep: #efe6d9;
  --travertine: #d9cbb8;
  --palm: #2f4a3a;
  --brass: #b08d57;
  --brass-ink: #7a5c30; /* ottone scurito per testi piccoli su avorio */
  --ink: #2a211b;
  --muted: #574a40;
  --line: rgb(74 56 45 / 0.15);
  --line-light: rgb(245 239 230 / 0.14);

  --display: "Fraunces", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: 16px;
  --max: 1440px;
}

@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { body { font-size: 18px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--travertine); color: var(--espresso-deep); }
:focus-visible { outline: 1px solid var(--brass); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 96px; }
@media (min-width: 640px) { .section { padding-block: 144px; } }

/* ---------- Tipografia editoriale ---------- */
.display { font-family: var(--display); font-weight: 300; letter-spacing: -0.02em; line-height: 0.98; }
.display em { font-style: italic; font-weight: 300; letter-spacing: -0.03em; color: var(--brass-ink); }
.dark .display em { color: var(--brass); }
.h-xl { font-size: clamp(48px, 7vw, 104px); color: var(--espresso); }
.h-lg { font-size: clamp(40px, 5.6vw, 88px); color: var(--espresso); }
.dark .h-xl, .dark .h-lg { color: var(--ivory); }

.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-ink); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--travertine); }

.numeral { font-family: var(--display); font-weight: 200; color: var(--brass); line-height: 1; }
.lead { max-width: 32rem; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.65; color: var(--muted); }
.dark .lead { color: rgb(245 239 230 / 0.86); }
.label { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dark .label { color: var(--travertine); }

.section-head { display: grid; gap: 32px; padding-bottom: 56px; }
.section-head h2 { margin-top: 24px; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .section-head .lead { justify-self: end; }
}

/* Separatore travertino: venature orizzontali sottili */
.travertine-rule { height: 9px; background:
  linear-gradient(var(--travertine), var(--travertine)) 0 0 / 100% 1px no-repeat,
  linear-gradient(90deg, transparent, rgb(176 141 87 / 0.35) 18%, transparent 34%, rgb(176 141 87 / 0.22) 61%, transparent 80%) 0 4px / 100% 1px no-repeat,
  linear-gradient(var(--travertine), var(--travertine)) 0 8px / 100% 1px no-repeat; }

/* Grana leggera su foto e fondi scuri */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.dark { color: var(--ivory); }
.bg-espresso { background: var(--espresso); }
.bg-deep { background: var(--espresso-deep); }
.bg-palm { background: var(--palm); }

/* ---------- Bottoni e campi ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-solid { background: var(--espresso); color: var(--ivory); }
.btn-solid:not(:disabled):hover { background: var(--palm); }
.btn-brass { background: var(--brass); color: var(--espresso-deep); }
.btn-brass:hover { background: var(--travertine); }
.btn-ghost { border: 1px solid currentColor; }
.btn-ghost:hover { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.dark .btn-ghost { border-color: rgb(245 239 230 / 0.5); }
.dark .btn-ghost:hover { background: var(--ivory); border-color: var(--ivory); color: var(--espresso); }

.field { width: 100%; border: 0; border-bottom: 1px solid rgb(74 56 45 / 0.28); border-radius: 0; background: transparent; padding: 10px 0 12px; font-size: 18px; color: var(--ink); transition: border-color 0.3s; -webkit-appearance: none; appearance: none; }
.field:focus { outline: none; border-bottom-color: var(--brass); }
.field::placeholder { color: rgb(107 93 82 / 0.75); }
.field:disabled { cursor: not-allowed; }
select.field { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234a382d'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 2px center no-repeat; }
textarea.field { resize: none; }

/* ---------- Animazioni di ingresso (solo con JS attivo) ---------- */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); }

/* ---------- Selettore lingua con bandiera ---------- */
.lang-toggle { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 9px; border: 1px solid rgb(245 239 230 / 0.32); border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.lang-toggle img { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgb(255 255 255 / 0.85), 0 2px 6px rgb(0 0 0 / 0.2); transition: transform 0.45s var(--ease); }
.lang-toggle:hover { background: var(--ivory); border-color: var(--ivory); color: var(--espresso); }
.lang-toggle:hover img { transform: rotate(-12deg) scale(1.1); }

/* ---------- Header: trasparente sulla hero, barra di prenotazione dopo ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: 80px; color: var(--ivory); background: linear-gradient(rgb(0 0 0 / 0.35), transparent); transition: height 0.5s var(--ease), background-color 0.5s var(--ease); }
.site-header .wrap { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-compact { height: 72px; background: rgb(46 35 28 / 0.96); box-shadow: 0 1px 0 rgb(217 203 184 / 0.12); }
.brand img { width: auto; height: 52px; filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.25)); transition: height 0.5s var(--ease); }
.is-compact .brand img { height: 46px; }
.header-nav { display: flex; align-items: center; gap: 28px; font-size: 15.5px; }
.header-links { display: none; align-items: center; gap: 28px; }
.header-links a:not(.btn) { position: relative; }
.header-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.header-links a:not(.btn):hover::after { transform: scaleX(1); }
.header-links .btn { min-height: 44px; padding: 0 22px; font-size: 15px; border-color: rgb(245 239 230 / 0.6); }
.header-links .btn:hover { background: var(--ivory); color: var(--espresso); }
.header-nav .lang-toggle { display: none; }
.menu-button { display: inline-flex; align-items: center; gap: 12px; height: 44px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.menu-button span { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.menu-button span::before, .menu-button span::after { content: ""; height: 1px; background: currentColor; }
.menu-button span::after { width: 16px; }

.booking-bar { display: none; }
@media (min-width: 640px) {
  .header-nav .lang-toggle { display: inline-flex; }
  .brand img { height: 60px; }
}
@media (min-width: 1024px) {
  .site-header { height: 88px; }
  .header-links { display: flex; }
  .site-header:not(.is-compact) .menu-button { display: none; }
  .is-compact .header-links { display: none; }

  .booking-bar { display: flex; flex: 1; justify-content: center; gap: 1px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .is-compact .booking-bar { opacity: 1; transform: none; pointer-events: auto; }
  .booking-bar label { display: flex; flex-direction: column; padding: 6px 22px; background: rgb(245 239 230 / 0.07); }
  .booking-bar label:first-child { border-radius: 999px 0 0 999px; padding-left: 28px; }
  .booking-bar label span { font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--travertine); }
  .booking-bar input, .booking-bar select { border: 0; background: transparent; font-size: 15.5px; color: var(--ivory); color-scheme: dark; }
  .booking-bar input:focus, .booking-bar select:focus { outline: none; }
  .booking-bar option { color: var(--ink); }
  .booking-bar button { height: 52px; padding: 0 24px; border-radius: 0 999px 999px 0; background: var(--brass); color: var(--espresso-deep); font-size: 15.5px; font-weight: 500; transition: background 0.3s; }
  .booking-bar button:hover { background: var(--travertine); }
}

/* Barra di prenotazione mobile, in basso */
.mobile-bar { position: fixed; inset: auto 0 0; z-index: 30; padding: 12px var(--gutter); background: rgb(46 35 28 / 0.96); border-top: 1px solid rgb(217 203 184 / 0.15); transform: translateY(100%); transition: transform 0.5s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { width: 100%; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* Menu a tutto schermo */
.site-menu { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; background: var(--espresso-deep); visibility: hidden; opacity: 0; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.site-menu.is-open { visibility: visible; opacity: 1; }
.site-menu-top { display: flex; align-items: center; justify-content: space-between; }
.site-menu-top button { height: 44px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.site-menu ol { margin-top: auto; }
.site-menu li + li { margin-top: 12px; }
.site-menu ol a { display: flex; align-items: baseline; gap: 20px; }
.site-menu ol a .numeral { width: 40px; font-size: 20px; }
.site-menu ol a .display { font-size: clamp(44px, 9vw, 96px); transition: color 0.3s; }
.site-menu ol a:hover .display { color: var(--brass); }
.site-menu > p { margin-top: 48px; font-size: 16px; color: var(--travertine); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--espresso-deep); color: var(--ivory); }
.hero { position: relative; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: hero-drift 14s var(--ease) both; }
.hero-media::before, .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero-media::before { background: linear-gradient(180deg, rgb(30 22 17 / 0.45) 0%, rgb(30 22 17 / 0.1) 35%, rgb(30 22 17 / 0.82) 100%); }
.hero-media::after { background: linear-gradient(90deg, rgb(30 22 17 / 0.55) 0%, rgb(30 22 17 / 0.15) 55%, transparent 100%); }
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-signature { position: absolute; z-index: 2; top: 112px; right: var(--gutter); display: none; font-family: var(--display); font-size: 22px; font-style: italic; font-weight: 300; color: rgb(245 239 230 / 0.85); }
.hero-content { position: relative; z-index: 2; padding-bottom: 40px; }
.hero-title-row { display: flex; align-items: flex-end; gap: 20px; margin-top: 24px; }
.hero-title-row > .numeral { display: none; font-size: clamp(64px, 9vw, 140px); }
.hero-kicker { margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--travertine); }
.hero h1 { font-size: clamp(84px, 16vw, 224px); }
.hero-bottom { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgb(245 239 230 / 0.2); }
.hero-bottom p { max-width: 32rem; font-size: 18px; line-height: 1.65; color: rgb(245 239 230 / 0.85); }
.scroll-cue { display: inline-flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.scroll-cue span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(245 239 230 / 0.5); border-radius: 50%; transition: background 0.3s, color 0.3s; }
.scroll-cue:hover span { background: var(--ivory); color: var(--espresso); }
@media (min-width: 640px) {
  .hero-signature { display: block; }
  .hero-content { padding-bottom: 56px; }
  .hero-title-row { gap: 32px; }
  .hero-title-row > .numeral { display: block; }
  .hero-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .hero-bottom p { font-size: 21px; }
  }

/* ---------- Manifesto ---------- */
.manifesto { max-width: 1100px; margin-inline: auto; padding: 96px var(--gutter); text-align: center; }
.manifesto .numeral { display: block; height: 64px; font-size: 140px; }
.manifesto p.display { margin-top: 16px; font-size: clamp(34px, 5vw, 64px); line-height: 1.12; color: var(--espresso); }
.signature { display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass-ink); }
.signature::before, .signature::after { content: ""; width: 40px; height: 1px; background: var(--brass); }
@media (min-width: 640px) { .manifesto { padding-block: 144px; } }

/* ---------- Tour della casa ---------- */
.tour { padding-bottom: 48px; }
.tour .section-head { padding-block: 64px 56px; }
.room-index { display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 64px; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.room-index a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 16px; color: var(--espresso); white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.room-index a span { font-size: 13px; color: var(--brass-ink); }
.room-index a:hover { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); }
.room-index a:hover span { color: var(--travertine); }
.room + .room { margin-top: 96px; }
.room-grid { display: grid; gap: 32px; }
.room-main { overflow: hidden; }
.room-main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.6s var(--ease); }
.room-main.is-portrait img { aspect-ratio: 4 / 5; }
.room-main:hover img { transform: scale(1.03); }
.room-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.room-text .numeral { display: block; font-size: clamp(72px, 8vw, 120px); }
.room-text h3 { margin-top: 8px; font-size: clamp(40px, 4.4vw, 64px); color: var(--espresso); }
.room-text p { max-width: 26rem; margin-top: 20px; font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; color: var(--muted); }
.room-side { display: none; }
.room-side img, .room-details img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room-details { display: flex; gap: 12px; margin: 16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.room-details li { flex: 0 0 78vw; scroll-snap-align: start; }
@media (min-width: 640px) {
  .room + .room { margin-top: 144px; }
  .room-details { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; margin: 24px 0 0; padding: 0; overflow: visible; }
  .room-details li { flex: none; }
  .tour { padding-bottom: 96px; }
  .tour .section-head { padding-block: 96px 56px; }
}
@media (min-width: 1024px) {
  .room-grid { grid-template-columns: repeat(12, 1fr); gap: 48px; }
  .room-main { grid-column: span 8; }
  .room-main img, .room-main.is-portrait img { height: 100%; min-height: 520px; aspect-ratio: auto; }
  .room-text { grid-column: span 4; }
  .room.is-flipped .room-main { order: 2; }
  .room-side { display: block; overflow: hidden; }
  .room-details { margin-top: 48px; }
  .room-details li:first-child { display: none; }
}

/* ---------- Servizi ---------- */
.amenities { padding-block: 96px; }
.amenities .wrap { display: grid; gap: 56px; }
.amenities h2 { margin-top: 24px; font-size: clamp(40px, 5vw, 72px); }
.amenities .lead { margin-top: 24px; }
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.amenity-grid li { display: flex; min-height: 160px; flex-direction: column; justify-content: space-between; gap: 24px; padding: 20px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.amenity-grid .icon { width: 42px; height: 42px; color: var(--brass); }
.amenity-grid li div { display: flex; align-items: flex-start; justify-content: space-between; }
.amenity-grid small { font-size: 12px; letter-spacing: 0.18em; color: rgb(245 239 230 / 0.45); }
.amenity-grid p { font-size: 17.5px; line-height: 1.35; }
.amenities-note { margin-top: 32px; font-size: 17px; color: rgb(245 239 230 / 0.82); }
@media (min-width: 640px) { .amenities { padding-block: 128px; } .amenity-grid { grid-template-columns: repeat(3, 1fr); } .amenity-grid li { padding: 24px; } }
@media (min-width: 1024px) { .amenities .wrap { grid-template-columns: 4fr 8fr; } .amenity-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Le dimore ---------- */
.home-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .home-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.home-card { display: flex; flex-direction: column; }
.home-card.is-soon { border: 1px solid var(--line); }
.home-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.home-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.home-card:hover .home-media img { transform: scale(1.035); }
.home-media .badge { position: absolute; top: 20px; left: 20px; z-index: 3; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.badge-on { background: var(--ivory); color: var(--palm); }
.badge-soon { border: 1px solid rgb(245 239 230 / 0.6); color: var(--ivory); }
/* Dimora 02: nessuna foto finché la casa non è pronta, solo tipografia e venature */
.soon-art { display: grid; place-items: center; background: var(--espresso-deep); }
.soon-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(172deg, transparent 0 46px, rgb(176 141 87 / 0.1) 46px 47px, transparent 47px 92px, rgb(217 203 184 / 0.06) 92px 93px); transition: transform 1.6s var(--ease); }
.soon-art .numeral { font-size: clamp(140px, 22vw, 300px); transition: transform 1.6s var(--ease); }
.home-card:hover .soon-art::before { transform: scale(1.05); }
.home-card:hover .soon-art .numeral { transform: scale(1.04); }
.home-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 32px; padding: 24px; }
.home-body-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.home-body .kicker { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-ink); }
.dark .home-body .kicker { color: var(--travertine); }
.home-body h3 { margin-top: 12px; font-size: clamp(38px, 4vw, 58px); color: var(--espresso); }
.dark .home-body h3 { color: var(--ivory); }
.home-body .numeral { font-size: 72px; }
.home-body .text { max-width: 28rem; margin-top: 16px; font-size: 18px; color: var(--muted); }
.home-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 17px; color: var(--travertine); }
.home-foot .btn { min-height: 44px; }
.waitlist-row { display: flex; align-items: flex-end; gap: 16px; }
.waitlist-row label { flex: 1; }
.waitlist-row .btn { min-height: 44px; padding: 0 20px; }
.form-note { margin-top: 12px; font-size: 16px; color: var(--muted); }
@media (min-width: 640px) { .home-body { padding: 40px; } }

/* ---------- Territorio e mappa ---------- */
.territory { padding-bottom: 96px; }
.territory .section-head { padding-block: 64px 56px; }
.map-layout { display: grid; gap: 32px; }
.map { position: relative; width: 100%; aspect-ratio: 1000 / 380; overflow: hidden; background: rgb(217 203 184 / 0.45); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; padding: 8px; transform: translate(-50%, -50%); }
.map-pin i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--espresso); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.map-pin.is-home i { width: 16px; height: 16px; background: var(--palm); box-shadow: 0 0 0 4px rgb(47 74 58 / 0.2); }
.map-pin:hover i, .map-pin.is-active i { transform: scale(1.25); box-shadow: 0 0 0 8px rgb(176 141 87 / 0.3); }
.map-pin b { position: absolute; top: 100%; left: 50%; margin-top: 2px; transform: translateX(-50%); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; white-space: nowrap; color: rgb(74 56 45 / 0.75); }
.map-pin.is-active b { color: var(--espresso); }
.map-note { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.place-list { border-top: 1px solid var(--line); }
.place-list button { display: flex; width: 100%; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); transition: color 0.3s; }
.place-list button:hover, .place-list button[aria-pressed="true"] { color: var(--espresso); }
.place-list small { width: 28px; font-size: 13px; color: var(--brass-ink); }
.place-list .display { flex: 1; font-size: 30px; line-height: 1.2; }
.place-list em { font-size: 15px; font-style: normal; letter-spacing: 0.08em; }
.place-card { margin-top: 24px; padding: 24px; background: var(--espresso); color: var(--ivory); }
.place-card .display { font-size: 36px; }
.place-card p { margin-top: 12px; font-size: 18px; color: rgb(245 239 230 / 0.8); }
.place-card a { display: inline-flex; gap: 8px; margin-top: 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--travertine); }
.place-card a:hover { color: var(--ivory); }
@media (min-width: 640px) { .territory { padding-bottom: 144px; } .territory .section-head { padding-block: 96px 56px; } .map-pin b { font-size: 14px; } }
@media (min-width: 1024px) { .map-layout { grid-template-columns: 8fr 4fr; gap: 48px; } }

/* ---------- Recensioni ---------- */
.reviews { padding-block: 96px; }
.review-grid { display: grid; gap: 24px; }
.review-grid li { display: flex; min-height: 288px; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--line-light); }
.review-grid .numeral { font-size: 48px; }
.review-lines { flex: 1; margin-top: 16px; }
.review-lines span { display: block; height: 12px; margin-bottom: 12px; background: rgb(245 239 230 / 0.1); }
.review-lines span:nth-child(2) { width: 92%; }
.review-lines span:nth-child(3) { width: 75%; }
.review-meta { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 17px; }
.review-meta small { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(245 239 230 / 0.6); }
@media (min-width: 640px) { .reviews { padding-block: 128px; } }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Prenota direttamente ---------- */
.book-grid { display: grid; gap: 64px; }
.book-grid h2 { margin-top: 24px; }
.book-grid .lead { margin-top: 24px; }
.perks { margin-top: 48px; border-top: 1px solid var(--line); }
.perks li { display: flex; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.perks .numeral { font-size: 44px; }
.perks h3 { font-size: 30px; color: var(--espresso); line-height: 1.2; }
.perks p { margin-top: 6px; font-size: 18px; color: var(--muted); }
.book-panel { padding: 24px; background: var(--ivory-deep); }
.booking-form { display: grid; gap: 28px; }
.booking-form .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.booking-form .actions svg { width: 20px; height: 20px; }
.booking-form .form-note { margin: 0; }
@media (min-width: 640px) { .book-panel { padding: 40px; } .booking-form { grid-template-columns: 1fr 1fr; } .booking-form .wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .book-grid { grid-template-columns: 5fr 7fr; gap: 48px; } .book-panel { padding: 56px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 112px; background: var(--espresso-deep); color: var(--ivory); }
.footer-grid { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-grid img { width: auto; height: 80px; }
.footer-grid .display { margin-top: 24px; font-size: 24px; font-style: italic; color: var(--travertine); }
.footer-grid address, .footer-grid ul, .footer-grid dl { margin-top: 16px; font-size: 18px; font-style: normal; line-height: 1.7; }
.footer-grid dl div { display: flex; gap: 8px; font-size: 17px; }
.footer-grid a:hover { color: var(--brass); }
.footer-grid .maps { display: inline-block; margin-top: 12px; font-size: 16px; color: var(--travertine); }
.soon { color: rgb(245 239 230 / 0.6); }
.footer-bottom { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; font-size: 14.5px; letter-spacing: 0.06em; color: rgb(245 239 230 / 0.7); }
.footer-bottom div { display: flex; align-items: center; gap: 24px; }
.footer-bottom a.top { letter-spacing: 0.2em; text-transform: uppercase; }
.footer-bottom a.top:hover { color: var(--ivory); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer { padding-bottom: 48px; } .footer-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Pagina 404 ---------- */
.not-found { display: grid; min-height: 100vh; min-height: 100svh; place-items: center; padding: 48px 24px; text-align: center; }
.not-found img { width: auto; height: 80px; margin-inline: auto; }
.not-found .numeral { margin-top: 40px; font-size: clamp(96px, 18vw, 180px); }
.not-found h1 { margin-top: 16px; font-size: 36px; }
.not-found p { color: rgb(245 239 230 / 0.75); }
.not-found h1 + p { margin-top: 16px; }
.not-found nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .reveal, .js .reveal:not(.is-visible) { opacity: 1; transform: none; transition: none; }
}
.soon-art .numeral { position: relative; }
