:root {
  --gray-color:#333;
  --primary-color: #d53032;
  --secondary-color: #ffe4c4;
  --white-color: #f5f5f5;
  --lightgray-color:#777;
}
  
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
  
body, textarea, input{
  color:var(--white-color);
  font-family: 'Montserrat', sans-serif;
}
h1, h2, h3, h4, h5, h6{
  font-weight: 400;
}
  
::-webkit-scrollbar{
  width: 0px;
  height: 0px;
}

/* ----------------------------------- NAV BAR ----------------------------------- */

nav {
  width: 100vw;
  height: 9vh;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  padding-left: 2vw;
  padding-right: 2vw;
  
  background: var(--gray-color);
  position: fixed;
  top: 0;
  z-index: 100;
  
  animation: EntrataEffetto 0.7s ease-out forwards;

}

.logo {
  color: var(--white-color);
  font-size: 24px;
  letter-spacing: 1px;
  font-weight: bold;
  display: flex;
  align-items: center;
}
.logo h1{
  font-size: 35px;
  font-weight: 600;
  letter-spacing: 1.3px;
  color: var(--secondary-color);
  cursor: pointer;
}

.Button{
  height: 6vh;
  justify-self: right;
}

.Nav_Button {
  position: relative;
  color: var(--white-color);
  background-color: transparent;
  font-size: 20px;
  letter-spacing: 1px;
  width: 12vw;
  height: 100%;
  font-weight: 550;
  padding: 9px 9px;
  margin-left: 5px;
  margin-right: 5px;
  border: none;
  border-radius: 12px;
  transition: all 0.5s ease;
  cursor: pointer;
}

.Nav_Button::before,
.Nav_Button::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 80%;
  height: 3px;
  background-color: var(--primary-color);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.Nav_Button::before {
  top: -6px;
}

.Nav_Button::after {
  bottom: -6px;
}

.Nav_Button:hover::before,
.Nav_Button:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.Active_Button {
  color: var(--primary-color);
  font-weight: bold;
  border-radius: 12px;
  position: relative;
}

.Active_Button::before,
.Active_Button::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 80%;
  height: 3px;
  background-color: var(--primary-color);
  transform: translateX(-50%) scaleX(1);
}


.Mobile_Icon{
  display: none;
}

.SpazioNav{
  width: 100vw;
  height: 9vh;
}

@keyframes EntrataEffetto {
  0% {
    top: -100px;
    opacity: 0;
    box-shadow: none;
  }
  60% {
    top: 30px;
    opacity: 1;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  }
  80% {
    top: -10px;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
  }
  100% {
    top: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Ombra ripristinata */
  }
}

/* ----------------------------------- Chi Siamo ----------------------------------- */

#Catalogo{
  width: 100vw;
  height: auto;
  background-color: var(--secondary-color);
}

.Catalogo1{
  width: 100vw;
  height: 91vh;
  background: linear-gradient(to right, rgba(213, 48, 50, 0.9), rgba(213, 48, 50, 0.2), rgba(213, 48, 50, 0)), url('/Immagini/Catalogo1.webp'); 
  background-size: cover;
  background-position: center 43%;

  display: flex;
  align-items: center;
  padding-left: 5vw;
}

.Title{
  font-size: 70px;
  font-weight: 800;
  color: var(--white-color);
  position: absolute;
}


.Catalogo2{
  width: 100vw;
  height: auto;
  padding-bottom: 15vh;
  padding-top: 10vh;
}

.Catalogo2 h1{
  text-align: center;
  margin-bottom: 2vh;
  width: 90vw;
  margin-left: 5vw;
  font-weight: 800;
  font-size: 35px;
  color: #333;
}
.Separatore {
  width: 12vw;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 20px auto;
}
.Avvertimento{
  color: #283141;
  text-align: center;
  margin-bottom: 4vh;
  font-size: 20px;
  width: 90vw;
  margin-left: 5vw;
  font-weight: 500;
}


.Griglia{
  width: 94vw;
  height: auto;
  margin-left: 3vw;
  display: grid;
  grid-template-columns: repeat(4, 22vw);
  grid-row: auto;
  column-gap: 2vw;
  row-gap: 5vh;
}
.Prodotto{
  width: 100%;
  height: 55vh;
  border: 8px solid var(--lightgray-color);
  border-radius: 20px;
  transition: all 0.5s ease-in-out;
}

.Box{
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  color: #697e91;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.P1{
  background-image: url(/Immagini/LanternaPiccolaColorata.jpg);
}
.P2{
  background-image: url(/Immagini/LanternaPiccolaFerro.jpg);
}
.P3{
  background-image: url(/Immagini/NoceCocco.jpg);
}
.P4{
  background-image: url(/Immagini/Stella.jpg);
  background-position: center 20%;
}

.P5{
  background-image: url(/Immagini/Cesto.jpg);
}
.P6{
  background-image: url(/Immagini/Conchiglia.jpg);
}
.P7{
  background-image: url(/Immagini/Cuore.jpg);
}
.P8{
  background-image: url(/Immagini/LanternaMedia.jpg);
  background-position: center;
}

.P9{
  background-image: url(/Immagini/LanternaGrande.jpg);
  background-position: center 0%;
}
.P10{
  background-image: url(/Immagini/Pergamena.jpg);
}
.P11{
  background-image: url(/Immagini/PortaPillole.jpg);
}
.P12{
  background-image: url(/Immagini/Radice.jpg);
  background-position: center;
}

.P13{
  background-image: url(/Immagini/Specchio.jpg);
  background-position: center 0%;
}
.P14{
  background-image: url(/Immagini/TazzinaPiccola.jpg);
}
.P15{
  background-image: url(/Immagini/TazzinaPiccola2.jpg);
}
.P16{
  background-image: url(/Immagini/PentolaRame2.jpg);
}

.P17{
  background-image: url(/Immagini/PentolaRame.jpg);
}
.P18{
  background-image: url(/Immagini/PentolinoRame.jpg);
}
.P19{
  background-image: url(/Immagini/SlittaLegno.jpg);
}
.P20{
  background-image: url(/Immagini/TeieraPiccola.jpg);
}

.P21{
  background-image: url(/Immagini/StellaPiccola.jpg);
}
.P22{
  background-image: url(/Immagini/BauleCuore.jpg);
}
.P23{
  background-image: url(/Immagini/RadiceA1.jpeg);
}
.P24{
  background-image: url(/Immagini/LanternaA1.jpeg);
}

.P25{
  background-image: url(/Immagini/LanternaA2.jpeg);
}
.P26{
  background-image: url(/Immagini/TazzinaA1.jpeg);
}
.P27{
  background-image: url(/Immagini/TazzinaA2.jpeg);
}
.P28{
  background-image: url(/Immagini/TazzinaA3.jpeg);
}

.P29{
  background-image: url(/Immagini/TazzinaA4.jpeg);
}
.P30{
  background-image: url(/Immagini/BaulettoA1.jpeg);
}
.P31{
  background-image: url(/Immagini/ConchigliaA1.jpeg);
}
.P32{
  background-image: url(/Immagini/AcquaA1.jpeg);
}

.P33{
  background-image: url(/Immagini/MonsterA1.jpeg);
}
.P34{
  background-image: url(/Immagini/BaulettoA1.jpeg);
}
.P35{
  background-image: url(/Immagini/RadiceA2.jpeg);
}
.P36{
  background-image: url(/Immagini/RadiceA3.jpeg);
}

.P37{
  background-image: url(/Immagini/LanternaA3.jpeg);
}
.P38{
  background-image: url(/Immagini/LanternaA4.jpeg);
}
.P39{
  background-image: url(/Immagini/LanternaA5.jpeg);
}
.P40{
  background-image: url(/Immagini/LanternaA6.jpeg);
}

.P41{
  background-image: url(/Immagini/LanternaA7.jpeg);
}
.P42{
  background-image: url(/Immagini/LanternaA8.jpeg);
}

.Sfumatura{
  width: 100%;
  height: 101%;
  position: absolute;
  transform: translateY(100%);
  background: linear-gradient(to top, rgba(213, 48, 50, 0.9), rgba(213, 48, 50, 0.4), rgba(213, 48, 50, 0)); 
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: all 0.5s ease-in-out;
}
.TextPlan{
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 40vh;
  opacity: 0;
  user-select: none;
  transform: translateY(10%);
  z-index: 2;
  transition: all 0.5s ease-in-out;
}
.TextPlan h3{
  font-size: 27px;
  font-weight: 700;
  color: var(--white-color);
  margin-bottom: 5px;
}
.TextPlan h4{
  font-size: 17px;
  font-weight: 500;
  color: var(--white-color);
}

.Prodotto:hover{
  border-color: var(--primary-color);
}
.Prodotto:hover .Sfumatura{
  transform: translateY(0px);
}
.Prodotto:hover .TextPlan{
  transform: translateY(0);
  opacity: 1;
}



/* ----------------------------------- FOOTER ----------------------------------- */

.footer {
  height: 8vh;
  background-color: #333;
  color: white;
  display: grid;
  grid-template-columns: repeat(3 , 1fr);
  align-items: center;
  font-size: 14px;
}

.Diritti{
  display: flex;
  padding-left: 8vw;
  justify-content: left;
}

.social-icons{
  display: flex;
  padding-right: 8vw;
  justify-content: right;
}

.social-icons img {
  width: 40px;
  height: 40px;
  margin-left: 1vw;
}

/* ----------------------------------- RESPONSIVE ----------------------------------- */

/* PC (1024px) */
@media only screen and (min-width: 1025px) {
  
  
  
  #side-menu{
    display: none;
  }
}

/* Tablet (768px e 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px){

  nav{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: center;
  }

  .Button{
    display: none;
  }
  .Title{
    font-size: 60px;
  }

  .Catalogo2 h1{
    font-size: 40px;
  }
  .Catalogo2 h3{
    font-size: 20px;
  }
  .Separatore{
    width: 20vw;
  }

  .Griglia{
    grid-template-columns: repeat(2, 44vw);  
  }
  .TextPlan{
    padding-top: 40vh;
  }
  .TextPlan h3{
    font-size: 33px;
  }
  .TextPlan h4{
    font-size: 20px;
  }


  /* ------------------------- */

  .Mobile_Icon {

    right: 5vw;
    width: 40px;
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 101;
    transition: transform 0.5s ease;
  
  }

  /* Linee dell'icona hamburger */
  .line {
      width: 100%;
      height: 4px;
      background-color: var(--white-color);
      position: absolute;
      transition: all 0.4s ease;
  }

  /* 3 Linee per l'icona */
  .line1 {
      top: 25%;
  }
  
  .line2 {
      top: 53.5%;
      transform: translateY(-50%);
  }
  
  .line3 {
      top: 75%;
  }

  /* Animazione "X" delle 3 linee orizzontali */
  .Mobile_Icon.active .line1 {
      top: 50%;
      transform: rotate(45deg);
      background-color: var(--primary-color);
  }
  
  .Mobile_Icon.active .line2 {
      opacity: 0;
  }
  
  .Mobile_Icon.active .line3 {
      top: 50%;
      transform: rotate(-45deg);
      background-color: var(--primary-color);
  }

  /* Menu a comparsa */

  #side-menu {
    width: 100vw;
    height: 100vh;  
    position: fixed;
    top: 0;
    left: -100vw;
    transition: left 0.5s ease;
    z-index: 99;
    background-color: #555;
  }

  /* Link all'interno del menu laterale */
  .menu-item {
      color: var(--white-color);
      font-size: 30px;
      text-decoration: none;
      padding: 15px 30px;
      display: block;
      transition: background-color 0.3s ease;
  }

  .menu-item:hover {
      background-color: var(--primary-color);
  }


}

/* Telefono(768px) */
@media only screen and (max-width: 767px) {
  
  nav{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-items: left;
  }
  .logo h1{
    font-size: 30px;
  }

  .Button{
    display: none;
  }
  .Title{
    font-size: 60px;
  }


  .Catalogo2 h1{
    font-size: 32px;
  }
  .Catalogo2 h3{
    font-size: 20px;
  }
  .Separatore{
    width: 25vw;
  }
  
  .Griglia{
    width: 60vw;
    grid-template-columns: repeat(1, 60vw);
    margin-left: 20vw;  
  }

  .TextPlan{
    padding-top: 40vh;
  }
  .TextPlan h3{
    font-size: 28px;
  }
  .TextPlan h4{
    font-size: 20px;
  }

  .P13{
    background-position: center;
  }

  /* ------------------------- */

  .Mobile_Icon {

    right: 5vw;
    width: 40px;
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 101;
    transition: transform 0.5s ease;
  
  }

  /* Linee dell'icona hamburger */
  .line {
      width: 100%;
      height: 4px;
      background-color: var(--white-color);
      position: absolute;
      transition: all 0.4s ease;
  }

  /* 3 Linee per l'icona */
  .line1 {
      top: 25%;
  }
  
  .line2 {
      top: 53.5%;
      transform: translateY(-50%);
  }
  
  .line3 {
      top: 75%;
  }

  /* Animazione "X" delle 3 linee orizzontali */
  .Mobile_Icon.active .line1 {
      top: 50%;
      transform: rotate(45deg);
      background-color: var(--primary-color);
  }
  
  .Mobile_Icon.active .line2 {
      opacity: 0;
  }
  
  .Mobile_Icon.active .line3 {
      top: 50%;
      transform: rotate(-45deg);
      background-color: var(--primary-color);
  }

  /* Menu a comparsa */

  #side-menu {
    width: 100vw;
    height: 100vh;  
    position: fixed;
    top: 0;
    left: -100vw;
    transition: left 0.5s ease;
    z-index: 99;
    background-color: #555;
  }

  /* Link all'interno del menu laterale */
  .menu-item {
      color: var(--white-color);
      font-size: 30px;
      text-decoration: none;
      padding: 15px 30px;
      display: block;
      transition: background-color 0.3s ease;
  }

  .menu-item:hover {
      background-color: var(--primary-color);
  }

}