:root {
    --primary: #0f172a;
    --accent: #38bdf8;
    --bg: #fdfdfd;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--primary);
    line-height: 1.6;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.7);
    display: flex;
    justify-content: space-between;
    padding: 20px 10%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.header h1 {
    font-family: 'Playfair Display', serif;
}

.phone {
    color: var(--accent);
}

/* HERO */
.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 30px;
    left: 50px;
}

.features {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* CTA */
.cta {
    text-align: center;
    padding: 60px 20px;
}

.btn {
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(56,189,248,0.3);
}

.btn:hover {
    transform: translateY(-3px);
}

/* GALLERY */
.gallery {
    padding: 80px 10%;
}

.gallery h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.gallery-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

.gallery-track img {
    flex: 0 0 auto;
    width: 300px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.gallery-track img:hover {
    transform: scale(1.05);
}

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

/* SECTIONS */
.section {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 80px 10%;
}

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

.section img {
    width: 100%;
    max-width: 600px;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.section img:hover {
    transform: scale(1.02);
}

.text h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

/* TERRACE */
.terrace {
    padding: 80px 10%;
    text-align: center;
}

.terrace img {
    width: 100%;
    max-width: 700px;
    border-radius: 18px;
    transition: transform 0.5s ease;
}

.terrace img:hover {
    transform: scale(1.02);
}

.terrace-text {
    margin-top: 20px;
}

/* ANIMAZIONE SCROLL */
.section, .gallery, .terrace, .cta {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE */
@media(max-width:768px) {

    .header {
        flex-direction: column;
        text-align: center;
    }

    .section {
        flex-direction: column;
        text-align: center;
    }

    .section.reverse {
        flex-direction: column;
    }

    .hero img {
        height: 300px;
    }

    .features {
        display: flex;
        justify-content: center;
        margin-right: 90px;
        background: rgba(255, 255, 255, 0.534);
    }
}