/* ==========================================
   APULIA STYLE - CASA VACANZE ALGHERO
   ========================================== */

/* SKIP LINK (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--navy-dark, #1a2332);
    color: #fff;
    padding: 12px 24px;
    z-index: 10000;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    top: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apulia Color Palette */
    --navy-dark: #0a1e2e;
    --navy-blue: #1a3a52;
    --navy-light: #2a4a62;
    --brown-dark: #8B5A3C;
    --brown-medium: #A67C52;
    --brown-light: #C27A50;
    --beige: #F5E6D3;
    --beige-light: #FBF6F0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --border-light: #e0e0e0;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/sfondo-sito.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-full {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* ==========================================
   FIXED TOP ICONS (Apulia Style)
   ========================================== */
.fixed-top-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
    padding: 25px 150px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.fixed-icons-left,
.fixed-icons-right {
    display: flex;
    gap: 25px;
    pointer-events: auto;
}

.fixed-icons-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.fixed-logo {
    height: 80px;
    width: auto;
}

.fixed-icon {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fixed-icon:hover {
    color: var(--brown-light);
    transform: scale(1.1);
}

.mobile-menu-toggle {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    padding: 3px 0;
    opacity: 0.5;
    transition: var(--transition);
    line-height: 1;
}

.lang-btn.active {
    opacity: 1;
    color: var(--brown-light);
}

.lang-btn:hover {
    opacity: 1;
    color: var(--brown-light);
}

.lang-sep {
    color: var(--white);
    opacity: 0.3;
    font-size: 0.65rem;
    line-height: 1;
    pointer-events: none;
}

/* In navbar (property-detail) */
.lang-switcher--nav .lang-btn {
    color: var(--white);
}

.mobile-menu-toggle .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.mobile-menu-toggle .menu-icon span {
    width: 100%;
    height: 2px;
    background: var(--white);
    display: block;
    transition: var(--transition);
}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-right {
    cursor: pointer;
}

/* ==========================================
   NAVIGATION - APULIA STYLE
   ========================================== */
.navbar {
    background: rgba(26, 58, 82, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.navbar-static {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Promo Banner Animation */
@keyframes slideDownFade {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.promo-banner {
    display: none;
}

/* Scroll Indicator - Mouse Style */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 10;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

.container-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    align-items: center;
    gap: 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 45px;
    width: auto;
}

.nav-menu-center {
    display: flex;
    gap: 35px;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.nav-menu-center li a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu-center li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brown-light);
    transition: var(--transition);
}

.nav-menu-center li a:hover {
    color: var(--brown-light);
}

.nav-menu-center li a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav-primary {
    background: var(--brown-light);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-primary:hover {
    background: var(--brown-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(194, 122, 80, 0.3);
}

.nav-language {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 5px;
}

.nav-language:hover {
    color: var(--brown-light);
}

.nav-icon {
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.nav-icon:hover {
    color: var(--brown-light);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--navy-dark);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1.05);
    object-fit: cover;
    z-index: 0;
}

.hero-video--mobile {
    display: none;
}

@media (max-width: 768px) {
    .hero-video--desktop {
        display: none;
    }
    .hero-video--mobile {
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-width: unset;
        min-height: unset;
        transform: none;
        object-fit: cover;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(10, 30, 46, 0.4) 0%, rgba(10, 30, 46, 0.85) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

/* Floating Particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

.hero-particles span:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 25%; width: 2px; height: 2px; animation-duration: 22s; animation-delay: 2s; }
.hero-particles span:nth-child(3) { left: 40%; width: 3px; height: 3px; animation-duration: 20s; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 55%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 1s; }
.hero-particles span:nth-child(5) { left: 70%; width: 2px; height: 2px; animation-duration: 24s; animation-delay: 3s; }
.hero-particles span:nth-child(6) { left: 80%; width: 4px; height: 4px; animation-duration: 19s; animation-delay: 5s; }
.hero-particles span:nth-child(7) { left: 90%; width: 3px; height: 3px; animation-duration: 21s; animation-delay: 7s; }
.hero-particles span:nth-child(8) { left: 5%; width: 2px; height: 2px; animation-duration: 25s; animation-delay: 6s; }

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 950px;
    padding: 0 30px;
}

/* Hero Badge */
.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.badge-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
}

.badge-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #d4af37;
}

/* Hero Title */
.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: 5.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-title-accent {
    display: block;
    font-style: italic;
    background: linear-gradient(135deg, #d4af37 0%, #f5d87a 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.3));
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0;
    opacity: 0.85;
    letter-spacing: 0.5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stars */
.hero-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    opacity: 0;
    animation: heroReveal 0.8s ease-out 1.5s forwards;
}

.star-icon {
    font-size: 2rem;
    color: #d4af37;
    opacity: 0;
    animation: starPop 0.5s ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.star-icon:nth-child(1) { animation-delay: 1.7s; }
.star-icon:nth-child(2) { animation-delay: 1.85s; }
.star-icon:nth-child(3) { animation-delay: 2s; }
.star-icon:nth-child(4) { animation-delay: 2.15s; }
.star-icon:nth-child(5) { animation-delay: 2.3s; }

@keyframes starPop {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Hero Divider Line */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.divider-line {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

/* Bottom CTA - text and arrow indicator */
.hero-bottom-cta {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    animation: heroReveal 0.8s ease-out 1.8s forwards;
    cursor: pointer;
}

.cta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.9;
}

.cta-arrow {
    font-size: 1.8rem;
    color: var(--white);
    opacity: 0.8;
    animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(8px); opacity: 1; }
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 38px;
    background: linear-gradient(135deg, #d4af37 0%, #c9a02d 100%);
    color: var(--navy-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #e0bf4a 0%, #d4af37 100%);
}

.btn-hero-primary i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
    transform: translateY(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 35px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}

.stat-plus,
.stat-decimal {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #d4af37;
}

.stat-star {
    font-size: 1.5rem;
    color: #d4af37;
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 8px;
}

.hero-stat-divider {
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
}

/* Hero entrance animations */
.animate-hero {
    opacity: 0;
    transform: translateY(35px);
    animation: heroReveal 0.8s ease-out forwards;
}

.animate-hero:nth-child(1) { animation-delay: 0.3s; }
.animate-hero:nth-child(2) { animation-delay: 0.6s; }
.animate-hero:nth-child(3) { animation-delay: 0.9s; }
.animate-hero:nth-child(4) { animation-delay: 1.2s; }
.animate-hero:nth-child(5) { animation-delay: 1.5s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-hero {
    display: none;
}

/* Search Bar */
.search-bar {
    background: var(--white);
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.search-field label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.search-field input {
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-dark);
    width: 100%;
    outline: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-search {
    background: var(--brown-light);
    color: var(--white);
    border: none;
    padding: 15px 35px;
    border-radius: 35px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-search:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ==========================================
   LOCATION BAR
   ========================================== */
.location-bar {
    background: var(--navy-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.location-item {
    color: var(--white);
    padding: 20px 40px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.location-item:last-child {
    border-right: none;
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   INTRO SECTION DARK
   ========================================== */
.intro-section-dark {
    background: transparent;
    color: var(--white);
    padding: 110px 0;
}

.intro-editorial {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 0;
}

.intro-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 20px;
    display: block;
}

.intro-headline {
    font-family: 'DM Serif Display', serif;
    font-size: 4.2rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin: 0 0 30px 0;
}

.intro-accent {
    background: linear-gradient(135deg, var(--brown-light) 0%, #e8b88a 50%, var(--brown-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.intro-lead {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.85);
    margin: 0 0 60px 0;
    max-width: 660px;
}

.intro-features {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 40px;
}

.intro-feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
}

.intro-feature-item i {
    font-size: 1.6rem;
    color: var(--brown-light);
}

.intro-feature-item span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}

.intro-feature-item small {
    font-weight: 400;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: block;
}

/* Formula Roulette link style */
.intro-feature-link {
    cursor: pointer;
    border-radius: 12px;
    padding: 16px 20px !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(194, 122, 80, 0.25);
    background: rgba(194, 122, 80, 0.08);
    text-decoration: none;
}

.intro-feature-link:hover {
    background: rgba(194, 122, 80, 0.18);
    border-color: rgba(194, 122, 80, 0.5);
    transform: translateY(-3px);
}

.roulette-link {
    color: var(--brown-light);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.roulette-link:hover {
    color: var(--brown-medium);
}

.intro-feature-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.intro-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.intro-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-right p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.intro-right strong {
    font-weight: 600;
    color: var(--white);
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--brown-light);
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.intro-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 28px;
    position: relative;
}

.intro-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--brown-light);
    border-radius: 50%;
}

/* Legacy intro-card styles removed - now using intro-split layout */

/* Text Highlight */
.text-highlight {
    background: linear-gradient(120deg, rgba(193, 154, 107, 0.3) 0%, rgba(193, 154, 107, 0.15) 100%);
    padding: 1px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

/* CTA Button */
.btn-intro-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--brown-light), #c9956b);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
}

.btn-intro-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 154, 107, 0.4);
}

.btn-intro-cta i {
    font-size: 1.2rem;
    animation: bounceDown 2s ease infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   PROPERTIES SECTION DARK
   ========================================== */
.properties-section-dark {
    background: transparent;
    padding: 0 0 80px 0;
}

.property-card-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    margin-bottom: 25px;
    overflow: hidden;
    height: 420px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hidden properties (shown after "Esplora" button click) */
.property-card-hidden {
    display: none;
}

.property-card-revealed {
    animation: fadeInCard 0.5s ease forwards;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Show-more properties button */
.show-more-properties {
    text-align: center;
    padding: 20px 0 50px;
}

.btn-show-more {
    display: inline-block;
    padding: 16px 44px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn-show-more:hover {
    background: #ffffff;
    color: var(--navy, #1a2744);
    border-color: #ffffff;
}

.property-image-horizontal {
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* Carousel track: tutte le slides affiancate */
.carousel-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.carousel-track img {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Fallback per card con singola immagine (no track) */
.property-image-horizontal > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.image-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background 0.3s ease, transform 0.3s ease;
}

.image-dot.active {
    background: white;
    transform: scale(1.3);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.nav-left {
    left: 12px;
}

.nav-right {
    right: 12px;
}

.property-info-horizontal {
    padding: 38px 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-location-small {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.property-info-horizontal h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    color: var(--navy-dark);
    margin-bottom: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.property-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.property-icons span {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.property-info-horizontal > p {
    color: var(--text-gray);
    line-height: 1.65;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.property-cancellation {
    color: #27ae60 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    flex: 1;
}

.property-footer-horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 20px;
}

.property-footer-horizontal p {
    color: #27ae60;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-book {
    background: var(--navy-dark);
    color: var(--white);
    padding: 11px 30px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-book:hover {
    background: var(--navy-blue);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-book-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-book-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-view-all-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: 18px 50px;
    border-radius: 35px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    letter-spacing: 1px;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-view-all-whatsapp:hover {
    background: #1fb855;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   GALLERY MOSAIC
   ========================================== */
.btn-view-all {
    background: var(--white);
    color: var(--navy-dark);
    padding: 15px 50px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-view-all:hover {
    background: var(--beige-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   GALLERY MOSAIC
   ========================================== */
.gallery-section-mosaic {
    background: rgba(251, 246, 240, 0.95);
    padding: 80px 0 100px;
    position: relative;
    overflow: visible;
}

.gallery-intro {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

/* Left: Logo + Text stacked */
.gallery-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-section {
    margin-top: -160px;
    margin-bottom: 35px;
}

.logo-small {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 35px rgba(0, 0, 0, 0.12));
}

.gallery-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.4rem;
    color: var(--navy-dark);
    margin-bottom: 22px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.gallery-text p {
    color: var(--text-gray);
    line-height: 1.85;
    margin-bottom: 14px;
    font-size: 1.05rem;
    max-width: 440px;
}

.gallery-text p:last-child {
    margin-bottom: 0;
}

/* Right: Ordered Mosaic Grid */
.gallery-mosaic {
    display: grid;
    grid-template-columns: 0.56fr 1fr;
    gap: 16px;
    position: relative;
    margin-top: -40px;
}

.mosaic-1,
.mosaic-4 {
    aspect-ratio: 9 / 16;
}

.mosaic-2,
.mosaic-3 {
    aspect-ratio: 16 / 9;
}

.gallery-mosaic img,
.gallery-mosaic video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-mosaic img:hover,
.gallery-mosaic video:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    z-index: 10;
}

.mosaic-1 {
    grid-column: 1;
    grid-row: 1;
}

.mosaic-2 {
    grid-column: 2;
    grid-row: 1;
}

.mosaic-3 {
    grid-column: 2;
    grid-row: 2;
}

.mosaic-4 {
    grid-column: 1;
    grid-row: 2;
}

/* Gallery Badge */
.gallery-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 35px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    color: #0a1e2e;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
}

.gallery-badge i {
    font-size: 1.4rem;
}

/* ==========================================
   SERVICES SECTION LIGHT
   ========================================== */
.services-section-light {
    background: rgba(255, 255, 255, 0.95);
    padding: 100px 0;
}

.services-section-light .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.services-intro {
    position: sticky;
    top: 100px;
    align-self: start;
}

.services-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--navy-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.services-subtitle {
    color: var(--brown-medium);
    font-size: 1rem;
    margin-bottom: 40px;
}

.services-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services-locations h4 {
    color: var(--navy-dark);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.services-locations a {
    color: var(--brown-medium);
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.95rem;
}

.services-locations a:hover {
    color: var(--brown-dark);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 50px;
}

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    align-items: start;
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border: 2px solid var(--navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.service-content h3 {
    font-size: 1rem;
    color: var(--navy-dark);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-content p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==========================================
   MAP SECTION
   ========================================== */
.map-section {
    background: var(--navy-dark);
    padding: 100px 0;
}

.map-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.map-section .section-header h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 3rem;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

.map-section .section-header p {
    color: #ffffff !important;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 600;
}

.properties-map {
    width: 100%;
    height: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    background: #e5e3df;
    z-index: 1;
}

/* Leaflet tile layers */
.leaflet-container {
    background: #e5e3df;
}

.leaflet-tile-pane {
    z-index: 200;
}

/* Custom Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.map-popup {
    padding: 15px;
}

.map-popup h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.map-popup p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.map-popup a {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--brown-light), var(--brown-medium));
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.map-popup a:hover {
    transform: translateY(-2px);
}

/* ==========================================
   OWNER SECTION
   ========================================== */
.owner-section {
    background: var(--brown-medium);
    color: var(--white);
    padding: 100px 0;
}

.owner-content {
    display: grid;
    grid-template-columns: 250px 150px 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.owner-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
}

.owner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-logo img {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.owner-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.owner-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.owner-contact {
    text-align: center;
}

.owner-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.owner-contact > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-btn {
    background: var(--white);
    color: var(--navy-dark);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-btn:hover {
    background: var(--beige-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   FOOTER COMBINED (Apulia Style)
   ========================================== */
.footer-combined {
    position: relative;
}

/* Dark banner top stripe */
.footer-dark-banner {
    background: var(--navy-dark);
    height: 120px;
}

/* Content area below dark banner */
.footer-content-area {
    background: #ebe6df;
    padding: 60px 0 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}

/* Left: Logo + two sub-columns */
.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--brown-light);
    margin-bottom: 22px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--navy-dark);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--brown-light);
}

.footer-contact-item i {
    font-size: 1.15rem;
    color: var(--brown-light);
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-dark);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--brown-light);
}

/* Right sub-column: Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 0;
    margin: 0;
}

.footer-links li a {
    color: var(--navy-dark);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a::before {
    content: '● ';
    color: var(--brown-light);
    font-size: 0.65rem;
    margin-right: 4px;
}

.footer-links li a:hover {
    color: var(--brown-light);
}

/* Form Card — overlaps into dark banner */
.footer-form-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    margin-top: -180px;
    position: relative;
    z-index: 2;
}

.footer-form-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--navy-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.footer-form-subtitle {
    color: var(--brown-light);
    font-size: 0.9rem;
    margin-bottom: 28px;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-form label {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 600;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--brown-light);
}

.footer-form textarea {
    resize: vertical;
    min-height: 110px;
}

.footer-form .btn-submit-modern {
    background: linear-gradient(135deg, var(--brown-light), var(--brown-medium));
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 5px;
}

.footer-form .btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 111, 71, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: #ebe6df;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(10, 30, 46, 0.1);
    color: var(--text-gray);
    font-size: 0.82rem;
}

/* ==========================================
   WHATSAPP WIDGET
   ========================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.whatsapp-float {
    background: #25D366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
}

.whatsapp-circle-text {
    position: absolute;
    width: 115px;
    height: 115px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rotateText 10s linear infinite;
}

.circle-text {
    fill: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

@keyframes rotateText {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
    background: #075e54;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    filter: brightness(0) invert(1);
}

.whatsapp-header-text h4 {
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 3px 0;
}

.whatsapp-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
}

.whatsapp-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.whatsapp-close:hover {
    transform: scale(1.1);
}

.whatsapp-popup-body {
    background-image: url('../images/Sfondowhatsapp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 24px;
    min-height: 240px;
    max-height: 320px;
    overflow-y: auto;
}

.whatsapp-popup-body::-webkit-scrollbar {
    width: 6px;
}

.whatsapp-popup-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.whatsapp-popup-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.whatsapp-popup-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.whatsapp-message {
    display: flex;
    justify-content: flex-start;
}

.whatsapp-message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    max-width: 85%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.whatsapp-message-bubble p {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    color: #303030;
    line-height: 1.5;
}

.whatsapp-message-bubble p:last-of-type {
    margin-bottom: 6px;
}

.whatsapp-time {
    font-size: 0.72rem;
    color: #667781;
    display: block;
    text-align: right;
}

.whatsapp-popup-footer {
    background: #f0f2f5;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.whatsapp-input {
    flex: 1;
    padding: 11px 16px;
    border: none;
    border-radius: 22px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    background: white;
}

.whatsapp-send {
    background: #25D366;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-size: 1.3rem;
}

.whatsapp-send:hover {
    background: #20ba5a;
    transform: scale(1.05);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .intro-headline {
        font-size: 3.2rem;
    }

    .property-card-horizontal {
        grid-template-columns: 1fr;
        height: auto;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 4px 24px rgba(10, 30, 46, 0.10);
        margin-bottom: 28px;
    }

    .property-image-horizontal {
        min-height: 0;
        height: 260px;
    }

    .property-image-horizontal img {
        border-radius: 0;
    }

    /* Frecce nascoste su mobile — si usa swipe */
    .nav-arrow {
        display: none;
    }

    /* Dots più raffinati */
    .image-dots {
        bottom: 10px;
    }

    .image-dot {
        width: 6px;
        height: 6px;
    }

    /* Info card layout */
    .property-info-horizontal {
        padding: 22px 22px 26px;
        align-items: center;
        text-align: center;
    }

    .property-location-small {
        font-size: 0.68rem;
        letter-spacing: 1.8px;
        color: var(--brown-light);
        margin-bottom: 6px;
    }

    .property-info-horizontal h3 {
        font-size: 1.35rem;
        margin-bottom: 10px;
    }

    .property-icons {
        gap: 16px;
        margin-bottom: 12px;
        justify-content: center;
    }

    .property-icons span {
        font-size: 0.8rem;
    }

    .property-info-horizontal > p {
        font-size: 0.82rem;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .property-footer-horizontal {
        margin-top: 16px;
        justify-content: center;
    }

    .btn-book {
        width: 100%;
        text-align: center;
        padding: 13px 20px;
        border-radius: 12px;
        font-size: 0.78rem;
        letter-spacing: 1.2px;
    }

    .gallery-intro {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-left {
        align-items: center;
        text-align: center;
    }

    .logo-section {
        margin-top: -120px;
    }

    .logo-small {
        width: 240px;
    }

    .gallery-mosaic {
        grid-template-rows: 180px 180px;
        margin-top: 0;
    }

    .gallery-text h2 {
        font-size: 2rem;
    }

    .gallery-text p {
        max-width: 100%;
    }

    .services-section-light .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .services-intro {
        position: static;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .owner-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .container-nav {
        grid-template-columns: 1fr auto;
        padding: 0 20px;
    }

    .nav-menu-center {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--navy-blue);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 30px 0;
        box-shadow: var(--shadow-md);
        gap: 20px;
    }

    .nav-menu-center.active {
        left: 0;
    }

    .nav-right {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    /* Nasconde tutto tranne il lang-switcher nella navbar */
    .nav-right .btn-nav-primary,
    .nav-right .nav-icon {
        display: none;
    }

    /* Mostra il lang-switcher nella navbar anche su mobile */
    .nav-right .lang-switcher--nav {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 35px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 14px;
    }

    .btn-hero-primary {
        padding: 16px 30px;
    }

    .hero-bottom-cta {
        bottom: 35px;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero-stat-divider {
        height: 35px;
    }

    .hero-badge {
        margin-bottom: 22px;
    }

    .badge-text {
        font-size: 0.7rem;
        letter-spacing: 3px;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
        border-radius: 20px;
    }

    .btn-search {
        width: 100%;
    }

    .location-bar {
        flex-direction: column;
    }

    .location-item {
        width: 100%;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-form-card {
        margin-top: 0;
        max-width: 450px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-dark-banner {
        height: 60px;
    }

    .gallery-mosaic {
        grid-template-rows: 160px 160px;
        gap: 12px;
    }

    .logo-section {
        margin-top: -100px;
    }

    .logo-small {
        width: 200px;
    }

    .gallery-text h2 {
        font-size: 1.6rem;
    }

    /* ---- Fixed top header mobile ---- */
    .fixed-top-icons {
        padding: 20px 16px;
        align-items: center;
    }

    /* Nascondi telefono ed email su mobile */
    .fixed-icons-left {
        display: none;
    }

    /* Logo centrato, più grande */
    .fixed-logo {
        height: 62px;
    }

    /* Lang switcher posizionato a sinistra */
    .fixed-icons-right > .lang-switcher {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Hamburger resta a destra */
    .fixed-icons-right {
        margin-left: auto;
        gap: 14px;
        align-items: center;
    }

    .fixed-icons-right .fixed-icon {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .hero-stats {
        gap: 18px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-plus, .stat-decimal {
        font-size: 1.3rem;
    }

    .stat-star {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .hero-stat-divider {
        height: 28px;
    }

    .badge-line {
        width: 35px;
    }

    .hero-cta {
        margin-bottom: 40px;
    }

    .hero-bottom-cta {
        bottom: 25px;
    }

    .divider-line {
        width: 55px;
    }

    .intro-headline {
        font-size: 2.4rem;
    }

    .intro-features {
        flex-wrap: wrap;
        gap: 30px;
    }

    .intro-feature-divider {
        display: none;
    }

    .intro-feature-item {
        flex: 1 1 40%;
    }

    .property-image-horizontal {
        height: 230px;
    }

    .property-info-horizontal {
        padding: 18px 18px 22px;
    }

    .property-info-horizontal h3 {
        font-size: 1.2rem;
    }

    .property-icons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .property-icons span {
        font-size: 0.75rem;
    }

    .map-section h2 {
        font-size: 2rem;
    }

    .properties-map {
        height: 450px;
    }

    .services-intro h2 {
        font-size: 2rem;
    }

    .owner-text h2 {
        font-size: 1.8rem;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 5px;
        font-size: 0.75rem;
    }

    .logo-hero {
        width: 80px;
    }

    .property-footer-horizontal {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .btn-book-whatsapp {
        width: 100%;
    }

    /* Mostro frecce al touch — disabilitato, swipe only */
    .nav-arrow {
        display: none;
    }

    .nav-arrow.nav-left {
        left: 10px;
    }

    .nav-arrow.nav-right {
        right: 10px;
    }

    .whatsapp-popup {
        position: fixed;
        bottom: 100px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(20px) scale(0.9);
        width: calc(100vw - 32px);
        max-width: 380px;
        opacity: 0;
        visibility: hidden;
        z-index: 10001;
    }

    .whatsapp-popup.open {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }

    .whatsapp-widget {
        right: 20px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--navy-dark);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}
