/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b6f47;
    --secondary-color: #2c5530;
    --accent-color: #6b5638;
    --light-bg: #ffffff;
    --light-bg-alt: #fafafa;
    --dark-text: #1a1a1a;
    --light-text: #5a5a5a;
    --border-color: rgba(139, 111, 71, 0.15);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--dark-text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--light-text);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Project Images */
.progetto-images {
    margin: 4rem 0;
}

.progetto-image-main {
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.progetto-image-main:hover {
    box-shadow: var(--shadow);
}

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

.progetto-image-item {
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.progetto-image-item:hover {
    box-shadow: var(--shadow);
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    max-height: 600px;
    object-fit: cover;
}

.progetto-image-main .project-image {
    max-height: 700px;
}

.progetto-image-main:hover .project-image,
.progetto-image-item:hover .project-image {
    transform: scale(1.01);
}

.image-caption {
    background: var(--light-bg);
    padding: 0.875rem 1rem;
    text-align: center;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--dark-text);
    font-size: 0.9rem;
    animation: bounce 2s infinite;

}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    margin: 10px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-bg);
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border: 2px solid var(--dark-text);
    font-weight: 500;
}

.btn-secondary:hover {
    background: var(--dark-text);
    color: var(--light-bg);
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.location-section {
    background: var(--light-bg-alt);
}

.progetto-section {
    background: var(--light-bg);
}

.servizi-section {
    background: var(--light-bg-alt);
}

.investimento-section {
    background: var(--light-bg);
}

.contatti-section {
    background: var(--light-bg-alt);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-card {
    background: var(--light-bg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.location-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.location-icon,
.feature-icon,
.servizio-icon,
.contatto-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.location-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 1rem;
}

.servizio-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.5rem;
}

.contatto-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.location-card h3 {
    font-size: 1.75rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.location-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Map Container */
.map-container-small {
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-color);
}

.map-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--accent-color);
}

/* Progetto Stats */
.progetto-overview {
    margin-bottom: 4rem;
}

.progetto-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

/* Apartments Grid */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.apartment-card {
    background: var(--light-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.apartment-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.apartment-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.apartment-card h3 {
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.apartment-features {
    list-style: none;
}

.apartment-features li {
    padding: 0.75rem 0;
    color: var(--dark-text);
    border-bottom: 1px solid var(--border-color);
}

.apartment-card:hover {
    background: var(--light-bg-alt);
}

.apartment-features li:last-child {
    border-bottom: none;
}

.apartment-features strong {
    color: var(--primary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.75rem 1.5rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h4 {
    font-size: 1.15rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--light-text);
    font-size: 0.95rem;
}


/* Servizi Grid */
.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.servizio-card {
    background: var(--light-bg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.servizio-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.servizio-card h3 {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.servizio-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Investimento Section */
.investimento-content {
    max-width: 900px;
    margin: 0 auto;
}

.investimento-intro {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.option-card {
    background: var(--light-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.option-card h3 {
    font-size: 1.35rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.option-card p {
    color: var(--light-text);
    line-height: 1.7;
}

.option-card:hover {
    background: var(--light-bg-alt);
}

.investimento-note {
    color: var(--light-text);
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    font-style: italic;
}

/* Contatti Section */
.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contatti-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contatto-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contatto-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contatto-item h3 {
    font-size: 1.15rem;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contatto-item p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.contatto-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contatto-link:hover {
    color: var(--accent-color);
}

/* Form */
.contatti-form {
    background: var(--light-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--light-bg-alt);
    border: 1px solid var(--border-color);
    color: var(--dark-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--light-bg);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--dark-text);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 85vh;
        min-height: 500px;
    }

    .hero-content {
        margin: 30px;
        padding: 1.5rem 1rem;
        width: calc(100% - 60px);
        max-width: none;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .progetto-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.95rem;
    }

    .progetto-images {
        margin: 2.5rem 0;
    }

    .progetto-image-main {
        margin-bottom: 1.5rem;
    }

    .progetto-images-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .apartment-card {
        padding: 1.5rem;
    }

    .apartment-card h3 {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-item {
        padding: 1.5rem 1.25rem;
    }

    .feature-item h4 {
        font-size: 1.05rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .location-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .location-card {
        padding: 1.5rem 1rem;
    }

    .location-card h3 {
        font-size: 1.5rem;
    }

    .location-card p {
        font-size: 0.85rem;
    }

    .servizi-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .servizio-card {
        padding: 1.5rem 1.25rem;
    }

    .servizio-card h3 {
        font-size: 1.15rem;
    }

    .servizio-card p {
        font-size: 0.9rem;
    }

    .investimento-intro {
        font-size: 1rem;
    }

    .investimento-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .option-card {
        padding: 1.5rem;
    }

    .option-card h3 {
        font-size: 1.2rem;
    }

    .option-card p {
        font-size: 0.95rem;
    }

    .contatti-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contatti-form {
        padding: 1.5rem;
    }

    .contatto-item {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .contatto-icon {
        width: 28px;
        height: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        height: 80vh;
        min-height: 450px;
    }

    .hero-content {
        margin: 30px 20px;
        padding: 1.25rem 0.875rem;
        width: calc(100% - 40px);
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
        padding: 0;
    }

    .hero-cta .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-card {
        padding: 1.25rem 0.875rem;
    }

    .location-card h3 {
        font-size: 1.35rem;
    }

    .apartment-card {
        padding: 1.25rem;
    }

    .apartment-card h3 {
        font-size: 1.15rem;
    }

    .apartment-features li {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }

    .feature-item {
        padding: 1.25rem 1rem;
    }

    .feature-item h4 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    .servizio-card {
        padding: 1.25rem 1rem;
    }

    .servizio-card h3 {
        font-size: 1.05rem;
    }

    .option-card {
        padding: 1.25rem;
    }

    .option-card h3 {
        font-size: 1.1rem;
    }

    .contatti-form {
        padding: 1.25rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.95rem;
    }
}
