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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f8f8;
    color: #111;
}

/* NAVBAR */
nav {
    position: fixed;
    width: 100%;
    padding: 10px 40px;
    display: flex;
    background: rgba(255,255,255,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-image {
    width: 133px;
    height: 50px;
    display: block;
    margin-left: 20px;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1px 20px;
}

.nav-links a {
    position: relative;
    color: #111;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #c9a227;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: #c9a227;
}

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

.separator {
    color: #999;
    margin: 0 5px;
}

/* hamburger pulsante accessibile */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-family: inherit;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 80px;
    background: #f2efe9;
    gap: 80px;
}

.hero-content {
    max-width: 550px;   
}

.hero-image {
    width: 45%;
    display: flex;
    justify-content: center;
    transform: translateY(30px);
}

.hero-image img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    transition: transform 0.4s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero h1 {
    font-size: 64px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1;
    margin-top: 50px;
}

.hero p {
    margin-top: 20px;
    font-size: 20px;
    line-height: 1.6;
    color: #6e6e73;
    max-width: 600px;
}

.btn {
    display: inline-block;
    margin-top: 35px;
    padding: 10px 22px;
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1f;
    text-decoration: none;
    border: 1px solid #d2d2d7;
    border-radius: 999px;
    transition: all 0.25s ease;
    background: transparent;
}

.btn:hover {
    background: #1d1d1f;
    color: #fff;
    border-color: #1d1d1f;
}

/* SECTIONS */
.section {
    padding: 120px 80px;
}

.section h2 {
    font-size: 40px;
    margin-bottom: 60px;
}

/* SERVICES */
.services {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.service {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.3s ease;
}

#servizi {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

#servizi h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #1f1f1f;
    letter-spacing: 0.5px;
    position: relative;
}

#servizi h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #c9a227;
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

#servizi p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin: 18px 0;
    text-align: center;
}

#progetti {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

#progetti h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #1f1f1f;
    letter-spacing: 0.5px;
    position: relative;
}

#progetti h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #c9a227;
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
}

.img-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.img-box img {
    width: 100%;
    display: block;
    transition: 0.3s;
}

.img-box .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}

.img-box:hover img {
    opacity: 0.6;
}

.img-box:hover .overlay {
    opacity: 1;
}

.gallery-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* FILTRI */
.progetti-filter {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.progetti-filter button {
    background: none;
    border: none;
    font-size: 16px;
    color: #6e6e73;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.progetti-filter button.active,
.progetti-filter button:hover {
    color: #1d1d1f;
}

.progetti-filter button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #c9a227;
    transition: width 0.3s ease;
}

.progetti-filter button.active::after,
.progetti-filter button:hover::after {
    width: 100%;
}

/* FULL IMAGE */
.full-img {
    height: 80vh;
    background: url('foto/full-img.jpg') center/cover;
}

/* CONTACT */
.contact {
    text-align: center;
}

.contact-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: block;
    padding: 30px 40px;
    border-radius: 16px;
    background: white;
    text-decoration: none;
    color: #111;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    min-width: 220px;
}

.contact-item span {
    font-size: 14px;
    color: #666;
}

.contact-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #c9a227;
    transform: translateY(-3px);
}

#contatti {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

#contatti h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #1f1f1f;
    letter-spacing: 0.5px;
    position: relative;
}

#contatti h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #c9a227;
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

#contatti p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin: 18px 0;
    text-align: center;
}

/* CHI SIAMO */
#chi-siamo {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

#chi-siamo h2 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #1f1f1f;
    letter-spacing: 0.5px;
    position: relative;
}

#chi-siamo h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #c9a227;
    margin: 12px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

.chi-siamo-item {
    margin-top: 45px;
    padding-bottom: 10px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.chi-siamo-item:last-child {
    border-bottom: none;
}

.chi-siamo-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 10px;
}

.chi-siamo-item p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

#chi-siamo p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin: 18px 0;
    text-align: center;
}

/* FOOTER */
footer {
    padding: 60px;
    text-align: center;
}

/* ANIMATIONS */
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

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

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:2000;
}

#lightbox img {
    max-width:90%;
    max-height:90%;
}

/* MEDIA QUERY */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 10px;
    }

    .nav-links a {
        font-size: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .separator {
        display: block;
        width: 100%;
        height: 1px;
        background: #ddd;
        margin: 10px 0;
        font-size: 0;
    }

    body {
        font-size: 15px;
    }

    .hero {
        flex-direction: column;
        padding: 100px 24px 60px;
        gap: 30px;
        height: auto;
    }

    .hero-image {
        width: 100%;
        transform: none;
    }

    .hero-image img {
        height: 55vw;
        min-height: 220px;
    }

    h1, .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 15px;
    }

    h2, .section h2, #servizi h2, #progetti h2, #chi-siamo h2, #contatti h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    p, .section p, #servizi p, #chi-siamo p, #contatti p {
        font-size: 14px;
    }
}