/* =========================================
   Minniti 6 — style.css
   Editoriale e minimale: carta calda, inchiostro, un accento bronzo.
   ========================================= */

:root {
  --ink:        #1C1B19;
  --ink-soft:   #4A4740;
  --muted:      #87827A;
  --paper:      #F7F4EF;
  --sand:       #EEE8DE;
  --line:       #DCD5C8;
  --accent:     #8C6A43;
  --accent-ink: #6F5233;
  --deep:       #1E211D;
  --white:      #FFFFFF;

  --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 760px; }

/* ── Typography ─────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.eyebrow-light { color: rgba(255, 255, 255, .78); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.75; color: var(--ink); }
.note { font-size: 0.8rem; color: var(--muted); }

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 2rem;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-light   { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--sand); }
.btn-dark    { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent-ink); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-full { width: 100%; }

/* ── Navbar ─────────────────────────────── */
#navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 1.4rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s var(--ease);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: 0.01em;
  color: var(--white); text-decoration: none;
  transition: color .4s var(--ease);
}
.nav-cta {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  padding: .75rem 1.2rem; border: 1px solid rgba(255, 255, 255, .55); border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.nav-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
/* Sopra la hero il pulsante c'è già: in alto resta solo il logo */
#navbar:not(.scrolled) .nav-cta { opacity: 0; visibility: hidden; transform: translateY(-4px); }

#navbar.scrolled { background: rgba(247, 244, 239, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
#navbar.scrolled .nav-inner { padding-top: .9rem; padding-bottom: .9rem; }
#navbar.scrolled .nav-logo { color: var(--ink); }
#navbar.scrolled .nav-cta { color: var(--white); background: var(--ink); border-color: var(--ink); }
#navbar.scrolled .nav-cta:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

/* ── Hero ───────────────────────────────── */
#hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden; color: var(--white);
  background: #8f9590;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  filter: brightness(.9) saturate(.96);
  transform: scale(1.04);
  animation: hero-settle 2.4s var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(18, 17, 15, .38) 0, rgba(18, 17, 15, 0) 22%),
    linear-gradient(to top, rgba(18, 17, 15, .78) 0, rgba(18, 17, 15, .42) 30%, rgba(18, 17, 15, 0) 58%);
}
.hero-content {
  position: relative; z-index: 2;
  padding-bottom: clamp(3rem, 9vh, 6rem);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .25);
}
.hero-eyebrow {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(3.6rem, 11vw, 9rem);
  line-height: .95; letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.hero-sub {
  max-width: 30rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); font-weight: 300; line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 2.2rem;
}
.hero-content .btn { text-shadow: none; }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 1.6rem; z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.hero-content > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Sections ───────────────────────────── */
.section { padding: var(--section) 0; }
.section-tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0 var(--section); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--deep); color: var(--white); }

.section-header { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header h2 { margin-bottom: 1rem; }
.section-intro { color: var(--ink-soft); font-size: 1.02rem; }

/* ── La casa ────────────────────────────── */
.statement {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.14; max-width: 21ch;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.casa-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start; margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.casa-text p + p { margin-top: 1.2rem; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fact { padding: 1.4rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { padding-right: 1.25rem; }
.fact:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; margin-bottom: .35rem; }
.fact dd { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

figure figcaption {
  margin-top: .8rem; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.casa-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ── Banner terrazzo ────────────────────── */
.banner {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  background-color: #3c4636; background-size: cover; background-position: center;
  color: var(--white);
}
.banner-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16, 18, 14, .74) 0%, rgba(16, 18, 14, .5) 40%, rgba(16, 18, 14, .08) 75%);
}
.banner-content { position: relative; z-index: 1; }
.banner-content h2 { max-width: 13ch; margin-bottom: 1.4rem; text-shadow: 0 1px 24px rgba(0, 0, 0, .3); }
.banner-content p { max-width: 34rem; font-weight: 300; font-size: 1.05rem; color: rgba(255, 255, 255, .9); margin-bottom: 2.2rem; text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ── Tabs / spazi ───────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.tab-btn {
  position: relative; text-align: left;
  padding: 0 2.5rem 1.1rem 0;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--muted);
  transition: color .3s var(--ease);
}
.tab-btn small {
  display: block; margin-top: .25rem;
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.tab-btn::after {
  content: ''; position: absolute; left: 0; right: 2.5rem; bottom: -1px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.tab-btn.active { color: var(--ink); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.panel-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.panel-info h3 { margin-bottom: .3rem; }
.panel-kicker { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; }
.panel-info > p:not(.panel-kicker) { color: var(--ink-soft); margin-bottom: 1.6rem; }
.panel-list { list-style: none; margin-bottom: 2rem; border-top: 1px solid var(--line); }
.panel-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.panel-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 2rem; }
.thumb { overflow: hidden; display: block; }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.thumb:hover img { transform: scale(1.05); }

.plan {
  position: relative; display: block; width: 100%;
  background: var(--white); padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 18px 50px -24px rgba(28, 27, 25, .25);
  cursor: zoom-in;
}
.plan img { width: 100%; height: auto; mix-blend-mode: multiply; }
.plan-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: var(--white); padding: .35rem .7rem;
}

/* ── Galleria ───────────────────────────── */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 240px);
  grid-auto-flow: dense;
  gap: clamp(.5rem, 1.2vw, 1rem);
}
.g-item { position: relative; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.g-item:hover img { transform: scale(1.04); filter: brightness(.94); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.gallery:not(.expanded) .g-extra { display: none; }
.gallery-foot { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.gallery.expanded + .gallery-foot .btn { display: none; }

/* slider mobile (costruito da main.js) */
.gallery-mobile { display: none; }

/* ── Quartiere ──────────────────────────── */
.isola-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.isola-text h2 { margin-bottom: 1.4rem; }
.isola-text > p:not(.eyebrow):not(.note) { color: var(--ink-soft); margin-bottom: 2rem; }
.distances { list-style: none; border-top: 1px solid var(--line); margin-bottom: 1rem; }
.distances li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.distances em { font-style: normal; font-family: var(--font-display); font-size: 1.05rem; white-space: nowrap; }
.isola-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% center; }

/* ── Mappa ──────────────────────────────── */
.map-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.map-filter {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8rem; color: var(--ink-soft); transition: all .25s var(--ease);
}
.map-filter i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.map-filter.active, .map-filter:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.map-layout { display: grid; grid-template-columns: 1fr 300px; border: 1px solid var(--line); background: var(--white); }
#map { height: 500px; background: #e8e6e1; z-index: 0; }
.poi-list { list-style: none; max-height: 500px; overflow-y: auto; border-left: 1px solid var(--line); }
.poi-item { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.poi-item:hover, .poi-item.on { background: var(--paper); }
.poi-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: .45rem; flex-shrink: 0; }
.poi-name { font-size: 0.88rem; font-weight: 500; line-height: 1.35; }
.poi-dist { font-size: 0.78rem; color: var(--muted); }

.prop-marker {
  width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.prop-marker span { transform: rotate(45deg); font-family: var(--font-display); color: var(--white); font-size: 1.15rem; }
.poi-marker { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); font-family: var(--font-body); }
.map-popup strong { display: block; font-size: 0.9rem; margin-bottom: .15rem; }
.map-popup span { font-size: 0.8rem; color: var(--muted); }

/* ── Form ───────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231C1B19' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(28, 27, 25, .08); }
.field textarea::placeholder { color: #aaa49a; }

/* Checkbox ridisegnato: il controllo nativo con appearance:none non mostrerebbe la spunta */
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 20px; height: 20px; margin-top: .1rem;
  border: 1px solid #a9a296; border-radius: 2px; background: var(--white);
  display: grid; place-content: center; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.check input::before {
  content: ''; width: 12px; height: 12px; transform: scale(0); transition: transform .15s var(--ease);
  background: var(--white);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::before { transform: scale(1); }
.check input:hover { border-color: var(--ink); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 0.8rem; color: var(--muted); text-align: center; }
.form-error { color: #A13A2F; font-size: 0.9rem; text-align: center; }
.btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.success-mark { width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 1.4rem; }
.form-success h3 { margin-bottom: .6rem; }
.form-success p:last-child { color: var(--ink-soft); }

/* ── Contatti ───────────────────────────── */
.contatti-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: end; }
.contatti-grid h2 { margin-bottom: 1.2rem; }
.contatti-grid p:not(.eyebrow) { color: rgba(255, 255, 255, .72); max-width: 30rem; }
.contatti-list { list-style: none; margin-bottom: 2rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.contatti-list li { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 0.95rem; color: rgba(255, 255, 255, .88); }
.contatti-list span { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: .15rem; }
.contatti-list a { text-decoration: none; }
.contatti-list a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────── */
.footer { background: var(--deep); color: rgba(255, 255, 255, .55); padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 0.78rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-logo { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: .2rem; }
.footer-legal { display: flex; flex-direction: column; gap: .35rem; text-align: right; max-width: 560px; line-height: 1.55; }
.footer-links { display: flex; gap: 1.2rem; justify-content: flex-end; }
.footer a, .link-btn { color: rgba(255, 255, 255, .8); font-size: inherit; text-decoration: none; }
.footer a:hover, .link-btn:hover { color: var(--white); text-decoration: underline; }

/* ── FAB ────────────────────────────────── */
.fab-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: .7rem; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.fab-ghost { background: var(--white); color: var(--ink); }
.fab:hover { transform: translateY(-2px); }

/* ── Lightbox ───────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17, 16, 14, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-content { max-width: min(92vw, 1500px); text-align: center; }
.lb-content img { max-width: 100%; max-height: 84vh; margin: 0 auto; object-fit: contain; }
.lb-content figcaption { color: rgba(255, 255, 255, .7); }
.lb-close, .lb-prev, .lb-next { position: absolute; color: var(--white); font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; opacity: .75; transition: opacity .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 1rem; right: 1rem; font-size: 2.2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Cookie banner ──────────────────────── */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150;
  max-width: 620px; margin: 0 auto; padding: 1.1rem 1.25rem;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
  display: flex; gap: 1rem; align-items: center; font-size: 0.84rem; color: var(--ink-soft);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.cookie-banner a { color: var(--ink); }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.cookie-btn { padding: .65rem 1.2rem; border: 1px solid var(--ink); font-size: 0.78rem; font-weight: 500; letter-spacing: .06em; border-radius: var(--radius); }
.cookie-btn-primary { background: var(--ink); color: var(--white); }

/* ── Fade-in ────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .fade-in, .hero-content > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .casa-grid, .panel-grid, .isola-grid, .contatti-grid { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .poi-list { border-left: 0; border-top: 1px solid var(--line); max-height: 300px; }
  .isola-figure img { aspect-ratio: 3 / 2; }
  .footer-inner { flex-direction: column; }
  .footer-legal { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 1rem var(--gutter); }
  .nav-logo { font-size: 1.25rem; }
  .nav-cta { padding: .6rem .9rem; font-size: 0.66rem; letter-spacing: .12em; }

  .hero-media { background-position: center; }
  .hero-caption { display: none; }
  .hero-content .btn { width: 100%; }

  .facts { grid-template-columns: 1fr 1fr; }
  .casa-figure img { aspect-ratio: 4 / 3; }

  .banner { min-height: 0; padding: 7rem 0 4.5rem; align-items: flex-end; }
  .banner-shade { background: linear-gradient(to top, rgba(16, 18, 14, .85) 0%, rgba(16, 18, 14, .55) 45%, rgba(16, 18, 14, .2) 100%); }

  .strip { grid-template-columns: 1fr; gap: 1.5rem; }

  .tab-btn { padding-right: 1.4rem; flex: 1; }
  .tab-btn::after { right: 1.4rem; }

  .gallery { display: none; }
  .gallery-foot .btn { display: none; }
  .gallery-mobile { display: block; }
  .gm-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
  .gm-tabs::-webkit-scrollbar { display: none; }
  .gm-tab { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; white-space: nowrap; color: var(--ink-soft); }
  .gm-tab.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
  .gm-track { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .gm-track::-webkit-scrollbar { display: none; }
  .gm-slide { flex: 0 0 86%; scroll-snap-align: start; }
  .gm-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .gm-counter { margin-top: .8rem; font-size: 0.78rem; color: var(--muted); letter-spacing: .1em; }

  .form-row { grid-template-columns: 1fr; }
  #map { height: 380px; }

  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .cookie-btn { flex: 1; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

@media (max-width: 340px) {
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(even) { padding-left: 0; border-left: 0; }
}
