/* ═══════════════════════════════════════════════════
   ASTE FACILI — Stylesheet
   Studio Legale Ferraro
   ═══════════════════════════════════════════════════ */

/* Caratteri ospitati sul server (niente richieste a Google Fonts: nessun IP dei visitatori trasmesso a terzi) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/dm-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/playfair-display-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }

:root {
    --navy: #0F1D2F;
    --navy-light: #1A2D45;
    --navy-mid: #243B56;
    --gold: #C9982E;
    --gold-light: #E8C054;
    --gold-bg: #FDF6E3;
    --white: #FFFFFF;
    --offwhite: #F8F7F4;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --green: #059669;
    --green-bg: #ECFDF5;
    --red: #DC2626;
    --red-bg: #FEF2F2;
    --blue: #2563EB;
    --blue-bg: #EFF6FF;
    --orange: #EA580C;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--offwhite);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.navbar {
    background: var(--navy);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,.2);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}
.navbar-brand span { color: var(--gold); }
.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.navbar-nav a {
    color: rgba(255,255,255,.75);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,.1);
}
.nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 24px; height: 2px;
    background: var(--white);
    transition: all .3s;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy-mid) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,152,46,.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
    color: rgba(255,255,255,.7);
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 32px;
}

/* ── SEARCH BAR ── */
.search-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.search-box select, .search-box input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-700);
    background: var(--gray-50);
    transition: border var(--transition);
}
.search-box select:focus, .search-box input:focus {
    outline: none;
    border-color: var(--gold);
}
.search-box .btn-search {
    padding: 14px 32px;
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.search-box .btn-search:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── STATS BAR ── */
.stats-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}
.stat-num span { color: var(--gold); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }

/* ── PROPERTY CARDS ── */
.section { padding: 60px 0; }
.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 8px;
}
.section-subtitle { color: var(--gray-500); margin-bottom: 32px; }

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.prop-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all .3s ease;
    border: 1px solid var(--gray-200);
}
.prop-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--gold);
}
.prop-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.prop-card-img .icon-placeholder {
    font-size: 48px;
    opacity: .5;
}
.prop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.prop-badge-sconto {
    background: var(--red);
    color: var(--white);
    right: 12px;
    left: auto;
}
.prop-card-body { padding: 20px; }
.prop-card-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.prop-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.prop-meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.prop-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.prop-price-base {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
}
.prop-price-stima {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: line-through;
}
.prop-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--gray-500);
}
.prop-date { display: flex; align-items: center; gap: 4px; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ── FILTERS SIDEBAR ── */
.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
.filters-panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 90px;
    /* resta in vista ma scorre da solo se è più alto dello schermo */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    display: block;
}
.filter-group select, .filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: var(--gray-50);
}
.filter-group select:focus, .filter-group input:focus {
    outline: none;
    border-color: var(--gold);
}
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { flex: 1; }
.price-range span { color: var(--gray-400); font-size: 13px; }

.results-count {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
}
.results-count strong { color: var(--navy); }

/* ── PAGINATION ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ── DETAIL PAGE ── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.detail-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.detail-card-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-100);
}
.detail-card-body { padding: 24px; }
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.detail-info-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.detail-info-item span { font-size: 15px; color: var(--gray-800); }

.sidebar-sticky {
    position: sticky;
    top: 90px;
}
.price-card {
    background: var(--navy);
    border-radius: var(--radius);
    padding: 28px;
    color: var(--white);
}
.price-card .label { font-size: 13px; opacity: .7; margin-bottom: 4px; }
.price-card .big-price {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
}
.price-card .old-price {
    font-size: 15px;
    text-decoration: line-through;
    opacity: .5;
    margin-top: 2px;
}
.price-card .divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.15);
    margin: 20px 0;
}

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    transition: border var(--transition);
    background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--gold); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── ALERTS ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid #A7F3D0; }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid #FECACA; }
.alert-info { background: var(--blue-bg); color: var(--blue); border: 1px solid #BFDBFE; }

/* ── ADMIN/CLIENT DASHBOARD ── */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.dash-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-200);
}
.dash-card-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
}
.dash-card-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ── TABLE ── */
.table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow-x: auto;
}
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.table-wrap td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--gray-50); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}
.timeline-item {
    position: relative;
    padding-bottom: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid var(--white);
}
.timeline-item.completed::before { background: var(--green); }
.timeline-item.current::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,152,46,.2); }
.timeline-title { font-weight: 600; margin-bottom: 4px; }
.timeline-date { font-size: 13px; color: var(--gray-500); }

/* ── FOOTER ── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.6);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer a:hover { color: var(--gold); }
.footer-brand {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--white);
    margin-bottom: 12px;
}
.footer-brand span { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.footer-links { display: flex; gap: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .navbar-nav { display: none; }
    .hamburger { display: flex; }
    .navbar-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 16px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .hero { padding: 50px 0 40px; }
    .search-box { flex-direction: column; }
    .search-box select, .search-box input[type="text"] { min-width: 100%; }
    .stats-grid { gap: 24px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .filters-panel { position: static; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .properties-grid { grid-template-columns: 1fr; }
    .detail-info-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr 1fr; }
}

/* ── SCHEDA IMMOBILE v2 (ott 2026) ── */
.im-page { padding-top: 20px; }
.im-crumbs { font-size: 13px; color: var(--gray-500); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.im-crumbs a { color: var(--gray-500); }
.im-ref { margin-left: auto; font-weight: 600; color: var(--gray-400); }
.im-hero { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius-lg); height: 260px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; position: relative; }
.im-hero-icon { font-size: 72px; opacity: .35; }
.im-badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.im-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; }
.im-badge-gold { background: var(--gold); color: var(--navy); }
.im-badge-red { background: var(--red); color: var(--white); }
.im-badge-libero { background: var(--green); color: var(--white); }
.im-badge-occupato { background: var(--orange); color: var(--white); }
.im-badge-nd { background: rgba(255,255,255,.18); color: var(--white); }
.im-fav { position: absolute; top: 16px; right: 16px; }
.im-fav button { background: rgba(0,0,0,.45); border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }
.im-block { margin-bottom: 20px; }
.im-title { font-family: var(--font-display); font-size: 26px; color: var(--navy); line-height: 1.25; margin-bottom: 8px; }
.im-h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.im-h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 22px 0 10px; }
.im-note { font-size: 12.5px; color: var(--gray-500); margin-top: 4px; line-height: 1.5; }
.im-desc { font-size: 15px; color: var(--gray-700); line-height: 1.75; }
.im-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--gray-100); }
.im-facts > div { padding: 16px 20px; border-right: 1px solid var(--gray-100); border-top: 1px solid var(--gray-100); }
.im-facts > div:nth-child(3n) { border-right: none; }
.im-facts > div:nth-child(-n+3) { border-top: none; }
.im-facts label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-400); }
.im-facts strong { font-size: 17px; color: var(--navy); }
.im-facts small { display: block; font-size: 12px; color: var(--gray-500); }
.im-occ-libero { color: var(--green) !important; }
.im-occ-occupato { color: var(--orange) !important; }
.im-punti { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.im-punti li { padding: 10px 14px 10px 38px; border-radius: var(--radius-sm); font-size: 14px; position: relative; }
.im-punti li::before { position: absolute; left: 13px; top: 10px; font-weight: 700; }
.im-p-ok { background: var(--green-bg); color: #065F46; } .im-p-ok::before { content: "✓"; }
.im-p-warn { background: #FFF7ED; color: #9A3412; } .im-p-warn::before { content: "!"; }
.im-p-info { background: var(--blue-bg); color: #1E40AF; } .im-p-info::before { content: "i"; }
.im-avv { border-left: 4px solid var(--gold); background: var(--gold-bg); }
.im-check { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.im-check span { font-size: 14px; color: var(--gray-700); padding-left: 22px; position: relative; }
.im-check span::before { content: "⚖"; position: absolute; left: 0; color: var(--gold); }
.im-calc-in { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.im-calc-in label { font-size: 12px; font-weight: 600; color: var(--gray-600); display: flex; flex-direction: column; gap: 4px; }
.im-calc-in input[type=number], .im-calc-in select { padding: 9px 12px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font: inherit; font-size: 15px; min-width: 130px; }
.im-calc-in .im-chk { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; padding-bottom: 10px; }
.im-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.im-tab td { padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.im-tab td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.im-tot td { border-bottom: none; font-size: 16px; font-weight: 700; color: var(--navy); padding-top: 12px; }
.im-rata { font-size: 15px; color: var(--gray-600); }
.im-rata strong { font-family: var(--font-display); font-size: 26px; color: var(--navy); }
.im-docs { display: flex; flex-direction: column; gap: 12px; }
.im-docs .btn { justify-content: flex-start; }
.im-lock { border: 1.5px dashed var(--gray-300); border-radius: var(--radius); padding: 20px; text-align: center; }
.im-lock p { font-size: 14px; color: var(--gray-500); margin: 6px 0 14px; }
.im-lock-login { display: block; font-size: 13px; margin-top: 10px; color: var(--gold); font-weight: 600; }
.im-map { width: 100%; height: 300px; border: 0; display: block; }
.im-pc-row { display: flex; justify-content: space-between; font-size: 14px; opacity: .85; margin-top: 10px; }
.im-count { font-size: 13px; opacity: .8; margin-top: 6px; }
.im-count strong { color: var(--gold-light); font-size: 15px; }
.im-count-hot { color: #FCA5A5; font-weight: 700; opacity: 1; }
.im-wa { background: #25D366; color: var(--white); margin-top: 10px; justify-content: center; }
.im-wa:hover { background: #1EBE5A; color: var(--white); }
.im-simili { margin-top: 40px; }
.im-mbar { display: none; }
@media (max-width: 768px) {
    .im-facts { grid-template-columns: 1fr 1fr; }
    .im-facts > div { border-right: 1px solid var(--gray-100) !important; border-top: 1px solid var(--gray-100) !important; }
    .im-facts > div:nth-child(2n) { border-right: none !important; }
    .im-facts > div:nth-child(-n+2) { border-top: none !important; }
    .im-check { grid-template-columns: 1fr; }
    .im-title { font-size: 22px; }
    .im-hero { height: 180px; }
    .sidebar-sticky { position: static; }
    .im-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--navy); color: var(--white); padding: 10px 16px; gap: 8px; align-items: center; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
    .im-mbar > div { flex: 1; }
    .im-mbar strong { color: var(--gold); font-size: 17px; }
    .im-mbar .im-wa { margin-top: 0; }
    .im-page { padding-bottom: 80px; }
}

/* ── FOTO IMMOBILI ── */
.prop-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.im-hero-foto { height: 440px; overflow: hidden; background: var(--navy); }
.im-hero-foto #imFoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.im-hero-foto .im-badges, .im-hero-foto .im-fav { z-index: 2; }
.im-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(15,29,47,.6); color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }
.im-nav:hover { background: rgba(15,29,47,.85); }
.im-prev { left: 14px; } .im-next { right: 14px; }
.im-cnt { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: rgba(15,29,47,.7); color: var(--white); font-size: 13px; padding: 4px 10px; border-radius: 12px; }
.im-thumbs { display: flex; gap: 8px; overflow-x: auto; margin: -8px 0 16px; padding-bottom: 4px; }
.im-thumbs button { flex: 0 0 96px; height: 68px; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; padding: 0; cursor: pointer; background: var(--gray-200); opacity: .7; }
.im-thumbs button.on { border-color: var(--gold); opacity: 1; }
.im-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) { .im-hero-foto { height: 260px; } .im-thumbs button { flex-basis: 76px; height: 54px; } }
.im-foto-ko #imFoto, .im-foto-ko .im-nav, .im-foto-ko .im-cnt { display: none; }
.im-foto-ko::after { content: "🏠"; font-size: 72px; opacity: .35; }

/* ── MARCHIO HASTA DOMUS ── */
.navbar-brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { color: var(--gold); flex: 0 0 auto; }
.footer-brand .brand-logo { width: 30px; height: 30px; }

@media (max-width: 768px) { .filters-panel { max-height: none; overflow: visible; } }

/* ── BANNER COOKIE ── */
.hd-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.hd-cookie-in { pointer-events: auto; position: relative; max-width: 720px; width: 100%; background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(15,29,47,.25); padding: 22px 24px; font-size: 14px; line-height: 1.6; }
.hd-cookie-tit { font-weight: 700; color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.hd-cookie-in a { color: #8A6413; text-decoration: underline; }
.hd-cookie-dett { margin: 14px 0 4px; display: flex; flex-direction: column; gap: 10px; }
.hd-cookie-dett[hidden] { display: none; }
.hd-cookie-riga { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.hd-cookie-riga input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.hd-cookie-btn { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.hd-cookie-btn .btn { min-height: 44px; flex: 1 1 140px; justify-content: center; }
.hd-cookie-btn [hidden] { display: none; }
.hd-cookie-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: none; background: none; font-size: 22px; color: var(--gray-500); cursor: pointer; }
.im-map-off { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--gray-50); text-align: center; padding: 20px; }
@media (max-width: 768px) { .hd-cookie { bottom: 84px; } }

/* ── Pagine per provincia e comune (/aste/…) ── */
.aste-intro{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:12px;padding:22px 24px;margin:8px 0 24px;max-width:900px}
.aste-intro p{color:var(--gray-700);line-height:1.75;margin-bottom:12px}
.aste-intro .btn{margin:6px 8px 0 0}
.aste-comuni{margin:24px 0}
.aste-comuni h2,.aste-regione h2{font-size:17px;color:var(--navy);margin-bottom:12px}
.aste-comuni ul,.aste-regione ul{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.aste-comuni li a,.aste-regione li a{display:inline-block;padding:6px 12px;border:1px solid var(--gray-200);border-radius:999px;font-size:14px;color:var(--navy);text-decoration:none;background:#fff}
.aste-comuni li a:hover,.aste-regione li a:hover{border-color:var(--gold, #C9982E)}
.aste-comuni li span,.aste-regione li span{font-size:12px;color:var(--gray-500);margin-left:-4px}
.aste-regioni{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px}
.footer-zone{border-top:1px solid rgba(255,255,255,.12);margin-top:28px;padding-top:18px;font-size:13px;line-height:2}
.footer-zone strong{margin-right:6px}
.footer-zone a{margin-right:12px;white-space:nowrap}
