/* CSS Reset */

/* Box sizing rules */
*, *::before, *::after {
    box-sizing: border-box;
  }

.correction {
    height: fit-content;
}

.loop-container .text {
    margin-top: 80px;
}

.vc-works video {
    left: 50%;
    position: relative;
    top:  50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

  
  /* Remove default padding and margin */
  html, body, h1, h2, h3, h4, h5, h6, p, blockquote, pre, code, dl, dt, dd, ol, ul, li, figure, figcaption, form, fieldset, legend, input, button, textarea, select {
    margin: 0;
    padding: 0;
  }
  
  /* Remove list styles */
  ol, ul {
    list-style: none;
  }
  
  /* Set default font size and line height */
  body {
    font-size: 1rem;
    line-height: 1.5;
  }

#video-div {
    z-index: 9999999;
}
  
  /* Remove text decoration */
  a {
    text-decoration: none;
  }
  
  /* Remove border on images */
  img {
    border-style: none;
  }

.box img {
    top: 0%;
    position: absolute;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}
  
  /* Remove form focus outline */
  input:focus, select:focus, textarea:focus, button:focus {
    outline: none;
  }
  
  /* End of CSS Reset */

  /* clearfix */
.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
    clear: both;
 }
.clearfix {
    *zoom: 1;
}
    /* End of clearfix */

body{
    width: 100%;
    background-color: black;
    overflow-x: hidden;
}

@font-face {
    font-family: 'Migra';
    src: url('Migra/Migra-Regular.woff2') format('woff2'),
        url('Migra/Migra-Regular.woff') format('woff'),
        url('Migra/Migra-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Migra';
    src: url('Migra/Migra-Extralight.woff2') format('woff2'),
        url('Migra/Migra-Extralight.woff') format('woff'),
        url('Migra/Migra-Extralight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Migra';
    src: url('Migra/Migra-Extrabold.woff2') format('woff2'),
        url('Migra/Migra-Extrabold.woff') format('woff'),
        url('Migra/Migra-Extrabold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Migra';
    src: url('Migra/MigraItalic-Italic.woff2') format('woff2'),
        url('Migra/MigraItalic-Italic.woff') format('woff'),
        url('Migra/MigraItalic-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Migra';
    src: url('Migra/MigraItalic-ExtralightItalic.woff2') format('woff2'),
        url('Migra/MigraItalic-ExtralightItalic.woff') format('woff'),
        url('Migra/MigraItalic-ExtralightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Migra';
    src: url('Migra/MigraItalic-ExtraboldItalic.woff2') format('woff2'),
        url('Migra/MigraItalic-ExtraboldItalic.woff') format('woff'),
        url('Migra/MigraItalic-ExtraboldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Telegraf';
    src: url('Telegraf/Telegraf-Regular.woff2') format('woff2'),
        url('Telegraf/Telegraf-Regular.woff') format('woff'),
        url('Telegraf/Telegraf-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Telegraf';
    src: url('Telegraf/Telegraf-Bold.woff2') format('woff2'),
        url('Telegraf/Telegraf-Bold.woff') format('woff'),
        url('Telegraf/Telegraf-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Telegraf';
    src: url('Telegraf/Telegraf-UltraBold.woff2') format('woff2'),
        url('Telegraf/Telegraf-UltraBold.woff') format('woff'),
        url('Telegraf/Telegraf-UltraBold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Telegraf';
    src: url('Telegraf/Telegraf-UltraLight.woff2') format('woff2'),
        url('Telegraf/Telegraf-UltraLight.woff') format('woff'),
        url('Telegraf/Telegraf-UltraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cobalto';
    src: url('Cobalto/Cobalto-Regular.woff2') format('woff2'),
        url('Cobalto/Cobalto-Regular.woff') format('woff'),
        url('Cobalto/Cobalto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

textarea {
    resize: none;
    user-select: none;
    overflow: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }
  
  textarea::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
  }

h1 {
    font-family: Migra;
    font-weight: bold;
    font-size: 42px;
    color: white;
    line-height: 50px;
}

head h1{
    position:absolute;
}

h2 {
    font-family: Telegraf;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.tester-dim h2 {
    width: 50%;
    float: left;
}

h3 {
    padding-top: 25px;
    font-family: Migra;
    font-weight: bold;
    font-size: 24px;
    color: white;
    line-height: 1.2;
}

.box h3 {
    position: absolute;
    bottom: 5%;
    left: 5%;
}

h4 {
    font-family: Telegraf;
    font-weight: 900;
    font-size: 20px;
    color: white;
}

a.h4link {
    font-family: Telegraf;
    font-weight: normal;
    font-size: 20px;
    color: white;
    text-decoration: underline white solid 2px;
}

h5{
    padding-top: 25px;
    font-family: Telegraf;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.p-container h5 {
    padding-top: 0px;
}

p {
    font-family: Telegraf;
    font-weight: normal;
    font-size: 18px;
    color: white;
    padding-top: 10px;
}

li {
    font-family: Telegraf;
    font-weight: normal;
    font-size: 18px;
    color: white;
    padding-top: 10px;
}


.menu{
    -webkit-transition: all 0.2s ease;  
    -moz-transition: all 0.2s ease;  
    -o-transition: all 0.2s ease;  
    -ms-transition: all 0.2s ease;  
    transition: all 0.2s ease;    
}

a.menu{
    font-family: Telegraf;
    font-weight: normal;
    font-size: 18px;
    color: white;
    text-decoration: underline white solid 1px;
    margin-left: 15px;
    margin-right: 15px;
    float: right;
}

a#Info {
    margin-right: 0px;
}

.container{
    width: 960px;
    margin: auto;
}

.header {
    padding-top: 50px;
    float:left;
    width: 100%;
    /* z-index: 1; */
    position: relative;
}

.header-active {
    width: 100%;
}

a {
    text-decoration: underline white solid 1px;
    color: white;
    font-family: Telegraf;
    font-weight: normal;
    font-size: 18px;
    line-height: 1.5;
}

.footer a {
    padding-top: 10vh;
}

.head {
    margin-top: 11vh;
    float:left;
    width: 100%;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.anteprima {
    /* float: none; */
    /* position: absolute !important; */
    width: 100%;
    /* height: 40vh; */
    top: 60vh;
    /* overflow: hidden; */
    position: absolute;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}

.anteprima video {
    width: 100%;
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
}

.video-active {
    height: 86vh;
    top: 14vh;
}

.home {
    position: relative;
}

.fmis {
    position: absolute;
    float:right;
    margin-right: -5px;
    margin-top: 52vh;
    width: 100%;
    -webkit-transition: all 1s ease;  
    -moz-transition: all 1s ease;  
    -o-transition: all 1s ease;  
    -ms-transition: all 1s ease;  
    transition: all 1s ease;
}

.fmis-active {
    margin-top: 44px;
    width: 52%;
    margin-left: 10%;
}

button {
    font-family: Telegraf;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: black;
    padding: 10px 20px;
    border-radius: 30px;
    border-width: 2px;
    border-style: solid;
    border-color: white;
    border-image: initial;
    cursor: pointer;
}
.transform-button {
    -webkit-transition: all 1s ease;  
    -moz-transition: all 1s ease;  
    -o-transition: all 1s ease;  
    -ms-transition: all 1s ease;  
    transition: all 1s ease;
  }
.button-active {
    background-color: white;
    color: black;
  }

.fmis button{
    float: right;
    margin: 0px 5px 0px 5px;
}
.page-info{
    margin-top: 3vh;
}

.page-active {
    display: block !important;
}
.cobalto {
    display: none;
    float: right;
    width:100%;
    margin:auto;
    position: relative;
}

.ted {
    display: none;
    float: right;
    width:100%;
    margin:auto;
    position: relative;
}

.z-axis {
    display: none;
    float: right;
    width:100%;
    margin:auto;
    position: relative;
}

.torino {
    display: none;
    float: right;
    width:100%;
    margin:auto;
    position: relative;
}

.hide {
    margin: -60px;
    height: 0px;
    width: 0px;
    opacity: 0%;
}

.page-title {
    width: 100%;
    float: left;
}

.category {
    margin-left: -3px;
    margin-top: 1vh;
    float: left;
    padding: 10px 20px;
    border-radius: 30px;
    border-width: 2px;
    border-style: solid;
    border-color: white;
    border-image: initial;
}

.video-container {position: relative;height: 40vh;overflow: hidden;}

.vc-active{
    height: 68vh;  
}

.bio {
    float:left;
    width: 540px;
    padding-top: 62px;
}

.contacts {
    width: 210px;
    float: left;
    padding-top: 62px;
    margin-left: 112px;
}

.curriculum {
    margin-top: 30px;
    margin-left: -3px;
}

.curriculum a {
    padding: 10px 20px;
    color: black;
    background-color: white;
    border-radius: 30px;
    font-weight: 900;
}

.languages {
    width: 210px;
    float: left;
    padding-top: 62px;
}

.education {
    width: 377px;
    float: left;
    padding-top: 62px;
    margin-left: 30px;
}

.skills h2{
    font-family: Telegraf;
    font-weight: normal;
    font-size: 18px;
    color: white;
    padding-top: 10px;
}

.skills {
    width: 210px;
    float: left;
    padding-top: 62px;
    margin-left: 30px;
}

.category a {
    text-decoration: none;
}

hr{
    color: white;
    border-width: 1.5px;
    border-style: solid;
}

.typetester {
    float: left;
    width: 100%;
    margin-top: 80px;
}

.typetester-style {
    width: 14.5%;
    float: left;
    margin-right: 30px;
}

.typetester-input {
    padding-top: 10px;
    float: left;
    width: 82.2%;
}

textarea.typetester-preview {white-space: nowrap;line-height: 100%;width: 100%;/* height: 100%; */background-color: black;border: none;font-family: 'Cobalto';font-size: 58px;color: white;}

textarea#typetester::placeholder {
    color: white !important;
    opacity: 1 !important;
    display: block !important;
    
}

.p-container {
    float: left;
    width: 100%;
    padding: 0 8.9%;
    margin-top: 80px;
}

.slider{height: 27px;width: 50%;position: absolute;left: 50%;top: 50%;transform: translate(-8%, -9%);}

.tester-dim{
    width: 31%;
    position: relative;
}

.footer {
    
width: 100%;
    
height: 20vh;
    
margin: auto;
}

.project-img {
    
width: 100%;
    
padding-top: 80px;
}

.lettura-img {
    top: 50%;
    position: absolute;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
}

#last-image {
    margin-right: 0px;
}

/* ----------------- Works -------------------- */
.continue {
    float: left;
    margin-top: 80px !important;
}

.box {
    float: left;
    overflow: hidden;
    width: 100%;
    padding-top: 100%;
    position: relative;
}
.hover {
    opacity: 0;
    position: absolute;
    top: 0%;
    width: 100%;
    padding-top: 100%;
    background-color: rgb(0 0 0 / 70%);
    z-index: 1;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    -ms-transition: all 1s ease;
    transition: all 1s ease;
}


.hover:hover {
    opacity: 1;
}

.grid-item {float: left;margin: 25px 0px 40px 0px;justify-content: space-between;display: grid;grid-template-columns: repeat(3, 31%);}

#works-container {

margin-top: 80px;
}

.p-animation {
    margin-top:40px;
}

.loop-container .p-animation {
    
position: absolute;
    
margin-top: 0px;
}

.vc-works img {
    width: 100%;
    left: 50%;
    position: relative;
    top:  50%;
    transform: translate(-50%, -50%);
}

.half-container {

    width: 48.4%;
    
    float: left;
    
    margin-top: 30px;
    }
    
    .half-container + .half-container {
        margin-left:30px;
    }
    
    .full-container {
        width:100%;
        float: left;
        margin-top: 30px;
    }

    .p-container + .p-container {
        margin-top: 50px;
    }
    
@media only screen and (max-width: 375px) {
    
    .page-content {
        float: left;
    }

    .loop-container lottie-player {
        transform: translateX(-30%);
        height: auto;
        width: 960px !important;
        position: absolute;
    }
    .vc-works img {
        height: 100%;
        width: auto;
    }
    .project-img {
        padding-top:20px;
    }
    .hover {
        opacity:1;
        background-color: rgb(0 0 0 / 70%);
    }
    .typetester-input {
        padding-top: 10px;
        float: left;
        width: 100%;
    }
    .tester-dim {
        width: inherit !important;
        position: relative;
    }
    .p-container {
        padding: 0;
        width: 100%;
        margin-top: 40px;
    }

.half-container {
    width: 44.8%;
}

    body {
        /* left: 0%; */
        position: relative;
        width: 100%;
        overflow-x: hidden;
    }
    .container{
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }

.container .container {
    width: 100%;
    margin: 0;
}

    .loop-container {
        
        height: 413px;

        }

.container.continue {
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
}
    h1 {
        font-family: Migra;
        font-weight: bold;
        font-size: 36px;
        color: white;
        line-height: 42px;
    }
    
    head h1{
        position:absolute;
    }
    
    h2 {
        font-family: Telegraf;
        font-weight: bold;
        font-size: 18px;
        color: white;
    }
    
    h3 {
        font-family: Migra;
        font-weight: bold;
        font-size: 24px;
        color: white;
    }
    
    h4 {
        font-family: Telegraf;
        font-weight: 900;
        font-size: 18px;
        color: white;
    }
    
    a.h4link {
        font-family: Telegraf;
        font-weight: 900;
        font-size: 20px;
        color: white;
        text-decoration: underline white solid 2px;
    }
    
    h5{
        font-family: Telegraf;
        font-weight: bold;
        font-size: 18px;
        color: white;
    }
    
    p {
        font-family: Telegraf;
        font-weight: normal;
        font-size: 18px;
        color: white;
    }

    .head {
        margin-top: 8vh;
    }

    .head br{
        display: none;
    }
    
    .header {
        padding-top: 20px;
        float:left;
        width: 100%;
        position: relative;
        z-index: 0;
    }

    .anteprima video {
        height: 100%;
        width: auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .fmis {
        width: 110%;
        margin: 0;
        overflow: auto;
        white-space: nowrap;
        float:none;
        margin-top: 49vh;
        margin-left: -5%;
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -o-transition: all 1s ease;
        -ms-transition: all 1s ease;
        transition: all 1s ease;
    }
    .fmis button{
        float: none;
    }
    .fmis-active {
        margin-top: 60px;
        margin-left: -3%;
    }
    .vc-active {
        height: 63vh;
    }

.vc-active video {
    height: 100%;
    width: auto;
}
    .category {
    width: fit-content;
    margin-right: 0;
    display: inline-block;
    }
    #VR {
        margin-left: 0px !important;
    }

    .bio {
        width: 100%;
    }
    
    .contacts {
        width: 100%;
        margin-left: 0px;;
    }
        
    .languages {
        width: 100%;
    }
    
    .education {
        width: 100%;
        margin-left: 0px;;
    }
    
    .skills {
        width: 100%;
        margin-left: 0px;;
    }
    .video-active {
        height: 86vh;
        top: 18vh;
    }
    .grid-item {
        width: 100%;
        grid-template-columns: 100%;
        margin: 30px 0px !important;
        row-gap: 30px;
    }
    
    div#lettura {
        margin-top: 40px;
    }
    .project-img {
        padding-top:20px;
    }
    .hover {
        opacity:1;
        background: rgb(0,0,0);
        background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    }
}

.page-content {
    margin: 0px;
    position: relative;
    width: 100%;
}

.box-lettura {
    background: rgb(214 245 221);
    float: left;
    overflow: hidden;
    width: 100%;
    padding-top: 130%;
    position: relative;
}

#lettura{
    
float: none;
    
margin-top: 80px;
}

.vc-works {

margin-top: 4vh;

margin-bottom: 4vh;
}

.loop-container {

float: left;

height: 500px;

position: relative;
}

@media only screen 
and (min-width : 376px)
and (max-width : 915px) {

    .half-container {width: 45.8%;}

    .loop-container {
        
        height: 413px;

        }
        

    .loop-container lottie-player {
        transform: translateX(-27%);
        height: auto;
        width: 793px !important;
        position: absolute;
    }
    .vc-works img {
        height: 100%;
        width: auto;
    }
    .project-img {
        padding-top:20px;
    }
    .hover {
        opacity:1;
        background: rgb(0,0,0);
        background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    }
    .tester-dim {
        width: inherit;
        position: relative;
    }
    .typetester-input {
        padding-top: 10px;
        float: left;
        width: 100%;
    }
    .p-container {
        padding: 0;
        position: relative;
        width: 100%;
        margin-top: 40px;
    }
    .head {
        margin-top: 8vh;
    }
    .container{
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }

.container .container {
    width: 100%;
    margin: 0;
}

.container.continue {
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
}

.grid-item {
    width: 100%;
    grid-template-columns: 100%;
    margin: 30px 0px !important;
    row-gap: 30px;
}

div#lettura {
    margin-top: 40px;
}
    h1 {
        white-space: normal;
        font-family: Migra;
        font-weight: bold;
        /* font-size: 36px; */
        color: white;
        line-height: 42px;
    }
    
    head h1{
        position:absolute;
    }
    
    h2 {
        font-family: Telegraf;
        font-weight: bold;
        font-size: 18px;
        color: white;
    }

.category h2 {
    text-decoration: none;
}
    
    h3 {
        white-space: normal;
        font-family: Migra;
        font-weight: bold;
        font-size: 24px;
        color: white;
    }
    
    h4 {
        font-family: Telegraf;
        font-weight: 900;
        font-size: 18px;
        color: white;
    }
    
    a.h4link {
        font-family: Telegraf;
        font-weight: 900;
        font-size: 20px;
        color: white;
        text-decoration: underline white solid 2px;
    }
    
    h5{
        font-family: Telegraf;
        font-weight: bold;
        font-size: 18px;
        color: white;
    }
    
    p {
        white-space: normal;
        font-family: Telegraf;
        font-weight: normal;
        font-size: 18px;
        color: white;
    }
    .head br{
        display: none;
    }
    
    .header {
        padding-top: 30px;
        float:left;
        width: 100%;
        z-index: 0;
    }

    .anteprima video {
        height: 100%;
        width: auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .fmis {
        -webkit-overflow-scrolling: touch;
        width: 110%;
        margin: 0;
        overflow: auto;
        white-space: nowrap;
        /* display: flex; */
        float:none;
        margin-top: 42vh;
        margin-left: -5%;
        -webkit-transition: all 1s ease;
        -moz-transition: all 1s ease;
        -o-transition: all 1s ease;
        -ms-transition: all 1s ease;
        transition: all 1s ease;
    }
    .fmis button{
        float: none;
    }
    .fmis-active {
        margin-top: 77px;
        margin-left: -2%;
    }
    .vc-active {
        height: 63vh;
    }
    .pages {
        white-space: nowrap;
    }
    .z-axis .category {
    float: none;
    width: fit-content;
    margin-right: 0;
    display: inline-block;
    }
    #VR {
        margin-left: 0px !important;
    }

    .anteprima {
        height: 50vh;
        top: 50vh;
    }
    .video-active {
        height: 90vh;
        top: 17vh;
    }
    .vc-active {
        height: 65vh;
    }

.vc-active video {
    width: auto;
    height: 100%;
}

.vc-active img {
    width: auto;
    height: 100%;
}

    .bio {
        width: 100%;
    }
    
    .contacts {
        width: 100%;
        margin-left: 0px;;
    }
        
    .languages {
        width: 100%;
    }
    
    .education {
        width: 100%;
        margin-left: 0px;;
    }
    
    .skills {
        width: 100%;
        margin-left: 0px;
        padding-bottom: 62px;
    }
        .page-content {
        float: left;
    }
}
/* iPads (landscape) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
    /* Styles */
}

/* iPads (portrait) ----------- */
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait) {
    /* Styles */
}

/* Desktops and laptops ----------- */
@media only screen and (min-width : 1224px) {

}

/* Large screens ----------- */
@media only screen 
and (min-width : 1824px) {
    /* Styles */
}

.content {
    width:100%;
    margin-left: 0px;
    margin-right: 0px;
}