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

body {
    font-family: 'Georgia', serif;
    background: #f4efe9;
    color: #2f2a26;
}

/* HEADER */

header {
    position: fixed;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    background: rgba(244,239,233,0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.logo {
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #2f2a26;
    font-size: 0.9rem;
    transition: 0.3s;
}

nav a:hover {
    color: #b06a4e;
}

/* INTRO */

.intro {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.intro h1 {
    font-weight: 300;
    font-size: 2.3rem;
}

/* SEZIONI */

.gallery-section {
    padding: 120px 8%;
    text-align: center;
}

.gallery-section h2 {
    margin-bottom: 60px;
    font-weight: 400;
    letter-spacing: 2px;
}

/* GALLERY */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    justify-items: center;
}

.photo {
    width: 260px;
    height: 390px;
    overflow: hidden;
    cursor: pointer;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: 1s ease;
    filter: brightness(70%);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.photo:hover img {
    transform: scale(1);
    filter: brightness(100%);
}

.alt-bg {
    background: #ede5dc;
}

/* CONTACT */

.contact {
    padding: 120px 20px;
    text-align: center;
}

/* MODAL */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-img {
    max-height: 90vh;
    max-width: 90vw;
}

.close {
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* 📱 TABLET */

@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* 📱 SMARTPHONE */

@media (max-width: 600px) {

    header {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        gap: 15px;
        font-size: 0.8rem;
    }

    .intro h1 {
        font-size: 1.6rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .photo {
        width: 85%;
        height: auto;
        aspect-ratio: 2 / 3;
    }
}
