:root {
    --black: #3d2e23;
    --black-800: #4d3b2d;
    --black-50: #f3efe8;
    --orange: #e06a1e;
    --orange-h: #c65812;
    --orange-l: #fbf0e6;
    --text: #1b1612;
    --body: #524b43;
    --muted: #8b827a;
    --white: #fff;
    --border: #e7e1d8;
    --border-light: #f0ece5;
    --sh: 0 2px 8px rgba(60,40,20,.05);
    --sh-xl: 0 24px 60px rgba(60,40,20,.16);
    --r: .35rem;
    --rl: .5rem;
    --max: 1200px;
    --fh: 'Jost', system-ui, sans-serif;
    --fb: 'Inter', system-ui, sans-serif;
    --fs: 'Jost', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
    font-family: var(--fb);
    color: var(--body);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 88px;
}

body.home { padding-top: 0; }

main { flex: 1; }

h1, h2 {
    font-family: var(--fs);
    color: var(--text);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: 0;
}

h3 {
    font-family: var(--fh);
    color: var(--text);
    line-height: 1.3;
    font-weight: 500;
}

a { color: var(--black); text-decoration: none; transition: .2s; }
a:hover { color: var(--orange); }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- SKIP LINK --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--black);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 0 0 6px 6px;
    font-size: .82rem;
    font-weight: 600;
    z-index: 2000;
    transition: top .2s;
}

.skip-link:focus { top: 0; color: #fff; }

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(60,40,20,.03);
    transition: box-shadow .3s, border-color .3s;
}

.site-header.scrolled {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(60,40,20,.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    gap: 2rem;
}

.logo { flex-shrink: 0; }

.logo img {
    height: 64px;
    width: auto;
    display: block;
    transition: height .3s;
}

.main-nav ul {
    display: flex;
    gap: .15rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: .6rem 1rem;
    border-radius: 6px;
    color: var(--body);
    font-family: var(--fh);
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: .2s;
    position: relative;
}

.main-nav a:hover {
    color: var(--black);
    background: var(--black-50);
}

.main-nav a.active {
    color: var(--black);
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    z-index: 201;
    width: 40px;
    height: 40px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    position: absolute;
    left: 8px;
    transition: transform .3s ease, opacity .2s ease;
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }

/* --- MOBILE NAV --- */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
}

.mobile-nav.open { opacity: 1; visibility: visible; }

.mobile-nav ul {
    list-style: none;
    text-align: center;
    padding: 2rem;
}

.mobile-nav li { margin-bottom: .2rem; }

.mobile-nav a {
    display: block;
    padding: .8rem 2rem;
    font-size: 1.15rem;
    color: rgba(255,255,255,.75);
    font-family: var(--fh);
    font-weight: 500;
    border-radius: 8px;
    transition: .2s;
    position: relative;
}

.mobile-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }

.mobile-nav a.active { color: var(--orange); font-weight: 600; }

.mobile-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2.2rem;
    right: 2.2rem;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.mobile-nav-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,.5);
    font-size: 1.8rem;
    cursor: pointer;
    padding: .5rem;
    line-height: 1;
    transition: .2s;
}

.mobile-nav-close:hover { color: #fff; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 2rem;
    border-radius: 3px;
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: .25s;
    border: none;
    font-family: var(--fh);
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(224,106,30,.25);
}

.btn-primary:hover {
    background: var(--orange-h);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224,106,30,.3);
}

.btn-dark {
    background: var(--black);
    color: #fff;
}

.btn-dark:hover {
    background: var(--black-800);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(60,40,20,.15);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--body);
    font-family: var(--fb);
}

.btn-ghost:hover {
    border-color: var(--black);
    color: var(--black);
}

.btn-sm { padding: .5rem 1.2rem; font-size: .78rem; }
.btn-block { width: 100%; }

/* --- SECTION REVEAL --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- FOOTER --- */
.site-footer {
    background: linear-gradient(180deg, #3d2e23 0%, #2f231c 100%);
    padding: 4.5rem 0 0;
    position: relative;
    text-align: left;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224,106,30,.3) 30%, rgba(224,106,30,.3) 70%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr .9fr .9fr 1.3fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: block;
    font-family: var(--fh);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: .22em;
    color: #fff;
    line-height: 1;
}

.footer-logo-sub {
    display: block;
    margin-top: .3rem;
    font-size: .66rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--orange);
}

.footer-tagline {
    margin-top: 1rem;
    font-size: .84rem;
    line-height: 1.7;
    color: rgba(255,255,255,.5);
    max-width: 36ch;
}

.footer-title {
    font-family: var(--fh);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.85);
    margin-bottom: 1.1rem;
    padding-bottom: .6rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 1px;
    background: var(--orange);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.footer-links a {
    font-size: .84rem;
    color: rgba(255,255,255,.6);
    transition: color .2s, padding-left .2s;
}

.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.footer-contact-list li {
    display: flex;
    gap: .6rem;
    font-size: .84rem;
    line-height: 1.6;
    color: rgba(255,255,255,.6);
}

.footer-contact-list svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: .2rem;
    color: var(--orange);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-contact-list a { color: rgba(255,255,255,.7); }
.footer-contact-list a:hover { color: #fff; }

.footer-cta { margin-top: 1.2rem; border-color: rgba(255,255,255,.25); color: #fff; }
.footer-cta:hover { border-color: var(--orange); color: var(--orange); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.4rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    font-size: .74rem;
    color: rgba(255,255,255,.4);
}

.footer-bottom-inner a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom-inner a:hover { color: #fff; }
.footer-uid { color: rgba(255,255,255,.4); }

/* --- BACK TO TOP --- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    box-shadow: 0 4px 16px rgba(60,40,20,.2);
}

.back-to-top.visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
    background: var(--black-800);
    transform: translateY(-2px);
}

.back-to-top svg { width: 20px; height: 20px; }

/* --- CONSENT BANNER --- */
.consent-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1000;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(60,40,20,.18);
    padding: 1.2rem 1.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s, visibility .3s;
}
.consent-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.consent-title {
    font-weight: 700;
    font-size: .95rem;
    margin: 0 0 .4rem;
    color: var(--text, #3d2e23);
}
.consent-banner p { font-size: .82rem; line-height: 1.5; margin: 0 0 .9rem; color: var(--muted, #6b7280); }
.consent-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.consent-actions .consent-selected {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}
@media (min-width: 769px) {
    .consent-banner {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: 1rem 2rem;
    }
    .consent-banner-inner {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    .consent-text { flex: 1 1 auto; min-width: 0; }
    .consent-text .consent-title { margin-bottom: .15rem; }
    .consent-text p { margin-bottom: 0; }
    .consent-actions { flex: 0 0 auto; margin-left: auto; flex-wrap: nowrap; }
}

/* --- SHARED SUB-PAGE TYPOGRAPHY --- */
h1 { font-size: 2.8rem; letter-spacing: -.03em; }
h2 { font-size: 1.9rem; letter-spacing: -.02em; }
h3 { font-size: 1.08rem; }

section { padding: 6rem 0; }

/* --- PAGE HERO --- */
.page-hero {
    background: linear-gradient(165deg, #4d3b2d 0%, #3d2e23 55%, #332720 100%);
    color: #fff;
    padding: 7rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(224,106,30,.1) 0%, transparent 70%),
        radial-gradient(circle at 20% 30%, rgba(255,255,255,.03) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 5%, var(--orange) 25%, var(--orange) 75%, transparent 95%);
    opacity: .6;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: .2rem;
    position: relative;
    letter-spacing: -.02em;
}

.page-hero p {
    color: rgba(255,255,255,.55);
    font-size: .92rem;
    position: relative;
    letter-spacing: .01em;
}

/* ==========================================================
   HOME PAGE
   ========================================================== */

.hero-section {
    background: var(--white);
    padding: 6rem 0 2.5rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.hero-logo-box img {
    height: clamp(180px, 28vw, 380px);
    width: auto;
    display: block;
    margin: 0 auto;
}

.hero-tagline {
    font-family: var(--fb);
    font-size: clamp(.72rem, 1vw, .92rem);
    color: var(--muted);
    font-weight: 400;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.carousel {
    overflow: hidden;
    background: var(--black);
    position: relative;
    padding: 0;
}

.carousel::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 4px 24px rgba(60,40,20,.2);
    pointer-events: none;
    z-index: 1;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.carousel-track img {
    width: 50vw;
    height: 45vh;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

/* Variante temporanea: al posto delle foto scorre il logo */
.carousel--logo .carousel-track img {
    object-fit: contain;
    padding: 0 6vw;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================
   IMMOBILI PAGE
   ========================================================== */

.stats-strip {
    padding: 2.5rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.stats-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stats-strip-value {
    font-family: var(--fs);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--black);
    display: block;
    line-height: 1;
}

.stats-strip-value.accent { color: var(--orange); }

.stats-strip-label {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .35rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
}

.pcontent { padding: 4rem 0; }

.tabs {
    display: flex;
    gap: .4rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: .7rem 2rem;
    border-radius: 100px;
    font-family: var(--fh);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--body);
    transition: .25s;
}

.tab-btn:hover {
    border-color: var(--black);
    color: var(--black);
}

.tab-btn.active {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
    box-shadow: 0 4px 16px rgba(60,40,20,.1);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.filters {
    background: var(--black-50);
    padding: 1.5rem;
    border-radius: var(--rl);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.filters-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: .7rem;
    align-items: end;
}

.fld label {
    display: block;
    font-size: .66rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .2rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.fld select,
.fld input {
    width: 100%;
    padding: .52rem .65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--fb);
    font-size: .84rem;
    color: var(--text);
    background: var(--white);
    transition: .2s;
}

.fld select:focus,
.fld input:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(60,40,20,.05);
}

.fld-btns { display: flex; gap: .5rem; align-self: end; }

.property-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.property-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: .4s cubic-bezier(.25,.46,.45,.94);
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
    cursor: pointer;
}

.property-card:hover {
    box-shadow: 0 24px 60px rgba(60,40,20,.13);
    transform: translateY(-4px);
    border-color: transparent;
}

.card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--black-50);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s;
}

.property-card:hover .card-img img,
.card:hover .card-img img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: .8rem;
    left: .8rem;
    padding: .25rem .65rem;
    border-radius: 50px;
    font-size: .64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 1;
    backdrop-filter: blur(8px);
}

.card-star {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    line-height: 1;
    color: var(--orange);
    background: rgba(255,255,255,.94);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(60,40,20,.18);
}

.badge-disponibile {
    background: rgba(220,237,224,.9);
    color: #155724;
}

.badge-riservato {
    background: rgba(255,243,205,.9);
    color: #856404;
}

.badge-venduto {
    background: rgba(248,215,218,.9);
    color: #7f1d1d;
}

.badge-affittato {
    background: rgba(207,226,243,.9);
    color: #1a4b7a;
}

.card-body {
    padding: 1.2rem 1.3rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--fs);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: .3rem;
    line-height: 1.3;
}

.card-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .7rem;
    margin-bottom: .5rem;
    padding: .55rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.card-attr {
    font-size: .78rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

.card-attr strong { color: var(--text); font-weight: 600; }

.card-price {
    font-family: var(--fs);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: .1rem;
    letter-spacing: -.01em;
}

.card-loc {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .5rem;
}

.attr-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--muted);
}

.attr-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#noResultsV, #noResultsA, #noResultsT, .no-results {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    font-size: .9rem;
}

/* ==========================================================
   IMMOBILE (DETAIL) PAGE
   ========================================================== */

.breadcrumb-section { padding: 1.5rem 0 0; }
.detail-section { padding: 1rem 0 3rem; }

.breadcrumb {
    padding: .8rem 0;
    font-size: .8rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }

.breadcrumb span { margin: 0 .4rem; opacity: .5; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.gallery-main {
    border-radius: 4px;
    overflow: hidden;
    background: var(--black-50);
    aspect-ratio: 4/3;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .3s;
}

.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; }

.gallery-thumbs button {
    flex: 1;
    border: 2px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: .2s;
}

.gallery-thumbs button.active { border-color: var(--orange); }

.gallery-thumbs button img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
}

.detail-info { display: flex; flex-direction: column; gap: 1rem; }

.detail-badge {
    display: inline-flex;
    width: fit-content;
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.detail-title {
    font-family: var(--fs);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -.01em;
}

.detail-location {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--muted);
    font-size: .88rem;
}

.detail-location svg { width: 17px; height: 17px; flex-shrink: 0; }

.detail-price {
    font-family: var(--fs);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--black);
    letter-spacing: -.01em;
}

.detail-attrs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
}

.attr-box {
    background: var(--black-50);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    transition: .25s;
}

.attr-box:hover {
    background: var(--white);
    box-shadow: 0 4px 16px rgba(60,40,20,.05);
    border-color: transparent;
}

.attr-box-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.attr-box-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.attr-box-label {
    font-size: .66rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 600;
}

.attr-box-value {
    font-size: .92rem;
    color: var(--text);
    font-weight: 600;
    font-family: var(--fh);
}

.contact-box {
    background: #4d3b2d;
    border-radius: 4px;
    padding: 2rem;
    color: #fff;
}

.contact-box h2, .contact-box h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: .15rem;
}

.contact-box p {
    color: rgba(255,255,255,.5);
    font-size: .8rem;
    margin-bottom: 1.2rem;
}

.contact-box label {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-bottom: .15rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.contact-box input,
.contact-box textarea {
    width: 100%;
    padding: .55rem .7rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    font-family: var(--fb);
    font-size: .84rem;
    color: #fff;
    background: rgba(255,255,255,.06);
    transition: .2s;
    margin-bottom: .7rem;
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
    color: rgba(255,255,255,.25);
}

.contact-box input:focus,
.contact-box textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(224,106,30,.15);
}

.contact-box .field-error {
    display: none;
    font-size: .7rem;
    color: #ff8a8a;
    font-weight: 500;
    margin-top: -.4rem;
    margin-bottom: .6rem;
}

.contact-box input.error,
.contact-box textarea.error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255,107,107,.15) !important;
}

.contact-box textarea { resize: vertical; min-height: 70px; }

.contact-box .btn-primary { width: 100%; margin-bottom: .5rem; }

.desc-section {
    background: var(--black-50);
    border-radius: 4px;
    padding: 2.5rem;
    margin-top: 2.5rem;
}

.desc-section h2 { font-size: 1.35rem; margin-bottom: .8rem; }

.desc-section p {
    color: var(--body);
    font-size: .92rem;
    line-height: 1.75;
}

.related-section h2 { font-size: 1.45rem; margin-bottom: 1.3rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: .4s cubic-bezier(.25,.46,.45,.94);
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
}

.card:hover {
    box-shadow: 0 20px 50px rgba(60,40,20,.13);
    transform: translateY(-4px);
    border-color: transparent;
}

/* ==========================================================
   SERVIZI PAGE
   ========================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.2rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 28px rgba(60,40,20,.07);
    transition: .4s cubic-bezier(.25,.46,.45,.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--black));
    opacity: 0;
    transition: opacity .4s;
}

.service-card:hover {
    box-shadow: var(--sh-xl);
    transform: translateY(-8px);
    border-color: transparent;
}

.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--orange-l);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: .4s;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 24px rgba(224,106,30,.28);
    transform: scale(1.05);
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }

.service-card p {
    font-size: .84rem;
    color: var(--muted);
    line-height: 1.65;
}

.cta-banner {
    background: linear-gradient(165deg, #4d3b2d 0%, #3d2e23 60%, #332720 100%);
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(224,106,30,.06), transparent);
    pointer-events: none;
}

.cta-banner h2 { color: #fff; font-size: 1.7rem; margin-bottom: .5rem; position: relative; }

.cta-banner p {
    color: rgba(255,255,255,.5);
    font-size: .92rem;
    margin-bottom: 1.8rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-banner .btn-primary {
    padding: .85rem 2.5rem;
    font-size: .92rem;
    position: relative;
}

/* ==========================================================
   CHI SIAMO PAGE
   ========================================================== */

.content-section { padding: 4.5rem 0; }

.content-section h2 { margin-top: 2.8rem; margin-bottom: .6rem; font-size: 1.35rem; }

.content-section p {
    margin-bottom: .8rem;
    color: var(--body);
    line-height: 1.7;
    font-size: .92rem;
}

.content-section .auid {
    font-family: var(--fh);
    font-size: .68rem;
    letter-spacing: .3px;
    color: var(--muted);
    margin-top: 1.2rem;
}

.dati-box {
    background: var(--black-50);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    padding: 2rem;
    margin-top: 2.5rem;
}

.dati-box h3 { font-size: 1.1rem; margin-bottom: .8rem; }

.dati-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: .5rem 1.5rem;
    font-size: .85rem;
    align-items: baseline;
    padding: .7rem 0;
}

.dati-row + .dati-row { border-top: 1px solid var(--border-light); }
.dati-row strong { color: var(--text); white-space: nowrap; }
.dati-row span { color: var(--body); }

/* ==========================================================
   CONTATTI PAGE
   ========================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    background: var(--black-50);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: .25s;
}

.contact-card:hover {
    border-color: transparent;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(60,40,20,.05);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.contact-icon svg { width: 19px; height: 19px; }

.contact-card-body { flex: 1; min-width: 0; }

.contact-card-label {
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    margin-bottom: .05rem;
}

.contact-card-value { font-size: .9rem; color: var(--text); font-weight: 500; }
.contact-card-value a { color: var(--text); }
.contact-card-value a:hover { color: var(--orange); }

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 3rem;
    box-shadow: var(--sh);
}

.contact-form-wrap h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: .3rem;
    letter-spacing: -.01em;
    margin-top: 0;
}

.contact-form-wrap .section-sub {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.alert {
    border-radius: 8px;
    padding: .65rem .85rem;
    margin-bottom: 1rem;
    font-size: .85rem;
    font-weight: 500;
}

.alert-ok { background: #d4edda; color: #155724; }
.alert-err { background: #f8d7da; color: #721c24; }

.form-group { margin-bottom: .9rem; }

.form-group label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    margin-bottom: .2rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.form-input {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-family: var(--fb);
    font-size: .85rem;
    background: var(--white);
    transition: .2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--black);
    box-shadow: 0 0 0 3px rgba(60,40,20,.05);
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220,53,69,.1);
}

textarea.form-input { resize: vertical; min-height: 90px; }

.field-error {
    display: none;
    font-size: .68rem;
    color: #dc3545;
    font-weight: 500;
    margin-top: .15rem;
}

.map-section { padding-top: 0; }

.map-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 380px;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

/* ==========================================================
   RESPONSIVE â€” 992px
   ========================================================== */

@media (max-width: 992px) {
    .property-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ==========================================================
   RESPONSIVE â€” 768px
   ========================================================== */

@media (max-width: 768px) {
    .header-inner { height: 72px; }

    .logo img { height: 48px; }

    .main-nav ul { display: none; }
    .nav-toggle { display: block; }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) { opacity: 0; }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .container { padding: 0 1.2rem; }

    .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; }

    body { padding-top: 72px; }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }

    section { padding: 3rem 0; }

    .page-hero { padding: 4.5rem 0 2rem; }
    .page-hero h1 { font-size: 1.35rem; }

    .property-grid, .grid-3 { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }

    .detail-title { font-size: 1.4rem; }
    .detail-price { font-size: 1.6rem; }

    .gallery-thumbs button img { height: 56px; }

    .filters-inner { grid-template-columns: 1fr 1fr; }
    .tabs { flex-wrap: wrap; }
    .desc-section { padding: 1.5rem; }
    .content-section { padding: 2.5rem 0; }

    .cta-banner { padding: 2.5rem 0; }
    .cta-banner h2 { font-size: 1.35rem; }

    .contact-form-wrap { padding: 1.5rem; }
    .map-wrap { min-height: 260px; }
    .map-wrap iframe { min-height: 260px; }

    .hero-section { padding: 4rem 0 1.5rem; min-height: 40vh; }

    .hero-logo-box img {
        height: auto;
        width: 85vw;
        max-width: 500px;
    }

    .carousel-track img { width: 75vw; height: 35vh; }
    .stats-strip-inner { gap: 1rem; }

    .site-footer { padding-top: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   RESPONSIVE â€” 480px
   ========================================================== */

@media (max-width: 480px) {
    .container { padding: 0 1rem; }

    .hero-section { padding: 3rem 0 1rem; min-height: 35vh; }

    .hero-logo-box img {
        height: auto;
        width: 90vw;
        max-width: 400px;
    }

    .carousel-track img { width: 85vw; height: 30vh; }

    .filters-inner { grid-template-columns: 1fr; }
    .filters { padding: 1rem; }

    .property-grid, .grid-3 { gap: 1rem; }
    .property-card, .card { border-radius: .75rem; }

    .property-card .card-img, .card .card-img { aspect-ratio: 3/2; }
    .property-card .card-body, .card .card-body { padding: 1rem; }
    .property-card .card-title, .card .card-title { font-size: .94rem; }
    .property-card .card-price, .card .card-price { font-size: 1.2rem; }

    .detail-attrs { grid-template-columns: 1fr; }
    .gallery-thumbs { flex-wrap: wrap; }
    .gallery-thumbs button { flex: 0 0 calc(33.333% - .35rem); }
    .gallery-thumbs button img { height: 52px; }

    .stats-strip-value { font-size: 1.35rem; }
    .stats-strip-inner { gap: .6rem; }
    .stats-strip-label { font-size: .6rem; letter-spacing: .4px; }

    .tab-btn { padding: .55rem 1.1rem; font-size: .8rem; }
    .contact-form-wrap { padding: 1.2rem; }
    .desc-section { padding: 1.2rem; margin-top: 1.5rem; }
    .dati-box { padding: 1.2rem; }
}

/* --- LEGAL PAGES --- */
.legal-section { padding: 3rem 0 5rem; }

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text, #524b43);
    font-size: .95rem;
    line-height: 1.75;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin: 2.2rem 0 .8rem;
    color: var(--text, #3d2e23);
}

.legal-content h2:first-of-type { margin-top: 1.2rem; }
.legal-content p { margin: 0 0 1rem; }
.legal-content ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-content li { margin-bottom: .4rem; }
.legal-content a { color: var(--orange); }
.legal-content a:hover { text-decoration: underline; }
.legal-content code {
    background: rgba(61, 46, 35, .07);
    padding: .1rem .35rem;
    border-radius: 3px;
    font-size: .85em;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4rem;
    font-size: .88rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: .6rem .7rem;
    border-bottom: 1px solid rgba(61, 46, 35, .12);
    vertical-align: top;
}

.legal-table th {
    color: var(--text, #3d2e23);
    font-weight: 600;
}

.legal-note {
    margin-top: 2rem;
    font-size: .8rem;
    color: var(--muted, #8b827a);
}

@media (max-width: 640px) {
    .legal-content { font-size: .92rem; }
    .legal-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
