/* -------------------------------------------------------------------------------- */
/* ! Base */
/* -------------------------------------------------------------------------------- */
/* Tavolozza */
:root {
  --primary: #ff7ccd;
  --secondary: #844d93;
  --accent: #554080;
  --light: #f9cef3;
  --dark: #1d315e;
  --cornerRad: 4px;
}




/* Reset */
* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

html,
body {
  overflow-x: hidden;
}

/* Tipografia */
body {
  font-family: 'Playfair Display', serif;
  font-family: 'Lilita One', cursive;
  background: url(img/pois.PNG) no-repeat;
  background-size: cover;
  /* overflow-x: hidden; */
}

h1 {
  font-family: 'Lilita One', cursive;
}

h2,
/* h3, */
h4,
h5 {
  font-family: 'Playfair Display', serif;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;

}



h6 {
  font-family: 'Pacifico', cursive;
  font-size: 1.5em;
}

p,
ul,
a {
  font-family: 'Playfair Display', serif;
  ;
  font-size: 1.4em;
  line-height: 1.4em;
  margin-bottom: 15px;

}

p.leading {
  font-size: 1.6em;
  line-height: 1.6em;
}

p span {
  font-weight: 500;
  color: var(--secondary);
  font-style: italic;
}

.cta {
  display: block;
  border: 2px solid var(--primary);
  font-weight: 900;
  color: var(--primary);
  margin: 0 auto;
  padding: 12px;
  border-radius: 12px;
  width: fit-content;

}

.cta:hover {
  background: var(--primary);
  color: var(--dark);
}

/* Riuso */
.res {
  width: 100%;
  max-width: 400px;
}

.clipped {
  clip-path: circle();
}

/* -------------------------------------------------------------------------------- */
/* ! Mobile first */
/* -------------------------------------------------------------------------------- */
/* Grid system */

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


/* Header */
.fixed {

  width: 100%;
  z-index: 4;

}

.header {

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px;
}

.header__logo a {
  color: var(--light);
  font-family: 'Pacifico', cursive;
  font-size: 1.3em;
}

.header__logo a:hover {
  color: var(--secondary);
  border: 1px solid var(--light);
  background-color: var(--light);
  border-radius: 30px;
  font-family: 'Pacifico', cursive;
  font-size: 1.3em;
}

.header img {
  padding: 10px;
  border-radius: 20px;

}



/* menu hamburger */



details {
  margin: 40px;
  z-index: 1;
}

.logo img {
  width: 60px;

}

summary {
  writing-mode: vertical-lr;
  text-align: center;
  padding: 12px 10px;
  width: 23px;
  height: 17px;
  background-color: var(--primary);
  border: 2px solid var(--secondary);
  border-radius: var(--cornerRad);
  color: var(--secondary);
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: transform 200ms ease-in-out 0s;
  font-family: 'Lilita One', cursive;
  z-index: 1;


}

summary::before,
summary::after {
  position: static;
  top: 0;
  left: 0;
  z-index: 1;

}

summary::before {
  content: "";

}

summary::after {
  content: "lll";
  letter-spacing: -1px;


}

summary:hover {
  transform: scale(1.1);
}

summary::marker {
  font-size: 0;
}

summary::-webkit-details-marker {
  display: none;
}

details[open] .menu {
  animation-name: menuAnim;
}

details[open] summary::before {
  content: "X";
}

details[open] summary::after {
  content: "";
}

.menu {
  height: 0;
  width: fit-content;
  border-radius: var(--cornerRad);
  background-color: var(--primary);
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  font-family: 'Lilita One', cursive;
  animation: closeMenu 300ms ease-in-out forwards;
  z-index: 1;
}

.menu a {
  padding: 12px 24px;
  margin: 0 16px;
  color: var(--secondary);
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  text-align: center;
  transition: filter 200ms linear 0s;
  font-family: 'Lilita One', cursive;
}

.menu a:nth-of-type(1) {
  padding-top: 24px;
}

.menu a:nth-last-of-type(1) {
  border-bottom: none;
}

.menu a:hover {
  filter: brightness(200%);
}

details::before {
  content: "";
  color: var(--secondary);
  position: absolute;
  margin-left: 60px;

  padding: 10px 10px;
  opacity: 0.4;
}

details[open]::before {
  animation: fadeMe 300ms linear forwards;
}

@keyframes menuAnim {
  0% {
    height: 0;
  }

  100% {
    height: 312px;
  }
}

@keyframes fadeMe {
  0% {
    opacity: 0.4;
  }

  100% {
    opacity: 0;
  }
}











/* panel-pink */


.panel-pink {
  position: relative;
  background: var(--secondary) url(img/pattern\ sky.jpg) no-repeat;
  background-size: cover;
}



.panel-pink__text {
  display: flex;
  align-items: center;
  grid-column: 1/9;
  flex-direction: column;


}


/* logo */


.panel-pink__text img {
  margin-left: 20px;
  border: 3px solid var(--dark);
  border-radius: 30px;
  width: 90px;


}

.panel-pink__text img:hover {
  width: 110px;
}

/* fine logo */

.panel-pink__text h1 {
  font-size: 4em;
  color: var(--dark);
  grid-column: 1/9;
}




.panel-pink__dot {
  grid-column: 1/8;

  align-items: center;
  justify-content: center;
}

.dot {

  height: 250px;
  width: 250px;

  border-radius: 100%;
  line-height: 250px;
  text-align: center;
  display: inline-block;
  margin-right: 40px;
  margin-bottom: 40px;

}

.dot:hover {

  size: 2em;
  transform: translateY(-40px);
  transition: cubic-bezier(.19, .83, 1, .42)
}


.dot img {
  border-radius: 100%;
}



/* benvenuto */


.lia__text {
  grid-column: 1/9;
  font-size: 1.3em;
  text-align: center;
  justify-content: center;
  padding-top: 50px;
  color: var(--secondary);
}



/* carousel fashiondesign */



.main-carousel2 {

  padding: 40px 0;
  margin-bottom: 50px;

}

.carousel-cell2 {
  height: 350px;
  width: 350px;
  border-radius: 40%;
  line-height: 500px;
  text-align: center;
  margin-right: 40px;
}










/* book */


#book a {
  grid-column: 1/9;
  display: flex;
  text-align: center;
  justify-content: center;
}

#book h2 {
  color: black;
}




.book__text {
  grid-column: 1/9;
  padding-right: 10px;
  padding-left: 10px;
}

.book__img {
  grid-column: 1/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;


}

.book__img img {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.6);
}







/* about me */



#welcome h1 {
  font-size: 5em;
  color: var(--dark);
  grid-column: 1/9;
  text-align: center;


}

.welcome__text {
  grid-column: 1/5;
  text-align: center;
  display: flex;
  align-items: center;


}

.welcome__img {
  display: flex;
  grid-column: 6/9;
  justify-content: center;
  clip-path: circle();

  flex-direction: column;
  align-items: center;

}

#welcome h2 {
  grid-column: 1/9;
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: 2em;
}

.welcome__text {
  grid-column: 1/9;
  padding-right: 10px;
  padding-left: 10px;
}

.welcome__img {
  grid-column: 1/9;
  min-width: 50%;
}

#formazione h2 {
  grid-column: 1/9;
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: 2em;
}

.formazione__text {
  grid-column: 1/9;
  padding-right: 10px;
  padding-left: 10px;

}

#lingue h2 {
  grid-column: 1/9;
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: 2em;
}

.lingue__text {
  grid-column: 1/9;
  padding-left: 10px;
  padding-right: 10px;
}

/* skills */
#skills h2 {
  display: flex;
  text-align: center;
  padding: 12px;
  justify-content: center;
  font-size: 2em;
}

#skills img {

  height: 60px;

}

#skills li {

  grid-column: span 4;
  text-align: center;
  background: var(--light);
  padding: 12px;
  border: 1px solid var(--light);
  border-radius: 60px;

}

#skills p {
  font-size: 0.8em;
  font-style: italic;

}



.telefono {
  grid-column: 1/9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

.email {
  grid-column: 1/9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

.indirizzo {
  grid-column: 1/9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}


/* magazine */




#progetto h1 {
  grid-column: 1/9;
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: 4em;

  padding-bottom: 20px;
  color: var(--dark);
}



.phone__img {
  display: flex;
  grid-column: 1/9;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding-top: 50px; */
}

.phone__img:hover {

  size: 2em;
  transform: translateY(-70px);
  transition: cubic-bezier(.19, .83, 1, .42)
}

.phone__text {
  grid-column: 2/9;
  font-size: 1.5em;
  color: var(--dark);

}

#panel-purple {
  position: relative;
  background: var(--light) url(img/pattern\ foglie.jpg) no-repeat;
  background-size: cover;
  z-index: 1;
  padding-bottom: 150px;
}






#ambiente h2 {
  grid-column: 1/9;
  display: flex;
  text-align: center;
  justify-content: center;
  padding-bottom: 30px;
  font-size: 2em;
}



.ambiente__text {
  grid-column: 1/9;
  padding-right: 10px;
  padding-left: 10px;
}

.ambiente__img {
  grid-column: 1/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 50px;

}

.ambiente__img img {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.6);
}




/* Carousel*/
.main-carousel {

  padding: 40px 0;

}

.carousel-cell {
  height: 500px;
  width: 350px;
  border-radius: 40%;
  line-height: 500px;
  text-align: center;
  margin-right: 40px;
}


/* portfolio2 */
.cover {
  background: var(--light);
  height: 100vh;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.video__text {
  position: relative;
  z-index: 1;
  color: var(--dark);
  text-align: center;
  font-size: 2em;
}

.video-bg {
  width: 100%;
  height: 80%;
  position: absolute;
  object-fit: cover;
  z-index: 0;
  /* padding-bottom: 50px; */
  background-size: cover;

}

.menu {
  position: relative;
  z-index: 1;
}





.portfoliosection1 h3 {
  color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 30px;


}

.lumos__text {
  text-align: center;
  padding-top: 20px;
  font-style: italic;
  padding-right: 10px;
  padding-left: 10px;
}


.main-carousel3 {

  padding: 40px 0;
  margin-bottom: 70px;

}

.carousel-cell3 {
  height: 300px;
  width: 500px;
  line-height: 500px;
  text-align: center;
  margin-right: 40px;


}


.portfoliosection2,
.portfoliosection3,
.portfoliosection4 h3 {
  color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 8px;


}

.digital__text {
  text-align: center;
  padding-top: 20px;
  font-style: italic;
  padding-right: 10px;
  padding-left: 10px;
}

.main-carousel4 {

  padding: 40px 0;
  margin-bottom: 70px;

}

.carousel-cell4 {
  height: 300px;
  width: 500px;
  line-height: 500px;
  text-align: center;
  margin-right: 40px;

}

.modeling__text {
  text-align: center;
  padding-top: 20px;
  font-style: italic;
  padding-right: 10px;
  padding-left: 10px;
}

.main-carousel5 {

  padding: 40px 0;
  margin-bottom: 70px;

}

.carousel-cell5 {
  height: 300px;
  width: 500px;
  line-height: 500px;
  text-align: center;
  margin-right: 40px;

}

.tred__text {
  text-align: center;
  padding-top: 20px;
  font-style: italic;
  padding-right: 10px;
  padding-left: 10px;
}

.main-carousel6 {

  padding: 40px 0;
  margin-bottom: 70px;

}

.carousel-cell6 {
  height: 300px;
  width: 500px;
  line-height: 500px;
  text-align: center;
  margin-right: 40px;

}





/* footer */
#prefooter {
  position: relative;
  z-index: 1;
  background: var(--dark);

}

footer {
  padding: 30px 0;

}

footer * {
  color: var(--light);
  font-style: italic;
}

.credits {
  grid-column: 1/5;
  display: flex;
  align-items: center;
}

.social {
  grid-column: 6/9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tabbar {
  grid-column: 1/5;
  display: flex;
  align-items: center;
}


/* btt */
.btt {
  position: fixed;
  bottom: 5px;
  right: 10px;

  z-index: 2;
  padding: 5px;
  border-radius: 80%;



}

.btt a {
  color: var(--primary);
  font-size: 2em;
}


@media (min-width:768px) {
  body {
    background: url(img/pois.PNG) no-repeat;
    background-size: cover;



  }

  html,
  body {
    overflow-x: hidden;
  }

  .header {

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2px;
  }



  .lia__text {
    grid-column: 2/8;
    font-size: 1.3em;
    text-align: center;
    justify-content: center;
    padding-top: 50px;
    color: var(--secondary);
  }

  .panel-pink {
    grid-column: 1/9;
  }

  .panel-pink__dot {
    grid-column: 1/6;
  }

  .panel-pink__text {
    grid-column: 6/8;
    flex-direction: row;
  }

  /* logo */


  .panel-pink__text img {
    margin-left: 20px;
    border: 3px solid var(--dark);
    border-radius: 30px;
    width: 110px;


  }

  .panel-pink__text img:hover {
    width: 150px;
  }

  /* fine logo */

  p {
    grid-column: 6/8;
  }

  .tabbar {
    grid-column: 1/9
  }

  /* book */

  #book h2 {
    padding-bottom: 20px;
  }

  .book__text {
    grid-column: 2/5;
    padding-top: 100px;
  }

  .book__img {
    grid-column: 5/9;
  }




  /* about me */

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

  .welcome__img {
    grid-column: 6/9;
    max-width: 100%;
  }

  .lingue__text {
    grid-column: 2/8;
    text-align: center;
    padding-bottom: 50px;
  }



  #skills li {
    grid-column: span 2;
    text-align: center;
    background: var(--light);
    padding: 12px;
    border: 1px solid var(--accent);
    border-radius: 25px;

  }

  #skills p {
    font-size: 1em;
    font-style: italic;

  }

  #skills img {

    height: 80px;

  }

  .telefono {
    grid-column: 1/3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
  }

  .email {
    grid-column: 4/6;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
  }

  .indirizzo {
    grid-column: 7/9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
  }





  /* portfolio */
  .video__text {
    position: relative;
    z-index: 1;
    color: var(--dark);
    text-align: center;
    font-size: 3vw;
  }


  .portfoliosection1 h3 {
    color: var(--accent);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 10px;

  }

  .portfoliosection2,
  .portfoliosection3,
  .portfoliosection4 h3 {
    color: var(--accent);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 8px;

  }


  /* magazine */




  #progetto h1 {
    grid-column: 1/9;
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 4em;
    padding-top: 20px;
    color: var(--dark);
  }

  .phone__img {
    display: flex;
    grid-column: 1/4;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;

  }

  .phone__text {
    padding-top: 100px;
    grid-column: 5/8;

  }

  .ambiente__text {
    grid-column: 2/6;
    padding-top: 50px;
  }

  .ambiente__img {
    grid-column: 6/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


  }

  .ambiente__img img {
    box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.6);
  }







}