@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-dark: #0F1E1C;
    --primary-deeper: #081110;
    --primary-mid: #182E2B;
    --accent: #C87D55;
    --accent-light: #DF9A73;
    --accent-hover: #AD653E;
    --accent-soft: rgba(200, 125, 85, 0.12);
    --accent-border: rgba(200, 125, 85, 0.35);
    --sand-bg: #F6F4EF;
    --sand-card: #EDE9E0;
    --white: #FFFFFF;
    --text-dark: #141F1D;
    --text-muted: #566663;
    --text-light: #9AA8A5;
    --border-color: #E2E6E4;
    --shadow-sm: 0 8px 24px rgba(15, 30, 28, 0.05);
    --shadow-md: 0 18px 45px rgba(15, 30, 28, 0.09);
    --shadow-lg: 0 28px 65px rgba(15, 30, 28, 0.18);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.68;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    top: 0 !important;
}

/* Nasconde 100% barra superiore, popup, tooltip e spinner di Google Translate */
body > .skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-xl07Ob-lTBxed,
#goog-gt-tt,
.goog-te-balloon-frame,
div#goog-gt- {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}

#google_translate_element {
    display: none !important;
}

html, body {
    top: 0px !important;
    position: static !important;
}

h1, h2, h3, h4, .serif-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    z-index: 10005;
    transition: width 0.1s ease-out;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   DYNAMIC STICKY HEADER & MULTILINGUAL SWITCHER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 230, 228, 0.9);
    transition: var(--transition);
}

.site-header.header-hero:not(.scrolled) {
    background: linear-gradient(180deg, rgba(8, 17, 16, 0.78) 0%, rgba(8, 17, 16, 0.28) 75%, transparent 100%);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar {
    background: var(--primary-deeper);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    padding: 7px 0;
    transition: all 0.35s ease;
    overflow: hidden;
    max-height: 38px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header.scrolled .topbar {
    max-height: 0;
    padding: 0;
    opacity: 0;
    border: none;
}

.topbar-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-wrapper {
    max-width: 1340px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.35s ease;
}

.site-header.scrolled .nav-wrapper {
    padding: 11px 32px;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-emblem {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    transition: transform 0.35s ease;
}

.brand-logo:hover .logo-emblem {
    transform: scale(1.06);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-dark);
    transition: var(--transition);
}

.brand-tagline {
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.site-header.header-hero:not(.scrolled) .brand-name {
    color: var(--white);
}

.site-header.header-hero:not(.scrolled) .brand-tagline {
    color: var(--accent-light);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.site-header.header-hero:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.92);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.caret-icon {
    font-size: 0.68rem;
    transition: transform 0.25s ease;
}

.nav-item:hover .caret-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -12px;
    min-width: 275px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
}

.dropdown-item:hover {
    background: var(--sand-bg);
    color: var(--accent);
    padding-left: 18px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 8px;
}

/* Nav Actions + Language Switcher (IT / DE / FR / EN) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-dropdown-wrap {
    position: relative;
}

.lang-current-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--sand-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.site-header.header-hero:not(.scrolled) .lang-current-btn {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 165px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1005;
}

.lang-dropdown-wrap:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.lang-option:hover,
.lang-option.active {
    background: var(--sand-bg);
    color: var(--accent);
}

/* Luxury Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    background: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(200, 125, 85, 0.28);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(200, 125, 85, 0.42);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: var(--transition);
}

.btn-glass:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--primary-dark);
    color: var(--white);
    border: 1px solid var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.btn-dark:hover {
    background: var(--primary-mid);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary-dark);
}

.site-header.header-hero:not(.scrolled) .mobile-toggle {
    color: var(--white);
}

/* ==========================================================================
   FULL-SCREEN CINEMATIC HERO
   ========================================================================== */
.hero-cinematic {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    overflow: hidden;
    padding-top: 120px;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2200&q=85') no-repeat center center/cover;
    z-index: 0;
    animation: kenBurnsZoom 22s ease-in-out infinite alternate;
}

@keyframes kenBurnsZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(8, 17, 16, 0.42) 0%, rgba(8, 17, 16, 0.78) 100%),
                linear-gradient(180deg, rgba(8, 17, 16, 0.65) 0%, rgba(8, 17, 16, 0.35) 50%, rgba(8, 17, 16, 0.88) 100%);
    z-index: 1;
}

.hero-center-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: auto;
    text-align: center;
    padding: 60px 24px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(200, 125, 85, 0.55);
    backdrop-filter: blur(8px);
    color: #F5E6D8;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.hero-kicker span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-light);
}

.hero-center-content h1 {
    font-size: clamp(3rem, 5.8vw, 5.1rem);
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 24px;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero-center-content h1 em {
    font-style: italic;
    color: var(--accent-light);
    font-weight: 400;
}

.hero-center-content p {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 660px;
    margin: 0 auto 38px auto;
    font-weight: 300;
    line-height: 1.75;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-bottom-ribbon {
    position: relative;
    z-index: 2;
    background: rgba(8, 17, 16, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-ribbon-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ribbon-item {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 20px;
}

.ribbon-item:last-child {
    border-right: none;
    padding-right: 0;
}

.ribbon-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--accent-light);
    line-height: 1;
}

.ribbon-text strong {
    display: block;
    font-size: 0.92rem;
    color: var(--white);
    font-weight: 600;
}

.ribbon-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================================
   SECTIONS & BENTO ARCHITECTURAL GRID
   ========================================================================== */
.section {
    padding: 105px 32px;
}

.section-sand {
    background-color: var(--sand-bg);
}

.section-dark {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-deeper) 100%);
    color: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-head-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 24px;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    color: var(--primary-dark);
}

.section-dark .section-title {
    color: var(--white);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 26px;
}

.bento-card {
    background: var(--sand-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.bento-card.featured {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-border);
}

.bento-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.bento-card h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.bento-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.bento-card.featured p {
    color: rgba(255, 255, 255, 0.78);
}

.bento-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(150, 150, 150, 0.2);
    padding-top: 18px;
}

.bento-links a {
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.bento-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

/* ==========================================================================
   6 SERVICES ARCHITECTURAL MATRIX
   ========================================================================== */
.services-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.matrix-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 38px 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.matrix-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.matrix-card:hover::before {
    transform: scaleX(1);
}

.matrix-card:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.matrix-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.matrix-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
    background: var(--sand-bg);
    color: var(--primary-dark);
}

.matrix-card:hover .matrix-tag {
    background: var(--accent);
    color: var(--white);
}

.matrix-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.matrix-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.matrix-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.matrix-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   PROPERTY CARDS & AUTO-ADAPTIVE IMAGES (object-fit: cover)
   ========================================================================== */
.tab-pills {
    display: inline-flex;
    background: var(--sand-card);
    padding: 5px;
    border-radius: var(--radius-sm);
    gap: 6px;
}

.tab-pill {
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-pill.active {
    background: var(--primary-dark);
    color: var(--white);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.prop-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.prop-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--accent);
}

.prop-img-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--sand-card);
}

.prop-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.65s ease;
}

.prop-card:hover .prop-img-wrap img {
    transform: scale(1.07);
}

.prop-status-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 30, 28, 0.9);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 13px;
    border-radius: 6px;
}

.prop-status-tag.sale {
    background: var(--accent);
}

.prop-price-tag {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.prop-specs-bar {
    background: var(--sand-bg);
    padding: 11px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
}

.prop-body {
    padding: 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prop-loc {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 6px;
}

.prop-title {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.prop-desc {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    flex: 1;
}

.prop-btn-full {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--sand-bg);
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
}

.prop-card:hover .prop-btn-full {
    background: var(--accent);
    color: var(--white);
}

/* ==========================================================================
   INTERACTIVE YIELD SIMULATOR + FAQ ACCORDION
   ========================================================================== */
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 52px;
    align-items: center;
}

.sim-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 40px 36px;
    backdrop-filter: blur(10px);
}

.sim-row {
    margin-bottom: 24px;
}

.sim-row label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.sim-slider {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.sim-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sim-res-card {
    background: rgba(8, 17, 16, 0.65);
    padding: 18px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.sim-res-card small {
    font-size: 0.74rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 4px;
}

.sim-res-card strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    color: var(--white);
}

/* Accordion FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.open {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
}

.faq-icon {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 26px;
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 240px;
    padding: 0 26px 22px 26px;
}

/* ==========================================================================
   INNER PAGE HERO & LAYOUTS
   ========================================================================== */
.page-hero {
    padding: 165px 32px 75px 32px;
    background: linear-gradient(135deg, var(--primary-deeper) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-bottom: 3px solid var(--accent);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin-bottom: 14px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.82);
    max-width: 680px;
    font-size: 1.04rem;
}

.filter-bar {
    background: var(--white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-top: -42px;
    margin-bottom: 48px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.filter-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--primary-dark);
    background: var(--sand-bg);
    transition: border-color 0.25s ease;
}

.filter-control:focus {
    outline: none;
    border-color: var(--accent);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 52px;
    align-items: start;
}

.feature-check-list {
    margin: 28px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature-check-item {
    background: var(--sand-bg);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-card {
    background: var(--sand-bg);
    border: 1px solid var(--border-color);
    padding: 34px 30px;
    border-radius: var(--radius-md);
    position: sticky;
    top: 110px;
}

.gallery-main {
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    cursor: zoom-in;
    position: relative;
    background: var(--sand-card);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.gallery-thumb {
    height: 92px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    transition: var(--transition);
    background: var(--sand-card);
}

.gallery-thumb.active, .gallery-thumb:hover {
    opacity: 1;
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Brochure Download Bar on Property Pages */
.brochure-download-bar {
    background: var(--sand-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 32px 0;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 13px 8px;
    font-size: 0.92rem;
}

.specs-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Privacy Consent Checkbox in Forms */
.privacy-check-label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    cursor: pointer;
    margin-top: 2px;
}

.privacy-check-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.privacy-check-label a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

/* Map Frame on Contact Page */
.map-frame-wrap {
    margin-top: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 300px;
}

.map-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form Feedback Message */
.form-feedback {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
    margin-top: 8px;
}

.form-feedback.success {
    display: block;
    background: #E6F4EA;
    color: #137333;
    border: 1px solid #A8DAB5;
}

.form-feedback.demo-info {
    display: block;
    background: #FFF8E7;
    color: #8C5E0A;
    border: 1px solid #F5D68E;
}

/* ==========================================================================
   FOOTER, FLOATING WIDGETS, LIGHTBOX & COOKIE BANNER
   ========================================================================== */
.site-footer {
    background: var(--primary-deeper);
    color: var(--white);
    padding: 85px 32px 34px 32px;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
    gap: 44px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 28px auto 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    flex-wrap: wrap;
    gap: 14px;
}

.floating-widgets {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9990;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.float-btn:hover {
    transform: translateY(-3px);
}

.float-chat {
    background: var(--accent);
}

.float-top {
    background: var(--primary-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
}

.float-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Cookie Banner (Swiss LPD / GDPR) */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    max-width: 400px;
    background: var(--primary-deeper);
    color: var(--white);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(200, 125, 85, 0.4);
    box-shadow: var(--shadow-lg);
    z-index: 9995;
    display: none;
}

.cookie-banner.show {
    display: block;
}

/* Modal & Lightbox */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 17, 16, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--white);
    max-width: 500px;
    width: 100%;
    border-radius: var(--radius-md);
    padding: 38px 34px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media print {
    .site-header, .floating-widgets, .cookie-banner, .sidebar-card, .site-footer {
        display: none !important;
    }
    .service-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Tablet & Smartphone */
@media (max-width: 992px) {
    .hero-ribbon-grid,
    .bento-grid,
    .services-matrix,
    .properties-grid,
    .simulator-grid,
    .service-detail-grid,
    .footer-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }
    .ribbon-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding-bottom: 14px;
    }
    .ribbon-item:last-child { border-bottom: none; }
    .topbar { display: none; }
    .nav-wrapper { padding: 12px 20px; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-menu .nav-link { color: var(--primary-dark) !important; font-size: 1rem; }
    .nav-menu.mobile-open { display: flex; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 14px;
    }
    .mobile-toggle { display: block; }
    .section { padding: 72px 20px; }
    .gallery-main { height: 300px; }
    .feature-check-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 0.82rem; }
    .brand-tagline { display: none; }
    .nav-actions .btn-primary { padding: 9px 14px; font-size: 0.78rem; }
    .hero-center-content h1 { font-size: 2.35rem; }
    .sim-results { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CMP COOKIE CONSENT PLUGIN (MODALE PREFERENZE, LEVE ON/OFF, MAP BLOCKER)
   ========================================================================== */
.cookie-banner {
    max-width: 460px;
}

.cookie-reopen-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-deeper);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(200, 125, 85, 0.45);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 9985;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cookie-reopen-badge.visible {
    opacity: 1;
    visibility: visible;
}

.cookie-reopen-badge:hover {
    background: var(--primary-dark);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.cmp-category-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--sand-bg);
}

.cmp-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cmp-cat-header strong {
    font-size: 0.92rem;
    color: var(--primary-dark);
}

.cmp-cat-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Toggle Switch */
.cmp-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cmp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cmp-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #CBD2D0;
    transition: 0.3s;
    border-radius: 24px;
}

.cmp-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cmp-switch input:checked + .cmp-slider {
    background-color: var(--accent);
}

.cmp-switch input:checked + .cmp-slider:before {
    transform: translateX(20px);
}

.cmp-switch input:disabled + .cmp-slider {
    background-color: var(--primary-dark);
    opacity: 0.65;
    cursor: not-allowed;
}

/* Map Blocked Placeholder */
.map-blocked-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-deeper);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
}
