/* Sito pubblico */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(245, 239, 228, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sea); }
.brand span { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--sea); }
.nav-desktop { display: none; }
.menu-panel { position: fixed; inset: 60px 0 0 0; background: var(--ground); padding: 12px 20px; display: none; flex-direction: column; z-index: 19; }
.menu-panel.open { display: flex; }
.menu-panel a.item { min-height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; color: var(--sea); text-decoration: none; }
.menu-panel .btn { margin-top: 24px; }

.hero { padding: 12px 12px 0; }
.hero-card { border-radius: 18px; overflow: hidden; background: var(--sea); display: flex; flex-direction: column; max-width: 1120px; margin: 0 auto; }
.hero-card img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 65%; }
.hero-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.hero-body .eyebrow { color: var(--gold); }
.hero-body h1 { font-size: 46px; line-height: 1; color: #fff; }
.hero-body p { font-size: 16px; color: #EEF3F6; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.hero-actions .btn.outline { color: #fff; border-color: var(--ground); }
.hero-actions .btn.outline:hover { background: rgba(255,255,255,.08); }

.section { padding-top: 56px; }
.section .stack { display: flex; flex-direction: column; gap: 16px; }
.section h2 { font-size: 34px; }
.section p.lead { font-size: 16px; line-height: 1.6; color: var(--muted); }
.photo { width: 100%; object-fit: cover; border-radius: 16px; }
.cards { display: flex; flex-direction: column; gap: 12px; }
.card-link { display: flex; gap: 14px; align-items: flex-start; padding: 18px; text-decoration: none; color: var(--ink); }
.card-link h3 { font-size: 21px; font-weight: 600; color: var(--ink); }
.card-link p { font-size: 15px; color: var(--muted); }
.card-link svg { flex-shrink: 0; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.gallery { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 6px; scroll-snap-type: x mandatory; }
.gallery img { flex-shrink: 0; width: 220px; height: 300px; object-fit: cover; border-radius: 14px; scroll-snap-align: start; }

.sat { position: relative; border-radius: 16px; overflow: hidden; }
.sat img { width: 100%; height: 262px; object-fit: cover; }
.sat .tag { position: absolute; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 10px; background: var(--card); color: var(--sea); }

.band { margin: 56px 12px 0; padding: 28px 20px; border-radius: 18px; background: var(--sea); display: flex; flex-direction: column; gap: 18px; }
.band .eyebrow { color: var(--gold); }
.band h2 { color: #fff; font-size: 30px; }
.band p { color: var(--sea-soft); font-size: 15px; }

.contacts { display: flex; flex-direction: column; gap: 12px; }
.contacts .k { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--earth); }
form.card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hp { position: absolute; left: -5000px; }

footer.site { margin-top: 56px; padding: 24px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer.site .wrap { display: flex; flex-direction: column; gap: 10px; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }

.split, .contact-grid { display: flex; flex-direction: column; gap: 20px; }

/* Affitti */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; }
.filters button { flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--sea); background: transparent; color: var(--sea); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.filters button[aria-pressed="true"] { background: var(--sea); color: #fff; }
.listings { display: grid; grid-template-columns: 1fr; gap: 16px; }
.listing { overflow: hidden; display: flex; flex-direction: column; }
.listing .ph { height: 200px; background: #C9D6DE; object-fit: cover; width: 100%; }
.listing .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.listing h3 { font-size: 21px; font-weight: 600; color: var(--ink); }
.listing .price { font-size: 14px; font-weight: 600; color: var(--sea); white-space: nowrap; }
.empty { padding: 28px 20px; text-align: center; color: var(--muted); }

/* Pagine di testo */
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin-top: 28px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--ink); line-height: 1.65; }
.prose p + p { margin-top: 10px; }

/* Schermi grandi */
@media (min-width: 900px) {
  .menu-btn, .menu-panel { display: none !important; }
  .nav-desktop { display: flex; align-items: center; gap: 28px; font-weight: 500; }
  .nav-desktop a { text-decoration: none; color: var(--ink); }
  .nav-desktop .btn { color: #fff; }
  .topbar .wrap { height: 76px; padding-right: 20px; }
  .hero { padding: 24px 20px 0; }
  .hero-card { position: relative; min-height: 620px; justify-content: flex-end; }
  .hero-card img { position: absolute; inset: 0; height: 100%; }
  .hero-body { position: relative; margin: 32px; max-width: 560px; background: rgba(23, 63, 95, .9); border-radius: 16px; padding: 32px; }
  .hero-body h1 { font-size: 64px; }
  .hero-actions { flex-direction: row; }
  .section { padding-top: 96px; }
  .section h2 { font-size: 46px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .split.rev > :first-child { order: 2; }
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); }
  .gallery { max-width: 1120px; margin: 0 auto; }
  .gallery img { width: 260px; height: 340px; }
  .band { max-width: 1080px; margin: 96px auto 0; padding: 48px; }
  .listings { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
  footer.site .wrap { flex-direction: row; justify-content: space-between; }
}
