:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #EAE4D9;
    --text-dark: #2C3539;
    --text-light: #FFFFFF;
    --accent: #5A828B;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 300;
}

/* Nav & Language Switcher */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
}

.lang-switcher {
    display: flex;
    gap: 1rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lang-btn.active, .lang-btn:hover {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Spacer height determines how long the user scrolls to complete the animation */
    height: 250vh; 
}

.hero-sticky {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transform: scale(1);
    will-change: transform;
}

/* Dark overlay for text readability */
.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0; /* Fades in on scroll */
    transform: translateY(20px);
    will-change: opacity, transform;
}

/* Content Website */
.content-section {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, #38BDF8 0%, #0284C7 100%);
    color: white;
    padding: 8rem 0;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: -100px;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.1);
    overflow: hidden;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,128L48,149.3C96,171,192,213,288,224C384,235,480,213,576,197.3C672,181,768,171,864,181.3C960,192,1056,224,1152,229.3C1248,235,1344,213,1392,202.7L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,256L48,234.7C96,213,192,171,288,170.7C384,171,480,213,576,213.3C672,213,768,171,864,138.7C960,107,1056,85,1152,96C1248,107,1344,149,1392,170.7L1440,192L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    z-index: -1;
    pointer-events: none;
}

.content-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Pattern di increspature ripetuto su tutta la sezione */
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='60' viewBox='0 0 120 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,30 C30,10 30,50 60,30 C90,10 90,50 120,30' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' opacity='0.25'/%3E%3C/svg%3E");
    background-size: 120px 60px;
    background-repeat: repeat;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.experience-block {
    text-align: center;
    margin-bottom: 8rem;
}

.experience-block h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: white;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: rgba(255, 255, 255, 0.9);
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.photo-item {
    background-color: var(--bg-secondary);
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.photo-item.offset {
    transform: translateY(4rem);
}

.amenities-block {
    margin-top: 8rem;
}

.amenities-block h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    color: var(--text-dark);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px);
}

.amenity-item .icon {
    font-size: 2rem;
}

.cta-section {
    position: relative;
    background: linear-gradient(180deg, #E6D5B8 0%, #D4C3A3 100%);
    padding: 10rem 2rem;
    text-align: center;
    color: var(--text-dark);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -99px;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23E6D5B8' fill-opacity='1' d='M0,224L48,229.3C96,235,192,245,288,218.7C384,192,480,128,576,128C672,128,768,192,864,229.3C960,267,1056,277,1152,261.3C1248,245,1344,203,1392,181.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 125px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.4' d='M0,192L48,208C96,224,192,256,288,245.3C384,235,480,181,576,160C672,139,768,149,864,181.3C960,213,1056,267,1152,272C1248,277,1344,235,1392,213.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 9;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.cta-btn {
    background-color: var(--accent);
    color: var(--text-light);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
    background-color: #4a6d75;
    transform: scale(1.05);
}

.contact-info {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

/* Property Cards Listing */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-dark);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.property-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.property-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.property-card:hover .property-image-wrapper img {
    transform: scale(1.08);
}

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge.highlight {
    background: var(--accent);
    color: white;
}

.property-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-location {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #EEE;
    padding-top: 1.5rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: #555;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* 3D Tour Iframe Wrapper */
.tour-wrapper {
    width: 100%;
    height: 70vh;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 4rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tour-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%);
    color: white;
}

.rating-overview {
    text-align: center;
    margin-bottom: 4rem;
}

.rating-score {
    font-size: 5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.rating-score::before, .rating-score::after {
    content: '🌿';
    font-size: 3rem;
}

.rating-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
}

.rating-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.rating-categories {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 4rem;
    border-top: 1px solid #EAE4D9;
    padding-top: 2rem;
}

.rating-category {
    text-align: left;
    flex: 1;
    min-width: 100px;
    border-left: 1px solid #EAE4D9;
    padding-left: 1rem;
}

.rating-category:first-child {
    border-left: none;
    padding-left: 0;
}

.category-name {
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.category-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.category-icon {
    font-size: 1.5rem;
    color: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    color: var(--text-dark);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--accent);
    overflow: hidden;
}

.reviewer-info h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.reviewer-info p {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

.review-stars {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .photo-item.offset {
        transform: none;
    }
    .tour-wrapper {
        height: 50vh;
    }
}
