/* =============== GOOGLE FONTS ===============
@import url(https://www.fontshare.com/fonts/panchang);
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Titan+One&display=swap"); */

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #2d2d2d;
  --first-color-dark: #ffffff;
  --first-color-darken: hsl(0, 0%, 23%);
  --second-color: #33ff00;
  --second-color-dark: hsl(0, 0%, 6%);
  --white-color: hsl(0, 0%, 100%);
  --shadow-img: drop-shadow(0 12px 24px hsla(0, 0%, 0%, .4));
  --shadow-circle: 0 12px 24px hsla(0, 0%, 0%, .4);
  --shadow-button: 0 -4px 8px hsla(0, 0%, 0%, .3);
  --shadow-card: 0 -8px 24px hsla(0, 0%, 0%, .3);
  --shadow-text: 0 2px 4px var(--first-color-darken);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Satoshi', sans-serif;
  --second-font: 'Satoshi', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --projects-font-size: 1.5rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.4rem;
    --h1-font-size: 2.6rem;
    --h2-font-size: 1.4rem;
    --h3-font-size: 1.2rem;
    --normal-font-size: 1.2rem;
    --small-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--first-color);
  color: var(--white-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  padding: 10px 20px;
}


.main {
  overflow: hidden;
}

.res {
  width: 100%;
  max-width: 400px;
  padding-top: 0px;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0px;
  left: 0;
  background-color: var(--first-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s;
}

.nav {
  position: relative;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--white-color);
  font-family: var(--second-font);
  text-shadow: var(--shadow-text);
}

.nav__close,
.nav__toggle {
  display: flex;
  font-size: 1.5rem;
  cursor: pointer;
}

.ri-cactus-line {
  color: #33ff00;
}

.ri-menu-3-line {
  color: #33ff00;
}

.EQ {
  display: block;
  max-width: 40%;
  height: auto;
}



/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    left: -100%;
    top: 0;
    background-color: #171717;
    width: 100%;
    height: 100%;
    padding: 7rem 1.5rem 2.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left .4s;
  }
}


.nav__list,
.nav__social {
  display: flex;
  row-gap: 1rem;
}

.nav__list {
  flex-direction: column;
  row-gap: 1rem;
}

.nav__link {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}

.nav__link:hover {
  color: var(--second-color);
}

.nav__close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
}

.nav__social {
  column-gap: 1rem;
  align-self: flex-end;
}

.nav__social-link {
  color: var(--white-color);
  font-size: 3rem;
  transition: color .4s;
  margin: 0px 20px
}

.nav__social-link:hover {
  color: var(--second-color);
}

.nav__social-link2 {
  color: var(--white-color);
  font-size: 2rem;
  transition: color .4s;
  margin: 0px 10px
}

.nav__social-link2:hover {
  color: var(--second-color);
}

/* Show menu */
.show-menu {
  left: 0;
}

/* Shadow header */
.shadow-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, .15)
}

/* Active link */
.active__link {
  color: var(--second-color);
}




/*=============== HOME ===============*/


.home__title {
  font: var(--font-regular) var(--biggest-font-size) var(--second-font);
  line-height: 100%;
  margin-bottom: 1rem;
  text-shadow: var(--shadow-text);
  display: grid;
}

.home__subtitle {
  line-height: 100%;
  margin-bottom: 1rem;
  text-shadow: var(--shadow-text);
  display: grid;
}

.hero {
  background: url(../img/background-hero.jpg) no-repeat center center;
  background-position: 82% 55%;
  height: 100vh;
  background-size: cover;
  display: flex;
  grid-column: 1/9;
  align-items: center;
}

.hero::before {
  content: ' ';
  width: 100%;
  height: 110%;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--first-color);
  opacity: 0.18;
}


#home {
  padding-top: 50px;
}



.home__item {
  font-family: var(--second-font);
  display: grid;
  grid-column: 1/5;
  align-items: center;
}


/*=============== BANNER ===============*/
.banner__about {
  display: grid;
  background-color: var(--second-color);
  padding: 1rem 1.5rem;
  justify-content: center;
}

.banner {
  padding-top: 3rem;
}

.banner__container {
  background-color: var(--second-color);
  padding: 1rem 1.5rem;
}

.banner__list {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.touch {
  font-weight: 400;
  font-style: oblique;
  font-size: 1.7em;
  color: #2d2d2d;
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.ri-mail-send-line {
  font-style: oblique;
  color: #2d2d2d;
  font-size: 0.8em;
  margin-bottom: 15px;
  text-align: center;

}

.mail {
  font-weight: 600;
  font-size: 1.4em;
  color: #2d2d2d;
  border-bottom: 2px solid var(--first-color);
  transition: .2s;
}

.mail:hover {
  font-size: 1.5em;
  border-bottom: 2px solid#ffffff;
  border-bottom: 2px solid var(--second-color);
  transition: .2s;



}


/*=============== ABOUT ===============*/

#download {
  color: #33ff00;
  cursor: pointer;
}

#about {
  padding-top: 65px;
  padding-bottom: 5px;
}

.about {
  background-color: var(--first-color-dark);
}

.about__container {
  row-gap: 3rem;
  padding-block: 1rem 2rem;
}

.about__list {
  display: grid;
  row-gap: 1.25rem;
}

.about__img {
  grid-column: 1/9;
  display: grid;
  justify-content: center;
  filter: var(--shadow-img);
}

.about__item {
  font-family: var(--second-font);
  grid-column: 1/9;
}

/* Contenitore della griglia */
.grid-container {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  /* 9 colonne uguali */
  gap: 20px;
  /* Spaziatura tra le colonne */
}

/* Stile per l'elemento della lista */
.about__item#download {
  grid-column: 1 / 3;
  /* L'elemento occupa la seconda colonna */
  justify-self: center;
  /* Centra l'elemento orizzontalmente all'interno della colonna */
  margin-top: 20px;
  /* Distanza dagli altri elementi */
  margin-bottom: 20px;
}

/* Stile per il link di download */
.about__item#download a {
  padding: 15px 30px;
  color: #33ff00;
  background-color: #2d2d2d;
  /* Verde scuro */
  border: solid 2px;

  /* Spaziatura interna del pulsante */
  text-decoration: none;
  /* Rimuove la sottolineatura dal link */
  font-weight: bold;
  /* Testo in grassetto */
  font-size: 1.1rem;
  /* Dimensione del testo */
  border-radius: 4px;
  /* Bordi arrotondati */

  display: inline-flex;
  /* Mantiene il layout flessibile */
  align-items: center;
  /* Allinea verticalmente l'icona e il testo */
  gap: 10px;
  /* Spazio tra il testo e l'icona */
  transition: background-color 0.5s;
  /* Transizione per il cambio di colore */
}

/* Cambia il colore al passaggio del mouse */
.about__item#download a:hover {
  background-color: rgb(51, 255, 0);
  /* Verde brillante */
  color: #2d2d2d;
  /* Testo bianco */
  padding: 15px 30px;
}






/*=============== FOTOGRAFIA ===============*/

/* ! pagina sezione fotografia*/
section {
  /* outline: 1px solid red; */
  scroll-margin-top: 0px;
  /* margin-bottom: 25px; */
  padding: 15px;
}

/* GRID GALLERY FOTO MONTAGNA*/
/* centro */
.titolifoto h1 {
  color: #33ff00;
  grid-column: 2 / span 6;
  justify-self: center;
  align-self: center;
  font-weight: 800;
  margin-top: 80px;
}

.titolifoto h2 {
  grid-column: 2 / span 6;
  justify-self: center;
  align-self: center;
  font-weight: 600;
  margin-top: 0px;
}

.about__title {
  color: #33ff00;
  grid-column: 1 / span 6;
  justify-self: left;
  align-self: left;
  font-weight: 800;
  margin-top: 40px;
}


/* GRID GALLERY FOTO */
.grid-gallery {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  grid-gap: 10px;
}

/* titolo galleria */
.grid-gallery h1 {
  grid-column: 2 /8;
  justify-self: center;
  align-self: center;
}


.grid-gallery .grid-item {
  position: relative;
  background-color: var(--light);
  overflow: hidden;
}


.grid-gallery .grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.grid-gallery .grid-item:hover img {
  transform: scale(1.1);
}

.grid-gallery .grid-item:hover a {
  cursor: zoom-in;
}

.grid-gallery .grid-item:nth-child(3n - 2) {
  cursor: zoom-in;
  grid-column: span 2;
  grid-row: span 2;
}

/*=============== FOOTER ===============*/

#footer {
  background-color: #171717;
  transition: box-shadow .4s;
}

.footer__social {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.footer__nav ul {
  flex-direction: column;
}

.footer__nav ul li {
  width: 0 auto;
  text-align: center;
  margin: 10px;
}

.footer__contact {
  padding: 20px;
  text-align: center;
}

#slogan {
  font-family: var(--second-font);
}



/*=============== DISPOSITIVI ===============*/

/* -------------------------------------------------------------------------------- */
/* ! Metto tutto ciò che è medium */
/* -------------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .container {
    max-width: 1120px;
  }

  .hero {
    background: url(../img/background-hero.jpg) no-repeat center center;
    background-position: 92% 55%;
    height: 100vh;
    background-size: cover;
    display: flex;
    align-items: center;
  }

  .about__item {
    font-family: var(--second-font);
    grid-column: 1/4;
    align-items: center;
  }

  .about__img {
    grid-column: 4/9;
    display: grid;
    justify-content: center;
    filter: var(--shadow-img);
  }

  .formazione__item {
    font-family: var(--second-font);
    display: grid;
    grid-column: 5/9;
    align-items: center;
    background-color: #842fe3;
    padding: 50px;
    grid-row: 2 / 5;
    transform: translate(0, 0px);
  }

  /* Welcome */
  .welcome__text {
    grid-column: 1/6;
  }

  .welcome__img {
    grid-column: 6/9;
  }

  /* fix per img */
  .welcome__img img {
    object-fit: contain;
  }

  #expandBtn {
    display: grid;
    grid-column: 1/4;

  }

  #expandBtn1 {
    display: grid;
    grid-column: 1/4;

  }

  #expandBtn2 {
    display: grid;
    grid-column: 1/4;
  }

  #list {
    grid-column: 1/4;
  }

  #list1 {
    grid-column: 1/4;
  }

  #list2 {
    grid-column: 1/4;
  }

  #tesi__gif {
    grid-column: 1/4;
    grid-row: 3/4;
  }


  /* For large devices */
  @media screen and (min-width: 1150px) {
    .grid {
      max-width: 1060px;
      margin: 0 auto;
    }

    /* .hero {
    background: url(../img/background-hero.jpg) no-repeat center center;
    height: 100vh;
    background-size: cover;
    display: flex;
    grid-column: 1/9;
    align-items: center;
  } */

    .about__item {
      font-family: var(--second-font);
      grid-column: 1/4;
      align-items: center;
    }

    .about__img {
      grid-column: 4/9;
      display: grid;
      justify-content: center;
      filter: var(--shadow-img);
      /* background-image: url(../img/Animation\ -\ 1717425880813\ -\ Copia.gif);
            background-repeat: no-repeat; */
    }



    /* Stile per l'elemento della lista */
    .about__item#download {
      grid-column: 1 / 3;
      /* L'elemento occupa la seconda colonna */
      justify-self: center;
      /* Centra l'elemento orizzontalmente all'interno della colonna */
      margin-top: 20px;
      /* Distanza dagli altri elementi */
      margin-bottom: 20px;
    }

    /* Stile per il link di download */
    .about__item#download a {
      padding: 15px 30px;
      color: #33ff00;
      background-color: #2d2d2d;
      /* Verde scuro */
      border: solid 2px;

      /* Spaziatura interna del pulsante */
      text-decoration: none;
      /* Rimuove la sottolineatura dal link */
      font-weight: bold;
      /* Testo in grassetto */
      font-size: 1.2rem;
      /* Dimensione del testo */
      border-radius: 4px;
      /* Bordi arrotondati */

      display: inline-flex;
      /* Mantiene il layout flessibile */
      align-items: center;
      /* Allinea verticalmente l'icona e il testo */
      gap: 10px;
      /* Spazio tra il testo e l'icona */
      transition: background-color 0.5s;
      /* Transizione per il cambio di colore */
    }

    /* Cambia il colore al passaggio del mouse */
    .about__item#download a:hover {
      background-color: rgb(51, 255, 0);
      /* Verde brillante */
      color: #2d2d2d;
      /* Testo bianco */
      padding: 15px 30px;
    }



    /* Skills */


    #skills li {
      grid-column: span 2;
    }


    .grid {
      max-width: 1060px;
      margin: 0 auto;
    }



    .hero {
      background: url(../img/background-hero.jpg) no-repeat center center;
      height: 100vh;
      background-size: cover;
      display: flex;
      grid-column: 1/9;
      align-items: center;
    }

    .container {
      margin-inline: auto
    }


    .nav {
      height: calc(--header-height) + 2rem;
    }

    .nav__toggle,
    .nav__close {
      display: none;
    }

    .nav__link {
      font-size: var(--normal-font-size);
    }

    .nav__menu {
      display: flex;
      column-gap: 3rem;
      align-items: center;
    }

    .nav__list {
      flex-direction: row;
      column-gap: 2rem;
    }
  }
}