/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Hero Section */
.hero {
    background-image: url('../images/sfondo_casa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.85;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Opening Soon Section */
.opening-soon {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
}

.section-content p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Properties Slider Section */
.properties {
    padding: 80px 0;
    background-color: var(--white);
}

.properties-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-wrapper {
    overflow: visible;
    position: relative;
    width: calc(350px * 3 + 30px * 2);
    flex-shrink: 0;
    margin: 0 25px;
    padding: 10px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
    justify-content: flex-start;
}

.property-card {
    width: 350px;
    flex-shrink: 0;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 25px;
}

.property-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.property-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.property-feature svg,
.property-feature iconify-icon {
    color: var(--secondary-color);
    flex-shrink: 0;
}

.property-feature iconify-icon {
    display: inline-flex;
    align-items: center;
}

.slider-btn iconify-icon {
    color: inherit;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--secondary-color);
}

.slider-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: translateY(-50%);
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background-color: var(--white);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item iconify-icon {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.map-container {
    width: 100%;
}

#map {
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Image Slideshow Modal */
.image-slideshow-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.slideshow-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.slideshow-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.slideshow-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: background-color 0.3s ease;
    color: var(--primary-color);
}

.slideshow-close:hover {
    background-color: var(--white);
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    z-index: 10002;
}

.property-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.property-image:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .logo {
        max-height: 80px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .properties-title {
        font-size: 2rem;
    }
    
    .slider-container {
        max-width: 100%;
    }
    
    .slider-wrapper {
        width: calc(280px * 3 + 20px * 2);
        margin: 0 50px;
    }
    
    .property-card {
        width: 280px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-content {
        padding: 0 20px;
    }
    
    .section-content p {
        text-align: left;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    @media (max-width: 1024px) {
        .slider-wrapper {
            width: calc(280px * 2 + 20px);
        }
    }
    
    @media (max-width: 640px) {
        .slider-wrapper {
            width: calc(280px * 1);
            margin: 0 40px;
        }
        
        .section-title {
            font-size: 1.8rem;
        }
        
        .section-content p {
            font-size: 1rem;
        }
        
        #map {
            height: 300px !important;
        }
        
        .slideshow-container {
            width: 95%;
            height: 85vh;
        }
        
        .slideshow-prev,
        .slideshow-next {
            width: 45px;
            height: 45px;
        }
        
        .slideshow-prev {
            left: 10px;
        }
        
        .slideshow-next {
            right: 10px;
        }
        
        .slideshow-close {
            width: 40px;
            height: 40px;
            top: 10px;
            right: 10px;
        }
        
        .slideshow-counter {
            bottom: 15px;
            font-size: 0.9rem;
            padding: 8px 15px;
        }
    }
}

