body {
    font-family: 'Source Code Pro', monospace;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}


/* Portfolio Page Styles */
.portfolio-main {
    margin-top: 70px;
    min-height: auto;
    padding: 3rem 2rem;
    background: #fff;
}

.portfolio-header {
    max-width: 1400px;
    margin: 0 0 0 0;
    padding-left: 7rem;
}

.portfolio-header h1 {
    font-family: 'Abel', sans-serif;
    font-size: 8rem;
    font-weight: 400;
    letter-spacing: -3px;
    margin: 0;
    color: #000;
}

/* Masonry Grid Layout */
.masonry-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-header {
        padding-left: 4rem;
    }
    .portfolio-header h1 {
        font-size: 6rem;
    }
    
    .masonry-grid {
        gap: 15px;
    }
    
    .masonry-column {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .portfolio-main {
        padding: 2rem 1rem;
    }
    
    .portfolio-header {
        margin-bottom: 2rem;
        padding-left: 2rem;
    }
    
    .portfolio-header h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .masonry-grid {
        /*flex-direction: column;*/
        gap: 15px;
    }
    
    .masonry-column {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        padding-top: 1rem;
        padding-left: 1rem;
    }
    .portfolio-header h1 {
        font-size: 3rem;
    }
    
    .masonry-grid {
        gap: 10px;
    }
    
    .masonry-column {
        gap: 10px;
    }
}
/* Forza il footer in basso dopo le immagini */
footer {
    position: relative !important;
    margin-top: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portfolio-main {
    flex: 1;
}
/* Forza il footer in basso dopo le immagini */
footer {
    position: relative !important;
    margin-top: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portfolio-main {
    flex: 1;
}


/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #cc0000;
}

/* Cursore pointer sulle immagini */
/* Protezione immagini */
.masonry-item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* About Me Layout */
.aboutme-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.aboutme-content {
    padding-right: 2rem;
}

.aboutme-content p {
    font-family: 'Abel', sans-serif;
    font-size: large;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.aboutme-pic {
    width: 88%;
    height: auto;
}

.aboutme-pic img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .aboutme-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .aboutme-content {
        padding-right: 0;
    }
}




/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: 'Abel', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    border-radius: 3px;
}

.lang-btn:hover {
    background: #333;
    color: #fff;
}

.lang-btn.active {
    background: #cc0000;
    border-color: #cc0000;
    color: #333;
}

/* Contenuto lingua */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* About Me Layout */
.aboutme-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.aboutme-content {
    padding-right: 2rem;
}

.aboutme-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.aboutme-pic {
    width: 100%;
    height: auto;
}

.aboutme-pic img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .aboutme-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .aboutme-content {
        padding-right: 0;
    }
}
