/* =========================================
   static/css/style.css
   ========================================= */

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

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

/* --- Layout Comune (Colonna Sinistra) --- */
.left-panel {
    width: 35vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    padding: 2rem;
}

.left-panel h1 {
    font-size: 1vw;
    font-weight: 500;
    letter-spacing: 2px;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* Navigazione sotto il nome */
.minimal-nav {
    display: flex;
    gap: 15px;
}

.minimal-nav a, .back-link {
    text-decoration: none;
    color: #333;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: color 0.1s;
}

.minimal-nav a:hover, .back-link:hover {
    color: #ff1100;
}

/* --- Varianti Colonna Destra --- */

/* 1. Home: Immagine singola al click */
.right-canvas {
    width: 65vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; 
    padding: 2rem;
    position: relative;
}

.right-canvas-404 {
    width: 65vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

#portfolio-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

#counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-20%);
    font-size: 0.7rem;
    color: #999999;
    letter-spacing: 2px;
    pointer-events: none;
}

/* 2. Lavori: Carosello */
.right-carousel {
    width: 65vw;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 40px;
    gap: 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.right-carousel::-webkit-scrollbar { 
    display: none; 
}

.right-carousel img {
    height: 50vh;
    width: auto;
    object-fit: cover;
}

/* 3. Info: Testo classico */
.right-text {
    width: 40vw;
    height: 100vh;
    font-weight: 300;
    padding: 10vh 5vw;
    overflow-y: auto;
    font-size: 0.7rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
    align-content: center;
}

.right-text strong {
    font-weight: 500;
    letter-spacing: 2px;
    color:#ff1100
}

/* --- Responsive Smartphone --- */
@media (max-width: 768px) {
    body { flex-direction: column; }
    
    .left-panel { width: 100vw; height: 20vh; }
    .left-panel h1 { font-size: 8vw; }
    
    .right-canvas, .right-carousel, .right-text { 
        width: 100vw; 
        height: 80vh; 
    }
    
    .right-canvas { padding: 1rem; }
    #counter { bottom: 1rem; }
    
    .right-carousel { padding: 20px; align-items: flex-start; }
    .right-carousel img { height: 40vh; }
}
/* =========================================
   PAGINA 404 - Rullino Bruciato CSS
   ========================================= */
/* Il contenitore che tiene insieme foto e bruciatura */
.photo-with-burn {
    position: relative; /* Fondamentale per bloccare l'effetto qui dentro */
    display: inline-block;
    overflow: hidden; /* Taglia via la luce che esce dai bordi della foto */
    max-width: 100%;
}

/* La fotografia */
.photo-with-burn img {
    display: block;
    width: 100%;
    height: auto;
    
    /* OPZIONALE: Se la tua foto è a colori e vuoi convertirla in B/N dal codice */
    /* filter: grayscale(100%); */ 
}

/* La bruciatura sovrapposta */
.light-leak-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 90%, #ecfdb7 40%, #ffb347 90%, #e63946 65%, transparent 10%);
    mix-blend-mode: color-dodge; 
    filter: blur(100px); 
    opacity: 1; 
    pointer-events: none; 
}
/* Il contenitore che tiene insieme foto e bruciatura */
.photo-with-burn {
    position: relative;
    display: flex; /* Flexbox aiuta a centrare tutto perfettamente */
    align-items: center;
    justify-content: center;
    max-width: 100%;
}
/* Il contenitore si adatta alla dimensione della foto */
.photo-with-burn {
    position: relative;
    display: inline-block; /* Fondamentale per far sì che il contenitore abbracci l'immagine */
    max-width: 100%;
}

/* Regole per la foto nuda */
.photo-with-burn img {
    display: block;
    max-width: 100%;
    max-height: 85vh; /* Evita che esca dallo schermo verticalmente */
    width: auto;
    object-fit: contain;
}

/* La bruciatura (uguale a prima) */
.light-leak-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, #ffffff 0%, #ffb347 5%, #e63946 15%, #450a0a 30%, transparent 45%);
    mix-blend-mode: screen;
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.75; 
    z-index: 20;
}

/* La scritta "NOT FOUND" (uguale a prima) */
/* Il contenitore si adatta alla dimensione della foto */
.photo-with-burn {
    position: relative;
    display: inline-block; /* Fondamentale per far sì che il contenitore abbracci l'immagine */
    max-width: 100%;
}

/* Regole per la foto nuda */
.photo-with-burn img {
    display: block;
    max-width: 100%;
    max-height: 85vh; /* Evita che esca dallo schermo verticalmente */
    width: auto;
    object-fit: contain;
}

/* La bruciatura (uguale a prima) */
.light-leak-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, #ffffff 0%, #ffb347 5%, #e63946 15%, #450a0a 30%, transparent 45%);
    mix-blend-mode: screen;
    pointer-events: none;
    filter: blur(8px);
    opacity: 0.75; 
    z-index: 20;
}

/* Il contenitore si adatta alla dimensione della foto */
.photo-with-burn {
    position: relative;
    display: inline-block; /* Fondamentale per far sì che il contenitore abbracci l'immagine */
    max-width: 100%;
}

/* Regole per la foto nuda */
.photo-with-burn img {
    display: block;
    max-width: 100%;
    max-height: 85vh; /* Evita che esca dallo schermo verticalmente */
    width: auto;
    object-fit: contain;
}

/* La bruciatura (uguale a prima) */
.light-leak-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, #ffffff 0%, #07c400 5%, #677607 15%, #646813 30%, transparent 45%);
    mix-blend-mode: color-dodge;
    pointer-events: none;
    filter: blur(100px);
    opacity: 1; 
    z-index: 20;
}

/* La scritta con l'effetto sottrazione */
.not-found-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: normal;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 8vw;
    font-weight: 700;
    letter-spacing: 15px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    
    /* LA MAGIA DELLA SOTTRAZIONE */
    color: #ffffff; /* Il bianco totale fa sì che l'inversione sia perfetta */
    mix-blend-mode: difference; /* Puoi provare anche 'exclusion' per un contrasto più morbido */
    
    /* Nota: il text-shadow è stato volutamente rimosso */
}

/* Responsive per smartphone */
@media (max-width: 768px) {
    .not-found-text {
        font-size: 8vw;
        letter-spacing: 8px;
    }
}


/* CSS WORK */
/* --- 4. Work List: Elenco dei progetti --- */
.right-list {
    width: 65vw;
    height: 100vh;
    display: flex;
    align-items: center; /* Centra la lista verticalmente */
    padding: 0 5vw;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Spazio tra i titoli dei progetti */
}

.project-link {
    text-decoration: none;
    color: #333; /* Grigio chiaro di base */
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-link h2 {
    font-size: 3vw;
    font-weight: 500;
    letter-spacing: 3px;
}

/* Effetto Hover: quando passi il mouse il titolo diventa nero */
.project-link:hover {
    color: #ff1100;
}

@media (max-width: 768px) {
    .right-list {
        width: 100vw;
        height: 80vh;
        padding: 2rem;
        align-items: flex-start; /* Su mobile parte dall'alto */
    }
    .project-link h2 {
        font-size: 8vw;
    }
}