@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: lighter;
}


.column {
    flex: 1;
    position: relative;
    color: white;
    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: 50%;
    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 */
}

.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;
    }
}

/* 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;
    }

    .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;
    }

    .info-wrapper{
        padding-top: 80px;
    }
    
    .text-contact {
        font-size: 1.5em;
    }
    
}