/* ============================================================
   DAR ZAHRA — La Maddalena
   Sistema visivo: mare profondo + sabbia calda
   ============================================================ */

:root {
  /* Toni del mare (overlay / sfondi profondi) */
  --night:  #08202b;   /* blu notte */
  --sea-1:  #0b2a31;   /* verde petrolio profondo */
  --sea-2:  #103d47;
  --sea-3:  #1a5862;   /* teal medio */
  --sea-4:  #3a8a92;   /* acqua chiara */
  --sea-glow: #6fb6b0; /* riflesso sole sull'acqua */

  /* Sabbia / panna (testi su sfondo scuro) */
  --cream:    #f5ead4;
  --sand:     #e8dabd;
  --sand-dim: #c4b291;
  --sand-faint: rgba(232, 218, 189, 0.62);

  /* Sezioni chiare calde (mai ghiaccio) */
  --ivory: #f1e8d7;
  --ink: #14323a;
  --ink-soft: #3a4744;

  /* Accento caldo — oro/sabbia (tweakable) */
  --accent: #c4a25c;
  --accent-soft: color-mix(in oklab, var(--accent) 72%, var(--cream));

  /* Overlay marino (0–100, regolato via Tweaks) */
  --ov: 64;

  /* Font (tweakable) */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Mulish', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --maxw: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sea-1);
  color: var(--sand);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
  color: var(--cream);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.serif-i { font-style: italic; }

/* ---- Eyebrow / kicker ---- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ============================================================
   MEDIA PLACEHOLDER (full-bleed, sea-toned, with overlay)
   ============================================================ */

.media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    repeating-linear-gradient(128deg, rgba(255,255,255,.018) 0 2px, transparent 2px 26px),
    radial-gradient(140% 90% at 72% 8%, rgba(111,182,176,.30), transparent 55%),
    radial-gradient(120% 120% at 20% 110%, var(--night), transparent 60%),
    linear-gradient(168deg, var(--sea-3) 0%, var(--sea-2) 42%, var(--sea-1) 100%);
}
.media.dusk {
  background:
    repeating-linear-gradient(128deg, rgba(255,255,255,.018) 0 2px, transparent 2px 26px),
    radial-gradient(120% 80% at 78% 18%, rgba(207,132,85,.34), transparent 52%),
    radial-gradient(120% 120% at 10% 120%, var(--night), transparent 62%),
    linear-gradient(165deg, #1d5560 0%, #123c46 46%, #0a242d 100%);
}
.media.deep {
  background:
    repeating-linear-gradient(128deg, rgba(255,255,255,.016) 0 2px, transparent 2px 26px),
    radial-gradient(120% 90% at 50% -10%, rgba(58,138,146,.32), transparent 55%),
    linear-gradient(180deg, var(--sea-2) 0%, var(--sea-1) 50%, var(--night) 100%);
}
.media.cove {
  background:
    repeating-linear-gradient(128deg, rgba(255,255,255,.018) 0 2px, transparent 2px 26px),
    radial-gradient(130% 100% at 30% 0%, rgba(111,182,176,.36), transparent 50%),
    linear-gradient(150deg, #246a70 0%, #14464f 50%, #0b2a31 100%);
}

/* slow drifting "water" shimmer */
.media::before {
  content: '';
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(40% 30% at 30% 30%, rgba(111,182,176,.12), transparent 60%),
    radial-gradient(50% 40% at 75% 65%, rgba(207,132,85,.07), transparent 60%);
  animation: drift 26s var(--ease) infinite alternate;
  z-index: 0;
}
@keyframes drift {
  from { transform: scale(1.04) translate3d(-1.5%, -1%, 0); }
  to   { transform: scale(1.14) translate3d(2%, 1.5%, 0); }
}

/* the marine OVERLAY film + warm vignette */
.media::before { pointer-events: none; }
.media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 0%, transparent 40%, rgba(8,32,43, calc(var(--ov) / 150))),
    linear-gradient(180deg,
      rgba(8,32,43, calc(var(--ov) / 320)) 0%,
      rgba(11,42,49, calc(var(--ov) / 200)) 45%,
      rgba(8,32,43, calc(var(--ov) / 110)) 100%);
}

/* monospace caption indicating the real photo to drop in */
.photo-note {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 234, 212, 0.5);
  background: rgba(8, 32, 43, 0.32);
  border: 1px solid rgba(245, 234, 212, 0.16);
  padding: 5px 10px;
  border-radius: 2px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 60px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .4s, box-shadow .4s, border-color .4s;
}
.site-header.scrolled {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(244, 238, 226, 0.97);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom-color: rgba(120, 96, 54, 0.14);
  box-shadow: 0 6px 24px rgba(20, 50, 58, 0.08);
}

/* Hamburger a sinistra */
.ham-btn {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 2px;
}
.ham-btn .ham-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.ham-btn .ham-lines span {
  display: block;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s, width .3s, background .4s;
}
.ham-btn .ham-lines span:last-child { width: 18px; }
.ham-btn:hover .ham-lines span:last-child { width: 26px; }
.ham-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color .4s;
  text-shadow: 0 1px 12px rgba(6, 22, 30, 0.4);
}
/* scroll: hamburger scuro sulla barra chiara */
.site-header.scrolled .ham-lines span { background: var(--ink); }
.site-header.scrolled .ham-label { color: var(--ink); text-shadow: none; }

/* Brand centrale — crema (trasparente) → colori originari (scroll) */
.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  position: relative;
  height: 82px;
  transition: height .4s var(--ease);
}
.site-header.scrolled .brand { height: 60px; }
.brand-full, .brand-light {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity .45s var(--ease);
}
.brand-full {
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
}
.brand-light {
  opacity: 1;
  filter: drop-shadow(0 2px 14px rgba(6, 22, 30, 0.35));
}
.site-header.scrolled .brand-full { opacity: 1; }
.site-header.scrolled .brand-light { opacity: 0; }

/* Header-right */
.site-header .header-right { grid-column: 3; justify-self: end; }
.site-header .lang-switch button { color: rgba(245, 234, 212, 0.7); transition: color .4s; }
.site-header .lang-switch button.active { color: var(--cream); }
.site-header .lang-switch .sep { color: rgba(245, 234, 212, 0.42); }
.site-header.scrolled .lang-switch button { color: rgba(20, 50, 58, 0.5); }
.site-header.scrolled .lang-switch button.active { color: var(--ink); }
.site-header.scrolled .lang-switch .sep { color: rgba(20, 50, 58, 0.32); }
.site-header .btn-primary {
  background: var(--accent);
  color: #1c0f06;
  border-color: var(--accent);
}
.site-header .btn-primary:hover { background: var(--accent-soft); transform: translateY(-2px); }

/* Menu aperto: header sempre in stile chiaro-su-scuro, coerente con l'overlay */
body.menu-open .site-header {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .brand-full { opacity: 0; }
body.menu-open .brand-light { opacity: 1; }
body.menu-open .ham-lines span { background: var(--cream); }
body.menu-open .ham-label { color: var(--cream); }
body.menu-open .lang-switch button { color: rgba(245, 234, 212, 0.7); }
body.menu-open .lang-switch button.active { color: var(--cream); }

/* Mobile: logo a sinistra, hamburger a destra */
@media (max-width: 860px) {
  .site-header {
    display: flex;
    justify-content: space-between;
  }
  .brand { order: 1; height: 50px; }
  .ham-btn { order: 2; }
  .ham-btn .ham-label { display: none; }
  .site-header .header-right { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
}
.nav a {
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--sand);
  position: relative;
  padding: 4px 0;
  transition: color .3s;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent-soft);
  transition: width .35s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.lang-switch button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--sand-dim);
  font: inherit;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 3px;
  transition: color .25s;
}
.lang-switch button.active { color: var(--cream); }
.lang-switch .sep { opacity: 0.4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  padding: 13px 26px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1c0f06;
  border-color: var(--accent);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 234, 212, 0.38);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(245, 234, 212, 0.08);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 34px; font-size: 14.5px; }

.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(20px, 5vw, 80px) clamp(40px, 6vh, 72px);
  overflow: hidden;
}
.hero .media { animation: heroZoom 22s var(--ease) forwards; }

/* user-fillable background photo (sits under the marine overlay) */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.hero-photo::part(frame) { background: rgba(245, 234, 212, 0.05); }
.hero-photo::part(empty) { color: var(--sand-faint); }
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vh, 34px);
  padding-bottom: 8px;
  padding-top: clamp(40px, 8vh, 100px);
}
.hero-copy { max-width: 760px; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 94px);
  font-weight: 500;
  margin-top: 14px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-soft);
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--sand);
  max-width: 48ch;
  font-weight: 300;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand-faint);
}
.scroll-cue .line {
  width: 1px; height: 38px;
  background: linear-gradient(var(--sand-faint), transparent);
  animation: cuepulse 2.4s var(--ease) infinite;
}
@keyframes cuepulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Hero variants ---- */
/* default = centered */
.hero[data-hero="center"] { justify-content: center; text-align: center; }
.hero[data-hero="center"] .hero-inner { align-items: center; }
.hero[data-hero="center"] .hero-copy { max-width: 1080px; }
.hero[data-hero="center"] .hero-sub { margin-left: auto; margin-right: auto; }
.hero[data-hero="center"] .eyebrow { justify-content: center; }

/* left = lower-left aligned */
.hero[data-hero="left"] { justify-content: flex-end; text-align: left; }
.hero[data-hero="left"] .hero-inner { align-items: flex-start; }

/* split = solid panel left, media right */
.hero[data-hero="split"] {
  justify-content: center;
  padding: 0;
}
.hero[data-hero="split"] .media {
  left: 44%;
}
.hero[data-hero="split"]::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0 56% 0 0;
  background: linear-gradient(160deg, var(--sea-2), var(--sea-1) 70%, var(--night));
}
.hero[data-hero="split"]::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  left: 38%;
  width: 12%;
  background: linear-gradient(90deg, var(--sea-1), transparent);
}
.hero[data-hero="split"] .hero-inner {
  align-items: flex-start;
  text-align: left;
  padding: 0 clamp(20px, 5vw, 80px);
  max-width: calc(var(--maxw) + 80px);
}
.hero[data-hero="split"] .hero-copy { max-width: 44%; }
.hero[data-hero="split"] .scroll-cue { left: 24%; }

@media (max-width: 860px) {
  .hero[data-hero="split"] .media { left: 0; opacity: 0.5; }
  .hero[data-hero="split"]::before { inset: 0; }
  .hero[data-hero="split"]::after { display: none; }
  .hero[data-hero="split"] .hero-copy { max-width: 100%; }
}

/* ============================================================
   BOOKING BAR
   ============================================================ */

.booking-bar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: 880px;
  background: rgba(245, 234, 212, 0.1);
  border: 1px solid rgba(245, 234, 212, 0.22);
  border-radius: 3px;
  padding: 8px;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 60px rgba(6, 22, 30, 0.45);
}
.hero[data-hero="center"] .booking-bar { margin: 0 auto; }
.bk-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  text-align: left;
  border-radius: 2px;
  transition: background .25s;
  min-width: 0;
}
.bk-field + .bk-field { border-left: 1px solid rgba(245, 234, 212, 0.16); }
.bk-field:hover { background: rgba(245, 234, 212, 0.07); }
.bk-field label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-faint);
}
.bk-field input,
.bk-field select {
  appearance: none;
  background: none;
  border: 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 0;
  outline: none;
  cursor: pointer;
  width: 100%;
}
.bk-field input::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(.4) saturate(2) hue-rotate(-10deg);
  opacity: 0.5;
  cursor: pointer;
}
.bk-field select option { color: #11333d; }
.bk-submit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.bk-submit .btn { height: 100%; padding: 0 28px; }

@media (max-width: 760px) {
  .booking-bar { flex-wrap: wrap; }
  .bk-field { flex: 1 1 40%; }
  .bk-field + .bk-field { border-left: 0; }
  .bk-submit { flex: 1 1 100%; }
  .bk-submit .btn { width: 100%; padding: 14px; }
}

/* ============================================================
   SECTIONS — generic
   ============================================================ */

section { position: relative; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.section-pad { padding: clamp(72px, 12vh, 150px) 0; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  margin-top: 18px;
}
.section-head h2 em { font-style: italic; color: var(--accent-soft); }
.section-head p {
  margin-top: 20px;
  color: var(--sand-dim);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
}

/* ---- INTRO (chi siamo teaser) — full bleed split ---- */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100svh;
  background: var(--sea-2);
}
.intro .media-col { position: relative; overflow: hidden; }
.intro .text-col {
  display: flex;
  align-items: center;
  padding: clamp(48px, 8vw, 120px) clamp(28px, 6vw, 96px);
}
.intro .text-col .inner { max-width: 520px; }
.intro h2 { font-size: clamp(32px, 4.6vw, 58px); margin-top: 18px; }
.intro p { margin-top: 22px; color: var(--sand-dim); font-weight: 300; }
.intro p + p { margin-top: 16px; }
.intro .actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }
.intro .stats {
  margin-top: 48px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(232, 218, 189, 0.16);
  padding-top: 28px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
}
.stat .num em { font-style: normal; color: var(--accent); }
.stat .lbl {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand-faint);
  margin-top: 8px;
}
@media (max-width: 880px) {
  .intro { grid-template-columns: 1fr; }
  .intro .media-col { min-height: 56vh; order: 2; }
  .intro .text-col { order: 1; }
}

/* ============================================================
   APPARTAMENTI — full-bleed immersive panels
   ============================================================ */

.apartments { background: var(--sea-1); }

.apt {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.apt .apt-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 40px;
}
.apt:nth-child(even) .apt-content { grid-template-columns: 0.9fr 1.1fr; }
.apt:nth-child(even) .apt-headline { order: 2; }
.apt:nth-child(even) .apt-meta { order: 1; }

.apt-index {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent-soft);
}
.apt h3 {
  font-size: clamp(38px, 5.5vw, 78px);
  margin-top: 14px;
}
.apt h3 em { font-style: italic; color: var(--accent-soft); }
.apt-headline p {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--sand);
  font-weight: 300;
}
.apt-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 6px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(232, 218, 189, 0.16);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.feature-list li .ico {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  color: var(--accent-soft);
}
.feature-list li .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.4; }
.apt-actions { margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .apt .apt-content,
  .apt:nth-child(even) .apt-content { grid-template-columns: 1fr; }
  .apt:nth-child(even) .apt-headline { order: 1; }
  .apt:nth-child(even) .apt-meta { order: 2; }
}

/* ---- APPARTAMENTI — carosello ---- */
.apt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: clamp(104px, 16vh, 200px);
  margin-bottom: clamp(28px, 4vh, 46px);
}
.apt-head .head-copy { max-width: 640px; }
.apt-head h2 { font-size: clamp(34px, 5vw, 64px); margin-top: 16px; }
.apt-head h2 em { font-style: italic; color: var(--accent-soft); }
.apt-nav { display: flex; align-items: center; gap: 20px; }
.apt-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--sand-dim);
  font-variant-numeric: tabular-nums;
  min-width: 64px;
  text-align: center;
}
.apt-count b { color: var(--cream); font-weight: 700; }
.apt-arrow {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(245, 234, 212, 0.34);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease), opacity .3s;
}
.apt-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.apt-arrow:hover { background: var(--accent); border-color: var(--accent); color: #1c0f06; transform: translateY(-2px); }
.apt-arrow:disabled { opacity: 0.28; cursor: default; }
.apt-arrow:disabled:hover { background: transparent; color: var(--cream); border-color: rgba(245,234,212,.34); transform: none; }

.apt-viewport { overflow: hidden; }
.apt-track {
  display: flex;
  transition: transform .75s var(--ease);
  will-change: transform;
}
.apt-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 74vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.apt-slide .media::after {
  background:
    linear-gradient(180deg, rgba(8,32,43, calc(var(--ov) / 300)) 0%, transparent 28%, rgba(8,32,43, calc(var(--ov) / 64)) 100%);
}
.apt-slide-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 76px) clamp(20px, 5vw, 80px);
}
.apt-slide-copy { max-width: 620px; }
.apt-slide h3 { font-size: clamp(40px, 6vw, 82px); margin-top: 14px; }
.apt-slide h3 em { font-style: italic; color: var(--accent-soft); }
.apt-slide p { margin-top: 18px; max-width: 46ch; color: var(--sand); font-weight: 300; }
.apt-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.apt-chips li {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  padding: 8px 14px;
  border: 1px solid rgba(245, 234, 212, 0.24);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.apt-slide .apt-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.apt-dots { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.apt-dots button {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(245, 234, 212, 0.3);
  cursor: pointer; transition: width .35s var(--ease), background .35s;
}
.apt-dots button.active { width: 30px; background: var(--accent); }

@media (max-width: 720px) {
  .apt-slide { min-height: 80vh; }
  .apt-nav { width: 100%; justify-content: flex-start; }
}

/* ============================================================
   SERVIZI
   ============================================================ */

.services { background: var(--night); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.svc {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 3px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.svc:nth-child(1) { grid-column: span 2; }
.svc:nth-child(6) { grid-column: span 2; }
.svc .svc-body {
  position: relative;
  z-index: 5;
  padding: 30px 32px;
}
.svc .svc-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.svc h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 8px; }
.svc .media::after {
  background:
    linear-gradient(180deg, transparent 30%, rgba(8,32,43, calc(var(--ov) / 90)) 100%);
}
.svc { transition: transform .5s var(--ease); }
.svc:hover { transform: translateY(-4px); }
.svc:hover .media { transform: scale(1.06); }
.svc .media { transition: transform .8s var(--ease); }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(1), .svc:nth-child(6) { grid-column: span 2; }
  .svc { min-height: 280px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(1), .svc:nth-child(6) { grid-column: span 1; }
}

/* ---- COMFORT: griglia uniforme, niente righe spaiate ---- */
.comfort-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.comfort-grid .svc:nth-child(1),
.comfort-grid .svc:nth-child(6) { grid-column: auto; }
/* i titoli stanno sulle foto scure: restano chiari anche in sezione light */
.comfort .svc h3 { color: var(--cream); }
.comfort .svc .svc-tag { color: var(--accent-soft); }
@media (max-width: 820px) {
  .comfort-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .comfort-grid { grid-template-columns: 1fr; }
}

/* ---- SERVIZI su richiesta: lista editoriale (nessuna riga spaiata) ---- */
.servizi-book .svc-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(20, 50, 58, 0.16);
}
.svc-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(24px, 3.4vh, 40px) 4px;
  border-bottom: 1px solid rgba(20, 50, 58, 0.16);
  transition: padding-left .45s var(--ease);
}
.svc-row:hover { padding-left: 16px; }
.svc-ico {
  width: 46px; height: 46px;
  flex: 0 0 auto;
  color: var(--accent);
}
.svc-ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.svc-row-text h3 { font-size: clamp(24px, 3vw, 38px); }
.svc-row-text p {
  margin-top: 8px;
  max-width: 56ch;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 16px);
}
.svc-row-cta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
}
.svc-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--accent) 78%, #5e4128);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .svc-row { grid-template-columns: auto 1fr; row-gap: 16px; }
  .svc-row-cta { grid-column: 1 / -1; justify-content: space-between; }
}

/* ============================================================
   GALLERIA
   ============================================================ */

.gallery { background: var(--sea-1); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gphoto {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.gphoto:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gphoto:nth-child(4) { grid-row: span 2; }
.gphoto:nth-child(6) { grid-column: span 2; }
.gphoto .media { transition: transform .8s var(--ease); }
.gphoto:hover .media { transform: scale(1.07); }
@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gphoto:nth-child(1) { grid-column: span 2; }
  .gphoto:nth-child(4) { grid-row: span 1; }
}

/* ============================================================
   TESTIMONIANZE
   ============================================================ */

.testimonials { background: var(--sea-2); overflow: hidden; }
.tlane {
  display: flex;
  gap: 22px;
  padding: 8px 0;
}
.tcard {
  flex: 0 0 clamp(300px, 40vw, 440px);
  background: rgba(245, 234, 212, 0.05);
  border: 1px solid rgba(232, 218, 189, 0.14);
  border-radius: 4px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tcard .quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.7;
  height: 30px;
}
.tcard p {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 23px);
  font-style: italic;
  line-height: 1.45;
  color: var(--cream);
  font-weight: 400;
}
.tcard .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.tcard .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 218, 189, 0.2);
}
.avatar image-slot { width: 100%; height: 100%; display: block; }
.avatar image-slot::part(frame) { background: rgba(245, 234, 212, 0.06); }
.avatar image-slot::part(empty) { font-size: 0; }
.avatar image-slot::part(ring) { border-width: 1px; }
.tcard .name { font-weight: 600; font-size: 15px; color: var(--cream); }
.tcard .role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-faint);
}
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ============================================================
   PRENOTA CTA — full bleed dusk
   ============================================================ */

.cta {
  position: relative;
  min-height: 74svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.cta .cta-inner {
  position: relative;
  z-index: 5;
  max-width: 760px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.cta h2 {
  font-size: clamp(40px, 6.5vw, 92px);
  letter-spacing: -0.01em;
}
.cta h2 em { font-style: italic; color: var(--accent-soft); }
.cta p {
  margin: 26px auto 0;
  max-width: 52ch;
  color: var(--sand);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
}
.cta .actions {
  margin-top: 32px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--night);
  border-top: 1px solid rgba(232, 218, 189, 0.12);
  padding: clamp(56px, 8vh, 90px) 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  width: auto;
  height: 96px;
  margin-bottom: 6px;
  display: block;
}
.footer-brand .mark {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 34ch;
  color: var(--sand-dim);
  font-weight: 300;
  font-size: 15px;
}
.fcol h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.fcol ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.fcol a, .fcol li { color: var(--sand-dim); font-size: 14.5px; transition: color .25s; }
.fcol a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(232, 218, 189, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--sand-faint);
}
.footer-bottom a { color: var(--sand-dim); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header-right .btn, .header-right .lang-switch { display: none; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
  }
  .menu-toggle span { width: 24px; height: 1.5px; background: var(--cream); }
}

/* i18n: hide the inactive language span */
[data-lang-it][data-lang-en] { }

/* ============================================================
   PAGINA DETTAGLIO APPARTAMENTO
   ============================================================ */

.detail-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 clamp(20px, 5vw, 80px) clamp(40px, 7vh, 80px);
}
.detail-hero .media { animation: heroZoom 22s var(--ease) forwards; }
.detail-hero .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.detail-hero .hero-photo::part(frame) { background: rgba(245, 234, 212, 0.05); }
.detail-hero .hero-photo::part(empty) { color: var(--sand-faint); }
.detail-hero-inner { position: relative; z-index: 5; width: 100%; max-width: var(--maxw); margin: 0 auto; }
.detail-back {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 22px; transition: color .25s, gap .25s var(--ease);
}
.detail-back:hover { color: var(--cream); gap: 14px; }
.detail-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.detail-hero h1 { font-size: clamp(48px, 8vw, 104px); margin-top: 14px; letter-spacing: -0.01em; }
.detail-hero h1 em { font-style: italic; color: var(--accent-soft); }
.detail-hero .tagline { margin-top: 18px; max-width: 50ch; font-size: clamp(16px, 1.6vw, 20px); color: var(--sand); font-weight: 300; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 36px; padding-top: 26px;
  border-top: 1px solid rgba(232, 218, 189, 0.2);
}
.detail-meta .m .v { font-family: var(--font-display); font-size: 34px; font-weight: 500; color: var(--cream); line-height: 1; }
.detail-meta .m .v em { font-style: normal; color: var(--accent); }
.detail-meta .m .k { font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand-faint); margin-top: 8px; }

.detail-body { background: var(--sea-2); }
.detail-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.detail-grid .lead h2 { font-size: clamp(30px, 4vw, 50px); }
.detail-grid .lead h2 em { font-style: italic; color: var(--accent-soft); }
.detail-grid .lead p { margin-top: 22px; color: var(--sand-dim); font-weight: 300; font-size: clamp(15px, 1.4vw, 18px); }
.detail-grid .lead p + p { margin-top: 16px; }
.detail-grid .side h4 {
  font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-soft); margin-bottom: 8px;
}
.detail-grid .side .feature-list li { font-size: 15.5px; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }

/* Variante CHIARA del corpo appartamento (avorio caldo) */
.detail-body.section--light .lead p { color: var(--ink-soft); }
.detail-body.section--light .lead h2 em { color: #9a7327; }
.detail-body.section--light .side h4 { color: #8a6a24; }
.detail-body.section--light .feature-list li { color: var(--ink); border-bottom-color: rgba(20, 50, 58, 0.14); }
.detail-body.section--light .feature-list li .ico { color: #9a7327; }

.detail-gallery { background: var(--sea-1); }
.detail-gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 22vh, 230px); gap: 12px;
}
.detail-gallery-grid .gslot { position: relative; overflow: hidden; border-radius: 3px; }
.detail-gallery-grid .gslot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.detail-gallery-grid .gslot:hover img { transform: scale(1.05); }
/* ritmo editoriale: hero a sinistra + due larghe a destra, poi triptych */
.detail-gallery-grid .gslot:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.detail-gallery-grid .gslot:nth-child(2) { grid-column: span 3; }
.detail-gallery-grid .gslot:nth-child(3) { grid-column: span 3; }
.detail-gallery-grid .gslot:nth-child(4),
.detail-gallery-grid .gslot:nth-child(5),
.detail-gallery-grid .gslot:nth-child(6) { grid-column: span 2; }
.detail-gallery-grid image-slot { width: 100%; height: 100%; display: block; }
.detail-gallery-grid image-slot::part(frame) { background: rgba(245, 234, 212, 0.05); }
.detail-gallery-grid image-slot::part(empty) { color: var(--sand-faint); }
@media (max-width: 720px) {
  .detail-gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(140px, 26vw, 190px); }
  .detail-gallery-grid .gslot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .detail-gallery-grid .gslot:nth-child(n+2) { grid-column: span 1; }
}

.detail-cta { background: var(--night); text-align: center; }
.detail-cta h2 { font-size: clamp(34px, 5vw, 64px); }
.detail-cta h2 em { font-style: italic; color: var(--accent-soft); }
.detail-cta p { margin: 22px auto 0; max-width: 48ch; color: var(--sand-dim); font-weight: 300; }
.detail-cta .actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   REVEAL ANIMATIONS (ripristinate + raffinate)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

/* headline a comparsa con leggero clip */
.reveal-up { clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path 1.2s var(--ease), opacity 1.2s var(--ease); }
.reveal-up.in { clip-path: inset(0 0 0 0); opacity: 1; }

/* ============================================================
   SEZIONI CHIARE — ritmo editoriale (avorio caldo)
   ============================================================ */
.section--light { background: var(--ivory); color: var(--ink-soft); }
.section--light h1, .section--light h2, .section--light h3, .section--light h4 { color: var(--ink); }
.section--light h1 em, .section--light h2 em, .section--light h3 em { color: #9a7327; }
.section--light .eyebrow { color: #8a6a24; }
.section--light .section-head p,
.section--light p { color: var(--ink-soft); }

/* Intro chiaro */
.intro.section--light { background: var(--ivory); }
.intro.section--light .stats { border-top-color: rgba(20, 50, 58, 0.16); }
.intro.section--light .stat .num { color: var(--ink); }
.intro.section--light .stat .lbl { color: var(--ink-soft); }
.intro.section--light .btn-ghost { color: var(--ink); border-color: rgba(20, 50, 58, 0.32); }
.intro.section--light .btn-ghost:hover { background: rgba(20, 50, 58, 0.06); border-color: var(--ink); }

/* Testimonianze chiare */
.testimonials.section--light { background: var(--ivory); }
.testimonials.section--light .tcard {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(20, 50, 58, 0.12);
}
.testimonials.section--light .tcard p { color: var(--ink); }
.testimonials.section--light .tcard .name { color: var(--ink); }
.testimonials.section--light .tcard .role { color: var(--ink-soft); }
.testimonials.section--light .tcard .quote-mark { color: var(--accent); opacity: 0.55; }
.testimonials.section--light .avatar { border-color: rgba(20, 50, 58, 0.18); }

/* ============================================================
   PARALLAX
   ============================================================ */
.intro .media-col .media,
.cta .media,
.apt-slide .media { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .intro .media-col .media,
  .cta .media,
  .apt-slide .media,
  .hero-inner { transform: none !important; }
}

/* ============================================================
   APPARTAMENTI — variante GALLERIA ORIZZONTALE (editoriale)
   ============================================================ */
.apt-variant[hidden] { display: none !important; }

.apt-gallery { background: var(--sea-1); padding-bottom: clamp(48px, 8vh, 90px); }
.apt-gallery .apt-head { padding-top: clamp(64px, 10vh, 130px); margin-bottom: clamp(30px, 5vh, 56px); }

.gal-scroller {
  display: flex;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 52px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 14px clamp(20px, 5vw, 80px) 26px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.gal-scroller::-webkit-scrollbar { display: none; }
.gal-scroller.dragging { cursor: grabbing; }
.gal-scroller.dragging .gal-item { pointer-events: none; }

.gal-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: block;
  width: clamp(270px, 30vw, 420px);
  text-decoration: none;
}
/* stagger editoriale: gli item pari scendono */
.gal-item:nth-child(even) { margin-top: clamp(38px, 9vh, 120px); }
/* gli item "landscape" (dispari alternati) più larghi e bassi */
.gal-item.landscape { width: clamp(360px, 44vw, 600px); }

.gal-pic {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  height: clamp(380px, 62vh, 640px);
  background: var(--sea-2);
}
.gal-item.landscape .gal-pic { height: clamp(280px, 44vh, 460px); }
.gal-pic image-slot { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gal-pic .media { transition: transform .9s var(--ease); }
.gal-pic .media::after {
  background: linear-gradient(180deg, transparent 45%, rgba(8,32,43, calc(var(--ov) / 150)) 100%);
}
.gal-item:hover .gal-pic .media { transform: scale(1.06); }

.gal-cap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 4px 0;
}
.gal-idx {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-soft);
}
.gal-cap h3 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.02;
}
.gal-cap h3 em { font-style: italic; color: var(--accent-soft); }
.gal-sub {
  font-size: 14.5px;
  color: var(--sand-dim);
  font-weight: 300;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gal-go {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gal-go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.gal-item:hover .gal-go { opacity: 1; transform: none; }

.gal-end {
  flex: 0 0 auto;
  align-self: center;
  width: clamp(180px, 16vw, 240px);
  padding-left: clamp(10px, 2vw, 30px);
}
.gal-end .btn { white-space: nowrap; }

@media (max-width: 720px) {
  .gal-item:nth-child(even) { margin-top: 0; }
  .gal-pic, .gal-item.landscape .gal-pic { height: clamp(340px, 56vh, 460px); }
}

/* ============================================================
   DOT-NAV laterale (slider)
   ============================================================ */
.dot-nav {
  position: fixed;
  right: clamp(14px, 1.8vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.dot-nav.show { opacity: 1; pointer-events: auto; }
.dot-nav button {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(245, 234, 212, 0.34);
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.dot-nav button:hover { background: rgba(245, 234, 212, 0.7); }
.dot-nav button.active { background: var(--accent); transform: scale(1.35); }
.dot-nav.on-light button { background: rgba(20, 50, 58, 0.28); }
.dot-nav.on-light button:hover { background: rgba(20, 50, 58, 0.55); }
.dot-nav.on-light button.active { background: var(--accent); }
.dot-nav button::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(8, 32, 43, 0.82);
  padding: 5px 9px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.dot-nav button:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 720px) { .dot-nav { display: none; } }

/* ============================================================
   MODALITÀ SLIDER (snap morbido fra sezioni)
   ============================================================ */
html.slider-mode { scroll-snap-type: y proximity; scroll-padding-top: 0; }
.slider-mode main > section,
.slider-mode .site-footer { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) {
  html.slider-mode { scroll-snap-type: none; }
}

/* ============================================================
   DROP-TARGET ESTESO — foto di sfondo su slide/CTA
   il contenitore testo non blocca il drop, ma i bottoni restano cliccabili
   ============================================================ */
.apt-slide-inner,
.cta-inner { pointer-events: none; }
.apt-slide-inner a,
.apt-slide-inner button,
.cta-inner a,
.cta-inner button { pointer-events: auto; }
.apt-slide .hero-photo,
.cta .hero-photo { pointer-events: auto; }

/* ============================================================
   SERVIZI — variante CHIARA (alternativa)
   ============================================================ */
.services.section--light { background: var(--ivory); }
.services.section--light .svc { box-shadow: 0 20px 50px rgba(20, 50, 58, 0.12); }

/* ============================================================
   TESTIMONIANZE — variante SLIDER con sfondo
   ============================================================ */
.testi-variant[hidden] { display: none !important; }

.testi-slider {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--sea-2);
}
.testi-slider .media::after {
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(8,32,43, calc(var(--ov) / 240)) 0%, rgba(8,32,43, calc(var(--ov) / 90)) 100%),
    linear-gradient(180deg, rgba(8,32,43, calc(var(--ov) / 130)) 0%, rgba(8,32,43, calc(var(--ov) / 150)) 100%);
}
.ts-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) clamp(24px, 5vw, 60px);
  text-align: center;
}
.ts-inner > .eyebrow { margin-bottom: 26px; }
.ts-viewport { overflow: hidden; width: 100%; }
.ts-track { display: flex; transition: transform .7s var(--ease); }
.ts-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(8px, 4vw, 56px);
}
.ts-stars { display: flex; gap: 5px; color: var(--accent); }
.ts-stars svg { width: 18px; height: 18px; fill: currentColor; }
.ts-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.3;
  color: var(--cream);
  text-wrap: balance;
}
.ts-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 14px;
}
.ts-author .avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 218, 189, 0.28);
}
.ts-author .avatar image-slot { width: 100%; height: 100%; display: block; }
.ts-author .meta { text-align: left; }
.ts-author .name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
}
.ts-author .role {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-faint);
  margin-top: 4px;
}
.ts-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: clamp(28px, 4vh, 44px);
}
.ts-dots { display: flex; gap: 9px; align-items: center; }
.ts-dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(245, 234, 212, 0.3);
  cursor: pointer; transition: width .35s var(--ease), background .35s;
}
.ts-dots button.active { width: 26px; background: var(--accent); }

/* ============================================================
   HERO — slider immagini in autoplay (crossfade)
   ============================================================ */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bgslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-bgslide.is-active { opacity: 1; }
.hero-bg .media { position: absolute; inset: 0; }
/* il drop finisce sempre sulla slide visibile (attiva) */
.hero-bgslide { pointer-events: none; }
.hero-bgslide.is-active { pointer-events: auto; }

/* hero: pill "aggiungi foto" che appare solo al passaggio del mouse e porta
   in primo piano il prossimo slot VUOTO (niente puntini sul fronte pubblico) */
.hero-addphoto {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(6px);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 234, 212, 0.4);
  background: rgba(8, 32, 43, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s, border-color .3s;
}
.hero-addphoto::before {
  content: '';
  width: 15px; height: 15px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.hero:hover .hero-addphoto:not([hidden]) { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.hero-addphoto:hover { background: var(--accent); border-color: var(--accent); color: #1c0f06; }
@media (max-width: 600px) { .hero-addphoto { bottom: 72px; } }

/* slot di sfondo: invisibili da vuoti (mostrano il gradiente mare), pieni con la foto */
.bg-slot:not([data-filled]) { opacity: 0; transition: opacity .45s var(--ease); }
.hero:hover .hero-bgslide.is-active .bg-slot:not([data-filled]),
.cta:hover .bg-slot:not([data-filled]),
.testimonials:hover .bg-slot:not([data-filled]),
.testi-slider:hover .bg-slot:not([data-filled]) { opacity: .6; }

/* ============================================================
   TESTIMONIANZE (schede) — sfondo foto opzionale
   ============================================================ */
.testimonials { position: relative; }
.testi-cards-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.testi-cards-media .media,
.testi-cards-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
/* velo avorio sopra la foto: i testi scuri restano leggibili */
.testi-cards-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(241,232,215,0.9) 0%, rgba(241,232,215,0.84) 100%);
}
.testimonials > .wrap { position: relative; z-index: 3; }
/* il contenuto non blocca il drop dello sfondo, ma gli avatar restano interattivi */
.testimonials > .wrap .section-head,
.testimonials > .wrap .tlane { pointer-events: none; }
.testimonials .tcard .avatar,
.testimonials .tcard .avatar * { pointer-events: auto; }

/* slider testimonianze: tutta la sezione è area di rilascio per lo sfondo, ma nav/slot restano cliccabili */
.testi-slider .ts-inner { pointer-events: none; }
.testi-slider .ts-nav,
.testi-slider .ts-nav *,
.testi-slider .ts-author .avatar,
.testi-slider .ts-author .avatar * { pointer-events: auto; }
.testi-slider .hero-photo { pointer-events: auto; }

/* ============================================================
   MENU MOBILE
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: rgba(8, 32, 43, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 500;
  color: var(--cream);
  padding: 8px 0;
  transition: color .25s;
}
.mobile-nav a:hover { color: var(--accent-soft); }

/* hamburger → X */
/* lingua dentro il menu mobile */
.mobile-lang { margin-top: 6px; }
.mobile-lang button { font-size: 14px; padding: 6px 10px; color: var(--sand-dim); }
.mobile-lang button.active { color: var(--cream); }
.mobile-lang .sep { color: var(--sand-faint); }

.menu-toggle { z-index: 110; }
.menu-toggle span { transition: transform .35s var(--ease), opacity .25s; transform-origin: center; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ============================================================
   CURSORE CUSTOM
   ============================================================ */
.dz-cursor, .dz-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
}
.dz-cursor {
  width: 38px; height: 38px;
  margin: 0;
  border: 1.5px solid rgba(245, 234, 212, 0.85);
  border-radius: 50%;
  mix-blend-mode: difference;
  transition: width .3s var(--ease), height .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), opacity .4s;
}
.dz-cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transition: opacity .4s, width .25s, height .25s;
}
.dz-cursor.is-hover {
  width: 58px; height: 58px;
  background: rgba(245, 234, 212, 0.14);
  border-color: rgba(245, 234, 212, 1);
}
.dz-cursor.is-down { width: 30px; height: 30px; }
/* nascondi il cursore nativo solo quando il custom è attivo, ma non sui campi */
body.dz-has-cursor,
body.dz-has-cursor a,
body.dz-has-cursor button,
body.dz-has-cursor .btn,
body.dz-has-cursor .apt-arrow,
body.dz-has-cursor .gal-item,
body.dz-has-cursor .gal-scroller { cursor: none; }
body.dz-has-cursor input,
body.dz-has-cursor select,
body.dz-has-cursor textarea { cursor: auto; }
/* il pannello Tweaks (e ogni chrome host) usa il cursore nativo, altrimenti non si vede dove si clicca */
body.dz-has-cursor [data-omelette-chrome],
body.dz-has-cursor [data-omelette-chrome] *,
body.dz-has-cursor .twk-panel,
body.dz-has-cursor .twk-panel * { cursor: auto !important; }
@media (hover: none), (pointer: coarse) {
  .dz-cursor, .dz-cursor-dot { display: none !important; }
}

/* ============================================================
   RESPONSIVE — reti di sicurezza
   ============================================================ */
@media (max-width: 980px) {
  /* il pannello menu mostra nav + prenota; in header restano brand, lingua, hamburger */
  .header-right .lang-switch { order: 2; }
}
@media (max-width: 600px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: clamp(40px, 13vw, 62px); }
  .apt-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .apt-slide-inner { padding-bottom: 64px; }
  .apt-slide-copy .apt-actions { flex-direction: column; align-items: stretch; }
  .apt-slide-copy .apt-actions .btn { width: 100%; }
  .ts-quote { font-size: clamp(22px, 6.4vw, 30px); }
  .stats { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 420px) {
  .booking-bar { padding: 6px; }
  .bk-field { flex: 1 1 100%; }
  .bk-field + .bk-field { border-left: 0; border-top: 1px solid rgba(245, 234, 212, 0.16); }
}

/* ============================================================
   HERO EYEBROW — più grande (feedback cliente)
   ============================================================ */
.hero .hero-eyebrow {
  font-size: clamp(13px, 1.35vw, 17px);
  letter-spacing: 0.3em;
  color: var(--accent-soft);
}
.hero .hero-eyebrow::before { width: 46px; }

/* Offset ancore sotto l'header fisso */
section[id], [id="prenota"] { scroll-margin-top: 110px; }

/* ============================================================
   PAGE LOADER — monogramma arco + DZ
   ============================================================ */
#dz-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sea-1);
  transition: opacity .8s var(--ease), visibility .8s;
}
#dz-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#dz-loader .loader-mark {
  width: clamp(90px, 14vw, 132px);
  height: auto;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  animation: dzMarkIn 1.1s var(--ease) forwards;
}
#dz-loader .loader-word {
  position: absolute;
  bottom: calc(50% - clamp(90px, 14vw, 132px));
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sand-faint);
  opacity: 0;
  animation: dzWordIn 1s var(--ease) .5s forwards;
}
@keyframes dzMarkIn {
  0%   { opacity: 0; transform: translateY(10px) scale(0.9); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dzWordIn {
  from { opacity: 0; letter-spacing: 0.55em; }
  to   { opacity: 1; letter-spacing: 0.4em; }
}
@media (prefers-reduced-motion: reduce) {
  #dz-loader .loader-mark,
  #dz-loader .loader-word { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   CONTRASTO — testi chiari sopra le immagini
   ============================================================ */
.hero-copy h1,
.hero-copy .hero-sub,
.hero .hero-eyebrow { text-shadow: 0 2px 28px rgba(6, 22, 30, 0.55); }

.apt-slide-copy h3,
.apt-slide-copy p,
.apt-slide-copy .apt-index,
.apt-slide-copy .apt-chips li { text-shadow: 0 2px 22px rgba(6, 22, 30, 0.6); }

.cta-inner :is(.eyebrow, h2, p) { text-shadow: 0 2px 22px rgba(6, 22, 30, 0.55); }

.ts-slide .ts-quote,
.ts-slide .name,
.ts-slide .role,
.ts-slide .stars { text-shadow: 0 2px 22px rgba(6, 22, 30, 0.55); }

/* ============================================================
   IMMAGINI (ex image-slot) — riempimento contenitore
   ============================================================ */
img.hero-photo { object-fit: cover; }
.gal-pic img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.testi-cards-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar img,
.ts-author .avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* gli sfondi ora hanno sempre una foto reale */
img.bg-slot { opacity: 1; }

/* ============================================================
   CHI SIAMO — promessa + citazione
   ============================================================ */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(30px, 5vh, 56px);
}
.promise-card {
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid rgba(232, 218, 189, 0.16);
  border-radius: 3px;
  background: rgba(245, 234, 212, 0.03);
}
.promise-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.promise-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  color: var(--cream);
  margin-top: 16px;
}
.promise-card p {
  margin-top: 14px;
  color: var(--sand);
  font-weight: 300;
}
@media (max-width: 820px) {
  .promise-grid { grid-template-columns: 1fr; }
}

.about-quote { text-align: center; }
.about-quote .quote-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.32;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}
.about-quote .quote-sign {
  display: block;
  margin-top: 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6a24;
}


/* ============================================================
   DAR ZAHRA — WordPress: righe listing appartamenti + contatti
   ============================================================ */

/* ---- Listing appartamenti (template Appartamenti) ---- */
.apt-row { min-height: 78svh; }
.apt-row--flip .media-col { order: 2; }
.apt-row--flip .text-col { order: 1; }
@media (max-width: 880px) {
  .apt-row--flip .media-col { order: 2; }
  .apt-row--flip .text-col { order: 1; }
}
.apt-row .apt-index-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--sand-faint);
  margin-bottom: 22px;
}
.apt-row.section--light .apt-index-lbl { color: #8a6a24; }
.apt-row .apt-chips { margin-top: 30px; }
.apt-row.section--light .apt-chips li {
  color: var(--ink);
  border-color: rgba(20, 50, 58, 0.24);
}
.apt-row .actions { margin-top: 36px; }

/* ---- Contatti ---- */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; gap: 48px; } }

.contact-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.contact-item {
  display: block;
  padding: 22px 0;
  border-bottom: 1px solid rgba(20, 50, 58, 0.14);
}
.contact-item .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a6a24;
}
.contact-item .val {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 27px);
  color: var(--ink);
  line-height: 1.25;
  transition: color .25s var(--ease);
}
a.contact-item:hover .val { color: #9a7327; }
.contact-item .sub { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

.contact-social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.contact-social a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 9px 18px;
  border: 1px solid rgba(20, 50, 58, 0.24);
  border-radius: 999px;
  transition: background .3s, border-color .3s, color .3s;
}
.contact-social a:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.cf-field { display: flex; flex-direction: column; gap: 9px; }
.cf-field.full { grid-column: 1 / -1; }
.cf-field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6a24;
}
.cf-field input,
.cf-field textarea,
.cf-field select {
  appearance: none;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(20, 50, 58, 0.22);
  border-radius: 3px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.cf-field textarea { min-height: 140px; resize: vertical; }
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(58, 71, 68, 0.5); }
.cf-field input:focus,
.cf-field textarea:focus,
.cf-field select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 162, 92, 0.16);
}
.cform .cf-submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.cf-note { font-size: 13px; color: var(--ink-soft); max-width: 34ch; }
.cf-ok {
  grid-column: 1 / -1;
  display: none;
  padding: 18px 20px;
  border: 1px solid rgba(20, 50, 58, 0.2);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 15px;
}
.cf-ok.show { display: block; }
@media (max-width: 520px) { .cform { grid-template-columns: 1fr; } }

/* Contact Form 7 dentro il layout chiaro */
.cf7-wrap .wpcf7-form p { margin: 0 0 18px; }
.cf7-wrap label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6a24;
  margin-bottom: 8px;
}
.cf7-wrap input[type=text],
.cf7-wrap input[type=email],
.cf7-wrap input[type=tel],
.cf7-wrap textarea,
.cf7-wrap select {
  appearance: none;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(20, 50, 58, 0.22);
  border-radius: 3px;
  padding: 14px 16px;
  width: 100%;
}
.cf7-wrap textarea { min-height: 140px; }
.cf7-wrap input:focus,
.cf7-wrap textarea:focus,
.cf7-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 162, 92, 0.16);
}

/* ---- Dove siamo / mappa ---- */
.map-band { position: relative; overflow: hidden; }
.map-band .map-media {
  position: relative;
  height: clamp(360px, 52vh, 560px);
  border-radius: 3px;
  overflow: hidden;
}
.map-band .map-media > .media { position: absolute; inset: 0; }
.map-band .map-media img,
.map-band .map-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; display: block; }
.map-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sand-faint);
  margin-top: 16px;
}
