
/* ! Reset e setting iniziale*/
*,
*:before,
*:after{ box-sizing: border-box; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0;padding: 0;}
ol,ul{list-style-type: none;}img{height: auto;}h1{font-size: 4rem;} 
h2{font-size: 3rem;} h3{font-size: 2rem;} h4{font-size: 1rem;} 
h5{font-size: 0.8rem;} h6{font-size: 0.6rem;}
a{text-decoration:none}

body, html{ 
    box-sizing: border-box; margin: 0; padding: 0; 
    font-family: 'Intro', Arial, Helvetica, sans-serif; 
    font-size: 16px; 
    height: 100%;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

/* ! stile gnerale */
#no1,#no2,#no3{
    transition: all 1s ease-in-out;
}

/* ! nav desktop */ 
.container-spbw{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.p50{
    padding: 50px;
}
/* clss utilizzate */
.pr10{ padding-right: 10px; }
.pl10{ padding-left: 10px; }
.pl25{ padding-left: 25px; }
.pt21{ padding-top: 21px; }
.pt0{ padding-top: 0px !important; } /* usato nel js */
.pt50{ padding-top: 50px; } /* usato nel js */

.mt15{ margin-top: 15px; }

.mt25{ margin-top: 25px; } /* usato nel js */
.mt105{ margin-top: 105px; }
.mb35{ margin-bottom: 35px; }

.plsec{
    padding-left: 40px;
    padding-right: 40px;
}
.col100{
    width: 100%;
}
.fs20{
    font-size: 20px;
}
#side-container {
    max-width: 800px;
    overflow: hidden;
}
#side-content {
    font-size: 18px;
    line-height: 1.6;
    overflow: hidden;
}
.white-space{
    white-space: pre-wrap;
}
#sidebar {
    height: 100%;
    overflow: hidden;
    transition: all 1.5s ease-in-out;
}
.cb{
    color: #000000;
}
.wd600{
    width: 600px;
}
.hide{
    display: none;
}

/* services */
.content-service{
    height: 65vh; width: 60vh; margin-top: 10px; 
    /* style="height: 60vh; width: 55vh;" */
}
.content-service-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* width: 100%; height: 100%; */
}

/* ! CAROSELLO */

.carousel-container {
    width: 600px;
    height: 344px;
    overflow: hidden;
    position: relative;
    padding-left: 8%;
    padding-right: 8%;
    /* padding: 0px 30px 0px 33px; */
}
.carousel {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    transition: transform 0.5s ease;
}
.carousel img {
    width: 500px;
    height: 339px;
    padding-top: 5px;
    background-color: #000000;
    object-fit: cover;
}


/* ! iniz */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.logo {
    font-size: 24px;
    font-weight: bold;
}
.toggle-btn {
    cursor: pointer;
    font-size: 24px;
}
.content-wrapper {
    display: flex;
    height: 100%;
    transition: all 1s ease-in-out;
}
.main-content {
    flex: 0 0 100%;
    padding: 20px;
    transition: flex 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sidebar {
    flex: 0 0 0%;
    background-color: #f1f1f1;
    overflow-x: hidden;
    transition: flex 1s ease-in-out;
}
.sidebar-content {
    padding: 20px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    white-space: nowrap;
}
.content-wrapper.sidebar-open {
    transform: translateX(0%);  /* Changed from -25% to -20% */
}
.content-wrapper.sidebar-open .main-content {
    flex: 0 0 60%;  /* Changed from 50% to 60% */
}
.content-wrapper.sidebar-open .sidebar {
    flex: 0 0 100%;  /* Changed from 50% to 40% */
}
.content-wrapper.sidebar-open .sidebar-content {
    opacity: 1;
    transition: opacity 1s ease-in-out 1s;
}
/* ! STYLE PER SCHERMO DESKTOP */


@media only screen and (min-width: 770px) {


    /* other */
    .container-lft{ display: flex; justify-content: left; }

    /* animazione blocchi NO LOGO NO STUDIO NO NOME */
    /* ! blocco principale nome motto */
    #nome{
        transition: all 1.5s ease-in-out;
    }

    .block-reveal { 
        --t: calc(var(--td) + var(--d));

        color: transparent;
        padding: 4px;

        position: relative;
        overflow: hidden;

        animation: revealBlock 0s var(--t) forwards;
    }
    .block-reveal::after {
        content: '';

        width: 0%;
        height: 100%;

        position: absolute;
        top: 0;
        left: 0;

        background: var(--bc);
        animation: revealingIn var(--td) var(--d) forwards, revealingOut var(--td) var(--t) forwards;
    }
    /* animations */
    @keyframes revealBlock {
        100% {
            /* !  color: #0f0f0f;*/
            color: white;
        }
    }
    @keyframes revealingIn {
        0% {
            width: 0;
        }

        100% {
            width: 100%;
        }
    }
    ul li{
        display: inline;
    }
    li{
        margin: 0 15px;
    }
    @keyframes revealingOut {
        0% {
            transform: translateX(0);
            background-color: white;
        }

        100% {
            transform: translateX(100%);
        }
    }
    /* animazione blocchi NO LOGO NO STUDIO NO NOME */
    .translateBlock{
        animation: all .3s ease-in;
        transform: translateX(-350px);
    }


    .imgXL{
        width: 150px;
    }
    .imgXLln{
        width: 300px;
    }
    .imgXLs{
        width: 400px;
    }

    .cont-icon-m,
    .icon-m{
        width: 48px;
        height: 20px;
    }

    .button-plus {
        width: 30px;
        height: 30px;
        background-color: white;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        color: black;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        margin: 5px 0 5px 0;
        box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
        transition: box-shadow 0.3s ease;
    }

    .button-plus:hover {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
    }
}
/* ! dispositivi smartphone */
@media only screen and (min-width: 320px) and (max-width: 768px) {
    .button-plus{
        display: none;
    }
    body{
        overflow: hidden;
    }
    .mt105{
        margin-top: 55px;
    }
    /* ! nox3studio */
    #nox3studio{
        left: 0px;
        padding-left: 20px;
    }
    #toggleBtn{
        padding-right: 10px;
        padding-top: 15px;
        transition: opacity 1s ease-in-out;
    }
    .txt-justify{
        text-align: justify;
    }
    .fsz19{
        font-size: 19px;
    }

    .groupIconContact{
        justify-content: space-around;
        width: 100%;
        padding: 10% 5% 5% 5%;
        margin: 0px;
    }
    /* ! logo no no no */
    .cont-icon-m,
    .icon-m{
        width: 34px;
        height: 15px;
    }
    .cont-icon-sl,
    .icon-sl{
        width: 50px;
        height: 31px;
    }
    #side-content{
        width: auto;
    }
    #side-container{
        padding: 20px;
    }
    .carousel-container {
        width: 348px;
        height: 250px;
        overflow: hidden;
        position: relative;
        border-radius: 5px;
    }
    .carousel img {
        width: 348px;
        height: 254px;
        padding-top: 5px;
        background-color: #000000;
        object-fit: cover;
    }
    .carousel {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        transition: transform 0.5s ease;
    }

    .content-wrapper {
    display: flex;
    height: 100%;
    transition: all 1s ease-in-out;
    }
    .main-content {
        flex: 0 0 100%;
        padding: 20px;
        transition: flex 1s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .sidebar {
        flex: 0 0 100%;
        background-color: #f1f1f1;
        overflow-x: hidden;
        transition: flex 1s ease-in-out;
    }
    .sidebar-content {
        padding: 20px;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        white-space: nowrap;
    }
    .content-wrapper.sidebar-open {
        transform: translateX(-100%);  /* Changed from -25% to -20% */
    }
    .content-wrapper.sidebar-open .main-content {
        flex: 0 0 100%;  /* Changed from 50% to 60% */
    }
    .content-wrapper.sidebar-open .sidebar {
        flex: 100% 100% 100%;  /* Changed from 50% to 40% */
    }
    .content-wrapper.sidebar-open .sidebar-content {
        opacity: 1;
        transition: opacity 1s ease-in-out 1s;
    }

    /* ! nome */
    #nome{
        width: 100%;
    }

    #bloccoHome{
        margin: 0;
        padding: 0;
        width: 100%;
        
    }
    /* animazione blocchi NO LOGO NO STUDIO NO NOME */
    /* ! blocco principale nome motto */
    #nome{
        transition: all 1.5s ease-in-out;
    }

    .block-reveal { 
        --t: calc(var(--td) + var(--d));

        color: transparent;
        padding: 4px;

        position: relative;
        overflow: hidden;

        animation: revealBlock 0s var(--t) forwards;
    }
    .block-reveal::after {
        content: '';

        width: 0%;
        height: 100%;

        position: absolute;
        top: 0;
        left: 0;

        background: var(--bc);
        animation: revealingIn var(--td) var(--d) forwards, revealingOut var(--td) var(--t) forwards;
    }
    /* animations */
    @keyframes revealBlock {
        100% {
            /* !  color: #0f0f0f;*/
            color: white;
        }
    }
    @keyframes revealingIn {
        0% {
            width: 0;
        }

        100% {
            width: 100%;
        }
    }
    ul li{
        display: inline;
    }
    li{
        margin: 0 15px;
    }
    @keyframes revealingOut {
        0% {
            transform: translateX(0);
            background-color: white;
        }

        100% {
            transform: translateX(101%);
        }
    }
    /* animazione blocchi NO LOGO NO STUDIO NO NOME */
    .translateBlock{
        animation: all .3s ease-in;
        transform: translateX(-350px);
    }
    .container-lft{ display: flex; justify-content: left; }

    .wd600{
        width: 100%;
    }
    .wd400{
        width: 410px;
        padding-right: 30px;
        
    }
    .wd100{
        width: 100%;
    }
    

    /* ! classi per mobile portfolio */
    .modal-gallery {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        z-index: 1000;
        overflow: hidden;
        justify-content: center;
        align-items: center;
    }
    .close-gallery {
        position: fixed;
        top: 20px;
        right: 30px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1001;
    }
    #gallery {
        width: 100%;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .image-gallery-container {
        position: absolute;
        width: calc(100% - 10px);
        height: 260px;
        margin-bottom: 20px;
        flex-shrink: 0;
        transition: all 0.5s ease;
    }
    .img-gall {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .image-gallery-container:not(.focus) .img-gall {
        transform: translateX(-75%);
        opacity: 0.5;
    }
    #close-gallery{
        transition: opacity 0.5s ease-in-out;
    }

    .puff{
        opacity: 0;
    }

    #no1,#no2,#no3{
        transition: all 1s ease-in-out;
    }
    


}

@media only screen and (min-width: 769px) {
    .wd600{
        width: 40%;
    }
    .mg70{
        margin: 70px;
    }

}
@media only screen and (min-width: 1500px) {
    .pt80{
        padding-top: 90px !important;
    }

}

