/* ==========================================================================
   Chiodi Immobiliare – design system
   Palette: inchiostro (navy profondo), sabbia (fondi caldi), Adriatico (teal),
   corallo (CTA, tramonti di Rimini). Font: Fraunces (display) + Manrope (UI).
   ========================================================================== */

:root {
    /* Brand: navy e azzurro del logo Chiodi Immobiliare */
    --ink: #0a2348;
    --ink-2: #17355f;
    --ink-3: #2d4a74;
    --muted: #5c6b80;
    --muted-2: #8b98a8;
    --line: #dfe3ea;
    --line-2: #ecf0f5;
    --sand: #f3f6fa;
    --sand-2: #e4ebf4;
    --paper: #ffffff;
    --sea: #2f8fe0;
    --sea-deep: #1b5fa3;
    --sea-soft: #e3f0fc;
    --sky: #70b0f0;
    --coral: #e4603f;
    --coral-deep: #c44a2c;
    --coral-soft: #fbe9e3;
    --gold: #d9a441;
    --green: #1f8a5b;
    --green-soft: #e3f3ea;
    --red: #c62f2f;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(18, 35, 46, .06), 0 1px 6px rgba(18, 35, 46, .05);
    --shadow: 0 6px 18px -6px rgba(18, 35, 46, .18), 0 2px 6px rgba(18, 35, 46, .06);
    --shadow-lg: 0 24px 48px -18px rgba(18, 35, 46, .32), 0 8px 20px -8px rgba(18, 35, 46, .12);

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 84px;
    --topbar-h: 36px;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --t: .28s var(--ease);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
strong { font-weight: 700; }
small { font-size: .85em; font-weight: 500; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1400px; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #d9e2e8; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--sea { background: var(--sea-deep); color: #dbeaf0; }
.section--sea h2, .section--sea h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row > div { max-width: 720px; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.section--ink .lead, .section--sea .lead { color: inherit; opacity: .85; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #f3b39f; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
    transition: transform var(--t), box-shadow var(--t), background-color var(--t), color var(--t), border-color var(--t);
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(228, 96, 63, .7); }
.btn--primary:hover { background: var(--coral-deep); color: #fff; box-shadow: 0 12px 24px -8px rgba(228, 96, 63, .8); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--sea { background: var(--sea); color: #fff; }
.btn--sea:hover { background: var(--sea-deep); color: #fff; }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink-3); padding-inline: 12px; }
.btn--ghost:hover { color: var(--ink); background: var(--sand); transform: none; }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1fb557; color: #fff; }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Badges, chips, pills
   -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.badge--new { background: var(--coral); color: #fff; }
.badge--exclusive { background: var(--ink); color: #fff; }
.badge--sold { background: var(--green); color: #fff; }
.badge--ghost { background: rgba(18, 35, 46, .55); color: #fff; backdrop-filter: blur(6px); box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .85rem; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: border-color var(--t), background-color var(--t), color var(--t), transform var(--t); }
.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip--removable span { font-size: 1.1em; line-height: 1; color: var(--muted); }
.chip--ghost { border-style: dashed; color: var(--muted); }
.chip__count { font-weight: 800; color: var(--coral); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: all var(--t); user-select: none; }
.pills--sm .pill span { padding: 7px 12px; font-size: .82rem; }
.pill:hover span { border-color: var(--ink-3); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--sand-2); margin-bottom: 18px; }
.segmented__btn { padding: 10px 12px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: .9rem; color: var(--ink-3); transition: all var(--t); }
.segmented__btn.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.field label small, .field__label small { font-weight: 500; color: var(--muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink);
    transition: border-color var(--t), box-shadow var(--t);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235d6d77' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(15, 108, 140, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field__error { margin: 0; font-size: .82rem; font-weight: 600; color: var(--red); min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; font-weight: 500 !important; color: var(--muted); cursor: pointer; line-height: 1.5; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--coral); }
.form-error { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #fdecec; color: var(--red); font-weight: 600; font-size: .9rem; }
.lead-form__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.lead-form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.lead-form__note--center { text-align: center; margin-top: 10px; }
.lead-form__section + .lead-form__section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.lead-form__heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; }
.lead-form__heading .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; }
.lead-form .field + .field, .lead-form .grid + .field, .lead-form .field + .grid { margin-top: 18px; }
.lead-form__step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.lead-form__step.is-active { display: block; animation: fadeUp .35s var(--ease); }
.lead-form--card { padding: 26px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lead-form--card .field + .field { margin-top: 14px; }
.stepper { display: flex; gap: 8px; list-style: none; margin-bottom: 26px; }
.stepper__step { flex: 1; display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 3px solid var(--line); font-size: .85rem; font-weight: 700; color: var(--muted); transition: all var(--t); }
.stepper__step span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sand-2); font-size: .78rem; }
.stepper__step.is-active { border-color: var(--coral); color: var(--ink); }
.stepper__step.is-active span { background: var(--coral); color: #fff; }
.stepper__step.is-done { border-color: var(--green); }
.stepper__step.is-done span { background: var(--green); color: #fff; }

.form-success { text-align: center; padding: 32px 20px; animation: fadeUp .4s var(--ease); }
.form-success__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-bottom: 16px; }
.form-success__title { margin-bottom: 8px; }
.form-success__text { color: var(--muted); max-width: 480px; margin-inline: auto; }
.form-success__hint { margin-top: 14px; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line-2); transition: box-shadow var(--t), background-color var(--t), transform var(--t); }
.header.is-scrolled { box-shadow: var(--shadow); }
.topbar { background: var(--ink); color: #cfdbe3; font-size: .8rem; height: var(--topbar-h); overflow: hidden; transition: height var(--t), opacity var(--t); }
.header.is-scrolled .topbar { height: 0; opacity: 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 16px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; }
.topbar__item:hover { color: #fff; }
.topbar__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 3px rgba(60, 207, 122, .25); }
@media (max-width: 760px) { .topbar__item--hide-sm { display: none; } .topbar__inner > .topbar__item:first-child { display: none; } .topbar__inner { justify-content: center; } }

.navbar { height: var(--header-h); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.navbar__brand { text-decoration: none; color: inherit; flex: none; }
.logo { display: inline-flex; align-items: center; }
.logo__img { height: 66px; width: auto; }
.footer .logo__img { height: 80px; }
@media (max-width: 900px) { .logo__img { height: 52px; } }

.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__link { display: flex; flex-direction: column; padding: 8px 13px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.2; white-space: nowrap; transition: background-color var(--t), color var(--t); }
.nav__link:hover { background: var(--sand); color: var(--ink); }
.nav__hint { display: none; }
.nav__item.is-active .nav__link { color: var(--coral); }
.nav__item--accent .nav__link { color: var(--coral); }
.nav__mobile-extra { display: none; }
.navbar__actions { display: flex; align-items: center; gap: 10px; }
.navbar__icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); text-decoration: none; transition: background-color var(--t); }
.navbar__icon-btn:hover { background: var(--sand); }
.navbar__burger { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--sand); }
.navbar__burger span { position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t), top var(--t); }
.navbar__burger span:nth-child(1) { top: 16px; }
.navbar__burger span:nth-child(2) { top: 22px; }
.navbar__burger span:nth-child(3) { top: 28px; }
.navbar__burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.navbar__social { display: flex; gap: 2px; padding-right: 6px; margin-right: 4px; border-right: 1px solid var(--line); }
.navbar__icon-btn--social { width: 38px; height: 38px; color: var(--ink-3); }
.navbar__icon-btn--social:hover { color: var(--coral); background: var(--coral-soft); }
.navbar__cta--secondary { padding-inline: 18px; }
.nav__social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.nav__social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
@media (min-width: 1400px) { .nav__item--cerco { display: none; } }
@media (max-width: 1399px) {
    .nav__link { padding-inline: 9px; font-size: .9rem; }
    .navbar__cta--secondary { display: none; }
}
@media (max-width: 1180px) {
    .nav__link { padding-inline: 7px; font-size: .86rem; }
    .logo__img { height: 46px; }
}
@media (max-width: 1080px) {
    .nav__link { padding-inline: 8px; font-size: .88rem; }
    .navbar__cta { display: none; }
    .navbar__social { display: none; }
}
.nav__mobile-head, .nav__close { display: none; }
@media (max-width: 900px) {
    .navbar__burger { display: block; }
    .navbar__icon-btn { display: none; }
    body.nav-locked { overflow: hidden; }

    /* Overlay a tutto schermo con taglio diagonale */
    .nav {
        position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column;
        padding: 0 0 calc(28px + env(safe-area-inset-bottom));
        background: var(--ink); color: #fff; overflow-y: auto; overflow-x: hidden; isolation: isolate;
        clip-path: circle(0 at calc(100% - 40px) 52px); visibility: hidden;
        transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .6s;
    }
    .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 52px); visibility: visible; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
    .nav::before { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: var(--coral); clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%); z-index: -1; opacity: .96; }
    .nav::after { content: ""; position: absolute; right: -60px; top: 120px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(15, 108, 140, .55), transparent 70%); z-index: -1; }
    .nav__mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); min-height: var(--header-h); }
    .nav__close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); transition: transform var(--t); }
    .nav__close:hover { transform: rotate(90deg); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 0; counter-reset: navitem; }
    .nav__item { counter-increment: navitem; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
    .nav.is-open .nav__item { opacity: 1; transform: none; }
    .nav.is-open .nav__item:nth-child(1) { transition-delay: .18s; } .nav.is-open .nav__item:nth-child(2) { transition-delay: .24s; } .nav.is-open .nav__item:nth-child(3) { transition-delay: .3s; }
    .nav.is-open .nav__item:nth-child(4) { transition-delay: .36s; } .nav.is-open .nav__item:nth-child(5) { transition-delay: .42s; } .nav.is-open .nav__item:nth-child(6) { transition-delay: .48s; } .nav.is-open .nav__item:nth-child(7) { transition-delay: .54s; }
    .nav__link { position: relative; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 13px 0 13px 38px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; }
    .nav__link::before { content: "0" counter(navitem); position: absolute; left: 0; top: 18px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: #ffb8a3; }
    .nav__link:hover { background: transparent; color: #fff; }
    .nav__label { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 7vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; }
    .nav__hint { display: block; font-size: .78rem; font-weight: 600; color: rgba(255, 255, 255, .55); }
    .nav__item.is-active .nav__link .nav__label, .nav__item--accent .nav__link .nav__label { color: #ffd9cc; }
    .nav__item--cerco { display: block; }
    .nav__mobile-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; padding: 0 var(--gutter); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease) .6s, transform .5s var(--ease) .6s; }
    .nav.is-open .nav__mobile-extra { opacity: 1; transform: none; }
    .nav__mobile-extra .btn { white-space: normal; min-width: 0; padding-inline: 14px; text-align: center; }
    .nav__mobile-extra .btn--primary { background: #fff; color: var(--coral-deep); box-shadow: none; }
    .nav__mobile-extra .btn--outline { border-color: #fff; color: #fff; }
    .nav__mobile-extra .btn--ghost { color: #fff; grid-column: 1 / -1; }
    .nav__mobile-extra .btn--whatsapp { grid-column: 1 / -1; }
    .nav__social { grid-column: 1 / -1; border-top-color: rgba(255, 255, 255, .25); }
    .nav__social a { color: #fff; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .nav { clip-path: none; transform: translateX(100%); transition: transform .2s; }
    .nav.is-open { clip-path: none; transform: none; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero { position: relative; color: #fff; padding-block: clamp(12px, 2vw, 24px) 0; }
.hero__frame { position: relative; min-height: min(calc(100svh - var(--header-h) - var(--topbar-h) - 40px), 780px); display: grid; align-items: end; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-lg); }
.hero__bg { position: absolute; inset: -14% 0; z-index: -2; background: var(--ink); will-change: transform; }
/* Lenis blocca i pointer events sugli iframe durante lo smooth scroll: la mappa deve restare usabile */
.lenis.lenis-smooth .map iframe { pointer-events: auto; }
.hero__bg img, .hero__video { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__bg img { transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 35, 72, .15) 0%, rgba(10, 35, 72, .25) 40%, rgba(10, 35, 72, .86) 100%); }
.hero__inner { position: relative; padding: clamp(56px, 8vw, 120px) clamp(20px, 4vw, 56px) clamp(28px, 4vw, 44px); }
.hero__content { max-width: 780px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .hero { padding-top: 0; } .hero__frame { border-radius: 0 0 var(--radius-lg) var(--radius-lg); min-height: calc(100svh - var(--header-h)); } .hero__actions .btn { flex: 1 1 100%; } }
.search-band__zones { justify-content: center; margin-top: 18px; }
.chips--center { justify-content: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 700; margin-bottom: 22px; }
.hero__kicker b { display: inline-grid; place-items: center; padding: 3px 9px; border-radius: 999px; background: var(--coral); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: italic; font-weight: 400; color: #ffd9cc; }
.hero__text { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 600px; color: rgba(255, 255, 255, .86); margin-bottom: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); list-style: none; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: #6fe3a2; }

/* Search box (two paths) */
.sbox { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.sbox__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); }
.sbox__tab { padding: 16px 18px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font-weight: 800; color: var(--muted); transition: all var(--t); border-bottom: 3px solid transparent; }
.sbox__tab small { font-weight: 500; font-size: .78rem; }
.sbox__tab.is-active { background: #fff; color: var(--ink); border-bottom-color: var(--coral); }
.sbox__panel { display: none; padding: 20px; }
.sbox__panel.is-active { display: block; animation: fadeUp .3s var(--ease); }
.sbox__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.sbox__row .field label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sbox__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.sbox__foot a { font-weight: 700; }
@media (max-width: 860px) { .sbox__row { grid-template-columns: 1fr 1fr; } .sbox__row .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sbox__row { grid-template-columns: 1fr; } .sbox__tab small { display: none; } }

/* --------------------------------------------------------------------------
   Property card
   -------------------------------------------------------------------------- */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(18px, 2.5vw, 28px); }
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); transition: transform var(--t), box-shadow var(--t); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); color: #fff; text-decoration: none; }
.pcard__slides { position: absolute; inset: 0; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease), transform .9s var(--ease); }
.pcard__img.is-active { opacity: 1; }
.pcard:hover .pcard__img.is-active { transform: scale(1.04); }
.pcard__img--placeholder { background: linear-gradient(135deg, var(--sand-2), var(--line)); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 35, 46, 0) 45%, rgba(18, 35, 46, .75) 100%); pointer-events: none; }
.pcard__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 5px; }
.pcard__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: all var(--t); }
.pcard__dot.is-active { background: #fff; width: 18px; border-radius: 3px; }
.pcard__top { position: absolute; top: 14px; left: 14px; right: 60px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__price { position: absolute; left: 16px; bottom: 26px; z-index: 2; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pcard__price-value { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.pcard__price-sqm { font-size: .78rem; font-weight: 700; opacity: .85; }
.pcard__fav { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-3); box-shadow: var(--shadow-sm); transition: transform var(--t), color var(--t); }
.pcard__fav:hover { transform: scale(1.08); color: var(--coral); }
.pcard__fav[aria-pressed="true"] { color: var(--coral); }
.pcard__fav[aria-pressed="true"] svg { fill: currentColor; animation: pop .35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.pcard__meta { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pcard__zone { display: inline-flex; align-items: center; gap: 5px; color: var(--sea); }
.pcard__title { font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; line-height: 1.3; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard__title a:hover { color: var(--sea-deep); }
.pcard__specs { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; font-size: .86rem; font-weight: 600; color: var(--ink-3); }
.pcard__specs li { display: inline-flex; align-items: center; gap: 6px; }
.pcard__specs svg { color: var(--muted-2); }
.pcard__excerpt { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: .8rem; }
.pcard__ref { color: var(--muted-2); font-weight: 600; }
.pcard__link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--coral); text-decoration: none; }
.pcard__link svg { transition: transform var(--t); }
.pcard:hover .pcard__link svg { transform: translateX(4px); }
.pcard--sold .pcard__media { filter: saturate(.7); }
.pcard--sold .pcard__price-value { text-decoration: line-through; opacity: .8; font-size: 1.2rem; }
.pcard--compact .pcard__body { padding: 14px 16px 16px; }
.energy-pill { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding-inline: 6px; border-radius: 5px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--muted); }
.energy-a .energy-pill { background: #1f8a5b; } .energy-b .energy-pill { background: #4caf50; } .energy-c .energy-pill { background: #9ccc3d; color: var(--ink); }
.energy-d .energy-pill { background: #ffd23f; color: var(--ink); } .energy-e .energy-pill { background: #f4a32b; } .energy-f .energy-pill { background: #ee7a2f; } .energy-g .energy-pill { background: #d73c2c; }

/* Carousel of cards (home) */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 360px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .scroller { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding-inline: 0; margin-inline: 0; } }

/* --------------------------------------------------------------------------
   Home sections
   -------------------------------------------------------------------------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; min-height: 420px; }
.path--buy { background: var(--sea-deep); color: #e3eff4; }
.path--sell { background: var(--coral); color: #fff8f5; }
.path h2, .path h3 { color: #fff; }
.path__tag { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.path__text { max-width: 460px; font-size: 1.05rem; opacity: .92; }
.path__list { list-style: none; display: grid; gap: 8px; font-weight: 600; }
.path__list li { display: flex; gap: 10px; align-items: flex-start; }
.path__list svg { flex: none; margin-top: 4px; }
.path__actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.path__deco { position: absolute; right: -40px; bottom: -40px; width: 260px; height: 260px; border-radius: 50%; z-index: -1; opacity: .18; background: radial-gradient(circle at 30% 30%, #fff, transparent 70%); }
.path .btn--light { color: var(--ink); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path { min-height: 0; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 14px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--coral); }
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); }
.step__time { display: inline-block; margin-top: 14px; padding: 5px 10px; border-radius: 999px; background: var(--sea-soft); color: var(--sea-deep); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.zone { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-weight: 700; transition: all var(--t); }
.zone:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.zone__count { font-size: .78rem; font-weight: 800; color: var(--coral); background: var(--coral-soft); padding: 3px 9px; border-radius: 999px; }
.zone__count--empty { color: var(--muted); background: var(--sand); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2); transition: all var(--t); }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sea-soft); color: var(--sea-deep); }
.service h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; }
.service p { font-size: .93rem; color: var(--muted); }
.section--ink .service { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section--ink .service p { color: #a9b9c3; }
.section--ink .service__icon { background: rgba(255, 255, 255, .1); color: #ffb8a3; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 24px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; color: #fff; }
.stat__value small { font-size: .5em; color: #ffb8a3; font-weight: 500; }
.stat__label { margin-top: 8px; font-size: .9rem; color: #a9b9c3; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-xl); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__card { position: absolute; left: -20px; bottom: 28px; max-width: 300px; padding: 18px 20px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); }
.about__card strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.about__card span { font-size: .85rem; color: var(--muted); }
.about__body .lead { margin-bottom: 20px; }
.about__points { list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.about__points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.about__points svg { flex: none; margin-top: 3px; color: var(--green); }
.avatar { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); background: linear-gradient(160deg, var(--ink) 0%, var(--sea-deep) 100%); color: #fff; font-family: var(--font-display); font-size: clamp(4rem, 10vw, 9rem); font-weight: 500; letter-spacing: -.04em; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__card { left: 12px; } }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); font-size: 1.2rem; font-weight: 500; transition: transform var(--t), background-color var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq details[open] summary { color: var(--sea-deep); }
.faq__body { padding: 0 22px 20px; color: var(--muted); }

.testi { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2); }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-xl); background: var(--ink); color: #d9e2e8; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); background: var(--sand); }
.page-hero--ink { background: var(--ink); color: #d9e2e8; }
.page-hero--ink h1 { color: #fff; }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { margin-bottom: 14px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 18px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero--ink .breadcrumb { color: #9fb0ba; }

/* --------------------------------------------------------------------------
   Search page
   -------------------------------------------------------------------------- */
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); scrollbar-width: thin; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filters__head h2 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; }
.filters__close { display: none; }
.filters .field + .field { margin-top: 16px; }
.filters__group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.filters__group > summary { cursor: pointer; font-size: .88rem; font-weight: 800; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filters__group > summary::-webkit-details-marker { display: none; }
.filters__group > summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; }
.filters__group[open] > summary::after { content: "–"; }
.filters__group > summary + * { margin-top: 12px; }
.filters__foot { position: sticky; bottom: -22px; margin: 20px -22px -22px; padding: 14px 22px; background: #fff; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.contract-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--sand-2); }
.contract-toggle label { position: relative; cursor: pointer; }
.contract-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.contract-toggle span { display: grid; place-items: center; padding: 10px; border-radius: 999px; font-weight: 800; font-size: .9rem; color: var(--ink-3); transition: all var(--t); }
.contract-toggle input:checked + span { background: var(--ink); color: #fff; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checklist { display: grid; gap: 6px; }
.checklist label { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.checklist input { width: 18px; height: 18px; accent-color: var(--ink); }
.results__bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.results__count { margin: 0; font-size: .95rem; color: var(--muted); }
.results__count strong { color: var(--ink); font-size: 1.1rem; }
.results__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results__sort { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.results__sort select { padding: 9px 34px 9px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235d6d77' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font-weight: 700; font-size: .88rem; color: var(--ink); }
.filters-toggle { display: none; }
#properties-results { position: relative; min-height: 200px; transition: opacity var(--t); }
#properties-results.is-loading { opacity: .45; pointer-events: none; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.pagination__link { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: all var(--t); }
.pagination__link:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.empty-state { padding: clamp(32px, 5vw, 56px) 24px; border-radius: var(--radius-lg); background: var(--sand); text-align: center; }
.empty-state__icon { color: var(--sea); margin-bottom: 12px; display: flex; justify-content: center; }
.empty-state__title { margin-bottom: 10px; }
.empty-state__text { max-width: 520px; margin: 0 auto 20px; color: var(--muted); }
.empty-state__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.waitlist-band { margin-top: 48px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--sea-soft); border: 1px solid #cfe3ea; }
.waitlist-band h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.waitlist-band p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) {
    .search-layout { grid-template-columns: 1fr; }
    .filters { position: fixed; inset: 0; z-index: 200; max-height: none; border-radius: 0; transform: translateY(100%); transition: transform .38s var(--ease); visibility: hidden; padding-bottom: 90px; }
    .filters.is-open { transform: none; visibility: visible; }
    .filters__close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); }
    .filters__foot { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 14px var(--gutter); }
    .filters-toggle { display: inline-flex; }
    .waitlist-band { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Property detail
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(320px, 48vw, 560px); border-radius: var(--radius-lg); overflow: hidden; }
.gallery__item { position: relative; display: block; overflow: hidden; background: var(--sand-2); cursor: zoom-in; border: 0; padding: 0; }
.gallery__item:first-child { grid-row: 1 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__more { position: absolute; right: 12px; bottom: 12px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .85rem; font-weight: 800; box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 6px; }
.gallery__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; } .gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; } .gallery__item:nth-child(n+4) { display: none; } .gallery__item:nth-child(2), .gallery__item:nth-child(3) { aspect-ratio: 4 / 3; } }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 32px; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.detail__title { margin-bottom: 8px; }
.detail__sub { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.detail__sub span { display: inline-flex; align-items: center; gap: 6px; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 32px; }
.keyfact { padding: 14px 16px; border-radius: var(--radius); background: var(--sand); }
.keyfact__label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.keyfact__value { display: block; margin-top: 4px; font-weight: 800; font-size: 1.05rem; }
.detail__section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.detail__section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; margin-bottom: 1.1em; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; list-style: none; }
.specs li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.specs dt, .specs .k { color: var(--muted); font-weight: 600; }
.specs dd, .specs .v { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 600px) { .specs { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; list-style: none; }
.features li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--sand); font-weight: 600; font-size: .92rem; }
.features svg { color: var(--green); flex: none; }
.energy-scale { display: flex; gap: 4px; margin-top: 8px; }
.energy-scale span { flex: 1; display: grid; place-items: center; height: 36px; border-radius: 6px; font-weight: 800; font-size: .82rem; color: #fff; opacity: .35; transition: all var(--t); }
.energy-scale span.is-current { opacity: 1; transform: scaleY(1.18); box-shadow: var(--shadow); }
.energy-scale .energy-a { background: #1f8a5b; } .energy-scale .energy-b { background: #4caf50; } .energy-scale .energy-c { background: #9ccc3d; color: var(--ink); }
.energy-scale .energy-d { background: #ffd23f; color: var(--ink); } .energy-scale .energy-e { background: #f4a32b; } .energy-scale .energy-f { background: #ee7a2f; } .energy-scale .energy-g { background: #d73c2c; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }
.map__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; font-size: .88rem; color: var(--muted); background: #fff; }
.price-card { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.price-card__label { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.price-card__value { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; margin: 4px 0 2px; }
.price-card__sqm { font-size: .88rem; color: var(--muted); font-weight: 600; }
.price-card__actions { display: grid; gap: 10px; margin-top: 18px; }
.price-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--sand); }
.agent__avatar { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.agent__name { font-weight: 800; }
.agent__role { font-size: .82rem; color: var(--muted); }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.share__btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: all var(--t); text-decoration: none; }
.share__btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.mortgage { padding: 22px; border-radius: var(--radius-lg); background: var(--sea-soft); border: 1px solid #cfe3ea; }
.mortgage h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; margin-bottom: 12px; }
.mortgage .field + .field { margin-top: 10px; }
.mortgage input[type="range"] { width: 100%; accent-color: var(--sea); }
.mortgage__out { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 1px solid #cfe3ea; }
.mortgage__out strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--sea-deep); }
.mortgage__note { margin-top: 8px; font-size: .75rem; color: var(--muted); }
.range-row { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; color: var(--muted); }
.related { margin-top: clamp(48px, 6vw, 80px); }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } .detail__aside { position: static; } }

/* --------------------------------------------------------------------------
   Vendi / cerca pages
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.form-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); }
.form-card__head { margin-bottom: 22px; }
.form-card__head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card__head p { color: var(--muted); font-size: .95rem; }
.reasons { display: grid; gap: 14px; list-style: none; }
.reason { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2); }
.reason__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--coral-soft); color: var(--coral-deep); }
.reason h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; margin-bottom: 4px; }
.reason p { font-size: .92rem; color: var(--muted); }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.proof__item { padding: 18px; border-radius: var(--radius); background: var(--sand); }
.proof__item strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--ink); }
.proof__item span { font-size: .82rem; color: var(--muted); font-weight: 600; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split__sticky { position: static; } .proof { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 560px) { .proof { grid-template-columns: 1fr; } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare__col { padding: 26px; border-radius: var(--radius-lg); }
.compare__col--bad { background: var(--sand); color: var(--muted); }
.compare__col--good { background: var(--ink); color: #d9e2e8; }
.compare__col h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; margin-bottom: 14px; color: inherit; }
.compare__col--good h3 { color: #fff; }
.compare__col ul { list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.compare__col li { display: flex; gap: 10px; align-items: flex-start; }
.compare__col svg { flex: none; margin-top: 4px; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 14px; list-style: none; }
.contact-item { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line-2); text-decoration: none; color: inherit; transition: all var(--t); }
a.contact-item:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-item__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sand); color: var(--sea-deep); }
.contact-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.contact-item span { font-weight: 700; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin: 2em 0 .6em; }
.legal h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; margin: 1.6em 0 .5em; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1em 0; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--sand); }
.table-wrap { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: #b9c7d0; margin-top: clamp(48px, 6vw, 96px); }
.footer__cta { background: var(--ink-2); }
.footer__cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; padding-block: clamp(40px, 5vw, 64px); }
.footer__cta-title { color: #fff; margin-bottom: 10px; }
.footer__cta-text { color: #b9c7d0; max-width: 520px; }
.footer__cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.footer__main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-block: clamp(40px, 5vw, 64px); }
.footer__about { margin-top: 18px; font-size: .92rem; max-width: 340px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: all var(--t); }
.footer__social a:hover { background: var(--coral); transform: translateY(-2px); }
.footer__heading { font-family: var(--font-body); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__list { list-style: none; display: grid; gap: 9px; font-size: .93rem; }
.footer__list a { color: inherit; text-decoration: none; transition: color var(--t); }
.footer__list a:hover { color: #fff; }
.footer__address { font-size: .93rem; margin-bottom: 14px; line-height: 1.7; }
.footer__address strong { color: #fff; }
.footer__address a { color: #ffb8a3; text-decoration: none; font-weight: 700; }
.footer__muted { color: #7f919c; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px 100px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.footer__bottom a { color: inherit; }
@media (min-width: 901px) { .footer__bottom { padding-bottom: 28px; } }
@media (max-width: 1000px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .footer__cta-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .footer__main { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------------------------
   Mobile action bar
   -------------------------------------------------------------------------- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
    .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(0); transition: transform var(--t); }
    .mobile-bar.is-hidden { transform: translateY(110%); }
    .mobile-bar__btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: var(--radius-sm); font-size: .72rem; font-weight: 800; color: var(--ink); text-decoration: none; }
    .mobile-bar__btn--primary { background: var(--coral); color: #fff; flex-direction: row; gap: 8px; font-size: .85rem; }
}

/* --------------------------------------------------------------------------
   Lightbox & toast
   -------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(10, 18, 24, .94); color: #fff; animation: fadeIn .25s var(--ease); }
.lightbox__figure { margin: 0; max-width: min(92vw, 1400px); max-height: 88vh; display: grid; gap: 10px; justify-items: center; }
.lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__caption { font-size: .85rem; color: #b9c7d0; }
.lightbox__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color var(--t); }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.lightbox__nav--prev { left: 18px; } .lightbox__nav--next { right: 18px; }
.lightbox__counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .85rem; font-weight: 700; color: #b9c7d0; }
@media (max-width: 700px) { .lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 50px; transform: none; } }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 600; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700; box-shadow: var(--shadow-lg); animation: fadeUp .3s var(--ease); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
    .header, .footer, .mobile-bar, .lightbox, .toast, .pcard__fav, .price-card__actions, .share, .mortgage, .related, .detail__aside form { display: none !important; }
    body { color: #000; }
    .detail { grid-template-columns: 1fr; }
    a { color: inherit; text-decoration: none; }
}
