/* =========================================================
   LE CASE SUL GARDA — Stylesheet (restyling premium)
   ========================================================= */

:root {
    --primary: #003f6a;          /* navy brand */
    --primary-dark: #002b4a;
    --primary-color: #003f6a;    /* alias retro-compat */
    --primary-hover: #002b4a;
    --accent: #c8a86b;           /* oro/sabbia premium */
    --accent-dark: #b3924f;
    --dark-bg: #0f1b2a;
    --bg-light: #f4f6f8;
    --bg-soft: #eef2f5;
    --white: #ffffff;
    --text-main: #16202c;
    --text-muted: #5b6b7b;
    --border-color: #e4e9ee;
    --success: #047857;
    --whatsapp: #25D366;
    --border-radius: 12px;
    --border-radius-lg: 18px;
    --border-radius-pill: 9999px;
    --box-shadow: 0 12px 30px -10px rgba(15, 27, 42, 0.18);
    --box-shadow-sm: 0 4px 14px -6px rgba(15, 27, 42, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text-main); }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 90%; max-width: var(--container); margin: 0 auto; }
.relative { position: relative; }
.section-padding { padding: 90px 0; }
.text-center { text-align: center; }
.section-light { background: var(--bg-light); }
.section-head { max-width: 680px; margin: 0 auto 55px; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

/* ---- Buttons ---- */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 30px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; border-radius: var(--border-radius-pill); cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px -4px rgba(0, 63, 106, 0.4); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; width: 100%; margin-top: 12px; }
.btn-whatsapp:hover { background: #1da851; color: #fff; transform: translateY(-2px); }

/* =========================================================
   HEADER & NAVBAR
   ========================================================= */
.main-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--border-color); transition: var(--transition); }
.main-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; transition: var(--transition); }
.main-header.scrolled .navbar { padding: 2px 0; }
.logo { line-height: 0; }
.logo-img { max-height: 128px; width: auto; transition: var(--transition); }
.main-header.scrolled .logo-img { max-height: 90px; }
.nav-links { display: flex; gap: 34px; font-weight: 600; }
.nav-links a { color: var(--text-main); position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-weight: 700; color: var(--primary); white-space: nowrap; }
.nav-phone:hover { color: var(--accent-dark); }

/* =========================================================
   HERO (HOME)
   ========================================================= */
.hero-section { position: relative; background: linear-gradient(rgba(10,20,32,0.45), rgba(10,20,32,0.78)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=80') center/cover; padding: 150px 0 190px; color: var(--white); text-align: center; }
.hero-content { max-width: 820px; margin: 0 auto; }
.hero-eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; color: var(--accent); background: rgba(200,168,107,0.12); border: 1px solid rgba(200,168,107,0.4); padding: 7px 18px; border-radius: var(--border-radius-pill); margin-bottom: 24px; }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--white); margin-bottom: 22px; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-content p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); opacity: 0.95; max-width: 680px; margin: 0 auto; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.hero-content .hero-lead { font-size: clamp(1rem, 1.7vw, 1.25rem); }
.hero-content .hero-sub { margin-top: 10px; font-size: clamp(1rem, 1.7vw, 1.25rem); }
.hero-content .hero-cta { margin-top: 26px; }
@media (min-width: 992px) {
    .hero-content { max-width: 1100px; }
    .hero-content .hero-lead, .hero-content .hero-sub { white-space: nowrap; max-width: none; }
}
.search-wrapper { position: absolute; bottom: -42px; left: 0; right: 0; margin: 0 auto; background: var(--white); border-radius: var(--border-radius-lg); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); width: 92%; max-width: 1000px; padding: 18px; display: flex; gap: 12px; align-items: stretch; }
.search-wrapper input, .search-wrapper select { flex: 1; padding: 15px; border: 1px solid var(--border-color); border-radius: var(--border-radius); font-size: 1rem; color: var(--text-main); background: var(--bg-light); min-width: 0; }
.search-wrapper input:focus, .search-wrapper select:focus { border-color: var(--primary); outline: none; }
.search-wrapper .btn { padding: 15px 30px; white-space: nowrap; }
.hero-search-toggle { display: none; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-section { margin-top: 70px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-image { position: relative; }
.about-image img { border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow); width: 100%; height: 540px; object-fit: cover; }
.trust-badge { position: absolute; bottom: -28px; right: -22px; background: var(--white); padding: 24px 34px; border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow); text-align: center; border-bottom: 3px solid var(--accent); }
.trust-badge h3 { color: var(--primary); font-size: 2.4rem; margin-bottom: 2px; }
.trust-badge p { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-family: var(--font-body); }
.about-content h4 { color: var(--accent-dark); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.about-content h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 22px; }
.about-content p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.05rem; }
/* Testo dei blocchi di contenuto giustificato per maggiore ordine */
.about-content p, .property-description, .property-section p:not(.map-note) { text-align: justify; text-justify: inter-word; }
.about-list { margin: 26px 0 34px; }
.about-list li { margin-bottom: 13px; display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.about-list li::before { content: '✓'; flex: 0 0 26px; height: 26px; background: rgba(200,168,107,0.18); color: var(--accent-dark); border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; font-size: 0.85rem; font-weight: 700; }

/* =========================================================
   PROPERTY CARDS
   ========================================================= */
.properties-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 34px; }
.property-card { border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); overflow: hidden; transition: var(--transition); background: var(--white); display: flex; flex-direction: column; }
.property-card:hover { transform: translateY(-8px); box-shadow: var(--box-shadow); border-color: transparent; }
.property-img-wrapper { position: relative; display: block; height: 240px; overflow: hidden; }
.property-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.property-card:hover .property-img-wrapper img { transform: scale(1.07); }
.badge-exclusive { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(15,27,42,0.85); color: var(--white); padding: 6px 15px; border-radius: var(--border-radius-pill); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; font-family: var(--font-body); }
.property-info { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.property-location { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.property-price { font-family: var(--font-body); font-size: 1.55rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.property-title { font-size: 1.2rem; margin-bottom: 16px; line-height: 1.35; font-family: var(--font-body); font-weight: 700; }
.property-title a { color: var(--text-main); }
.property-title a:hover { color: var(--primary); }
.property-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; font-weight: 500; }
.property-card .btn-outline { width: 100%; margin-top: auto; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--bg-light); padding: 44px 34px; text-align: center; border-radius: var(--border-radius-lg); transition: var(--transition); border: 1px solid transparent; }
.service-card:hover { transform: translateY(-5px); background: var(--white); border-color: var(--border-color); box-shadow: var(--box-shadow); }
.service-icon { width: 66px; height: 66px; background: rgba(0,63,106,0.08); color: var(--primary); border-radius: 16px; display: inline-flex; justify-content: center; align-items: center; font-size: 1.8rem; margin-bottom: 22px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.3rem; font-family: var(--font-body); font-weight: 700; }
.service-card p { color: var(--text-muted); }

/* =========================================================
   STATS BAND
   ========================================================= */
.stats-band { background: var(--primary); color: var(--white); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--accent); }
.stat-lbl { display: block; font-size: 0.98rem; opacity: 0.9; margin-top: 6px; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { background: linear-gradient(rgba(15,27,42,0.88), rgba(15,27,42,0.92)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80') center/cover fixed; color: var(--white); padding: 90px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.cta-band p { max-width: 600px; margin: 0 auto 32px; opacity: 0.92; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section { background: var(--bg-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.review-card { background: var(--white); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); padding: 30px; box-shadow: var(--box-shadow-sm); display: flex; flex-direction: column; transition: var(--transition); }
.review-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }
.review-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 16px; }
.review-text { color: var(--text-main); font-style: italic; line-height: 1.7; margin-bottom: 22px; flex-grow: 1; }
.review-author { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border-color); padding-top: 18px; }
.review-avatar { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.review-meta { display: flex; flex-direction: column; }
.review-meta strong { color: var(--text-main); }
.review-meta span { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-section { background: var(--white); padding: 0 0 0; }
.newsletter-wrapper { background: var(--dark-bg); border-radius: var(--border-radius-lg); padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 30px; transform: translateY(50px); position: relative; z-index: 5; box-shadow: var(--box-shadow); }
.newsletter-text { max-width: 520px; color: var(--white); }
.newsletter-text h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 8px; }
.newsletter-text p { color: #aab7c4; }
.newsletter-form { display: flex; gap: 12px; flex: 1; max-width: 440px; }
.newsletter-form input { flex: 1; padding: 15px 20px; border-radius: var(--border-radius-pill); border: none; outline: none; font-family: inherit; }
.newsletter-form .btn { background: var(--accent); color: var(--dark-bg); }
.newsletter-form .btn:hover { background: var(--accent-dark); }

/* =========================================================
   FOOTER
   ========================================================= */
.main-footer { background: var(--dark-bg); color: #9fb0bf; padding: 110px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 18px; display: block; }
.footer-logo span { color: var(--accent); }
.footer-grid h4 { color: var(--white); margin-bottom: 18px; font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.5px; }
.footer-links li { margin-bottom: 11px; line-height: 1.5; }
.footer-links a { color: #9fb0bf; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; line-height: 1.8; color: #7e90a0; }
.footer-bottom a { color: #9fb0bf; }
.footer-bottom a:hover { color: var(--accent); }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-nav { background: var(--bg-soft); border-bottom: 1px solid var(--border-color); padding: 12px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--text-muted); list-style: none; margin: 0; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; margin-right: 8px; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-main); font-weight: 600; }

/* =========================================================
   PAGE HERO (interne)
   ========================================================= */
.page-hero { background-size: cover; background-position: center; color: var(--white); padding: 120px 0 90px; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.page-hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }

/* =========================================================
   CATALOGO / RICERCA
   ========================================================= */
.catalog-hero { background: linear-gradient(rgba(15,27,42,0.72), rgba(15,27,42,0.72)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=1920&q=80') center/cover; padding: 110px 0 80px; color: var(--white); text-align: center; }
.catalog-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.catalog-hero p { color: rgba(255,255,255,0.9); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.section-catalog { background: var(--bg-light); padding-top: 0; }
.filters-toggle { display: none; }
.filters-box { background: var(--white); padding: 26px; border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow); margin-top: -50px; position: relative; z-index: 10; margin-bottom: 36px; }
.filters-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.filter-group { display: flex; flex-direction: column; }
.filter-group label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group input, .filter-group select { padding: 13px; border: 1px solid var(--border-color); border-radius: var(--border-radius); font-size: 0.95rem; font-family: inherit; color: var(--text-main); background: var(--bg-light); transition: var(--transition); }
.filter-group input:focus, .filter-group select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,63,106,0.1); }
.filter-actions { flex-direction: row; align-items: center; gap: 14px; }
.filter-actions .btn { flex: 1; }
.filter-reset { font-size: 0.85rem; color: #d33; white-space: nowrap; }
.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.results-count { color: var(--text-muted); font-size: 1.05rem; }
.results-count strong { color: var(--text-main); }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.sort-form select { padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--white); font-family: inherit; cursor: pointer; }
.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 30px; background: var(--white); border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow-sm); }
.no-results h2 { font-size: 1.6rem; margin: 12px 0; }
.no-results p { color: var(--text-muted); margin-bottom: 26px; }

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 50px; }
.page-link { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--white); color: var(--text-main); font-weight: 600; }
.page-link:hover { border-color: var(--primary); color: var(--primary); }
.page-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* =========================================================
   DETTAGLIO IMMOBILE
   ========================================================= */
.property-hero { width: 100%; min-height: 460px; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 0 0 56px; margin-bottom: 46px; }
.property-hero .container { position: relative; z-index: 2; }
.property-hero-badge { display: inline-block; background: var(--accent); color: var(--dark-bg); font-family: var(--font-body); font-weight: 700; font-size: 0.8rem; padding: 6px 16px; border-radius: var(--border-radius-pill); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.property-hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--white); margin-bottom: 10px; text-shadow: 0 4px 14px rgba(0,0,0,0.5); }
.property-hero-location { font-size: 1.1rem; color: #d7dee5; margin-bottom: 10px; }
.property-hero-price { font-family: var(--font-body); font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--accent); font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,0.5); }

.property-detail-layout { display: grid; grid-template-columns: 1.9fr 1fr; gap: 44px; align-items: start; margin-bottom: 80px; }
.property-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 44px; }
.feature-card { background: var(--white); padding: 18px 14px; border-radius: var(--border-radius); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 14px; }
.feature-card .icon { font-size: 1.7rem; }
.feature-card .details { display: flex; flex-direction: column; }
.feature-card .lbl { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; font-weight: 700; }
.feature-card .val { font-size: 1.05rem; font-weight: 800; color: var(--text-main); font-family: var(--font-body); }
.property-section { margin-bottom: 46px; }
.property-section h2 { font-size: 1.7rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--bg-soft); }
.property-description { color: var(--text-muted); font-size: 1.08rem; line-height: 1.85; }
.caratteristiche-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.caratteristiche-list li { display: flex; align-items: center; gap: 10px; color: var(--text-main); font-weight: 500; }
.caratteristiche-list li::before { content: '✓'; flex: 0 0 22px; height: 22px; background: rgba(0,63,106,0.1); color: var(--primary); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.map-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }

.mobile-scroll-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mobile-scroll-gallery .gallery-item { height: 220px; border-radius: var(--border-radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--box-shadow-sm); }
.mobile-scroll-gallery .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mobile-scroll-gallery .gallery-item:hover img { transform: scale(1.06); }
.mobile-scroll-gallery .gallery-item.plan img { object-fit: contain; background: var(--bg-light); padding: 10px; }

.contact-sidebar { background: var(--white); padding: 28px; border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); position: sticky; top: 100px; box-shadow: var(--box-shadow); }
.sidebar-price { font-family: var(--font-body); font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.sidebar-ref { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.5px; }
.sidebar-title { font-size: 1.3rem; margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; }
.sidebar-sub { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 18px; }
.sidebar-form { display: flex; flex-direction: column; gap: 12px; }
.sidebar-form input, .sidebar-form textarea { padding: 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-light); font-family: inherit; font-size: 0.95rem; }
.sidebar-form input:focus, .sidebar-form textarea:focus { border-color: var(--primary); outline: none; }
.sidebar-form textarea { min-height: 110px; resize: vertical; }

/* =========================================================
   CONTATTI
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-box { background: var(--white); border: 1px solid var(--border-color); padding: 36px; border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow-sm); }
.contact-info-box h2 { font-size: 1.5rem; margin-bottom: 26px; color: var(--primary); font-family: var(--font-body); font-weight: 700; }
.contact-item { display: flex; gap: 15px; margin-bottom: 26px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item-icon { font-size: 1.5rem; flex: 0 0 auto; }
.contact-item strong { display: block; color: var(--text-main); margin-bottom: 4px; }
.contact-item span { color: var(--text-muted); }
.contact-form { background: var(--white); border: 1px solid var(--border-color); padding: 36px; border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.contact-form h2 { font-size: 1.5rem; font-family: var(--font-body); font-weight: 700; }
.form-intro { color: var(--text-muted); margin-top: -6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--bg-light); font-family: inherit; font-size: 0.95rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,63,106,0.08); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-privacy { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-map { margin-top: 50px; border-radius: var(--border-radius-lg); overflow: hidden; box-shadow: var(--box-shadow); line-height: 0; }

/* Alerts */
.alert { padding: 20px 24px; border-radius: var(--border-radius); margin-bottom: 40px; text-align: center; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }

/* =========================================================
   WHATSAPP FLOAT + LIGHTBOX
   ========================================================= */
.whatsapp-float { position: fixed; bottom: 26px; right: 26px; width: 56px; height: 56px; background: var(--whatsapp); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 8px 20px rgba(37,211,102,0.4); z-index: 900; transition: var(--transition); }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.lightbox-overlay { position: fixed; inset: 0; background: rgba(10,16,24,0.92); display: none; align-items: center; justify-content: center; z-index: 9998; padding: 30px; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 86%; max-height: 86%; border-radius: var(--border-radius); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 18px; right: 26px; background: none; border: none; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; z-index: 2; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: none; background: rgba(255,255,255,0.14); color: #fff; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.95rem; letter-spacing: 1px; background: rgba(0,0,0,0.4); padding: 5px 14px; border-radius: var(--border-radius-pill); }
@media (max-width: 576px) { .lightbox-nav { width: 44px; height: 44px; } .lightbox-prev { left: 10px; } .lightbox-next { right: 10px; } }

/* =========================================================
   MOBILE BOTTOM NAV
   ========================================================= */
.mobile-bottom-nav { display: none; }

/* =========================================================
   ANIMAZIONI
   ========================================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-up { animation: fadeInUp 0.7s ease-out both; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
    .nav-links, .nav-phone { display: none !important; }
    .logo-img, .main-header.scrolled .logo-img { max-height: 60px; }
    .navbar, .main-header.scrolled .navbar { padding: 8px 0; }
    .mobile-bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.96); backdrop-filter: blur(15px); box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 9999; justify-content: space-around; padding: 10px 6px 22px; border-top: 1px solid var(--border-color); }
    .bottom-nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 0.68rem; font-weight: 600; flex: 1; gap: 3px; }
    .bottom-nav-icon { font-size: 1.35rem; opacity: 0.6; }
    .bottom-nav-item.active { color: var(--primary); }
    .bottom-nav-item.active .bottom-nav-icon { opacity: 1; }
    body { padding-bottom: 76px; }
    .whatsapp-float { bottom: 88px; }

    .about-grid, .contact-grid, .property-detail-layout { grid-template-columns: 1fr; gap: 40px; }
    .services-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-badge { position: static; margin: -50px auto 0; width: max-content; }
    .about-image img { height: 420px; }
    .search-wrapper { position: relative; bottom: auto; flex-direction: column; width: 100%; margin: 24px auto 0; display: none; }
    .search-wrapper.open { display: flex; }
    .hero-search-toggle { display: flex; width: max-content; max-width: 100%; margin: 30px auto 0; }
    .hero-eyebrow { font-size: 0.62rem; padding: 6px 14px; margin-bottom: 18px; }

    /* Breadcrumb nascosto su mobile (resta nei dati strutturati per la SEO) */
    .breadcrumb-nav { display: none; }
    .filters-form { grid-template-columns: repeat(2, 1fr); }
    .filter-actions { grid-column: 1 / -1; }

    /* Filtri collassabili su mobile/tablet */
    .filters-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: -50px; margin-bottom: 22px; position: relative; z-index: 10; }
    .filters-box { margin-top: 0; display: none; }
    .filters-box.open { display: block; }
    .filters-form { gap: 14px; }
    .newsletter-wrapper { flex-direction: column; text-align: center; }
    .newsletter-form { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .contact-sidebar { position: static; }
    .property-hero { min-height: 360px; }
    /* Galleria a slider orizzontale su mobile: occupa meno spazio verticale */
    .mobile-scroll-gallery { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; scrollbar-width: thin; }
    .mobile-scroll-gallery::-webkit-scrollbar { height: 6px; }
    .mobile-scroll-gallery::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
    .mobile-scroll-gallery .gallery-item { flex: 0 0 82%; height: 240px; scroll-snap-align: center; }
}

@media (max-width: 576px) {
    .section-padding { padding: 60px 0; }
    .services-grid, .stats-grid, .filters-form, .form-row, .properties-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links li { justify-content: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }
    .property-features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card { flex-direction: column; text-align: center; gap: 8px; }
    .cta-actions { flex-direction: column; }
    .cta-band { background-attachment: scroll; }
    .mobile-scroll-gallery .gallery-item { flex-basis: 86%; height: 220px; }
}
