:root {
  --gray-color:#333;
  --primary-color: #d53032;
  --secondary-color: #ffe4c4;
  --white-color: #f5f5f5;
}
  
*{
  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 ----------------------------------- */

#ChiSiamo{
  width: 100vw;
  height: auto;
  background-color: var(--secondary-color);
}

.ChiSiamo1{
  width: 100vw;
  height: 91vh;
  background: linear-gradient(to right, rgba(213, 48, 50, 0.9), rgba(213, 48, 50, 0.4), rgba(213, 48, 50, 0)), url('/Immagini/ChiSiamo1.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;
}


.ChiSiamo2{
  width: 100vw;
  height: auto;
  padding-bottom: 15vh;
  padding-top: 15vh;
}

.ChiSiamo2 h1{
  text-align: center;
  margin-bottom: 2vh;
  font-weight: 800;
  font-size: 35px;
  width: 90vw;
  margin-left: 5vw;
  color: #333;
}
.Separatore {
  width: 12vw;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 20px auto;
  margin-bottom: 10vh;
}


.Griglia{
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 5vw;
}

.Rettangolo{
  width: 28vw;;
  height: auto;
  border-radius: 20px;
  background-color: white;

  display: grid;
  grid-row: 4;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.Profilo{
  width: 28vw;;
  height: 22vh;
  margin-top: 5vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.r1{
  width: 28vw;;
  height: 1.5vh;
  margin-top: 3vh;
  position: absolute;
  background-color: #ff3030;
  transition: all 0.5s ease-in-out;
  margin-bottom: 20.5vh;
  transition-delay: 0s;
}
.r2{
  width: 28vw;;
  position: absolute;
  height: 14vh;
  margin-top: 1vh;
  margin-bottom: 1vh;
  background-color: #ff3030;
  transition: all 0.5s ease-in-out;
  transition-delay: 0.5s;
}
.r3{
  width: 28vw;;
  position: absolute;
  height: 1.5vh;
  margin-bottom: 3vh;
  background-color: #ff3030;
  transition: all 0.5s ease-in-out;
  margin-top: 20.5vh;
  transition-delay: 0s;
}

.Rettangolo:hover .r1,
.Rettangolo:hover .r3 {
  width: 0vw;
  transition-delay: 0.5s;
}

.Rettangolo:hover .r2 {
  width: 0vw;
  height: 0vh;
  transition-delay: 0s;
}

.ImageFounder{
  position: absolute;
  width: 11vw;
  height: 22vh;
  border: solid 5px white;
  border-radius: 100%;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: 0.5s all ease-in-out;
  transition-delay: 0.5s;
}

.Rettangolo:hover .ImageFounder{
  border: solid 5px var(--primary-color);
}

.ImageFounder img{
  width: 100%;
}

.Image{
  position: absolute;
  width: 11vw;
  height: 22vh;
  border: solid 5px white;
  border-radius: 100%;
  background-color: #ff3030;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: 0.5s all ease-in-out;
  transition-delay: 0.5s;
}

.Rettangolo:hover .Image{
  border: solid 5px #ff3030;
}

.Image img{
  margin-top: 2vh;
  height: 19vh;
}

.Nome{
  width: 28vw;;
  height: 10vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.Nome h2{
  color: black;
  font-size: 24px;
  letter-spacing: 0.3px;
  font-weight: 800;
}

.Nome h3{
  color: black;
  font-size: 14px;
  font-weight: bold;
}

.Base, .BaseFounder {
  width: 28vw;
  height: 3vh;
  margin-top: 3vh;
  border-radius: 0 0 20px 20px;
  background-color: #ff3030;
  transition: all 0.4s ease-in-out;
}
.BaseFounder{
  background-color: var(--primary-color);
}

.Rettangolo:hover .Base,
.Rettangolo:hover .BaseFounder{
  height: 4vh;
}

.Founder{
  background-color: var(--primary-color);
}

/* ----------------------------------- 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;
  }


  .Griglia{
    flex-direction: column;
  }

  .Rettangolo{
    width: 65vw;
    margin-bottom: 5vh;
  }

  .Profilo{
    width: 65vw;
  }

  .Nome{
    width: 65vw;
  }

  .Base, .BaseFounder{
    width: 65vw;
  }
  .r1, .r2, .r3{
    width: 65vw;
  }
  .Image, .ImageFounder{
    width: 20vw;
  }
  .ChiSiamo2 h1{
    font-size: 40px;
  }


  .Separatore{
    width: 20vw;
  }

  

  .ChiSiamo2 h1{
    font-size: 30px;
  }


  /* ------------------------- */

  .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;
  }


  .ChiSiamo2 h1{
    font-size: 32px;
  }
  
  .Griglia{
    flex-direction: column;
  }

  .Rettangolo{
    width: 75vw;
    margin-bottom: 5vh;
  }

  .Profilo{
    width: 75vw;
  }

  .Nome{
    width: 75vw;
  }

  .Base, .BaseFounder{
    width: 75vw;
  }
  .r1, .r2, .r3{
    width: 75vw;
  }
  .Image, .ImageFounder{
    width: 35vw;
  }


  .Separatore{
    width: 25vw;
  }
  

  /* ------------------------- */

  .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);
  }

}
