/* -------------------------------------------------------------------------------- */
/* ! Rest & Base */
/* -------------------------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

body{
    background-color: var(--baby-powder);
}

/* -------------------------------------------------------------------------------- */
/* ! Utility */
/* -------------------------------------------------------------------------------- */

.res {
    width: 100%;
    max-width: 290px;
}

.resno {
    width: 100%;
}

/* -------------------------------------------------------------------------------- */
/* ! Grid  */
/* -------------------------------------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* border: 1px solid blue; */

}

.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    padding: 10px 20px;
    max-width: 1000px;
    max-width: 100%; 
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------------- */
/* ! Typography */
/* -------------------------------------------------------------------------------- */

html{
    font-family: Libre Baskerville, serif;
}

/* -------------------------------------------------------------------------------- */
/* ! Color Palette */
/* -------------------------------------------------------------------------------- */

:root {
    --caf-noir: #3d2500ff;
    --bistre: #3d2b1fff;
    --xanthous: #f2c054ff;
    --senape: #EFB22Eff;
    --sunset: #f6cb7dff;
    --peach-yellow: #f8dbaaff;
    --antique-white: #faebd7ff;
    --baby-powder: #fefefaff;
    }

/* -------------------------------------------------------------------------------- */
/* ! Keyframes */
/* -------------------------------------------------------------------------------- */    

@keyframes openPanel {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes text_reveal_box{
    50%{
        width: 100%;
        left: 0;
    }
    100%{
        width: 0;
        left: 100%;
    } 
}

@keyframes text_reveal{
    100%{
        color: var(--bistre);

    }
}

@keyframes text_reveal_name {
    100%{
        color: var(--bistre);
        font-weight: 500;
    }
}

/* Keyframes per Skills */

@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

/* -------------------------------------------------------------------------------- */
/* ! Navigazione */
/* -------------------------------------------------------------------------------- */

/* Sticky Menu */

.fixed {
    position: fixed;
    width: 100%;
    background: var(--baby-powder);
    z-index: 2;
}

header {
    background: var(--baby-powder);
}

/* -------------------------------------------------------------------------------- */
/* ! Hamburger */
/* -------------------------------------------------------------------------------- */

.site-nav__hb {
    grid-column: 7 / 8;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    position: relative;
}

/* Hamburger's Graphic Style */

.icon-hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    margin: 5px;
    background: var(--bistre);
}

/* -------------------------------------------------------------------------------- */
/* ! Menu Mobile */
/* -------------------------------------------------------------------------------- */

.site-nav__menu {
    display: none;
}

/* Apre il menu */

.site-nav__menu.show {
    display: flex;
}

body.menu-open {
    overflow: hidden;
}
/* Mostra il menu a schermo intero quando attivato */

.site-nav__menu.show {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--baby-powder);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 1000;
    overflow: hidden;
}

/* -------------------------------------------------------------------------------- */
/* ! Voci Menu > Style */
/* -------------------------------------------------------------------------------- */

.site-nav__menu li a{
    margin: 20px 0;
    color: var(--bistre);
    font-family: Libre Baskerville, serif;
    font-style: italic;
    font-size: 24px;
}

.site-nav h3{
    z-index: 1;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--senape);
    align-items: center;
    white-space: nowrap;
}
/* -------------------------------------------------------------------------------- */
/* ! Hero */
/* -------------------------------------------------------------------------------- */

#hero{
    width: 100%;
    height: 100vh;
    background: var(--sunset);
    background-color: cover;
    background-position: top center;

    position: relative;
    display: flex;
    justify-content: flex-start;
}

#hero::after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--caf-noir);
    opacity: .6;
    z-index: -1;
}

#hero .hero{
    margin: 0 auto;
    padding: 10px 50px;
    justify-content: flex-start;

}

/* -------------------------------------------------------------------------------- */
/* ! Hero > Text */
/* -------------------------------------------------------------------------------- */

.hero_text{
    grid-column: 1 / 6;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    height: 100%;
    margin-top: 0;
}

/* -------------------------------------------------------------------------------- */
/* ! Animazioni > Hero Text */
/* -------------------------------------------------------------------------------- */

#hero h1{
    display: block;
    width: fit-content;
    font-size: 75px;
    position: relative;
    color: transparent;
    animation: text_reveal 0.5s ease forwards;
    animation-delay: 1s;
    font-weight: 500;
}

#hero h1:nth-child(1){
    animation-delay: 1.5s;
    font-style: italic;
}

#hero h1:nth-child(2){
    animation-delay: 2.5s;
}

#hero h1:nth-child(3){
    animation-delay: 3.5s;
}

#hero h1 span{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--bistre);
    animation: text_reveal_box 1s ease;
    animation-delay: 0.3s;
}

#hero h1:nth-child(1) span{
    animation-delay: 1s;
}

#hero h1:nth-child(2) span{
    animation-delay: 1.8s;
}

#hero h1:nth-child(3) span{
    animation: text_reveal_name 0.5s ease forwards;
    animation-delay: 2.8s;
}

/* -------------------------------------------------------------------------------- */
/* ! CTA Hero > My Works */
/* -------------------------------------------------------------------------------- */

#hero .cta{
    display: inline-block;
    padding: 10px;
    color: var(--bistre);
    background-color: transparent;
    border: 2px solid var(--bistre);
    font-size: 22px;
    letter-spacing: .1rem;
    margin-top: 36px;
    transition: .3s ease;
    transition-property: background-color, color;
}

#hero .cta:hover{
    color: var(--baby-powder);
    background-color: var(--bistre);
}

/* -------------------------------------------------------------------------------- */
/* ! About > General */
/* -------------------------------------------------------------------------------- */

#about{
    padding-bottom: 15px;
    padding-top: 65px;
}
.about_txt, .education, .work {
    grid-column: 1/9;
    padding-bottom: 20px;
}

.about-cta{
    grid-column: 3 / 7;
    display: flex;
    justify-content: center;
}

/* -------------------------------------------------------------------------------- */
/* ! Paragrafo di About */
/* -------------------------------------------------------------------------------- */

.h1_profile {
    color: var(--senape);
    font-size: 30px;
    font-weight: 600;
    padding-bottom: 10px;
}

.sub_profile {
    color: var(--bistre);
    font-size: 17px;
    font-weight: 300;
    font-style: italic;
    padding-bottom: 6px;
}

.text_profile{
    color: var(--bistre);
}

/* -------------------------------------------------------------------------------- */
/* ! Education & Work Text Style */
/* -------------------------------------------------------------------------------- */

.work h2, .education h2 {
    color: var(--senape);
    font-size: 24px;
    font-weight: 600;
}

.work-col, .education-col {
    padding: 15px;
    margin-left: 35px;
}

.education-col h3, .work-col h3 {
    color: var(--senape);
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 3px;  
}

.education-col h4, .work-col h4{
    color: var(--bistre);
    font-size: 15px;
    font-weight: 300;  
    font-style: italic;
}

.education li, .work li{
    padding: 8px;
}

/* -------------------------------------------------------------------------------- */
/* ! CTA > About */
/* -------------------------------------------------------------------------------- */

.about-cta {
    padding: 30px;
    text-align: center;
    margin: 0 auto;
  }

.about-cta a{
    background-color: transparent;
    border: 2px solid var(--senape);
    color: var(--bistre);
    font-size: 18px;
    padding: 5px;
}

.about-cta a:hover{
    color: var(--bistre);
    background-color: var(--sunset);
    border: transparent;
    transition: .3s ease;
    transition-property: background-color, color;
}

/* -------------------------------------------------------------------------------- */
/* ! Skills > General */
/* -------------------------------------------------------------------------------- */

#skills {
    position: relative;
    z-index: 1; 
    padding-bottom: 100px;
    padding-top: 70px;
}

.skills__square a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    overflow: hidden; /* Hides overflow */
    z-index: 1;
    grid-column: span 8; 
    animation: fadeIn 0.5s ease-in-out;
    animation-fill-mode: both;
}

.skills__square a img {
    width: 100%;
    height: auto; 
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.skills__square a div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

/* -------------------------------------------------------------------------------- */
/* ! Skills Children > Animations */
/* -------------------------------------------------------------------------------- */

.skills__square a:nth-child(1){
    animation-delay: 1s;
}

.skills__square a:nth-child(2){
    animation-delay: 1.5s;
}

.skills__square a:nth-child(3){
    animation-delay: 2s;
}

.skills__square a:nth-child(4){
    animation-delay: 2.5s;
}

/* -------------------------------------------------------------------------------- */
/* ! Skills Children > Single Text Style */
/* -------------------------------------------------------------------------------- */

.skills__square a:nth-child(1) > div > h3 {
    color: var(--bistre);
    font-weight: 400;
    font-style: italic;
    padding-bottom: 5px;
    font-size: 32px;
  }
  
.skills__square a:nth-child(1) > div > p {
    color: var(--bistre);
    font-size: 18px;
  }

.skills__square a:nth-child(2) > div > h3 {
    color: var(--baby-powder);
    font-weight: 400;
    font-style: italic;
    padding-bottom: 5px;
    font-size: 32px;
  }
  
.skills__square a:nth-child(2) > div > p {
    color: var(--baby-powder);
    font-size: 18px;
  }

.skills__square a:nth-child(3) > div > h3 {
    color: var(--bistre);
    font-weight: 400;
    font-style: italic;
    padding-bottom: 5px;
    font-size: 32px;
  }
  
.skills__square a:nth-child(3) > div > p {
    color: var(--bistre);
    font-size: 18px;
  }  

/* -------------------------------------------------------------------------------- */
/* ! Portfolio */
/* -------------------------------------------------------------------------------- */

#portfolio {
    position: relative;
    z-index: 0; 
    margin-bottom: 60px;
    padding-top: 35px;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: -2; 
}

.portfolio__projects a {
    grid-column: 1 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1; /* Contenuto sopra il background */
}

.portfolio__projects a * {
    max-width: 100%;
    position: relative;
    margin: 12px;
    z-index: 1;
}

/* -------------------------------------------------------------------------------- */
/* ! Portfolio > Image Hover */
/* -------------------------------------------------------------------------------- */

.portfolio__projects a:hover img::before {
    opacity: 1; /* Overlay */
}

.portfolio__projects a:hover img {
    transform: scale(1.05); /* Ingrandisce */
    filter: brightness(0.7); /* Oscura */
}

/* -------------------------------------------------------------------------------- */
/* ! Portfolio > Text */
/* -------------------------------------------------------------------------------- */

.portfolio__projects h3 {
    z-index: 1;
    color: var(--bistre);
    font-size: 19px;
    padding: 5px;
    margin-top: 10px;
}

/* -------------------------------------------------------------------------------- */
/* ! Portfolio > Text */
/* -------------------------------------------------------------------------------- */

.portfolio__projects h3 {
    z-index: 1;
    color: var(--bistre);
    font-size: 19px;
    padding: 5px;
    margin-top: 10px;
    text-align: center;
}

.portfolio__projects p {
    color: var(--bistre);
    font-size: 14px;
    padding: 8px;
    margin-top: 5px; /* Riduci lo spazio sopra il p */
    text-align: center;
}


/* -------------------------------------------------------------------------------- */
/* ! Footer */
/* -------------------------------------------------------------------------------- */

#footer {
    background-color: var(--bistre);
    padding: 20px 0; 
    min-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.colonna {
    grid-column: 1 / 9;
    text-align: center;
}

/* -------------------------------------------------------------------------------- */
/* ! Footer Text Style */
/* -------------------------------------------------------------------------------- */

#footer h1, h2, p, a {
    color: white;
    margin: 0;
    padding: 0;
}

.name {
    color: var(--baby-powder);
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 0.6px;
}

.my-profile {
    color: var(--baby-powder);
    font-style: italic;
    font-size: 14px;
    margin-top: 10px; /* Spazio sotto i titoli */
    margin-bottom: 10px; /* Spazio sotto i titoli */
}

.colonna p{
    color: var(--baby-powder);
    font-size: 12px;
}

.footer-text {
    color: var(--baby-powder);
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-text-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-text-ul li {
    color: var(--baby-powder);
    font-size: 14px;
    margin-bottom: 8px; 
}

/* -------------------------------------------------------------------------------- */
/* ! Bottone Footer  */
/* -------------------------------------------------------------------------------- */

.footer-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-button .cta {
    padding: 8px 12px;
    color: var(--baby-powder);
    background-color: transparent;
    border: 1px solid var(--baby-powder);
    font-size: 12px;
    letter-spacing: .1rem;
    transition: .3s ease;
    transition-property: background-color, color;
}

.footer-button .cta:hover {
    color: var(--bistre);
    background-color: var(--baby-powder);
}

/* -------------------------------------------------------------------------------- */
/* ! Gallery > Mobile First */
/* -------------------------------------------------------------------------------- */

 #gallery{
    position: relative;
    padding-top: 60px;
    padding-bottom: 90px;
 }

 .gallery-open{
    padding-top: 35px;
    display: flex;
    flex-direction: column;
    grid-column: 1 / 9;
    align-items: center;
 }

 .gallery a {
    grid-column: 1/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    display: block; /* Per nascondere l'overlay */
    overflow: hidden; 

 }
 .gallery a * {
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin: 6px;
    text-align: center;
 }

 .works-image{
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease; /* Transizione hover */
 }

/* -------------------------------------------------------------------------------- */
/* ! Gallery > Image Hover */
/* -------------------------------------------------------------------------------- */

.gallery a:hover img::before {
    opacity: 1; /* Overlay */
}

.gallery a:hover img {
    transform: scale(1.05); /* Ingrandisce */
    filter: brightness(0.7); /* Oscura */
}

/* -------------------------------------------------------------------------------- */
/* ! Gallery > Open Text */
/* -------------------------------------------------------------------------------- */

.gallery-open {
    white-space: nowrap;
}

/* -------------------------------------------------------------------------------- */
/* ! Gallery > Text Animation */
/* -------------------------------------------------------------------------------- */

.gallery-open h1 {
    display: block;
    width: fit-content;
    font-size: 22px; 
    position: relative;
    animation: text_reveal 0.5s ease forwards;
    animation-delay: 2s; /* Ritarda il testo leggermente rispetto allo span */
    font-weight: 500;
    text-align: center;
    padding: 15px;
}

.gallery-open h1 span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--xanthous);
    animation: text_reveal_box 1s ease forwards;
    animation-delay: 0.5s; /* Il box parte prima */
}

/* 1 H1 */

.gallery-open h1:nth-of-type(1) {
    animation-delay: 2s; 
}

.gallery-open h1:nth-of-type(1) span {
    animation-delay: 1s; 
}


/* -------------------------------------------------------------------------------- */
/* ! Gallery > Text Style */
/* -------------------------------------------------------------------------------- */

.gallery-open h1 {
    font-family: Libre Baskerville, serif;
    color: var(--bistre);
}

#gallery a p {
    text-align: center;
    justify-content: center;
    color: var(--bistre);
    margin-top: 25px;
    font-size: 15px;
    z-index: 1;
}

#gallery a h3{
    text-align: center;
    justify-content: center;
    color: var(--senape);
    margin-top: 25px;
    font-size: 20px;
    z-index: 1;
}

/* -------------------------------------------------------------------------------- */
/* ! Gallery Button (Font Style down below) */
/* -------------------------------------------------------------------------------- */

.gallery-button {
    grid-column: 1 / 9;
    display: flex;
    justify-content: space-between;
    padding: 90px 15px 35px 15px;
}

/* -------------------------------------------------------------------------------- */
/* ! Margin Bottom Sigle Pages > Gallery */
/* -------------------------------------------------------------------------------- */

#imagoinmundi, #victims, #estatefiorentina, #pomodoriverdikimchi, #chimere, #oltre{
    margin-bottom: 60px;
 }

/* -------------------------------------------------------------------------------- */
/* ! Single Page > Gallery > Mobile first */
/* -------------------------------------------------------------------------------- */
   
.open-text {
    grid-column: 1 / 9;
    align-self: center;
}

.leading-text, .under-text, .collaborators{
    grid-column: 1 / 9;
    align-self: center; 
}

.leading-img, .under-img {
    grid-column: 1 / 9;
    align-self: center; /* Centra verticale */
    justify-self: center; /* Centra orizzontale */
}

/* -------------------------------------------------------------------------------- */
/* ! Single Page Text > Gallery */
/* -------------------------------------------------------------------------------- */

   p {
    padding-top: 10px;
    color: var(--bistre);
    font-size: 15px;
    font-style: normal;
    padding-bottom: 10px;
   }

   .project-title{
    font-size: 47px;
    color: var(--bistre);

   }

   .project-sub{
    font-size: 26px;
    color: var(--bistre);
    font-style: italic;
    padding-bottom: 10px;

   }

   .leading-text {
    padding-top: 18px;
    color: var(--bistre);
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    padding-bottom: 18px;
   }

   .leading-text h3{
    padding-bottom: 6px;
   }

   .collaborators {
    color: var(--bistre);
    padding-bottom: 45px;
   }

/* -------------------------------------------------------------------------------- */
/* ! Carousel Single Page > Gallery */
/* -------------------------------------------------------------------------------- */

   .carousel-container {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    position: relative;
   }

   .carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; 
   }

   .carousel-item {
    min-width: 100%; /* Viewport */
    box-sizing: border-box;
    flex: 0 0 100%; /* Img in linea */
    display: flex;
    justify-content: center; 
    align-items: center; 
   }

   .carousel-item img {
    max-width: 100%; 
    max-height: 70vh;
    object-fit: contain; /* Ratio naturale */
    display: block;
   }

   .carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
   }

/* -------------------------------------------------------------------------------- */
/* ! Bottoni Carousel > Carousel Single Page > Gallery  */
/* -------------------------------------------------------------------------------- */

   .control-btn {
    background-color: var(--senape);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
   }

   .control-btn:focus {
    outline: none;
   }

/* -------------------------------------------------------------------------------- */
/* ! Bottoni Single Page > Gallery */
/* -------------------------------------------------------------------------------- */

.open-buttons{
    padding: 90px 15px 35px 15px;
}

.open-buttons, .project-buttons {
    grid-column: 1 / 9;
    display: flex;
    justify-content: space-between;
  }
  
  .project-buttons {
    padding: 30px 15px;
  }  

  .prev-project {
    margin-right: auto;
  }
  
  .next-project {
    margin-left: auto;
  }

  .prev-project, .next-project{
    color: var(--bistre);
    font-family: Libre Basterville, serif;
    font-size: 17px;
}

/* -------------------------------------------------------------------------------- */
/* ! Per iPhone 14 */
/* -------------------------------------------------------------------------------- */

@media only screen and (min-width: 414px) and (max-width: 767px) {
    
    .grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 10px;
        padding: 10px 20px;
        max-width: 1200px;
        width: 100%;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! Medium */
/* -------------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1000px) {

    .grid {
        max-width: 1000px;
        margin: 0 auto;
    }

    /* About */

    .about_txt, .education, .work {
        grid-column: 2 / 8;
    }

    /* Portfolio */

    .portfolio__projects {
        margin-top: 50px;
    }

    .portfolio__projects a {
        grid-column: span 4;
    }

    .portfolio__projects a * {
        max-width: 80%;
    }

    /* Skills */

    .skills__square a * {
        max-width: 80%;
    }

    .skills__square a {
        grid-column: span 4;
    }

    .skills__square a:nth-child(1) > div > h3 {
        color: var(--bistre);
        font-weight: 400;
        font-style: italic;
        padding-bottom: 5px;
      }
      
    .skills__square a:nth-child(1) > div > p {
        color: var(--bistre);
        font-size: 16px;
      }
    
    .skills__square a:nth-child(2) > div > h3 {
        color: var(--baby-powder);
        font-weight: 400;
        font-style: italic;
        padding-bottom: 5px;
      }
      
    .skills__square a:nth-child(2) > div > p {
        color: var(--baby-powder);
        font-size: 16px;
      }
    
    .skills__square a:nth-child(3) > div > h3 {
        color: var(--bistre);
        font-weight: 400;
        font-style: italic;
        padding-bottom: 5px;
      }
      
    .skills__square a:nth-child(3) > div > p {
        color: var(--bistre);
        font-size: 16px;
      }  

    /* Skills Children Text */

    .skills__square a:nth-child(1) > div > h3 {
        color: var(--bistre);
        font-weight: 400;
        font-style: italic;
        padding-bottom: 5px;
        font-size: 22px;
      }
      
    .skills__square a:nth-child(1) > div > p {
        color: var(--bistre);
        font-size: 16px;
      }
    
    .skills__square a:nth-child(2) > div > h3 {
        color: var(--baby-powder);
        font-weight: 400;
        font-style: italic;
        padding-bottom: 5px;
        font-size: 22px;
      }
      
    .skills__square a:nth-child(2) > div > p {
        color: var(--baby-powder);
        font-size: 16px;
      }
    
    .skills__square a:nth-child(3) > div > h3 {
        color: var(--bistre);
        font-weight: 400;
        font-style: italic;
        padding-bottom: 5px;
        font-size: 22px;
      }
      
    .skills__square a:nth-child(3) > div > p {
        color: var(--bistre);
        font-size: 16px;
      }  

    /* Footer */

    .colonna {
        grid-column: span 4; /* Due colonne affiancate su schermi medi */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .colonna:last-child li{
        justify-content: center;
        align-items: center;
    }

    /* Gallery > General */

    .gallery-open h1 {
        font-size: 38px;
    }

    .gallery-open {
        grid-column: 1 / 5;
    }

    .gallery a:nth-child(2n+1){
        grid-column: 1 / 5;
    }
    .gallery a:nth-child(2n){
        grid-column: 5 / 9;
    } 

    /* Gallery Single Page */ 

    .open-text {
        display: grid;
        grid-column: 2 / 8;
    }
    
    .leading-text, .under-text, .collaborators{
        display: grid;
        grid-column: 2 / 8;
    }

    .collaborators{
        padding-bottom: 45px;
    }

    .project-title{
        font-size: 60px;
        color: var(--bistre);
    
    }
    
    .project-sub{
        font-size: 34px;
        color: var(--bistre);
        font-style: italic;
    }

    .leading-text {
        padding-top: 18px;
    }

    .leading-img, .under-img {
        display: grid;
        grid-column: 2 / 8;
        padding-bottom: 15px;
    }
    
    .carousel-container {
        grid-column: 2 / 8;
    }    

    .carousel-item img {
        max-height: 60vh;
    }       
}

/* -------------------------------------------------------------------------------- */
/* ! Large */
/* -------------------------------------------------------------------------------- */

@media (min-width: 1001px) {

    .grid {
        max-width: 1500px;
        margin: 0 auto;
    }

    /* Navigazione */

    .site-nav__hb {
        display: none;
      }
    
    .site-nav__menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
    
    .site-nav__menu li {
        margin-right: 20px;
      }
    
    .site-nav__menu .site-nav>li {
        display: inline-block;
    }
    
    .site-nav{
        grid-column: 1/4;
    }
    
    .header a {
        color: var(--bistre);
    }

    /* Menu titles' style */

    .site-nav h3{
        z-index: 1;
        font-size: 25px;
        font-weight: 600;
        letter-spacing: 0.6px;
        color: var(--senape);
        
        }
        
    .site-nav__menu li a{
        margin-left: 45px;
        color: var(--bistre);
        font-family: Libre Baskerville, serif;
        font-size: 18px;
        font-style: italic;
        
        }
        
    .site-nav__menu {
            grid-column: 4/8;
            z-index: 1;
            display: flex;
            justify-content: center;
        }
        
    /* About */

    .about_txt {

        grid-column: 1 / 5;

    }

    .education {
            grid-column: 1 / 6;
        }
    
    .work {
        grid-column: 6 / 9;
    }

    /* Portfolio */

    .portfolio__projects a * {
        max-width: 90%;
    }

    .portfolio__projects a:nth-child(1) {
        grid-column: 2/4;
    }

    .portfolio__projects a:nth-child(2) {
        grid-column: 4/6;
    }

    .portfolio__projects a:nth-child(3) {
        grid-column: 6/8;
    }

    .portfolio__projects a:nth-child(4) {
        grid-column: 2/4;
    }

    .portfolio__projects a:nth-child(5) {
        grid-column: 4/6;
    }

    .portfolio__projects a:nth-child(6) {
        grid-column: 6/8;
    }

    /* Skills */

    .skills__square a * {
        max-width: 90%;
    }

    .skills__square a:nth-child(1) {
        grid-column: 1/3;
    }

    .skills__square a:nth-child(2) {
        grid-column: 3/5;
    }

    .skills__square a:nth-child(3) {
        grid-column: 5/7;
    }

    .skills__square a:nth-child(4) {
        grid-column: 7/9;
    }

    /* Footer */

    .colonna:nth-child(1) {
        grid-column: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .colonna:nth-child(2) {
        grid-column: 3 / 5;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .colonna:nth-child(3) {
        grid-column: 5 / 7;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .colonna:nth-child(4) {
        grid-column: 7 / 9;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Gallery > General */

    .gallery-open {
        grid-column: 1 / 5;
    }

    .gallery-open h1 {
        font-size: 58px;
    }

    .gallery a:nth-child(2n+1){
        grid-column: 1 / 5;
    }
    .gallery a:nth-child(2){
        grid-column: 5 / 9;
    }

    /* Gallery Single Page */ 

    .open-text {
        grid-column: 2 / 8;
    }
    
    .leading-text, .under-text, .collaborators{
        grid-column: 2 / 8;
        align-items: start;
    }

    .collaborators{
        padding-bottom: 45px;
    }

    .project-title{
        font-size: 60px;
        color: var(--bistre);
        padding-bottom: 10px;
    }
    
    .project-sub{
        font-size: 34px;
        color: var(--bistre);
        font-style: italic;
        padding-bottom: 40px;
    }

    .leading-text {
        padding-top: 18px;
    }

    .leading-img, .under-img {
        grid-column: 2 / 8;
        padding-bottom: 15px;
    }
    
    .carousel-container {
        grid-column: 2 / 8;
    }    

    .carousel-item img {
        max-height: 90vh;
    } 


}
