
/* #region IMPOSTAZIONI GENERALI DEL FILE*/
    
    body {
        background-color: #F2F2F2;
        font-family: 'polymath', sans-serif;
        font-weight: 400;
        color: black;
    }

    /* MARGINI */
    .container, .container-fluid {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    @media (min-width: 1024px) {
        .container, .container-fluid {
            padding-left: 60px !important;
            padding-right: 60px !important;
        }
    }

    /*TESTO*/
    html {
        font-size: 18px;
    }

    @media (min-width: 1024px) {
        html{ font-size: 18px;} 
    }

    .text-weight-bold {
        font-weight: 600;
    }

    p[lang="en"] {
        hyphens: auto;
    }

/*#endregion*/

/* #region NAVBAR */

    .custom-navbar {
    height: 120px;
    background: linear-gradient(180deg, 
        #D0E655 0%, 
        #D0E655 40%,     
        rgba(208, 230, 85, 0.8) 60%, 
        rgba(208, 230, 85, 0.4) 85%, 
        transparent 100%
    );
    z-index: 1000;
}

    .navbar-brand,
    .open-menu-btn,
    .lang-link {
    color: black !important;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-top: -15px;
    }

    .navbar-brand {
        font-size: 18px;
    }

/* #endregion */

/* #region FOOTER */

    .footer {
        display: flex;
        justify-content: space-between;
        align-items:start;
        padding-top: 150px;
        font-family: 'polymath', sans-serif;
    }

    .footer-home {
        padding-top: 100px;
    }

    .social-links {
        /*background-color: red;*/
        display: flex;
        gap: 20px;
        color: black;
    }

    .social-links a {
        color: black;         
        text-decoration: none;
    }

    .footer p {
        font-size: 16px;
    } 

    @media (max-width: 575.98px) {

        .footer {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding-top: 90px;}

            .social-links {
            order:-1;
            padding-bottom: 10px;
            gap: 10px;}

            .footer p {
            font-size: 10px;} 
    }

    
/* #endregion */

/* #region OVERLAY MENU */

    .overlay {
        width: 100%;
        height:100%;
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        
        position: fixed;
        z-index: 1001; /* Sopra la navbar */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        background: linear-gradient(180deg, #D0E655 0%, #f4f9d6 100%);

        transition: 
        0.5s, /* Velocita di apertura */
        clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1), 
        opacity 0.3s ease-in-out;
    }

    .overlay.open {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }

    .overlay-header {
        position: absolute;
        top: 0;
        width: 100%;
        height: 120px;
    }

    .overlay-header .container-fluid {
        height: 100%;
    }

    /* Reset del tasto CLOSE */
    .close-menu-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        text-transform: uppercase;
        color: black;

        position: relative; 
        margin-top: -15px; 
    }

    /*Link*/
    .overlay-content {
        text-align: center;
    }

    .overlay-content a {
        display: block;
        color: black;
        text-decoration: none;
        margin-bottom: 20px;
        transition: 0.3s;
    }

    .lang-switch {
        margin-top: 40px;
    }

    .lang-switch a {
        display: inline !important;
        color: black;
        text-decoration: none;
    }

    .active-lang {
        font-weight: 700;
    }

    .separator {
        padding: 0 15px;
        color: black;
    }

    .overlay-footer {
        position: absolute;
        bottom: 10px;
        text-align: center;
    }

    .social-icons {
        margin-bottom: 15px;
    }

    .social-icons a {
        color: black;
        margin: 0 10px;
        text-decoration: none;
    }

    .copyright {
        font-size: 12px;
        color: #333;
    }

    /* ANIMAZIONE TESTO */
    .overlay-content, 
    .overlay-footer {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.9s ease, transform 0.9s ease;
    }

    .overlay.open .overlay-content {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.3s;
    }

    .overlay.open .overlay-footer {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.5s;
    }


    /* I singoli link dentro l'overlay */
    .overlay-content a, .lang-switch {
        opacity: 0;
        transform: translateY(15px);
        transition: all 0.5s ease;
    }

    .overlay.open .overlay-content a:nth-child(1) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
    .overlay.open .overlay-content a:nth-child(2) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
    .overlay.open .overlay-content a:nth-child(3) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
    .overlay.open .lang-switch { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* #endregion */

/* #region COPERTINA PROGETTO */

    /*SFONDO*/

    .project-cover {
        height: 100vh;
        width: 100%;
        background: #D0E655;
        background-image: linear-gradient(180deg, #D0E655 0%, #F1FFA0 100%);
        position: relative;
        overflow: hidden;
    }

    /* SFONDO - GRIGLIA */
    .project-cover::before {
        content: '';
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-image: 
            linear-gradient(to right, rgba(85, 107, 47, 0.1) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(85, 107, 47, 0.1) 1px, transparent 1px);
        background-size: 60px 60px;
        z-index: 1;
    }

    /* CONTENITORE ELEMENTI COPERTINA */
    .project-cover-content {
        position: relative;
        z-index: 2; /*Sopra la griglia*/
        height: 100vh;
    }

    /* ELEMENTI COPERTINA */

    /* TITOLO-IMMAGINE-ANNO */
    
        .project-hero-area {
            position: relative;
            height: 100vh;
        }

        /* TITOLO */
        .project-title-wrapper {
            position: absolute;
            top: 120px;
            left: 25%;
            z-index: 5; /* Sopra la griglia, sotto il telefono */
        }

        .project-title {
            font-size: 124px;
            font-weight: 600;
            color: #616C28;
            line-height: 0.8;

        }

        /* IMMAGINE */
        .project-mockup-img {
            position: absolute;
            top: 50%; /* Centrato verticalmente */
            left: 50%; /* Centrato orizzontalmente */
            transform: translate(-50%, -50%);
            
            height: 70%;
            width: auto;
            
            z-index: 10; 
        }

        /* ANNO */
        .project-year-wrapper {
            position: absolute;
            bottom: 120px; 
            right: 25%; 
            z-index: 5; 
            line-height: 0; 
            overflow: hidden;
        }

        .project-year {
            font-size: 124px;
            font-weight: 600;
            color: #616C28;
            line-height: 0.8;
            margin-bottom: 0;

        }

    /* DETTAGLI */

        .project-details {
            color: #616C28 ;
            margin: 0;
            line-height: 100%;
            position: absolute;
            bottom: 24px;

            left: 50%;
            transform: translateX(-50%);
        }

        .project-footer {
            text-align: center;
        }

    /* RESPONSIVE */
    
        @media (max-width: 1024px) {

        .project-title, .project-year {
            font-size: 105px;
        }

        .project-title-wrapper {
            left: 20%;
        }

        .project-year-wrapper {
            right: 20%;
        }
        
        /* Griglia */
        .project-cover::before {
            background-size: 40px 40px;
        }
        }

        @media (max-width: 768px) {

        .project-title, .project-year {
            font-size: 90px;
        }

        .project-title-wrapper {
            left: 10%; /* Più vicino al bordo su schermi stretti */
        }

        .project-year-wrapper {
            right: 10%;
        }
        }

        @media (max-width: 576px) {

        .project-title, .project-year {
            font-size: 75px;
        }

        .project-title-wrapper {
            left: 0%; /* Più vicino al bordo su schermi stretti */
        }

        .project-year-wrapper {
            right: 0%;
        }
        }





        /* ---
      @keyframes float {
        0% { transform: translate(-50%, -50%); }
        50% { transform: translate(-50%, -52%); } 
        100% { transform: translate(-50%, -50%); }
        }

        .project-mockup-img {
        animation: fadeInUp 1.2s ease, float 4s ease-in-out infinite 1.2s;
        }
        */
            

            


        /* ANIMAZIONE COVER */
        .project-title, 
        .project-year {
            opacity: 1;
            transform: translateY(20px);
            /* Usiamo transition per simulare il comportamento dell'overlay, 
            ma dato che è al caricamento pagina, usiamo un'animazione che punta a questi valori */
            animation-fill-mode: forwards;
            animation-timing-function: ease;
            animation-duration: 0.9s;
        }

        /* Animazione che porta il testo allo stato finale */
        @keyframes fadeUpIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Applichiamo l'animazione */
        .project-title {
            animation-name: fadeUpIn;
            animation-delay: 0s; /* Ritardo simile all'overlay-content */
        }

        .project-year {
            animation-name: fadeUpIn;
            animation-delay: 0s; /* Ritardo simile all'overlay-footer */
        }

        /* Rimuoviamo l'overflow hidden dai wrapper se non vogliamo più l'effetto "maschera" 
        e vogliamo che il testo si veda mentre sale */
        .project-title-wrapper,
        .project-year-wrapper {
            overflow: visible; 
            position: absolute;
        }

        .project-mockup-img {
            position: absolute;
            top: 50%;
            left: 50%;
            height: 70%;
            width: auto;
            z-index: 10;
            backface-visibility: hidden;
            
            /* Manteniamo lo zoom solido dal centro che ti piaceva */
            transform: translate(-50%, -50%);
            animation: mockUpZoomFromCenterSolid 1.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }

        @keyframes mockUpZoomFromCenterSolid {
            0% {
                transform: translate(-50%, -50%) scale(0.5) rotateX(15deg) rotateY(-10deg);
            }
            100% {
                transform: translate(-50%, -50%) scale(1) rotateX(0deg) rotateY(0deg);
            }
        }











    /* #endregion */

/* #region CONTENUTO PROGETTO */

        .project-div {
            width: 100%;
            overflow: hidden;
        }

        .project-description {
            width: 50vw;
            margin-left: auto;
            margin-right: auto;
            padding-top: 50px;
            padding-bottom: 50px;
        }

        .description-title h1 {
            padding-top: 50px;
            font-size: 18px;
            text-transform: uppercase;
            font-weight: 600;
        }

        .description-text p[lang="en"] {
            hyphens: auto;
            margin: 0;
        }

        .spark-image-wireframe {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }

        .spark-image-wireframe img {
            width: 100%;
            display: block;
        }

        .spark-image-mockup {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
        }

        .spark-image-mockup img {
            width: 100%;
            display: block;
        }

        .next-project-container {
            display: flex;
            justify-content: center; 
            margin-top: 50px; 
        }

        .btn-next {
            text-decoration: none;
            background-color: #f2f2f2;
            color: rgb(0, 0, 0);
            padding: 8px 20px;
            border: 1px solid #000000;
            border-radius: 25px;
            transition: all 0.3s ease
        }

        .btn-next:hover {
            text-decoration: none;
            background-color: #000000;
            border: 1px solid #000000;
            color: white;
            padding: 8px 20px;
            border-radius: 25px;
            letter-spacing: 0.5px;
        }


        @media (max-width: 1024px) {

            .project-description {
                width: 70%;
            }

            .spark-image-mockup {
                
                display: flex;
                justify-content: center;
                overflow: hidden; 
            }

            .spark-image-mockup img {
                width: 150%; 
                max-width: none;
                flex-shrink: 0;
            }

            .spark-image-wireframe {
                
                display: flex;
                justify-content: center;
                overflow: hidden; 
            }

            .spark-image-wireframe img {
                width: 150%; 
                max-width: none;
                flex-shrink: 0;
            }

		}

        @media (max-width: 768px) {

            .project-description {
                width: 85%;
            }
            .spark-image-mockup {
                
                display: flex;
                justify-content: center;
                overflow: hidden; 
            }

            .spark-image-mockup img {
                width: 180%; 
                max-width: none;
                flex-shrink: 0;
            }

            .spark-image-wireframe {
                
                display: flex;
                justify-content: center;
                overflow: hidden; 
            }

            .spark-image-wireframe img {
                width: 180%; 
                max-width: none;
                flex-shrink: 0;
            }
		}

        @media (max-width: 576px) {

            .project-description {
                width: 100%;
            }

            .spark-image-mockup {
                
                display: flex;
                justify-content: center;
                overflow: hidden; 
            }

            .spark-image-mockup img {
                width: 220%; 
                max-width: none;
                flex-shrink: 0;
            }

            .spark-image-wireframe {
                
                display: flex;
                justify-content: center;
                overflow: hidden; 
            }

            .spark-image-wireframe img {
                width: 220%; 
                max-width: none;
                flex-shrink: 0;
            }
        }

/* #endregion */

