/* Setup generale */
html {
    scroll-behavior: smooth;
    font-family: "Baskervville", serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Link: nessuna decorazione e colore personalizzato */
a, a:visited, a:hover, a:focus, a:active {
    text-decoration: none;
    color: black;
    outline: none;
}

/* Header */
.header {
    display: grid;
    font-family: "Inter", sans-serif;
    font-weight: 100;
    font-size: 12px;
    margin: 5vh 12.5vw 0;
    grid-template-columns: 3vw 42vw 10vw 10vw 10vw;
    height: 3vw;
    text-align: right;
}

.header div {
    line-height: 3vw;
}

.logo {
    height: 3vw;
    width: 3vw;
    opacity: 60%;
}

.name {
    margin-left: 2vw;
    text-align: left;
}

/* Nav */
.banner-slider {
  position: relative;
  overflow: hidden;
  margin: 3vw 12.5vw 5vw;
  height: 35vw;
}

.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.75s ease-in-out;
  will-change: transform;
  width: 100%;
  flex-shrink: 0;
}

.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position:center;
  flex-shrink: 0;
}

.banner-slider .prev,
.banner-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  z-index: 2;
  transition: background 0.3s;
}

.banner-slider .prev:hover,
.banner-slider .next:hover {
  background: transparent;
}

.banner-slider .prev { left: 1vw; }
.banner-slider .next { right: 1vw; }

.banner-slider button img {
  width: 2vw;
  height: 2vw;
  pointer-events: none;
  display: block;
}

.banner-slider button:hover img {
  transform: scale(1.1);
  transition: transform 0.2s;
}





/* Main Body */
.content {
display: grid;
grid-template-columns: 35vw 35vw;
margin: 2vw 12.5vw 2vw;
grid-gap: 5vw;
}

.title1 {
    grid-column:span 2;    
    font-family:"baskervville", serif;
    font-size: 3.5vw;
    opacity:50%;
}

.subtitle {
    grid-column:span 2;    
    font-family: "baskervville", serif;
    font-size: 2vw;
    opacity:  50%;
}

.box1 {
display: block;
height: 35vw;
}

.still {
    height: 20vw;
    background-repeat: no-repeat;
    position: center;
    background-position: center;
    background-size: contain;

}

.testo {
font-family: inter, sans-serif;
font-size: 1vw;
font-weight: 200;
margin-top: 1vw;
height: 15vw;
text-align: justify;
text-justify: inter-word;
}


.box2 {
    height: 35vw;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    }

.box3 {
    height:35vw;
    grid-column:span 2;    
    background-position: 50% 45%;
    background-size: contain;
    background-repeat: no-repeat;    
    }

.box4 {
    height: 35vw;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.box5 {
    height: 35vw;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.box6 {
    height:35vw;
    grid-column:span 2;    
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    }
    
.box7 {
    height:35vw;
    grid-column:span 2;    
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    }

/* Footer */
.footer {
    padding-top: 100px;
    text-align: right;
    margin: 0 12.5vw 3vw;
    display: grid;
    grid-template-columns: 30vw 15vw 15vw 15vw;
    font-family: "Inter", sans-serif;
    font-weight: 100;
    font-size: 0.8vw;
}

.mail {
    text-align: left;
}

.mail .get {font-weight: 600; opacity: 40%;}

/* Hover Effects */
.header div:hover, .projects .title:hover {
    cursor: pointer;
}

/* Responsive Design */

/* Tablet Portrait (max-width: 1024px) */
@media (max-width: 1024px) {
  
    .header {
    margin: 20px 5vw;
    grid-template-columns: 5vw 55vw 10vw 10vw 10vw;
    }    

    .footer {
    margin: 0 5vw;
    text-align: right;
    grid-template-columns: 30vw 20vw 20vw 20vw;
    font-size: 1vw;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    
    .header {
        display: block;
        text-align: left;
        margin: 20px 5vw;
    }

    .logo {
        width: 30px;
        height: 30px;
        padding-bottom: 5px;
    }

    .name {
        margin-left: 4px;
        font-size: 12px;
        padding-top: 2px;
        padding-bottom: 10px;
    }

    .project {
        margin-left: 4px;
        padding-top: 2px;
        padding-bottom: 10px;
    }

    .about {
        margin-left: 4px;
        padding-top: 2px;
        padding-bottom: 10px;
    }

    .contacts {
        margin-left: 4px;
        padding-top: 2px;
        padding-bottom: 10px;
    }
    
    
    .banner-slider {
    height:45vw;
        margin-left:5vw;
        margin-right: 5vw;
        margin-top: 25vw;
    }

    .content {
    margin-left: 5vw;
    margin-right: 5vw;
    display: block;
    }
    
    
    .box1 {
    display:block;
    height: auto;
    }
        
    .box2 {
    height: 80vw;
    margin-bottom: 50px;
    }    
    
    .still {
    margin:0vw;
    height: 45vw;
    }
    
    .testo {
    height: auto;
    font-size: 11px;
    margin-top: 2vw;
    margin-bottom: 100px;
    }
    
    
    

    
    
    

    .footer {
        margin-left: 5vw;
        margin-right: 5vw;
        text-align: right;
        grid-template-columns: 30vw 20vw 20vw 20vw;
        font-size: 1vw;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {

    .footer {
    display: block;
    font-size: 9px;
    text-align: left;
    }

        .banner-slider {
    height:50vw;    
    margin-left:5vw;
    margin-right: 5vw;
    margin-top: 35vw;
}

     .testo {margin-bottom: 90px; font-size: 10px;}
    
    
    
    .get {
    font-size: 8px;
    font-weight: 300;
    }
    
    .cv {margin-top: 10px;}
    .pdf {margin-top: 5px;}
    .copyright {margin-top:5px;}
    
    
    
    
    
}
