/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

/* Header e Nav */
header {
    padding: 2rem;
    text-align: center;
    background-color: white;
    margin-bottom: 3rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

.nav-container {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.menu {
    display: flex;
    gap: 2rem;
}

.menu-item {
    position: relative;
}

.menu-link {
    text-decoration: none;
    color: #333;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.submenu-item {
    padding: 0.8rem 1rem;
}

.submenu-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

/* Carousel e Layout Progetto */
/* Aggiungi/modifica questi stili CSS */
/* Carousel e Layout Progetto */
.project-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    object-fit: contain;
    cursor: pointer;
}

.carousel-image.active {
    opacity: 1;
}
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.control-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .project-carousel {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .carousel-track {
        width: 100%;
        height: 50vh;
    }
    
    .carousel-image {
        width: 100%;
        height: 100%;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    display: flex;
    gap: 20px;
    align-items: center;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 20px;
    z-index: 1001;
}

.lightbox-prev { left: 20px; }
lightbox-next { right: 20px; }


/* Project Info */
.project-info {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.project-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: #666;
    font-size: 0.9rem;
    background-color: white;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.03);
}

.language-switch {
    display: inline-block;
    margin-left: 1rem;
}

.language-switch button {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.language-switch button:hover {
    color: #666;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
    transition: 0.4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .menu.active {
        display: block;
    }

    .menu-item {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        background: #f8f8f8;
        padding-left: 1rem;
    }

    .submenu.active {
        display: block;
        margin-top: 0.5rem;
    }

    .language-switch {
        display: block;
        margin-top: 1rem;
    }

    .project-info {
        padding: 0 1rem;
    }

    .project-title {
        font-size: 1.5rem;
    }
}