@font-face {
    font-family: Inter;
    src: url(../assets/fonts/Inter.ttf);
}

body {
    margin: 0;
    font-family: Inter;
}

.landing-container {
    display: flex;
    height: 100vh;
}

#name {
    font-weight: 800;
}

#work {
    font-weight: 400;
}


.column {
    flex: 1;
    position: relative;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.title-center {
    letter-spacing: 2px;
}

.text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 3rem;
}

.text.top {
    top: 20px;
}

.text.center {
    top: 70%;
    transform: translateY(-50%);
}

.text.bottom {
    bottom: 20px;
}

.col2-contact {
    display: flex;
    flex-direction: column;
    /* Disporre gli elementi in colonna */
    justify-content: center;
    /* Centrare verticalmente */
    align-items: center;
    /* Centrare orizzontalmente */
    height: 100%;
    /* Assicurati che la colonna prenda tutta l'altezza disponibile */
}

.image-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.image-container img {
    max-width: 72.5%;
    height: auto;
}

.project-text {
    position: relative;
    top: auto;
    transform: none;
    margin-top: 20px;
}

.info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}



.text-contact {
    position: static;
    /* rimuove il positioning assoluto */
    text-align: center;
    font-size: 2.5rem;
}

.fade-in-text {
    opacity: 0;
    animation: fadeInCenter 2s ease-out forwards;
    text-align: center;
    /*
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6),
        0 0 20px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);*/
}

/* Colori o sfondi di esempio */
.col1 {
    background: url('../assets/landing/bg1.jpg') center/cover no-repeat;
}

.col2 {
    background: url('../assets/landing/bg2.jpg') center/cover no-repeat;
}

.col2-contact {
    background: url('../assets/landing/bg2.jpg') center/cover no-repeat;
}

.col3 {
    background: url('../assets/landing/bg3_portrait_dark.jpg') center/cover no-repeat;
}

a {
    text-decoration: none;
    color: #ffffff;
}

@keyframes fadeInCenter {
    to {
        opacity: 1;
    }
}

@media (orientation: landscape) {
    .portrait {
        visibility: hidden;
    }

    .landscape {
        visibility: visible;
    }

}

@media (orientation: portrait) {
    .portrait {
        visibility: visible;
    }

    .landscape {
        visibility: hidden;
    }

    .title-center.portrait {
        font-size: 1.8rem;
    }

    .col2 {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .col3 {
        background: url('../assets/landing/bg3_portrait_dark.jpg') center/cover no-repeat;
    }

    /*
    .image-container {
        display: block !important;
        width: 100%;
        text-align: center;
    }
        */

    .image-container img {
        /*display: inline-block !important;*/

        max-width: 80%;
        height: auto;
    }
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {

    .landing-container {
        flex-direction: column;
    }

    .column {
        height: 33.33vh;
    }

    .text {
        font-size: 1.2rem;
    }

    .text-contact {
        font-size: 1.7em;
    }

    /*
    .image-container img {
        max-width: 80%;
    }
    */

    .text.center {
        position: relative;
        top: auto;
        transform: none;
        margin: auto;
        padding: 0 10px;
    }

    .text {
        font-size: 2rem;
    }

}

@media (max-width: 1024px) and (orientation: landscape) {

    .text {
        font-size: 1.5rem;
    }


    .text-contact {
        font-size: 1.5em;
    }

}