/* =========================
   BASE
========================= */
* {
  box-sizing: border-box;
  
}

body {
  margin: 0;
  font-family: 'Funnel Sans', sans-serif;
   
}

h1{
  font-family: 'Indie Flower', cursive;
  
  
}
.indie-flower-regular {
  font-family: "Indie Flower", cursive;
  font-weight: 500;
  
}

p { 
  
  font-size: 1em;
  font-family: 'Funnel Sans', sans-serif;
  flex-shrink: 0;
  color: black;
  font-weight: 400;
}

a { 
  color: rgb(135, 135, 135);
  text-decoration: none;
}

a:active { 
  color: rgb(178, 219, 255);
}

/* =========================
   HEADER & NAV
========================= */

header { 
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 0 20px;
  font-weight: 400;
  background-color: rgb(23, 23, 35);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 00px 10px 10px rgba(175, 175, 175, 0.5);
  padding: 0 20px;
  
  }
  
  #Header-items {
  display: flex;
  align-items: center;
  gap: 20px;   /* ← spazio tra le icone */
  margin-left: auto;
  margin-right: 30px;
}


  #Header-items svg{
    height: 20px;
    
  }

.logo img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
  margin-left: 0;
}
header h1 {
  color: white;       /* altrimenti è nero su sfondo scuro */
  margin: 0 20px;     /* spazio laterale */
  white-space: nowrap; /* evita che vada a capo */
  flex-shrink: 0;
}

#menu {
  font-family: inherit;
  font-size: 15px;
  display: flex;
  
  justify-content: space-between;
  align-items: center;
  font-weight: 200;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;   /* ← QUESTO MANCAVA */
  gap: 20px;   /* meglio del margin-left sui li */
  padding: 0;
  
}

.navbar li {
  
  
}

.navbar a {
  padding-right: 5px;
}

.menu-toggle {
  display: none;
  
 width: 40px;
 height: 40px;
}


.navbar a:hover {
  color: rgb(52, 52, 52);
}

.dropbtn {
  background: none;
  border: none;
  color: rgb(135, 135, 135);
  font-family: inherit;
  font-size: 15px;
  font-weight: 200;
  cursor: pointer;
  z-index: inherit;
  
}

#project1{
  flex-shrink: 1;
  
}

/* =========================
   PROJECT ROWS
========================= */
body {
  padding-top: 70px;
}
.project-row,
.Project2_row {
  display: flex;
  align-items: flex-start;
  
}

h1{
  text-align: center;
  
}
 



#home_pic{
  display: flex;
  justify-content: center;
}
#home_pic img{
   max-width: 400px;
  
}



  .navbar ul.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    
    height: 100vh;
    width: 100vw;
    z-index: 10000;
    color: white;
    background-color: rgb(17, 19, 28);
    
    
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
  }

  .navbar ul.sidebar a {
  color: white;
  font-size: 22px;
  font-weight: 400;
  
}

.sidebar .divider {
  list-style: none;      /* toglie pallino */
  width: 100%;           /* tutta larghezza */
  height: 1px;           /* spessore linea */
  background-color: rgb(214, 214, 214);
  
  margin: 15px 0;
  padding: 0;            /* importantissimo */
}


/* =========================
   SLIDER — NON MODIFICATO
========================= */

.slider{
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 7 / 4;   /* mantiene proporzione 700x400 */
  overflow: hidden;
  border-radius: 10px;
  margin: 0 ;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 00px 10px 20px grey ;
  margin-top: 0px;
  margin-left: 50px;
}    

.slider img{
  width: 100%;
  height: 100%;
  transform: scale(1.2);
  object-fit: cover;
  object-position: center;
  display: none;
}

img.displaySlide{
  display: block;
}

button{
  background: none;
  color: rgb(152, 152, 152);
  font-size: 20px;
  border-radius: 50%;
  height: 40px;
  width: 30px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: color-dodge;
  opacity: .5;
}

#button{
  z-index: 2;
  position:absolute;
  bottom: 10px;
  display: flex;
  gap: 10px;
  background-color: transparent;
  padding: 0;
  height: auto;
  align-items: center;
  border-radius: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

button:focus {
  outline: none;
  box-shadow: none;
}

#button.hidden {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

button:hover{
  opacity: 1;
  transform: scale(1.3);
  text-shadow: 0px 0px 10px white;
  transition: transform 0.2s ease;
}

.slides{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
}

.btntxt {
  position: relative;
}

.progress-container {
  height: 3px;
  background-color: #ddd;
  width: 100%;
  position: absolute;
  bottom: 0%;
  left:0%;
  border-radius: 20%;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #78c1f2;
  transition: width 0.3s ease;
  display: flex;
  background-image: linear-gradient(90deg, rgb(62, 204, 239), #9ff2ff);
}

#project1{
  text-align: left;
  margin-left: 50px;
}

/* ---- SLIDER 2 ---- */

#slider2 {
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 7 / 4;   /* mantiene proporzione 700x400 */
  overflow: hidden;
  border-radius: 10px;
  margin: 0 ;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 00px 10px 20px grey ;
  margin-top: 0px;
  margin-left: 50px;
}

.progress-bar2 {
  height: 100%;
  width: 0%;
  background-color: #78c1f2;
  transition: width 0.3s ease;
  display: flex;
  background-image: linear-gradient(90deg, rgb(62, 204, 239), #9ff2ff);
}

#button2{
  z-index: 2;
  position:absolute;
  bottom: 10px;
  display: flex;
  gap: 10px;
  background-color: transparent;
  padding: 0;
  height: auto;
  align-items: center;
  border-radius: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
  opacity: 1;
}

#button2.hidden {
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

#button2:hover{
  opacity: 1;
  transform: scale(1.3);
  text-shadow: 0px 0px 10px white;
  transition: transform 0.2s ease;
}

.slide2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.slide2.displaySlide {
  display: block;
}

/* =========================
   FOOTER
========================= */

footer {
  margin-top: 40px;
  background-color: rgb(23, 23, 35);
  position: relative;
}

footer p{
  color: rgb(215, 215, 215);
  margin: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  
}
#footer_row{
  display: flex;
  align-items: center;
  padding: 20px;
}
#footer_row p{
  margin-right: auto;
}

#Footer-items{
display: flex;
gap: 10px;


position: absolute;
left: 50%;
transform: translateX(-50%);

}
#Footer-items a {
padding: 1%;

}

#artstation { 
  border: 3px blue;
}

#Footer-items a:hover{
  transform: scale(1.2);
} 
#Header-items a:hover { 
  
  transform: scale(1.2);
}


#story{
  color:#00B4D8;
  font-size: 2.8em;
  margin-bottom: 0;
}
#portfolio{
  margin-top: 0;
}

#project2{
  text-align: left;
  margin-left: 50px;
}

.Gallery img:hover {
  cursor: pointer;
  filter: brightness(90%);
  }

   #gallery1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
  
  }
#gallery1 img {
  width: 20%;
  
 
}

.Gallery{
  margin: auto;
  justify-content: center;
  align-items: center;
}
#gallery2{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-left: 20px;
  margin-right: 20px;
  margin-top: 20px;
}
#gallery2 img{
  max-width: 20%;
}

#gallery4,
#gallery5,
#gallery6,
#gallery7
{
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  justify-content: center;
  align-items: center;
  }
    #gallery4 img,
    #gallery5 img,
    #gallery6 img,
    #gallery7 img{
      max-width: 350px;
      padding: 2px;
      
      }
/* Overlay full screen */
#FullImageView {
    display: none;                /* nascosto di default */
    position: fixed;              /* copre tutta la finestra */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;

    /* centratura con flex */
    
    justify-content: center;
    align-items: center;
     overflow: auto;            /* permette di scrollare se l’immagine è alta */
    padding-top: 30px;    
        /* piccolo distacco dall’alto */
}


#FullImage {
  display: block;
  margin: 0px;
  padding: 0px;
  max-width: 95vw;
  max-height: 95vh;
  
 
}

#CloseButton {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 4rem;
  color: white;
  text-shadow: 0 0 8px rgb(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 10000;
}

.FullViewArrow {
    position: absolute;   /* relativo al FullImageView */
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    z-index: 10001;
}

#PrevImage {
    left: 20px;
}

#NextImage {
    right: 20px;
}

#FullImageView {
    touch-action: pan-y;
}

#About_me_row{
  display: flex;
  gap: 50px;
  
}
#about_me_pic{
   margin left: 20px;
}
.intro{
  font-size: larger;
  margin: 0;
  max-width: 600px;
  font-size: medium;
}

#about_me_pic img{
max-width: 300px;
display: flex;
margin-left: 50px;
}

#Footer-items a svg{
  height: 50px;
}

@media(max-width: 800px){
  .navbar ul.hideOnMobile{
    display:none;
    }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .project-row,
  .Project2_row {
    flex-direction: column;
    gap: 20px;
    
  }
  p {
    margin: 20px;
  }
  .slider{
    margin: auto;
  }
  #slider2{
    margin: auto;
  }
  

  #gallery1, #gallery2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    margin: 0;
  }

  #gallery1 img, #gallery2 img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: auto;
  }
 

 
 

#menu{
  width:auto;
}
header{
  justify-content: space-between;
}

.logo img{
  height: 10px;
}
.navbar ul{
  gap: 10px;
}
#about_me_pic img,
#home_pic img{
  width: 80%;
  height: auto;
}

#gallery4{
  display: grid;
  justify-content: center;
  

}
#gallery4 img{
  max-width: 90vw;
 
}

header h1{
 font-size: 0.7em;
}
.logo img{
  width: 50px;
  height: auto;
}

#About_me_row{
  flex-direction: column;
}
#about_me_pic img{
width: 200px;
margin: auto;
}

#Footer-items {
  position: static;      /* 🔥 fondamentale */
  transform: none;
}

#footer_row{
  display: flex;
  flex-direction: column;
  
  height: 100px;
  align-items: center;
}

footer{
  height: 100px;
}
footer p{
  margin-right: 0;
  order: 2;
  width: 100%;
  text-align: center;
}
#Footer-items a svg{
order: 1;
height: 30px;
}
}