.pagine {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    overflow: hidden;
}

/* Homepage */
#pagina1 {
    display: flex;
}

#title {
    text-align: center;
    font-family: 'Franklin Gothic';
    font-size: 7vmax;
    color: white;
    letter-spacing: 0.116em;
    margin: auto;
}

#subtitle {
    font-size: 20px;
    letter-spacing: normal;
}

/* Ruota */

#pagina2 {
    /* background-color: #FFD42D; */
    position: relative; /* Capire se da problemi */
}

#desktop {
    display: block;
}

#mobile {
    display: none;
}

a, a:active, a:focus {
    color: white;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

#description-ruota {
    color: white;
    font-size: 4vmax;
    text-align: center;
    padding-top: 10%;
}

#description-ruota div {
    font-size: 0.4em;
}

#description-ruota div a {
    border-bottom: 5px dotted #fff;
}

#description-ruota div a:hover {
    border-bottom: 5px solid #fff;
    text-decoration: none !important;
}

#description-ruota div a:active {
    background-color: #ffffff70;
}

#background-opacity {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #17171791;
    top: 0;
    z-index: 1;
}

#box-preview {
    width: 45%;
    height: auto;
    background-color: #f7f7f7;
    color: #171717;
    border-radius: 20px;
    text-align: center;
    padding: 2% 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1;
}

#close {
    cursor: pointer;
    position: absolute;
    background-color: inherit;
    border-radius: 50%;
    top: 3%;
    right: 1%;
    padding: 12px 17px;
    /* transform: translate(0%, -50%); */
    font-size: 20px;
    border: none;
}

#close:hover {
    background-color: #f3f3f3;
}

#close:active {
    background-color: #f0f0f0;
}

#name {
    font-size: 40px;
}

#url {
    display: block;
    padding: 2% 0 1% 0;
    text-decoration: underline !important;
}

#read-more {
    color: initial;
    text-decoration: underline;
}

/* Animation box-preview */
.opacityOn {
    display: block !important;
    animation: opacity1 0.3s ease-in-out;
    opacity: 1;
}

.opacityOff {
    display: none !important;
    animation: opacity0 0.3s ease-in-out;
    opacity: 0;
}

@keyframes opacity1 {
    0% { display: block; opacity: 0; }
    100% { opacity: 1; }
}

@keyframes opacity0 {
    0% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
/* --- */

#description {
    padding: 0 2%;
}

#url, #description {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 20px;
    color: #171717;
}


#pagina-ruota {
    display: flex;
    justify-content: center;
    align-items: end;
    height: 100vh;
    overflow: hidden;
}

#container-ruota {
    position: relative;
    width: 500px;
    min-width: 500px;
    height: 500px;
    /*bottom: -230px;*/
    top: -15%;
    transform: scale(1.2);
}

#container-ruota::before {
    position: absolute;
    content: '↓';   /* Sembra una faccina ahahah, sono simpatico, assumetemi per favore :< */
    text-align: center;
    font-size: 1.3vmax;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

#ruota {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    border: 10px solid #171717;
    overflow: hidden;
    transition: all 3s ease-in-out;
}

#ruota span {
    width: 50%;
    height: 50%;
    display: inline-block;
    position: absolute;
}

.span1 {
    clip-path: polygon(0 92%, 100% 50%, 0 8%);
    background-color: #FF2D2D;
    top: 120px;
    left: 0;
}

.span2 {
    clip-path: polygon(100% 92%, 0 50%, 100% 8%);
    background-color: #3D2DFF;
    top: 120px;
    right: 0;
}

.span3 {
    clip-path: polygon(50% 0%, 8% 100%, 92% 100%);
    background-color: #2DFF3A;
    bottom: 0;
    left: 120px;
}

.span4 {
    clip-path: polygon(50% 100%, 92% 0, 8% 0);
    background-color: #2DCEFF;
    top: 0;
    left: 120px;
}

#slice2 {
    width: 100%;
    height: 100%;
    transform: rotate(-135deg);
}

#spin {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 1px solid #171717;
    color: #171717;
    background-color: #FFD42D;
    font-family: 'Franklin Gothic';
    cursor: pointer;
}

#project-title {
    font-size: 8vmax;
    font-family: 'Franklin Gothic';
    text-align: center;
    margin: 3% auto;
}

#project-description {
    font-size: 1.5vmax;
    text-align: center;
    font-family: 'Franklin Gothic';
    margin: auto 2%;
}

#project-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-family: 'Franklin Gothic';
    margin: 8% auto;
}


#project-list div {
    display: flex;
    position: relative;
    height: 150px;
    background-color: #fff;
    color: #171717;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 1%;
    padding: 1%;
}

.project-list-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.1);
    z-index: 0;
}

.project-list-image:active {
    transform: scale(1.2);
    filter: blur(3px);
}

.project-list-text:active {
    /* transform: scale(1.2); */
    font-size: 1.8em;
}

.project-list-text {
    font-size: 3vmax;
    color: white;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0px 0px 15px #171717;
    word-wrap: anywhere;
    z-index: 10;
}

/* Competenze */
#pagina3 {
    display: flex;
    color: white;
}

#competenze-container {
    display: flex;
    position: relative;
    width: 92%;
    /* height: 75%; */
    height: 90%;
    flex-direction: row;
    text-transform: uppercase;
    justify-content: space-between;
    margin: 2% 4% 0 4%;
    z-index: 1;
}

#competenze-container > div {
    width: 49%;
    height: 100%;
}

.section-title {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    font-size: 4vmax;
    /* margin: 2% 4% 0 4%; */
    margin: 0 0 2% 0;
    z-index: 1;
}

.section-title span {
    display: block;
    font-size: 0.25em;
}

.item-container {
    display: flex;
    flex-wrap: wrap;
    height: 88%;
    background-color: #FFD42D70;
    border: 4px dashed #fff;
    align-content: baseline;
    overflow: hidden;
}

#skills-container {
    flex-wrap: wrap;
    align-content: baseline;
}

.skills-item {
    display: flex;
    /* width: 31.3%; */
    height: 12.5%;
    background-color: #fffc;
    border: 1px solid #fff;
    color: #171717;
    font-size: 2vmax;
    justify-content: center;
    align-items: center;
    margin: 1%
}

.skills-item:hover, .work-item:hover {
    background-color: #ffffffe6;
}

#work-container {
    flex-direction: column;
    margin-top: 0;
}

.work-item {
    display: flex;
    width: 100%;
    height: 18%;
    background-color: #fffc;
    border: 1px solid #fff;
    color: #171717;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1%;
    padding: 0 5%;
}

.work-title {
    width: 100%;
    font-size: 2.5vmax;
}

.work-subtitle {
    display: flex;
    width: 100%;
    font-size: 1.2vmax;
}

.work-date {
    width: 30%;
}

.work-role {
    width: 70%;
}

/* Presentazione */
#pagina4 {
    display: flex;
    position: relative;
    /* background-color: #FFD42D; */
}

#presentazione {
    width: 65%;
    margin: auto 0 0 0;
    margin-left: 2%;
    color: white;
    font-size: 3.6vmax;
    margin-bottom: 0;
}

#presentazione span:first-child {
    font-size: 6vmax;
}

img {
    position: absolute;
    bottom: 0;
    right: 5px;
    width: 15%;
}

/* Contatti */
#pagina5 {
    display: flex;
    position: relative;
}

#text-contact {
    position: absolute;
    font-size: 4vmax;
    text-align: center;
    top: 15%;
    left: 0;
    right: 0;
    margin: 0 auto;
    color: white;
}

#container-contact {
    display: flex;
    max-width: 90%;
    margin: auto auto 0 auto;
    flex-direction: row;
    justify-content: space-between;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    margin-bottom: 3%;
    margin-top: auto;
}

.items-contact {
    display: flex;
    width: 500px;
    height: 400px;
    border: 1px solid #171717;
    font-family: 'Impact';
    font-size: 3vmax;
    color: white;
    margin: auto;
    justify-content: center;
    align-items: center;
    flex-grow: 0;
    transition: all 0.8s linear;
    background-color: #FFD42D;
    cursor: pointer;
    text-align: center;
    flex-direction: column;
    transition: all 0.6s ease-in-out;
    position: relative;
}

.items-contact:hover, .item-contact:active {
    flex-grow: 4;
    background-color: #121212;
}

.items-contact:nth-of-type(2) {
    margin: 0 1%;
}

.items-contact a {
    width: 100%;
    height: 100%;
    position: absolute;
}

.subtitle-contact {
    font-size: 0.4em;
    opacity: 0;
    animation: disableSubtitles 0.6s ease-in-out forwards;
    overflow: hidden;
    margin-top: 2%;
}

.items-contact:hover span {
    animation: showSubtitles 0.6s ease-in-out forwards !important;
}

@keyframes showSubtitles {
    0% { height: auto; opacity: 0; }
    100% { opacity: 1;  }
}

@keyframes disableSubtitles {
    0% { opacity: 1;}
    99% { height: auto; }
    100% { opacity: 0; height: 0%; }
}

/* Responsive */
@media (max-width: 575.98px)
{
    #title {
        font-size: 6vmax;
    }

    #box-preview {
        width: 65%;
        padding: 8% 0;
        transform: translate(-50%, -100%);
    }

    #name {
        font-size: 30px;
    }

    #url, #description {
        font-size: 18px;
    }

    #close {
        padding: 8px 13px;
    }

    #container-ruota {
        transform: scale(0.6);
    }

    #spin {
        font-size: 18px;
    }
    
    #pagina4 {
        height: auto;
    }
    
    #presentazione {
        font-size: 3.75vmax;
    }

    #presentazione span:first-child {
        font-size: 9vmax;
    }

    img {
        width: 25%;
    }

    #text-contact {
        top: 9%;
    }

    #container-contact {
        flex-direction: column;
        /* margin-top: 45%; */
        margin-bottom: 15%;
    }
  
    .items-contact:nth-of-type(2) {
        margin: 1% auto;
    }
  
    .items-contact {
        width: 300px;
        height: 200px;
    }

    #pagina2 {
        height: auto;
    }

    #desktop {
        display: none;
    }

    #mobile {
        display: block;
    }
  
}

@media (max-width: 575.96px) and (max-height: 766px)
{
    #container-contact {
        padding-top: 50%;
    }
}

@media (max-width: 769px)
{
    html {
        scroll-snap-type: unset !important;
    }

    #box-preview {
        width: 48%;
        padding: 4% 0;
        top: 40%
    }

    #pagina2 {
        height: auto;
    }

    #desktop {
        display: none;
    }

    #mobile {
        display: block;
    }

    #pagina3 {
        height: 150vh;
    }

    #competenze-container {
        flex-direction: column;
    }

    #competenze-container > div {
        width: 99%;
    }

    #work-container {
        margin-top: 15%;
    }

    #pagina4 {
        height: auto;
    }

    #presentazione {
        font-size: 4.8vmax;
    }

    #presentazione span:first-child {
        font-size: 8vmax;
    }
}

@media (max-width: 991.98px)
{
    
}

@media (max-width: 1199.98px)
{
    
}

@media (max-width: 1399.98px)
{
    
}

