/* ═══════════════════════════════════════════════════════════════
   MURA SARDEGNA — Ultra-Modern Light Design System
   Aesthetic: Awwwards-level, minimal, white, cinematic
   ═══════════════════════════════════════════════════════════════ */

/* === VARIABLES === */
:root {
    --bg: #fafafa;
    --bg-elevated: #f2f0ec;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #b8956a;
    --accent-dim: rgba(184, 149, 106, 0.12);
    --white: #ffffff;
    --black: #000000;
    --border: rgba(0, 0, 0, 0.08);
    --font-primary: 'Inter', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.8s var(--ease-out-expo);
    --transition-medium: 0.5s var(--ease-out-expo);
    --transition-fast: 0.3s var(--ease-out-expo);
}

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

html {
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg);
    overflow-x: hidden;
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

/* === CUSTOM CURSOR === */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), background 0.4s var(--ease-out-expo), opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo), border-color 0.4s, opacity 0.3s;
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(26, 26, 26, 0.1);
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    border-color: var(--accent);
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #e8d5a8);
    z-index: 10000;
    transform-origin: left;
    transform: scaleX(0);
    width: 100%;
    transition: none;
}

/* === FILM GRAIN OVERLAY === */
.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* === KEYFRAME ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLine {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes drawStroke {
    to { stroke-dashoffset: 0; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes starPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === RATING SUMMARY === */
.rating-summary {
    text-align: center;
    padding: 6rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.star-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    opacity: 0;
    transform: scale(0.5);
}

.reveal.visible .star-icon {
    animation: starPop 0.8s var(--ease-out-expo) forwards;
}

.reveal.visible .star-icon:nth-child(1) { animation-delay: 0.1s; }
.reveal.visible .star-icon:nth-child(2) { animation-delay: 0.2s; }
.reveal.visible .star-icon:nth-child(3) { animation-delay: 0.3s; }
.reveal.visible .star-icon:nth-child(4) { animation-delay: 0.4s; }
.reveal.visible .star-icon:nth-child(5) { animation-delay: 0.5s; }

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Image reveal with clip-path */
.img-reveal {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.2s var(--ease-out-expo);
}

.img-reveal.visible {
    clip-path: inset(0 0 0% 0);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.over-title {
    font-family: var(--font-primary);
    font-weight: 300;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

.text-link {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
    display: inline-block;
    margin-top: 1.5rem;
    transition: color var(--transition-fast), border-color var(--transition-fast), letter-spacing var(--transition-fast);
    cursor: none;
}

.text-link:hover {
    color: var(--white);
    border-color: var(--white);
    letter-spacing: 0.25em;
}

p {
    color: var(--text-secondary);
    line-height: 1.9;
}

.subtitle {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-weight: 300;
    color: var(--text-secondary);
}

ul { list-style: none; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.w-100 { width: 100%; }

/* === BUTTONS === */
button {
    cursor: none;
    font-family: var(--font-primary);
}

.btn-luxury {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    padding: 1rem 2.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: background-color var(--transition-medium), color var(--transition-medium), letter-spacing var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left var(--transition-medium);
    z-index: -1;
}

.btn-luxury:hover {
    color: var(--black);
    letter-spacing: 0.3em;
}

.btn-luxury:hover::before {
    left: 0;
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #D4AF37;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: clip-path 0.75s cubic-bezier(0.65, 0, 0.07, 1);
    clip-path: circle(150% at 50% 50%);
}
.preloader.loaded {
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
}



.preloader-logo {
    width: 120px;
    height: auto;
    filter: none;
    animation: pulseGlow 2s ease-in-out infinite;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 3rem;
    transition: background-color var(--transition-medium), padding var(--transition-medium), backdrop-filter var(--transition-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: none;
    z-index: 1001;
    padding: 5px;
    transition: transform var(--transition-fast);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 28px;
    height: 1px;
    background-color: var(--white);
    transition: background-color var(--transition-fast), width var(--transition-fast);
}

.navbar.scrolled .hamburger span {
    background-color: var(--text-primary);
}

.hamburger:hover span:nth-child(2) {
    width: 18px;
}

.logo {
    height: 40px;
    transition: filter var(--transition-fast), transform var(--transition-fast);
    filter: none;
}

.logo { content: url("ASSETS_COMUNI/LOGHI_E_ICONE/logo_white.svg"); }
.navbar.scrolled .logo { content: url("ASSETS_COMUNI/LOGHI_E_ICONE/logo_dark.svg"); }

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: none;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .nav-links {
        display: flex;
    }
    .hamburger {
        display: none;
    }
}

.nav-links a {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    transition: color var(--transition-fast);
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover,
.navbar.scrolled .nav-links a:hover {
    color: var(--accent);
}

/* === LAYOUT === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-padding {
    padding: 10rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

/* Decorative line after section header */
.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 2rem auto 0;
    transform-origin: center;
}

.section-header .subtitle {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-weight: 300;
    color: var(--text-secondary);
}

/* === SVG FLOATING DECORATIONS === */
.svg-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    stroke: var(--accent);
    fill: none;
    stroke-width: 0.5;
}

.svg-deco-1 {
    top: 5%;
    right: 5%;
    width: 300px;
    height: 300px;
    animation: float 12s ease-in-out infinite;
}

.svg-deco-2 {
    bottom: 10%;
    left: 3%;
    width: 250px;
    height: 250px;
    animation: float 15s ease-in-out infinite reverse;
}

.svg-deco-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    animation: float 18s ease-in-out infinite;
    transform-origin: center;
}

/* === PAGE HERO === */
.page-hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.8) 100%);
    -webkit-backdrop-filter: brightness(0.85);
    backdrop-filter: brightness(0.85);
    z-index: 1;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg), transparent);
    z-index: 1;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    text-align: center;
}

.hero-content .over-title {
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.8);
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.5), 0 0 80px rgba(0,0,0,0.5);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    animation: float 3s ease-in-out infinite;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* === LANDING SPLIT-SCREEN === */
.hero-split {
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.split-side {
    position: relative;
    width: 33.3333%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 1.2s var(--ease-out-expo);
}

.split-side:hover .parallax-bg {
    transform: scale(1.05);
}

.split-side::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    transition: background 0.8s var(--ease-out-expo);
    z-index: 2;
}

.split-side:hover::after {
    background: rgba(0,0,0,0.15);
}

/* Divider line between split sides */
.split-side.left-side::after,
.split-side.center-side::after {
    border-right: 1px solid rgba(0,0,0,0.1);
}

.split-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    transition: transform 0.6s var(--ease-out-expo);
}

.split-side:hover .split-content {
    transform: translateY(-10px);
}

.split-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.4);
}

.split-content p {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent);
    text-shadow: 0 2px 15px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.8);
    margin-bottom: 1rem;
}

.split-content .text-link {
    color: var(--white);
    border-color: rgba(0,0,0,0.3);
    margin-top: 2rem;
}

.split-content .text-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* === LUXURY CARDS (ROOMS) === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.luxury-card {
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform var(--transition-medium);
}

.luxury-card-img {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    position: relative;
    cursor: none;
    overflow: hidden;
    transition: transform var(--transition-slow);
}

.luxury-card-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    z-index: 1;
    transition: opacity var(--transition-medium);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 300;
    opacity: 0;
    transition: opacity var(--transition-medium);
    z-index: 2;
    backdrop-filter: blur(2px);
}

.luxury-card-img:hover .gallery-overlay {
    opacity: 1;
}

.luxury-card-content {
    padding-right: 2rem;
}

.luxury-card-content h3 {
    color: var(--text-primary);
}

.luxury-card-content p {
    color: var(--text-secondary);
}

/* === VILLA DETAILS === */
.villa-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
    align-items: center;
}

.villa-images .main-img {
    height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.villa-images .main-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.permanent-img-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    z-index: 2;
    margin: 0;
    pointer-events: none;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.villa-images .main-img .gallery-overlay {
    font-size: 0.8rem;
}

.villa-images .main-img:hover .gallery-overlay {
    opacity: 1;
}

.villa-info {
    padding: 3rem 0;
}

.services-list-clean {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.services-list-clean li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === REVIEWS SECTION === */
.reviews-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.reviews-carousel::-webkit-scrollbar {
    display: none;
}

.reviews-carousel:active {
    cursor: grabbing;
}

.review-card {
    flex: 0 0 400px;
    scroll-snap-align: start;
    background: var(--bg-card);
    padding: 3rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.review-author h4 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.review-author span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.review-score {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.review-body {
    flex-grow: 1;
}

.review-body h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-style: italic;
}

.review-body p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.review-date {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* === INFO & RULES SECTION === */
.info-section {
    border-top: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h3 {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.info-score {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.amenities-grid .amenity-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.amenity-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* === GUIDE SECTION === */
.guide-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
}

.guide-card.reverse {
    direction: rtl;
}

.guide-card.reverse > * {
    direction: ltr;
}

.guide-img {
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.guide-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}

.guide-content {
    padding: 2rem;
}

.guide-content h3 {
    color: var(--text-primary);
}

.guide-content p {
    color: var(--text-secondary);
}

/* === SECTION NUMBERS === */
.section-number {
    font-family: var(--font-serif);
    font-size: clamp(6rem, 15vw, 12rem);
    color: rgba(184, 149, 106, 0.07);
    position: absolute;
    top: 2rem;
    left: 3rem;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* === FOOTER === */
.footer {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding: 8rem 0 3rem;
    border-top: 1px solid var(--border);
}

.footer h4 {
    color: #b8956a;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer p {
    color: #888;
    font-size: 0.85rem;
}

.maps-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.legal-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
}

.legal-info p {
    color: #777;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* === BOOKING MODAL === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out-expo);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 550px;
    padding: 4rem;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--bg-card);
}

.modal-content .over-title {
    color: var(--accent);
}

.modal-content h2 {
    color: var(--text-primary);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    font-family: var(--font-primary);
    font-weight: 300;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
    cursor: none;
}

.close-modal:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

input, select {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    border-radius: 0;
    transition: border-color var(--transition-fast);
    cursor: none;
    -webkit-appearance: none;
}

input:focus, select:focus {
    border-bottom-color: var(--accent);
}

select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* === LANDING PAGE SPECIFICS === */
.landing-page .central-logo {
    content: url("ASSETS_COMUNI/LOGHI_E_ICONE/logo_dark.svg");
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    height: 50px;
    transition: transform var(--transition-fast);
}

.landing-page .central-logo:hover {
    transform: translateX(-50%) scale(1.05);
}

/* === MURA REVIEWS === */
.reviews-mura-section {
    background-color: #fcfbf9; /* Light elegant beige */
    padding: 8rem 0;
    color: #333;
}

.reviews-header-mura {
    text-align: left;
    margin-bottom: 4rem;
}

.reviews-header-mura .over-title {
    color: #a89f91;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.reviews-title-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.reviews-title-row h2 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    color: #1a1a1a;
    font-weight: 300;
    margin: 0;
}

.review-badge {
    background-color: #b59b74;
    color: #fff;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(181, 155, 116, 0.3);
}

.review-cards-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
}

.review-cards-wrapper::-webkit-scrollbar {
    display: none; /* Chrome */
}

.review-card-mura {
    background-color: #ffffff;
    min-width: 350px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.review-card-mura .reviewer-name {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.review-card-mura .reviewer-country {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a89f91;
    margin-bottom: 2rem;
}

.review-card-mura .review-score {
    position: absolute;
    top: 3rem;
    right: 3rem;
    background-color: #b59b74;
    color: #fff;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
}

.review-card-mura .review-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.review-card-mura .review-text {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    flex-grow: 1;
}

.review-card-mura .review-date {
    margin-top: 2rem;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: #a89f91;
}

/* === MURA INFO GRID === */
.info-mura-section {
    background-color: #ffffff;
    padding: 8rem 0;
    color: #333;
}

.info-mura-section h2 {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: #1a1a1a;
    font-weight: 300;
    text-align: center;
    margin-bottom: 5rem;
}

.info-mura-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
}

.info-col-mura h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.info-col-mura .sub-heading {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.info-col-mura p {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.mura-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mura-service-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: #666;
}

.mura-service-item svg {
    width: 20px;
    height: 20px;
    fill: #b59b74;
}

/* === MURA GUIDE ALTERNATE === */
.guide-mura-section {
    display: flex;
    align-items: center;
    background-color: #f9f8f3;
    min-height: 80vh;
}

.guide-mura-section.reverse {
    flex-direction: row-reverse;
}

.guide-mura-img {
    width: 50%;
    height: 80vh;
    background-size: cover;
    background-position: center;
}

.guide-mura-content {
    width: 50%;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-mura-content .category {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b59b74;
    margin-bottom: 1.5rem;
}

.guide-mura-content h3 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: #1a1a1a;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.guide-mura-content p {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
}

.mura-circle-deco {
    width: 40px;
    height: 40px;
    border: 1px solid #d4cbb8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}
.mura-circle-deco::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #d4cbb8;
    border-radius: 50%;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .section-padding { padding: 7rem 0; }
    .luxury-card-img { height: 400px; }
}

@media (max-width: 900px) {
    .guide-card { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 5rem; }
    .guide-img { height: 400px; }
    .villa-details { grid-template-columns: 1fr; gap: 2rem; }
    .villa-images .main-img { height: 400px; }
    .maps-container { grid-template-columns: 1fr; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .section-number { font-size: 6rem; }
}

@media (max-width: 768px) {
    .hero-split { flex-direction: column; }
    .split-side { width: 100%; height: 33.3333%; }
    .split-side.left-side::after, .split-side.center-side::after { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
    .navbar { padding: 1rem 1.5rem; }
    .navbar.scrolled { padding: 1rem 1.5rem; }
    
    .modal-content { 
        padding: 1.5rem; 
        width: 90%; 
        border-radius: 8px;
    }
    .close-modal { top: 1rem; right: 1rem; font-size: 2.5rem; cursor: pointer; }

    .card-grid { grid-template-columns: 1fr; gap: 3rem; }
    .section-padding { padding: 5rem 0; }
    .section-header { margin-bottom: 4rem; }
    /* Hide custom cursor on touch devices */
    .cursor, .cursor-follower { display: none; }
    body { cursor: auto; }
    a, button, .luxury-card-img, .hamburger { cursor: pointer; }
}

/* === ENTRANCE ANIMATION SARDINIA === */
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preloader-sardinia-text {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    opacity: 0;
    transform: translateY(20px);
    animation: sardiniaReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.preloader-line {
    width: 0px;
    height: 1px;
    background: var(--white);
    margin: 20px 0;
    opacity: 0.5;
    animation: drawLine 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.2s;
}

.preloader-logo-animated {
    width: clamp(200px, 44vw, 300px);
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.08));
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes sardiniaReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawLine {
    from {
        width: 0px;
    }
    to {
        width: 150px;
    }
}

@keyframes logoReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
.mobile-menu-content a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }



/* ============================================================
   CAMERE / GALLERIA (MASSERIA BABA MASTER TEMPLATE DESIGN)
   ============================================================ */
.camere-section {
    padding: 6rem 0;
    background: var(--bg);
    position: relative;
}

.camere-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.camere-header .section-label {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.camere-header .section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
    flex-shrink: 0;
}

.camere-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.camere-meta {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
    max-width: 420px;
    line-height: 1.7;
}

.camere-track-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: scroll;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 1.5rem;
    padding-bottom: 2.5rem;
    cursor: grab;
}

.camere-track-wrap::-webkit-scrollbar { display: none; }

.camere-track {
    display: flex;
    gap: 1.5rem;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
    width: max-content;
    padding-bottom: 0.5rem;
}

.camera-card {
    position: relative;
    flex-shrink: 0;
    width: clamp(280px, 26vw, 380px);
    scroll-snap-align: start;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.camera-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.camera-card-media {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f0eee9;
    position: relative;
}

.camera-card-media img,
.camera-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease-out-expo);
}

.camera-card:hover .camera-card-media img,
.camera-card:hover .camera-card-media video {
    transform: scale(1.06);
}

.camera-card-video-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: grid;
    place-items: center;
    color: #fff;
    pointer-events: none;
}

.camera-card-body {
    padding: 1.5rem 1.4rem;
    border-top: 1px solid var(--border);
}

.camera-card-number {
    font-family: var(--font-primary);
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.camera-card-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.camera-card-desc {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.camera-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* ============================================================
   LIGHTBOX (MASSERIA BABA MASTER TEMPLATE DESIGN)
   ============================================================ */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 95000;
    background: rgba(20, 20, 16, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    font-family: var(--font-primary);
    z-index: 95002;
}

.lightbox-close:hover { color: #fff; }

.lightbox-close-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover .lightbox-close-icon {
    border-color: rgba(255,255,255,0.8);
    transform: rotate(90deg);
}

.lightbox-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 3rem;
    max-width: 100%;
    align-items: center;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.lightbox-track::-webkit-scrollbar { display: none; }

.lightbox-img-wrap {
    flex-shrink: 0;
    height: 75vh;
    aspect-ratio: 3/4;
    max-width: 85vw;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    border-radius: 2px;
}

.lightbox-img-wrap img,
.lightbox-img-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    z-index: 95001;
}

.lightbox-caption h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.02em;
}

.lightbox-caption p {
    font-family: var(--font-primary);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 0.3rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    width: calc(100% - 4rem);
    left: 2rem;
    pointer-events: none;
    z-index: 95001;
}

.lightbox-btn {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.8);
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(20, 20, 16, 0.45);
    backdrop-filter: blur(6px);
}

.lightbox-btn:hover {
    border-color: rgba(255,255,255,0.8);
    color: #fff;
    background: rgba(20, 20, 16, 0.7);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .camere-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .camere-meta {
        text-align: left;
        max-width: 100%;
    }
    .camere-title {
        font-size: 2.4rem;
    }
    .camera-card {
        width: 270px;
    }
    .lightbox-img-wrap {
        height: 60vh;
        aspect-ratio: 3/4;
        max-width: 82vw;
    }
    .lightbox-nav {
        width: calc(100% - 1.5rem);
        left: 0.75rem;
    }
    .lightbox-btn {
        width: 40px;
        height: 40px;
    }
    .lightbox-close {
        top: 1.2rem;
        right: 1.2rem;
    }
}

/* === GOOGLE MAPS === */
.map-section {
    width: 100%;
    height: 500px;
}
.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* === INTRO GALLERY MURA === */
.intro-gallery-mura {
    position: relative;
    padding: 8rem 2rem 4rem 2rem;
    background-color: #fcfbf9;
    text-align: center;
    overflow: hidden;
    color: #333;
}

.intro-bg-number {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    font-size: 25rem;
    color: rgba(200, 180, 150, 0.1);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.intro-gallery-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.intro-overtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: #a68a64;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.intro-overtitle .circle {
    width: 24px;
    height: 24px;
    border: 1px solid #a68a64;
    border-radius: 50%;
    display: inline-block;
}

.intro-gallery-content h2 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.intro-gallery-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 3rem;
}

.intro-divider {
    width: 40px;
    height: 1px;
    background-color: #a68a64;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .intro-bg-number {
        font-size: 15rem;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .intro-gallery-content h2 {
        font-size: 3rem;
    }
}


/* === FIXES: CENTRAL SUBTITLE & MOBILE RESPONSIVENESS === */
.central-subtitle {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: #a68a64;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    transition: transform var(--transition-fast);
}
.landing-page .central-logo:hover + .central-subtitle {
    transform: translateX(-50%) scale(1.05);
}

@media (max-width: 900px) {
    .btn-luxury {
        padding: 0.6rem 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        white-space: nowrap;
    }
    .navbar {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    .navbar > div {
        gap: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.6rem 0.8rem;
    }
    .navbar .logo {
        height: 38px;
    }
    .btn-luxury {
        padding: 0.5rem 0.85rem;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }
}

.hero-sea-title {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    font-style: italic;
    color: #f7ede2;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 25px rgba(0,0,0,0.7);
}

.hero-cta-btn {
    display: inline-block;
    background: rgba(184, 149, 106, 0.95);
    color: #1a1917 !important;
    font-weight: 600;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(184, 149, 106, 0.3);
    margin-top: 1.2rem;
    backdrop-filter: blur(8px);
    transition: all var(--transition-medium);
}

.hero-cta-btn:hover {
    background: #ffffff;
    color: #1a1917 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .info-mura-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .mura-services-grid {
        grid-template-columns: 1fr;
    }
    .reviews-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .reviews-title-row h2 {
        font-size: 3.5rem;
    }
    .guide-mura-section {
        flex-direction: column !important;
        min-height: auto;
    }
    .guide-mura-img {
        width: 100%;
        height: 50vh;
        position: relative !important;
    }
    .guide-mura-content {
        width: 100%;
        padding: 3rem 1.5rem;
        position: relative !important;
        background-color: #f9f8f3;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .intro-gallery-mura {
        padding: 4rem 1.5rem 2rem 1.5rem;
    }
    .intro-gallery-content h2 {
        font-size: 2.5rem;
    }
    .intro-bg-number {
        font-size: 10rem;
    }
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


.vivi-title-container {
    text-align: center;
    padding: 6rem 2rem 2rem 2rem;
    background-color: #f9f8f3;
}
.vivi-title-container h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}
@media (max-width: 768px) {
    .vivi-title-container {
        padding: 4rem 1.5rem 1rem 1.5rem;
    }
    .vivi-title-container h2 {
        font-size: 2.2rem;
    }
}


/* === MOBILE OVERLAP FIX FOR LANDING PAGE === */
@media (max-width: 768px) {
    .landing-page .central-logo {
        top: 20px;
        height: 35px; /* scale down the logo */
        z-index: 999;
    }
    
    /* Push down the content of the first section (Los Roques) so it doesn't overlap with the logo */
    .landing-page .hero-split .left-side .split-content {
        padding-top: 40px; 
    }
}

.preloader-content {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.preloader.loaded .preloader-content {
    transform: scale(1.15);
    opacity: 0;
}

/* === SUMMER SCARCITY & URGENCY BADGES === */
.summer-urgency-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(184, 149, 106, 0.08);
    border: 1px solid rgba(184, 149, 106, 0.28);
    border-radius: 8px;
    padding: 0.9rem 1.4rem;
    margin-top: 2rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: #4a3d2e;
    line-height: 1.5;
}

.urgency-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b8956a;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(184, 149, 106, 0.7);
    animation: urgencyPulse 2s infinite;
}

@keyframes urgencyPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(184, 149, 106, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(184, 149, 106, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(184, 149, 106, 0); }
}

.hero-urgency-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    padding: 0.45rem 1.1rem;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f7ede2;
}

.hero-urgency-tag .sparkle {
    color: #dfb77d;
    font-size: 0.9rem;
}

.modal-urgency-box {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #faf6f0;
    border-left: 3px solid #b8956a;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: #555;
    line-height: 1.45;
}

/* === LIGHTBOX CLOSE FIX & CURSOR OVERLAP FIX === */
.lightbox-is-open .cursor,
.lightbox-is-open .cursor-follower,
body:has(#lightbox.is-open) .cursor,
body:has(#lightbox.is-open) .cursor-follower {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#lightbox, #lightbox * {
    cursor: default;
}

#lightbox .lightbox-close,
#lightbox .lightbox-btn,
#lightbox .lightbox-img-wrap {
    cursor: pointer !important;
}

#lightbox .lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem;
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    z-index: 95002;
    transform: none !important;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

#lightbox .lightbox-close:hover {
    color: #ffffff;
    transform: none !important;
}

#lightbox .lightbox-close-icon {
    display: grid !important;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease !important;
}

#lightbox .lightbox-close:hover .lightbox-close-icon {
    border-color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: rotate(90deg) !important;
}

/* ============================================================
   ESPLORA IL TERRITORIO / SCOPRI BALESTRATE (VILLA ANURAG DESIGN)
   ============================================================ */
.territorio-section {
    padding: 7rem 0 5rem 0;
    background: #fbfaf6;
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.territorio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.territorio-header .section-label {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.6rem;
}

.territorio-header .section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

.territorio-title {
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0;
}

.territorio-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.territorio-meta {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: right;
    max-width: 480px;
    line-height: 1.75;
}

.territorio-track-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: scroll;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 1.5rem;
    padding-bottom: 2rem;
    cursor: grab;
}

.territorio-track-wrap:active {
    cursor: grabbing;
}

.territorio-track-wrap::-webkit-scrollbar { display: none; }

.territorio-track {
    display: flex;
    gap: 1.8rem;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
    width: max-content;
    padding-bottom: 0.5rem;
}

.territorio-card {
    position: relative;
    flex-shrink: 0;
    width: clamp(260px, 24vw, 340px);
    scroll-snap-align: start;
    overflow: hidden;
    cursor: grab;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.territorio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.territorio-card-media {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f0eee9;
    position: relative;
}

.territorio-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease-out-expo);
}

.territorio-card:hover .territorio-card-media img {
    transform: scale(1.07);
}

.territorio-card-body {
    padding: 1.5rem 1.4rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.territorio-card-distance {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.territorio-card-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    line-height: 1.25;
    color: var(--text-primary);
}

.territorio-card-desc {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.territorio-drag-hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-inline: clamp(1.5rem, 5vw, 4rem);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.territorio-drag-hint::after {
    content: '';
    display: block;
    height: 1px;
    flex: 1;
    background: var(--border);
}

@media (max-width: 768px) {
    .territorio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    .territorio-meta {
        text-align: left;
        max-width: 100%;
    }
    .territorio-title {
        font-size: 2.2rem;
    }
    .territorio-card {
        width: 260px;
    }
}

/* === TRENINO TURISTICO ATTRACTION CARD (SERVIZI SECTION) === */
.trenino-attraction-card {
    margin-top: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.trenino-attraction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.trenino-card-media {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0eee9;
}

.trenino-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out-expo);
}

.trenino-attraction-card:hover .trenino-card-media img {
    transform: scale(1.05);
}

.trenino-card-text {
    padding: 1.25rem 1.4rem;
}

.trenino-card-badge {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.trenino-card-text h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.trenino-card-text p {
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* === LANDING PAGE: BALESTRATE SECTION & SPLIT APARTMENTS === */
.landing-balestrate-section {
    background-color: #ffffff;
    color: #1a1a1a;
    position: relative;
    z-index: 10;
    padding: 7rem 0 4rem 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.landing-balestrate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.balestrate-title-box {
    max-width: 680px;
}

.balestrate-overtitle {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.balestrate-main-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.balestrate-main-title em {
    font-style: italic;
    color: var(--accent);
}

.balestrate-text-content {
    margin-top: 1rem;
}

.balestrate-paragraph {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444444;
    margin-bottom: 1rem;
}

.balestrate-paragraph strong {
    color: #1a1a1a;
    font-weight: 600;
}

.balestrate-gallery-wrap {
    padding-bottom: 1.5rem;
}

.balestrate-photo-card {
    position: relative;
    flex-shrink: 0;
    width: clamp(280px, 30vw, 420px);
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 6px;
    background: #f0eee9;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
    cursor: grab;
}

.balestrate-photo-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

.balestrate-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out-expo);
}

.balestrate-photo-card:hover img {
    transform: scale(1.05);
}

.scroll-to-apartments {
    display: inline-flex;
    align-items: center;
    background: #1a1a1a;
    color: #ffffff !important;
    border: 1px solid #1a1a1a;
    padding: 0.9rem 1.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.scroll-to-apartments:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.landing-scroll-invitation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888888;
}

.arrow-down-bounce {
    font-size: 1.2rem;
    color: var(--accent);
    animation: arrowBounce 1.8s infinite ease-in-out;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.landing-apartments-section {
    position: relative;
    z-index: 5;
    background: #0d0d0d;
}

.landing-apartments-heading {
    text-align: center;
    padding: 4rem 1.5rem 2rem 1.5rem;
    background: #0d0d0d;
}

.landing-apartments-heading .over-title {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.landing-apartments-heading h2 {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
}

.split-capacity-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 50px;
    color: var(--accent);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    .landing-balestrate-section {
        padding: 6rem 0 3rem 0;
    }
    .landing-balestrate-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
