.name{
    font-family: 'Dream Avenue';
    font-size:4rem;
    text-transform: uppercase;
    font-size: clamp(3rem, 8vw, 4rem);
    line-height: 1.1;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    margin-bottom:1rem;
}
.workName{
    font-size:1.75rem;
    text-transform: uppercase;
}   
.contBtnHero a{
    text-decoration: none;
}
.btnContact{
    display:flex;
    align-items:center;
    justify-content: space-between;
    background:#a3e4d7;
    color:var(--bg-primary);
    width:fit-content;
    height:100%;
    padding-top:0.5rem;
    padding-bottom:0.5rem;
    padding-left:1rem;
    padding-right:1rem;
}
@media(max-width:768px){
    .contBtnHero a, #goToWorkBtn{
        flex:1;
    }

    .btnContact{
        width:100%;
    }
}
.btnContact:hover{
    background-color: #00897b;
    color:white;
}
#goToWorkBtn{
    display:flex;
    align-items:center;
    justify-content: space-between;
    background: #85c1e9;
    color:var(--bg-primary);
    padding-top:0.5rem;
    padding-bottom:0.5rem;
    padding-left:1rem;
    padding-right:1rem;
}
#goToWorkBtn span{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#goToWorkBtn:hover{
    background-color: #2874a6;
    color:white;
}
.hero{
    display:flex;
}
.heroTextAction{
    padding:2%;
}
.presentationText{
    font-family: "DM Serif Display", serif;
    font-size:14pt;
    font-weight:200;
    text-align:justify;
}
.contBtnHero{
    display:flex;
    gap:10px;
    flex-direction:row;
    flex-wrap:wrap;
}
.workPreviewCont{
    display:flex;
    gap:20px;
    width:100%;
    justify-content: center;
    align-items:start;
}
.fotoPreview h2, .videoPreview h2{
    font-size:4rem;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    /* Responsive font size */
    font-size: clamp(2rem, 8vw, 4rem);
}
#fotoPrevCont{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    flex-direction: row;
}
#fotoPrevCont img{
    flex:1;
}

.btnGoToWorkExpanded{
    border-radius:0;
    background-color:var(--bg-primary);
    color:var(--color-on-bg);
    padding:10px;
    font-size:1.5rem;
    border:1px solid var(--color-on-bg);
    flex:1;
    transition: all 300ms ease-in-out;
}
.btnGoToWorkExpanded:hover{
    background:#85c1e9;
    color:var(--bg-primary);
    border:1px solid #85c1e9;
}
.fotoPrevCont a, .videoPrevCont a{
    color:var(--color-on-bg);
}
.fotoPrev{
    flex:1;
    transition:all 300ms linear;
}
.fotoPrev:hover{
    transform: scale(1.1);
    border-radius:1rem;
}
#fotoPrevCont, #videoPrevCont{
    margin-bottom:3%;
}
.aboutMe{
    margin-top:2%;
    margin-bottom:2%;
}
#fotoPrevCont, #videoPrevCont{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    flex-direction: row;
    flex-wrap:wrap;
}
.fotoPreview, .videoPreview{
    width:100%;
}
#fotoPrevCont img{
    flex:1;
    width:100%;
    height:auto;
    flex-basis: 250px;
}
#videoPrevCont video{
    flex:1;
    max-height:400px;
    max-width:100%;
}
.photo {
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.photo.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    visibility: hidden;
}

.workPreviewCont{
    flex-direction:column;
}

#spinnerVideo, #spinnerFoto{
    width:50px;
    height:50px;
}
.competenzeCont{
    overflow: hidden;
}

.servizio{
    display:flex;
    gap:20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom:2%;
}


.descServ h2{
    font-size:24pt;
}
.descServ li{
    margin-bottom:2%;
}

#collaborazioni{
    display:flex;
    align-items:center;
    justify-content:space-evenly;
    gap:20px;
    flex-direction: row;
    flex-wrap:wrap;
}
.collabItem{
    text-align:center;
}
.collabItem img{
    max-height:150px;
    width:auto;
    object-fit: contain;
}
.collabItem div{
    font-size:14pt;
    font-family:"DM Serif Display", serif;
}
#collaborazioni a{
    color:var(--color-on-bg);
    text-decoration: none;
    padding:10px;
    border-radius:1.25rem;
    transition:all 300ms ease-in-out;
}
#collaborazioni a:hover{
    background-color:#37474f;
}
.hero{
    margin-top:calc(3.5rem + 20px);
}
@media(max-width:768px){
    .hero img{
        height:calc(100vh - 60px);
        width:100%;
        object-fit:cover;
        position:absolute;
        bottom:0;
        left:0;
        z-index:0;
    }
    .hero{
        height:calc(100dvh - calc(3.5rem + 20px));
        position:relative;
    }
    .hero .heroTextAction{
        position:absolute;
        bottom:10px;
        left:0;
        width:95%;
        margin:auto;
        z-index:2;
    }
    .blurEffect{
        z-index:1;
        position:absolute;
        top:0;
        left:0;
        height:100%;
        width:100%;
        background-color:rgba(0,0,0,0.5);
    }
    .servizio{
        flex-direction:column;
    }
    .servizio img{
        width:100%;
        max-height:400px;
        object-fit:contain;
    }
}
@media(min-width:768px){
    .hero{
        flex-direction: row;
        align-items:center;
        justify-content: space-between;
        height:calc(100dvh - calc(3.5rem + 20px));
    }
    .imgPres{
        width:50dvw;
        object-fit: cover;
        height:100%;
    }
    .heroTextAction{
        width:50dvw;
    }
    .workPreview{
        min-height:100dvh;
    }
    .blurEffect{
        display:none;
    }
    
    
    .servizio:nth-child(even){
        flex-direction:row;
    }
    .servizio:nth-child(odd){
        flex-direction:row-reverse;
    }
    .servizio img{
        max-height:400px;
        width:auto;
    }
}

