/* =========================================
   Minniti 6 — style.css
   SF Pro (font di sistema) con alternative Windows/Android, neutri chiari,
   sezioni nere per le foto. Nessun font esterno da scaricare.
   ========================================= */

:root {
  --bg:        #FFFFFF;
  --alt:       #F5F5F7;
  --ink:       #1D1D1F;
  --ink-soft:  #424245;
  --muted:     #6E6E73;
  --line:      #D2D2D7;
  --accent:    #9A6A3C;
  --black:     #000000;
  --dark-text: #A1A1A6;
  --white:     #FFFFFF;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --radius: 8px;
  --ease: cubic-bezier(.16, 1, .3, 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);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  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; letter-spacing: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 720px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Typography ─────────────────────────── */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.028em; line-height: 1.07; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5.4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }

.eyebrow { font-size: 1.0625rem; font-weight: 600; color: var(--accent); margin-bottom: .6rem; letter-spacing: -0.01em; }
.eyebrow-light { color: #D3A574; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.3125rem); line-height: 1.47; color: var(--muted); text-wrap: pretty; }
.note { font-size: 0.8125rem; color: var(--muted); margin-top: 1.5rem; }

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: 0 1.6rem;
  font-size: 1.0625rem; font-weight: 500; text-decoration: none;
  border-radius: 980px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-light   { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #E8E8ED; }
.btn-dark    { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #333336; }
.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.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s var(--ease);
}
.nav-logo { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--white); text-decoration: none; transition: color .4s var(--ease); }
.nav-cta {
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  color: var(--white); background: var(--ink); padding: .5rem 1rem; border-radius: 980px;
  transition: opacity .3s var(--ease), visibility .3s, transform .3s var(--ease), background .3s;
}
.nav-cta:hover { background: #333336; }
/* 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(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
#navbar.scrolled .nav-inner { padding-top: .7rem; padding-bottom: .7rem; }
#navbar.scrolled .nav-logo { color: var(--ink); }

/* ── Hero ───────────────────────────────── */
#hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; overflow: hidden; color: var(--white); background: #6f746c;
}
.hero-media {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  filter: brightness(.92); 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(0, 0, 0, .35) 0, rgba(0, 0, 0, 0) 20%),
    linear-gradient(to top, rgba(0, 0, 0, .72) 0, rgba(0, 0, 0, .35) 32%, rgba(0, 0, 0, 0) 58%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(3rem, 9vh, 6rem); }
.hero-eyebrow { font-size: 1.0625rem; font-weight: 600; color: rgba(255, 255, 255, .85); margin-bottom: .4rem; }
.hero-title { font-size: clamp(3.5rem, 12vw, 8rem); letter-spacing: -0.045em; line-height: .95; margin-bottom: 1rem; }
.hero-sub { max-width: 26rem; font-size: clamp(1.15rem, 1.9vw, 1.375rem); line-height: 1.38; color: rgba(255, 255, 255, .9); margin-bottom: 1.8rem; text-wrap: pretty; }
.hero-content > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Sections ───────────────────────────── */
.section { padding: var(--section) 0; }
.section-alt { background: var(--alt); }
.section-dark { background: var(--black); color: var(--white); }
.section-header { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-intro { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.47; color: var(--muted); margin-top: 1rem; text-wrap: pretty; }
.section-dark .section-intro { color: var(--dark-text); }

/* ── La casa ────────────────────────────── */
.statement { font-size: clamp(2.2rem, 5.6vw, 4rem); max-width: 17ch; margin-bottom: 1.6rem; }
.casa-lead { max-width: 38rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 1.5rem 1.25rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: .3rem; }
.fact dd { font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }

/* ── Sezioni solo foto (come "Grafiche curate" di gaglioneandrea.com) ── */
.photos { padding: var(--section) 0; background: var(--alt); }
.photos-dark { background: var(--black); color: var(--white); }
.photos-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2rem, 6vw, 3.5rem); }
.photos-head p { margin-top: .75rem; font-size: clamp(1.1rem, 1.6vw, 1.3125rem); color: var(--muted); }
.photos-dark .photos-head p { color: var(--dark-text); }
.trio { display: grid; gap: 10px; }
.frame {
  position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: #1D1D1F; cursor: zoom-in; isolation: isolate;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.03); }

/* ── Banner terrazzo ────────────────────── */
.banner {
  position: relative; min-height: 86vh; 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(0, 0, 0, .7) 0%, rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, .05) 75%); }
.banner-content { position: relative; z-index: 1; }
.banner-content h2 { max-width: 12ch; margin-bottom: 1rem; }
.banner-content p:not(.eyebrow) { max-width: 26rem; font-size: clamp(1.15rem, 1.8vw, 1.3125rem); color: rgba(255, 255, 255, .88); margin-bottom: 1.8rem; }

/* ── Tabs / spazi ───────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }
.tab-btn {
  position: relative; text-align: left; padding: 0 2.5rem 1rem 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; color: #86868B;
  transition: color .3s var(--ease);
}
.tab-btn small { display: block; margin-top: .15rem; font-size: 0.875rem; font-weight: 400; letter-spacing: -0.01em; }
.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, .tab-btn:hover { color: var(--ink); }
.tab-btn.active::after { transform: scaleX(1); }
.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, 5rem); align-items: start; }
.panel-list { list-style: none; margin-bottom: 1.8rem; border-top: 1px solid var(--line); }
.panel-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.panel-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 2rem; }
.thumb { overflow: hidden; display: block; border-radius: 6px; }
.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); border-radius: 12px; cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 50px -24px rgba(0, 0, 0, .22);
}
.plan img { width: 100%; height: auto; mix-blend-mode: multiply; }
.plan-badge { position: absolute; top: 1rem; right: 1rem; font-size: 0.75rem; font-weight: 500; background: var(--ink); color: var(--white); padding: .3rem .7rem; border-radius: 980px; }

/* ── Box, posto auto, cantina ───────────── */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.extra { background: #1D1D1F; border-radius: 18px; padding: clamp(1.75rem, 3vw, 2.5rem); }
.extra svg { width: 36px; height: 36px; color: #D3A574; margin-bottom: 2rem; }
.extra-num { font-size: clamp(2.5rem, 4.5vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: .6rem; }
.extra h3 { margin-bottom: .4rem; }
.extra p:not(.extra-num) { color: var(--dark-text); font-size: 1rem; }

/* ── Galleria ───────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: 10px; }
.g-item { position: relative; overflow: hidden; background: var(--alt); cursor: zoom-in; border-radius: 6px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.04); }
.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; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.gallery.expanded + .gallery-foot { display: none; }
.gallery-mobile { display: none; }

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

/* ── 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: .45rem 1rem; border: 1px solid var(--line); border-radius: 980px; font-size: 0.875rem; 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); border-radius: 12px; overflow: hidden; background: var(--white); }
#map { height: 500px; background: #e8e8ed; 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(--alt); }
.poi-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: .45rem; flex-shrink: 0; }
.poi-name { font-size: 0.9375rem; font-weight: 500; line-height: 1.35; }
.poi-dist { font-size: 0.8125rem; 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); color: var(--white); font-size: 1.1rem; font-weight: 600; font-family: var(--font); }
.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-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
.map-popup strong { display: block; font-size: 0.9375rem; margin-bottom: .15rem; }
.map-popup span { font-size: 0.8125rem; color: var(--muted); }

/* ── Form ───────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  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='%231D1D1F' stroke-width='1.5'%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: #0071E3; box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.field textarea::placeholder { color: #A1A1A6; }

/* Checkbox ridisegnato: con appearance:none il controllo nativo non mostra la spunta */
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin-top: .05rem;
  border: 1px solid #86868B; border-radius: 6px; 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 #0071E3; outline-offset: 2px; }
.check a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 0.875rem; color: var(--muted); text-align: center; }
.form-error { color: #C0392B; font-size: 0.9375rem; 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: .5rem; }
.form-success p:last-child { color: var(--muted); }

/* ── Contatti ───────────────────────────── */
.contatti-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.contatti-grid h2 { margin-bottom: 1rem; }
.contatti-grid p:not(.eyebrow) { color: var(--dark-text); font-size: clamp(1.1rem, 1.6vw, 1.25rem); }
.contatti-list { list-style: none; margin-bottom: 2rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.contatti-list li { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .9); }
.contatti-list span { display: block; font-size: 0.8125rem; color: #86868B; margin-bottom: .1rem; }
.contatti-list a { text-decoration: none; font-weight: 500; }
.contatti-list a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────── */
.footer { background: var(--black); color: #86868B; padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 0.75rem; line-height: 1.5; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-logo { display: block; font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: .2rem; letter-spacing: -0.02em; }
.footer-legal { display: flex; flex-direction: column; gap: .35rem; text-align: right; max-width: 600px; }
.footer-links { display: flex; gap: 1.2rem; justify-content: flex-end; }
.footer a, .link-btn { color: #D2D2D7; 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(0, 0, 0, .95); 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; border-radius: 4px; }
.lb-content figcaption { margin-top: .8rem; color: #A1A1A6; font-size: 0.875rem; }
.lb-close, .lb-prev, .lb-next { position: absolute; color: var(--white); font-size: 1.5rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.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: 1rem 1.2rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  display: flex; gap: 1rem; align-items: center; font-size: 0.875rem; 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: .55rem 1.1rem; border: 1px solid var(--ink); font-size: 0.875rem; font-weight: 500; border-radius: 980px; }
.cookie-btn-primary { background: var(--ink); color: var(--white); }
.hero-content { transition: padding-bottom .5s var(--ease); }
.cookie-pending .hero-content { padding-bottom: calc(clamp(3rem, 9vh, 6rem) + 70px); }
@media (max-width: 768px) { .cookie-pending .hero-content { padding-bottom: calc(clamp(3rem, 9vh, 6rem) + 150px); } }

/* ── 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 (min-width: 761px) {
  .trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio .frame { aspect-ratio: 16 / 10; }
  .trio .frame:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}

@media (max-width: 1024px) {
  .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) {
  body { font-size: 1.0625rem; }
  .nav-inner { padding: .9rem var(--gutter); }
  .hero-media { background-position: center; }
  .hero-content .btn { width: 100%; }

  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding-right: .75rem; }

  .banner { min-height: 0; padding: 8rem 0 4.5rem; align-items: flex-end; }
  .banner-shade { background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .45) 50%, rgba(0, 0, 0, .1) 100%); }

  .extras { grid-template-columns: 1fr; }
  .extra { display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: start; }
  .extra svg { margin: 0; grid-row: span 3; }
  .extra-num { font-size: 2.25rem; }

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

  .gallery, .gallery-foot { 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: .45rem 1rem; border: 1px solid var(--line); border-radius: 980px; font-size: 0.875rem; 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: 10px; 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; border-radius: 8px; overflow: hidden; }
  .gm-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .gm-counter { margin-top: .8rem; font-size: 0.875rem; color: var(--muted); }

  .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: 1.5rem; transform: none; }
}

@media (max-width: 340px) {
  .facts { grid-template-columns: 1fr; }
}
