/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2 {
    font-weight: 300;
    letter-spacing: 3px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 1.8rem;
}

p {
    font-weight: 300;
}

a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* =========================
   HERO
========================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0 20px;
}

.tagline {
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-top: 15px;
}

/* =========================
   GALLERY (FINE ART STYLE)
========================= */

.gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px;
}

.gallery img {
    max-width: 900px;     /* evita immagini enormi */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 140px auto;
    transition: transform 0.6s ease, opacity 0.6s ease;
    opacity: 0.95;
}

.gallery img:hover {
    transform: scale(1.01);
    opacity: 1;
}

/* =========================
   ABOUT
========================= */

.about {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 120px 20px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 25px;
    max-width: 600px;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    max-width: 420px;
    width: 100%;
}

/* =========================
   CONTACT
========================= */

.contact {
    text-align: center;
    padding: 120px 20px;
}

.contact h2 {
    margin-bottom: 40px;
}

.contact p {
    margin-bottom: 15px;
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 100px 20px;
}

.firma {
    width: 200px;
    opacity: 0.75;
    margin-bottom: 20px;
}

/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 1024px) {

    h1 {
        font-size: 2.4rem;
    }

    .gallery img {
        max-width: 700px;
        margin-bottom: 120px;
    }

    .about {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .about-text p {
        max-width: 100%;
    }
}

/* =========================
   RESPONSIVE SMARTPHONE
========================= */

@media (max-width: 768px) {

    .hero {
        height: 85vh;
    }

    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .gallery {
        padding: 100px 15px;
    }

    .gallery img {
        max-width: 100%;
        margin-bottom: 100px;
    }

    .about {
        padding: 100px 15px;
    }

    .contact {
        padding: 100px 15px;
    }

    footer {
        padding: 80px 15px;
    }

    .firma {
        width: 150px;
    }
}