:root{
    /* Primary Colors */
    --primary: #1c1c1c;   

    /* Surface Colors */

    --surface: #f3f3f3;

    /* Red Accent Colors */
    --red-accent: #c82626;

    /* Primary Colors */
    --green-accent: #8cbf26;

    /* Fonts */
    --title: "Press Start 2P", system-ui;
    --text: "Exo", sans-serif;
}

.container-mm{
    padding: 0 1.25rem;
}

.transf-lower{text-transform: lowercase;}
.s-space-vsmall{margin-top: 40px;}
.s-space-small{margin-top: 80px;}
.s-space-big{margin-top: 120px;}

.mm-icon-size{font-size: 34px;}
.mm-icon-size-long{font-size: 47px;}
.mm-big-icon-size{font-size: 58px;}
.mm-skill-icon{width: 58px;}

.mm-btn-border{
    width: auto;
    height: auto;
    padding: 3px;
    border: 3px solid var(--primary);
    display: inline-block;
}
.mm-btn{
    padding: 8px 18px;
    background-color: var(--primary);
    font-family: var(--title);
    font-size: 14px;
    text-transform: lowercase;
    color: var(--surface);
    border: none;
}

.mm-btn-mbl{
    width: 100px;
    padding: 8px 0;
    background-color: var(--primary);
    font-family: var(--title);
    font-size: 14px;
    text-transform: lowercase;
    color: var(--surface);
    border: none;
}

.mm-icon-border{
    display: inline-block;       
    padding: 2px;               
    border: 3px solid var(--primary);       
    box-sizing: border-box;      
}
.mm-icon-bgd{
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    color: var(--surface);
    font-size: 16px;  
    text-align: center;
}
.mm-icon-bgd i{
    line-height: 24px;
}

body{
    background-color: var(--surface);
    color: var(--primary);
    font-family: var(--text);
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(28,28,28, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(28,28,28, 0.15) 1px, transparent 1px);
    background-size: 80px 80px;
    cursor: default;
}

h1,h2,h3,h4,h5,h6{
    font-family: var(--title);
    font-weight: 400;
    line-height: 180%;
    letter-spacing: 1px;
}
h1{font-size: 36px;} /*originale 84px*/
h2{font-size: 24px;}
h3{font-size: 20px;}
h4{font-size: 17px;}
h5{font-size: 14px;}
h6{font-size: 14px;}
p{font-family: var(--text); font-size: 16px; font-weight: 500;line-height: 170%; letter-spacing: 0.4px;}

/*-- @note HEADER START --*/

#header-mm{
    position: fixed;
    width: 100%;
    height: 86px;
    padding-top: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
} 

#menu-desk ul{
    display: none
}

#mobile-menu{
    display: inline-block;
}

#switch-lang{
    display: none;
}
/*-- HEADER END --*/

/*-- @note BACK TO TOP START --*/

#btt-container{
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    z-index: 999;
    display: none;
}
#btt-container a{
    background-color: var(--surface);
    text-decoration: none;
}

/*-- BACK TO TOP END --*/

/*-- @note HERO SECTION START --*/

#hero-section{
    width: 100%;
    height: 100vh;
    position: relative;
}

#hero-content{
    width: 100%;
    height: calc(100vh - 86px);
    padding-top: 180px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 80px;
    text-align: center;
}
#hero-title{
    width: 100%;
}
#hero-img{
    width: 60%;
}
#hero-img img{
    width: 100%;
    height: auto;
}

#hero-scroll-arrow{
    width: fit-content;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translate(-50%, 0)
}
#up-down-arrow{
    width: 36px;
    display: block;
    animation: downOnly 1.5s steps(4) infinite;
}
@keyframes downOnly {
    0%{
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px); 
    }
}

#contacts-hero{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#contacts-hero a{
    color: var(--primary);
    text-decoration: none;
}

/*-- HERO END --*/

/*-- @note SERVICES START --*/

#card-box{
    padding-top: 2.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.services-card{
    flex: 1 1 30%;
    background-color: var(--surface);
    border: 4px solid var(--primary);
    padding: 2.5rem;
}

.services-text{
    padding-top: 1.87rem;
    padding-bottom: 1.5rem;
}

#website-card:hover{
    background-color: var(--primary);
    color: var(--surface);
}
#ux-ui-card:hover{
    background-color: var(--red-accent);
    color: var(--surface);
    border-color: var(--red-accent);
}
#seo-card:hover{
    background-color: var(--green-accent);
    color: var(--surface);
    border-color: var(--green-accent);
}
/*--SERVICES END --*/

/*-- @note SKILLS START --*/

#sca-wrapper{
    padding-top: 5rem;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    flex-wrap:wrap;
    gap: 7.5rem;
}

.skill-lvl-wrapper{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.single-skill-box{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.name-lvl{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.skill-text{
    font-family: var(--text);
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}
.skill-lvl{
    font-family: var(--title);
    font-size: 12px;
    text-transform: uppercase;
}

.lvl-box{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.lvl-bar-mm{
    width: 100%;
    border: 3px solid var(--primary);
}
.progress-mm{
    height: 20px;
    background-color: var(--green-accent);
    border: 3px solid var(--surface);
}

#html5-prog{width: 100%;}
#css3-prog{width: 90%;}
#js-prog{width: 70%;}
#jq-prog{width: 70%;}
#bootstrap-prog{width: 80%;}
#npm-prog{width: 80%;}*/

/*-- SKILLS END --*/

/*-- @note CHARACTER START --*/

#character{
    width: 100%;
}

.c-slide img{
    height: 30rem;
    display: block;
    margin: 0 auto;
}

.arrows{
    padding-top: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}
.swiper-prev, .swiper-next{
    cursor: pointer;
}

/*-- CHARACTER END ---*/

/*-- @note ABOUT ME START --*/
#about-me{
    width: 100%;
}
#about-me > *:not(:last-child){
    padding-bottom: 1.8rem;
}

#about-me div button{
    font-size: 14px !important;
}
#about-me div:hover{
    border-color: var(--red-accent);
}
#about-me div:hover button{
    background-color: var(--red-accent);
}

/*-- @note TOOLS START --*/

.tools-wrapper{
    font-family: var(--title);
    font-size: 12px;
    line-height: 140%;
    letter-spacing: 1px;
    text-align: center;

    padding-top: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: hidden;
}

.cartridge-box{
    padding-top: 7.5rem;
}

.tool-name{
    text-transform: capitalize;
}

.tool-purpose{
    width: 150px;
    height: 188px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: 12px;
    position: relative;
}
.label-border{
    width: 100%;
    padding: 4px;
    border: 2px solid var(--green-accent);
}
.label-content{
    width: 100%;
    background-color: var(--green-accent);

    color: var(--surface);
    font-size: 9px;
    text-align: center;
}
.cartridge-size{
    width: 150px;
    position: absolute;
    bottom: 0;
}

.cartridge-animate{
    display: inline-block;                  
    transition: transform 200ms ease-out;   
    transform: translateY(0); 
}
.tool-purpose:hover .cartridge-animate{
    transform: translateY(-70px);
}

.cartridge-animate-tall{
    display: inline-block;                  
    transition: transform 200ms ease-out;   
    transform: translateY(0); 
}
.tool-purpose:hover .cartridge-animate-tall{
    transform: translateY(-100px);
}

/*-- TOOLS END --*/

/*-- @note PROGETTI START --*/

.project-wrapper{
    padding-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 7.5rem;

    font-family: var(--text);
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}
.project-wrapper a{
    text-decoration: none;
    cursor: pointer;
}

#janarò{
    width: 100%;
    height: 100%;
}
#vanguard{
    width: 100%;
    height: 100%;
}

.project-mm{
    overflow: hidden;
    border: 6px solid transparent;
    outline: 4px solid var(--primary);
    position: relative;
}
.project-mm:hover{
    outline-color: var(--red-accent);
}

#janarò-img img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}
#vanguard-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-link{
    width: 34px;
    height: 34px;
    font-size: 22px;
    padding: 6px;
    line-height: 34px;
    text-align: center;
    background-color: var(--red-accent);
    color: var(--surface);
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 1;
}
.project-mm:hover .project-link{
    opacity: 1;
}
.project-link i{
    transform: rotate(45deg);
    display: block;
}

.project-details{
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.project-wrapper .project-mm:hover ~ .project-details{
    color: var(--red-accent);
}

/*-- PROGETTI END --*/

/*-- @note FOOTER START --*/

#footer-mm{
    background-color: var(--primary);
}

#contatti-testo{
    padding: 2.5rem 1.25rem;
    color: var(--surface);
}
#contatti-testo h2{
    width: 100%;
    padding-bottom: 2.5rem;
}
#contatti-testo a{
    text-decoration: none;
}

#contatti-testo a div{
    border-color: var(--surface);
}
#contatti-testo a div button{
    background-color: var(--surface);
    color: var(--primary);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;  
    gap: 0.75rem;  
}
#contatti-testo i{font-size: 34px;}

#contatti-testo a div:hover{
    border-color: var(--green-accent);
}
#contatti-testo div:hover button{
    background-color: var(--green-accent);
}

#socials-credits{
    padding: 2.5rem 1.25rem;
    color: var(--surface);
    font-weight: 500;
}
#social-icons{
    padding-bottom: 20px;
    font-size: 36px;
    display: flex;
    align-items: center;
    gap: 20px;
}
#social-icons a{
    color: var(--surface);
    text-decoration: none;
}
#social-icons a:hover{
    color: var(--green-accent);
    text-decoration: none;
}
#credits{
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
#credits a{
    font-weight: 600;
    color: var(--green-accent);
    text-decoration: none;
}
#credits a:hover{
    color: var(--green-accent);
    text-decoration: underline;
}
/*-- FOOTER END --*/

/*-- @note PROJECT PAGES START --*/

#header-internal{
    width: 100%;
    height: 86px;
    padding-top: 2.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* immagini grandi */

.project-img-border{
    width: auto;
    height: auto;
    overflow: hidden;
    padding: 6px;
    border: 3px solid var(--primary);
}

.project-img-big{
    width: 100%;
    height: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}
.project-img-big img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* sezione testo e info */

.title-link{
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 1.25rem;
    text-transform: capitalize;
}

.title-container{
    width: 50%;
}

.link-container{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.icon-link-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    font-family: var(--text);
    color: var(--primary);
    font-weight: 500;
    font-size: 18px;
    text-transform: capitalize;
}
.icon-link-wrapper a{
    color: var(--primary);
}
.icon-link-wrapper a:hover{
    text-decoration: none;
}

.project-text{
    width: 100%;
    padding-top: 40px;
}
.project-text p:not(:last-child){
    padding-bottom: 40px;
}

/* immagini piccola sul fondo */

.p-img-col{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}
.col-w1{
    width: 100%;
}
.project-img-small{
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.project-img-small img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*-- PROJECT PAGES END --*/



/*-- @note MEDIA QUERY --*/
@media (min-width: 576px){}
@media (min-width: 768px){}
@media (min-width: 992px){}

@media (min-width: 1200px){

    .container-mm{
        padding: 0 4.5rem;
    }

    h1{font-size: 68px;} /*originale 84px*/
    h2{font-size: 47px;}
    h3{font-size: 36px;}
    h4{font-size: 24px;}
    h5{font-size: 20px;}
    h6{font-size: 16px;}
    p{font-family: var(--text); font-size: 16px; font-weight: 500;line-height: 170%; letter-spacing: 0.4px;}

    .mm-btn-border{
        width: auto;
        height: auto;
        padding: 4px;
        border: 4px solid var(--primary);
        display: inline-block;
    }
    .mm-btn{
        padding: 8px 18px;
        background-color: var(--primary);
        font-family: var(--title);
        font-size: 16px;
        text-transform: lowercase;
        color: var(--surface);
        border: none;
    }

    .mm-icon-border{
        display: inline-block;       
        padding: 2px;               
        border: 3px solid var(--primary);       
        box-sizing: border-box;      
    }
    .mm-icon-bgd{
        width: 28px;
        height: 28px;
        background-color: var(--primary);
        color: var(--surface);
        font-size: 18px;  
        text-align: center;
    }
    .mm-icon-bgd i{
        line-height: 28px;
    }

    .s-space-vsmall{margin-top: 60px;}
    .s-space-small{margin-top: 120px;}
    .s-space-big{margin-top: 240px;}

    .mm-icon-size{font-size: 34px;}
    .mm-icon-size-long{font-size: 47px;}
    .mm-big-icon-size{font-size: 58px;}
    .mm-skill-icon{width: 58px;}

    /*-- Header --*/

    #mobile-menu{
        display: none;
    }

    #menu-desk ul{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 3.75rem;
    }

    #switch-lang{
        display: block;
    }

    #switch-lang a{
        text-decoration: none;
        fill: var(--primary);
        color: var(--primary);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-family: var(--title);
        font-size: 16px;
    }

    /*-- Hero --*/

    #hero-content{
        width: 100%;
        height: calc(100vh - 86px);
        padding-top: 200px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
        text-align: left;
    }

    #hero-title{
        width: 68%;
    }
    #hero-img{
        width: 32%;
    }
    #hero-img img{
        width: 100%;
        height: auto;
    }

    #hero-scroll-arrow{
        position: absolute;
        bottom: 80px;
    }

    /*-- Services --*/
    
    #services h4{
        width: 70%;
    }
    /*-- Skill/Character/About --*/

    #sca-wrapper{
        padding-top: 7.5rem;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .skill-lvl-wrapper{
        width: 26%;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .skill-text{
        font-size: 20px;
    }
    .skill-lvl{
        font-size: 13px;
    }

    #character{
        width: 48%;
        padding-top: 0;
    }

    #about-me{
        width: 26%;
    }

    /*-- Tools --*/

    .tools-wrapper{
        font-size: 18px;

        padding-top: 160px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        overflow: hidden;
        gap: 160px;
    }

    .cartridge-box{
        padding-top: 0;
    }

    .tool-purpose{
        width: 220px;
        height: 275px;
    }

    .label-content{
        font-size: 12px;
    }
    .cartridge-size{
        width: 220px;
    }

    .tool-purpose:hover .cartridge-animate{
        transform: translateY(-90px);
    }

    .tool-purpose:hover .cartridge-animate-tall{
        transform: translateY(-120px);
    }

    /*-- Projects --*/

    .project-wrapper{
        padding-top: 7.5rem; 
        display: flex;               
        flex-direction: row;        
        gap: 12%;

        font-family: var(--text);
        font-weight: 600;
        font-size: 22px;
        text-transform: uppercase;        
    }

    .project-mm{
        border: 6px solid transparent;
    }

    #vanguard{
        margin-top: 160px;
    }

    .project-link{
        opacity: 0;
    }
    .project-mm:hover .project-link{
        opacity: 1;
    }

    /*-- Footer --*/

    #contatti-testo{
        padding: 5rem 72px;
    }

    #contatti-testo h2{
        width: 70%;
    }

    #socials-credits{
        padding: 40px 72px;
        color: var(--surface);
        font-weight: 500;
    }

    #contatti-testo a div button{
        gap: 1.25rem;  
    }
    #contatti-testo i{font-size: 47px;}

    #credits{
        display: flex;
        flex-direction: row;
        gap: 1.25rem;
    }

    /*-- Project internal page --*/

    .project-img-border{
        padding: 10px;
        border: 4px solid var(--primary);
    }
    
    .project-img-big{
        aspect-ratio: 2 / 1;
    }

    .title-link{
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        text-transform: capitalize;
        gap: 0;
    }

    .link-container{
        display: flex;
        flex-direction: row;
        gap: 60px;
    }

    .project-text{
        width: 50%;
        padding-top: 40px;
    }

    .icon-link-wrapper{
        font-size: 20px;
    }

    .p-img-col{
        display: flex;
        flex-direction: row;
        gap: 80px;
    }

    .col-w1{
        width: 50%;
    }


}

@media (min-width: 1400px){

    h1{font-size: 82px;} /*originale 84px*/
    h2{font-size: 48px;}
    h3{font-size: 38px;}
    h4{font-size: 28px;}
    h5{font-size: 22px;}
    h6{font-size: 18px;}
    p{font-family: var(--text); font-size: 18px; font-weight: 500;line-height: 170%; letter-spacing: 0.4px;}

    .mm-btn{
        font-size: 18px;
    }

    .s-space-vsmall{margin-top: 80px;}
    .s-space-small{margin-top: 120px;}
    .s-space-big{margin-top: 300px;}

    /*-- Header --*/

    #switch-lang a{
        font-size: 18px;
    }

    /*-- Hero --*/

    #hero-content{
        padding-top: 16.25rem;
    }

    /*-- Services --*/

    #card-box{
        padding-top: 7.5rem;
    }

    /*-- Skill/Character/About --*/

    #sca-wrapper{
        padding-top: 7.5rem;
    }

    /*-- Tools --*/

    .tools-wrapper{
        padding-top: 7.5rem;
    }

    /*-- Projects --*/

    .project-wrapper{
        padding-top: 7.5rem;
    }

    .project-mm{
        border: 8px solid transparent;
    }


    /*-- Footer --*/

    #contatti-testo{
        padding: 7.5rem 72px;
    }

    #contatti-testo h2{
        width: 80%;
    }

}
@media (min-width: 1800px){

    h1{font-size: 100px;} /*originale 84px*/
    h2{font-size: 55px;}
    h3{font-size: 44px;}
    h4{font-size: 32px;}
    h5{font-size: 26px;}
    h6{font-size: 22px;}
    p{font-family: var(--text); font-size: 18px; font-weight: 500;line-height: 170%; letter-spacing: 0.4px;}

    .mm-btn{
        font-size: 20px;
    }

    .s-space-vsmall{margin-top: 80px;}
    .s-space-small{margin-top: 160px;}
    .s-space-big{margin-top: 320px;}

    /*-- Header --*/

    #switch-lang a{
        font-size: 20px;
    }

    /*-- Services --*/

    #card-box{
        padding-top: 7.5rem;
    }

    /*-- Skill/Character/About --*/

    #sca-wrapper{
        padding-top: 7.5rem;
    }

    /*-- Tools --*/

    .tools-wrapper{
        padding-top: 10rem;
    }

    /*-- Projects --*/

    .project-wrapper{
        padding-top: 10rem;
    }

    .project-mm{
        border: 10px solid transparent;
    }


    /*-- Footer --*/

    #contatti-testo{
        padding: 7.5rem 72px;
    }

    #contatti-testo h2{
        width: 80%;
    }


}