/* ═══════════════════════════════════════════════════════════════
   Stay Milanese · staymilanese.com — foglio di stile condiviso
   Usato da: index.html e tutte le pagine in /appartamenti/
   Identità: evoluzione delle guide ospiti (crema · terracotta · inchiostro)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cream:#F5EFE6; --cream-deep:#EDE4D3; --ink:#1C1A17; --ink-soft:#4A453E;
  --ink-mute:#8B8378; --terracotta:#B5482E; --terracotta-d:#8E3621;
  --terracotta-l:#D9694C; --olive:#5C5D3E; --paper:#FBF8F3; --line:#D8CFC0;
  --radius:14px; --radius-lg:22px;
  --shadow-sm: 0 1px 2px rgba(28,26,23,0.04), 0 2px 8px rgba(28,26,23,0.04);
  --shadow-md: 0 4px 12px rgba(28,26,23,0.06), 0 12px 28px rgba(28,26,23,0.06);
  --shadow-lg: 0 8px 24px rgba(28,26,23,0.08), 0 24px 56px rgba(28,26,23,0.10);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans); background: var(--cream); color: var(--ink);
  line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lingua: il body porta .lang-it o .lang-en — gli span si mostrano/nascondono.
   !important: nessun'altra regola (es. .foot-col span) deve poter mostrare la lingua nascosta */
[data-lang-it], [data-lang-en] { display: none !important; }
.lang-it [data-lang-it] { display: revert !important; }
.lang-en [data-lang-en] { display: revert !important; }

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
  color: var(--cream);
}
.topbar.solid { background: var(--cream); color: var(--ink); box-shadow: 0 1px 0 rgba(216,207,192,0.6), 0 6px 24px rgba(28,26,23,0.06); }
.topbar .brand { font-family: var(--serif); font-style: italic; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand-dot { display: inline-block; width: 5px; height: 5px; background: var(--terracotta); border-radius: 50%; margin: 0 5px 3px 5px; vertical-align: middle; }
.topnav { display: none; gap: 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.topnav a { text-decoration: none; opacity: 0.75; transition: opacity 0.2s ease; }
.topnav a:hover { opacity: 1; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; gap: 2px; background: rgba(245,239,230,0.12); border: 1px solid rgba(245,239,230,0.2); border-radius: 999px; padding: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; transition: all 0.35s ease; }
.topbar.solid .lang-toggle { background: var(--cream-deep); border-color: transparent; }
.lang-toggle button { background: none; border: none; padding: 5px 11px; border-radius: 999px; cursor: pointer; font: inherit; color: inherit; opacity: 0.6; transition: all 0.25s ease; text-transform: uppercase; }
.lang-toggle button.active { background: var(--terracotta); color: var(--cream); opacity: 1; }
.cta-mini { display: none; text-decoration: none; background: var(--terracotta); color: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; transition: background 0.2s ease; }
.cta-mini:hover { background: var(--terracotta-d); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92svh; display: flex; flex-direction: column;
  justify-content: flex-end; background: var(--ink); color: var(--cream);
  padding: 120px 22px 56px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 75% 15%, rgba(181,72,46,0.32) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 12% 85%, rgba(92,93,62,0.30) 0%, transparent 60%);
}
.hero::after {
  /* skyline stilizzato */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 240' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='none' stroke='%23F5EFE6' stroke-opacity='0.10' stroke-width='2'%3E%3Cpath d='M0 240V150h60v90M60 240V110h45v130M105 240V170h70v70M175 240V60l30-25 30 25v180M235 240V140h55v100M290 240V90h40v150M330 240V160h80v80M410 240V40h35l10-22 10 22h35v200M500 240V130h60v110M560 240V70h45v170M605 240V180h75v60M680 240V100h50v140M730 240V55l25-30 25 30v185M780 240V150h60v90M840 240V120h45v120M885 240V170h70v70M955 240V80h40v160M995 240V140h55v100M1050 240V100h45v140M1095 240V160h105v80'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: bottom center; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.24em; font-weight: 700; text-transform: uppercase; color: var(--terracotta-l); margin-bottom: 22px; animation: fadeUp 0.7s 0.1s ease both; }
.hero .eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--terracotta-l); }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 10.5vw, 118px); line-height: 0.96; letter-spacing: -0.02em; margin-bottom: 20px; animation: fadeUp 0.8s 0.22s ease both; }
.hero h1 em { font-style: italic; color: var(--terracotta-l); }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.6vw, 24px); color: rgba(245,239,230,0.75); max-width: 560px; margin-bottom: 40px; animation: fadeUp 0.8s 0.35s ease both; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp 0.9s 0.5s ease both; }
.hero-stats { display: flex; gap: 0; margin-top: 48px; border-top: 1px solid rgba(245,239,230,0.16); animation: fadeUp 1s 0.6s ease both; }
.hero-stat { padding: 18px 28px 0 0; margin-right: 28px; }
.hero-stat .n { font-family: var(--serif); font-size: 34px; line-height: 1; }
.hero-stat .n em { font-style: italic; color: var(--terracotta-l); }
.hero-stat .l { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: rgba(245,239,230,0.55); margin-top: 6px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── Bottoni ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 26px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; text-decoration: none; cursor: pointer; transition: all 0.25s ease; border: 1px solid transparent; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--terracotta); color: var(--cream); }
.btn.primary:hover { background: var(--terracotta-d); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--cream); border-color: rgba(245,239,230,0.35); }
.btn.ghost:hover { border-color: var(--cream); transform: translateY(-1px); }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.dark:hover { background: var(--terracotta); transform: translateY(-1px); }

/* ── Marquee ────────────────────────────────────────────────── */
.marquee { background: var(--terracotta); color: var(--cream); overflow: hidden; padding: 13px 0; white-space: nowrap; }
.marquee-track { display: inline-block; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 17px; margin: 0 18px; }
.marquee i { font-style: normal; opacity: 0.55; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Sezioni ────────────────────────────────────────────────── */
section.block { padding: 84px 0; }
.sec-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.22em; font-weight: 700; text-transform: uppercase; color: var(--terracotta); margin-bottom: 18px; }
.sec-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--terracotta); }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.5vw, 56px); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 14px; }
.sec-title em { font-style: italic; color: var(--terracotta); }
.sec-sub { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); max-width: 620px; margin-bottom: 44px; }

/* ── Booking / embed gestionale ─────────────────────────────── */
#prenota { scroll-margin-top: 80px; }
.booking-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 34px 28px; position: relative; overflow: hidden; }
.booking-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--terracotta), var(--terracotta-d)); }
.booking-placeholder { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--ink-mute); }
.booking-placeholder .big { font-family: var(--serif); font-size: 24px; color: var(--ink-soft); margin-bottom: 8px; }
.booking-placeholder p { font-size: 14px; max-width: 460px; margin: 0 auto 18px; }

/* ── Manifesto ──────────────────────────────────────────────── */
.manifesto { max-width: 820px; }
.manifesto p { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.35; color: var(--ink-soft); }
.manifesto p em { font-style: italic; color: var(--terracotta); }
.manifesto p + p { margin-top: 20px; }

/* ── Filtri zona ────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink-soft); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ── Griglia appartamenti ───────────────────────────────────── */
.apt-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.apt-card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.apt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.apt-card.hidden { display: none; }
.apt-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.apt-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.apt-card:hover .apt-media img { transform: scale(1.04); }
.apt-badge { position: absolute; top: 14px; left: 14px; background: rgba(28,26,23,0.82); color: var(--cream); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.apt-badge.soon { background: rgba(181,72,46,0.92); }
.apt-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.apt-zone { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); }
.apt-name { font-family: var(--serif); font-size: 27px; line-height: 1.05; letter-spacing: -0.01em; }
.apt-meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-mute); font-weight: 600; margin-top: 4px; }
.apt-meta svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.apt-link { margin-top: auto; padding-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.apt-link::after { content: '→'; transition: transform 0.2s ease; }
.apt-card:hover .apt-link::after { transform: translateX(4px); }

/* ── Come funziona ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
.step { background: var(--paper); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.step .num { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--terracotta); line-height: 1; margin-bottom: 14px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Quartieri ──────────────────────────────────────────────── */
.zone-list { border-top: 1px solid var(--line); }
.zone-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.zone-row h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.zone-row h3 .m { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); background: var(--terracotta); border-radius: 6px; padding: 3px 8px; vertical-align: middle; margin-left: 10px; }
.zone-row p { font-size: 15px; color: var(--ink-soft); max-width: 640px; }

/* ── Proprietari ────────────────────────────────────────────── */
.owners { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: 56px 28px; position: relative; overflow: hidden; }
.owners::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 85% 10%, rgba(181,72,46,0.25) 0%, transparent 55%); }
.owners > * { position: relative; }
.owners .sec-eyebrow { color: var(--terracotta-l); }
.owners .sec-eyebrow::before { background: var(--terracotta-l); }
.owners .sec-sub { color: rgba(245,239,230,0.7); }
.owners-points { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
.owners-point { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: rgba(245,239,230,0.85); }
.owners-point svg { width: 18px; height: 18px; color: var(--terracotta-l); flex-shrink: 0; margin-top: 2px; }

.form { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 640px; }
.form label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: rgba(245,239,230,0.6); display: block; margin-bottom: 7px; }
.form input, .form textarea { width: 100%; background: rgba(245,239,230,0.07); border: 1px solid rgba(245,239,230,0.22); border-radius: 12px; padding: 13px 16px; font: inherit; font-size: 15px; color: var(--cream); transition: border 0.2s ease; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--terracotta-l); }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { justify-self: start; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: var(--cream); padding: 56px 0 36px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand { font-family: var(--serif); font-style: italic; font-size: 26px; }
.foot-tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-mute); margin-top: 6px; }
.foot-col h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); margin-bottom: 14px; }
.foot-col a, .foot-col span { display: block; font-size: 14.5px; color: var(--ink-soft); text-decoration: none; margin-bottom: 9px; }
.foot-col a:hover { color: var(--terracotta); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 22px; font-size: 12px; color: var(--ink-mute); line-height: 1.7; }

/* ── Pagina appartamento ────────────────────────────────────── */
.apt-hero { position: relative; padding: 110px 0 0; }
.apt-hero-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-md); background: var(--cream-deep); }
.apt-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.crumb { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.crumb a { color: var(--ink-mute); text-decoration: none; }
.crumb a:hover { color: var(--terracotta); }
.crumb i { font-style: normal; color: var(--line); margin: 0 8px; }
.apt-head { padding: 30px 0 10px; }
.apt-head .apt-zone { margin-bottom: 8px; }
.apt-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 66px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.apt-head h1 em { font-style: italic; color: var(--terracotta); }
.apt-head .lede { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); max-width: 640px; }

.facts { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; margin: 36px 0; position: relative; }
.facts::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, var(--terracotta), var(--terracotta-d)); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; }
.fact { padding: 20px 24px; border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.fact:nth-child(2n) { border-right: none; }
.fact .key { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; margin-bottom: 6px; }
.fact .val { font-family: var(--serif); font-size: 21px; line-height: 1.15; }

.apt-cols { display: grid; grid-template-columns: 1fr; gap: 44px; padding: 20px 0 0; }
.apt-desc p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }
.apt-desc p + p { margin-top: 14px; }
.apt-desc h2, .amen h2, .apt-zone-sec h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin-bottom: 16px; letter-spacing: -0.01em; }
.apt-desc h2 em, .amen h2 em, .apt-zone-sec h2 em { font-style: italic; color: var(--terracotta); }
.amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amen-item { display: flex; align-items: center; gap: 11px; background: var(--paper); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-sm); }
.amen-item svg { width: 17px; height: 17px; color: var(--terracotta); flex-shrink: 0; }
.apt-zone-sec p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }

.apt-cta { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: 44px 28px; text-align: center; margin: 56px 0 0; position: relative; overflow: hidden; }
.apt-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(181,72,46,0.28) 0%, transparent 60%); pointer-events: none; }
.apt-cta > * { position: relative; }
.apt-cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 42px); margin-bottom: 10px; }
.apt-cta h2 em { font-style: italic; color: var(--terracotta-l); }
.apt-cta p { font-family: var(--serif); font-style: italic; color: rgba(245,239,230,0.7); margin-bottom: 26px; }

.note-tax { display: flex; gap: 10px; align-items: flex-start; background: var(--cream-deep); border-radius: var(--radius); padding: 14px 16px; font-size: 13px; color: var(--ink-soft); margin-top: 24px; }
.note-tax svg { width: 15px; height: 15px; color: var(--terracotta); flex-shrink: 0; margin-top: 2px; }

/* ── Reveal on scroll ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Desktop ────────────────────────────────────────────────── */
@media (min-width: 700px) {
  .apt-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .owners-points { grid-template-columns: 1fr 1fr; }
  .form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: none; border-right: 1px dashed var(--line); }
  .fact:nth-child(2n) { border-right: 1px dashed var(--line); }
  .fact:last-child { border-right: none; }
  .zone-row { grid-template-columns: 320px 1fr; gap: 30px; align-items: baseline; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  .topnav { display: flex; }
  .cta-mini { display: inline-flex; }
  .topbar { padding: 16px 36px; }
  .apt-grid { grid-template-columns: 1fr 1fr 1fr; }
  section.block { padding: 110px 0; }
  .owners { padding: 72px 64px; }
  .apt-cols { grid-template-columns: 1.5fr 1fr; }
  .booking-card { padding: 44px 48px; }
}

/* ── Pagina catalogo appartamenti (mappa + filtri) ──────────── */
.cat-head { padding: 104px 0 26px; }
.cat-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6.5vw, 60px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 10px; }
.cat-head h1 em { font-style: italic; color: var(--terracotta); }
.cat-head .lede { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); }

.fbar { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 14px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.fbar .frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.fbar .frow:last-child { margin-bottom: 0; }
.flabel { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); width: 100%; margin-bottom: 2px; }
.fchip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.fchip svg { width: 14px; height: 14px; }
.fchip:hover { border-color: var(--ink-soft); }
.fchip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.fcount { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-soft); margin: 0 0 16px 4px; }
.freset { background: none; border: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--terracotta); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }

.cat-layout { display: grid; grid-template-columns: 1fr; gap: 26px; }
.cat-layout .map-box { order: -1; } /* mobile: prima la mappa, poi le card */
.map-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 380px; background: var(--cream-deep); z-index: 1; }
#mappa { width: 100%; height: 100%; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-content: start; }
.cat-grid .apt-card { animation: fadeUp 0.4s ease both; }
.apt-meta .guests svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

/* Pin terracotta */
.pin-wrap { background: none; border: none; }
.pin { width: 26px; height: 26px; background: var(--terracotta); border: 2.5px solid var(--paper); border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); box-shadow: 0 3px 10px rgba(28,26,23,0.35); transition: transform 0.2s ease, background 0.2s ease; cursor: pointer; }
.pin::after { content: ''; position: absolute; inset: 7px; background: var(--paper); border-radius: 50%; }
.pin:hover, .pin.active { background: var(--ink); transform: rotate(-45deg) scale(1.2); }
.pin.soon { background: var(--olive); }

/* Popup Leaflet in stile brand */
.leaflet-popup-content-wrapper { background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-family: var(--sans); }
.leaflet-popup-content { margin: 14px 16px; line-height: 1.4; min-width: 180px; }
.leaflet-popup-tip { background: var(--paper); }
.pop-zone { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--terracotta); margin-bottom: 3px; }
.pop-name { font-family: var(--serif); font-size: 21px; line-height: 1.05; margin-bottom: 4px; }
.pop-meta { font-size: 12px; color: var(--ink-mute); font-weight: 600; margin-bottom: 10px; }
.pop-link { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream) !important; background: var(--terracotta); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.pop-link:hover { background: var(--terracotta-d); }
.leaflet-container { font-family: var(--sans); }

@media (min-width: 900px) {
  .cat-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .cat-layout .map-box { order: 0; } /* desktop: card a sinistra, mappa a destra */
  .cat-grid { grid-template-columns: 1fr 1fr; order: -1; }
  .map-box { position: sticky; top: 86px; height: calc(100vh - 110px); }
  .flabel { width: auto; margin: 0 10px 0 2px; }
}
