/* -------------------------------------------------------------------------------- */
/* ! Base  */
/* -------------------------------------------------------------------------------- */

/* tavolozza */
:root {
  --primary: #ccc9a1;
  --secondary: #f0ffce;
  --accente: rgb(202, 243, 254);
  --light: #f0ffce;
  --dark: rgb(242, 202, 254);
}

* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

/* tipoggrafia */
body {
  font-family: "Inconsolata", sans-serif;
}

h1,
h2,
h3,
h4,
h6 {
  font-family: "Rubik Pixels", sans-serif;
}

h5 {
  font-family: "Inconsolata";
}

p,
ul,
a {
  font-size: 1.2em;
  line-height: 1.2em;
  margin-bottom: 15px;
}

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

p.span {
  font-weight: 900;
  color: var(--secondary);
}

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

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

/* riuso delle classi utili */
.res {
  width: 100%;
  max-width: 600px;
}

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

.site-nav h1 a {
  color: black;
}

/* -------------------------------------------------------------------------------- */
/* ! Mobile first  */
/* -------------------------------------------------------------------------------- */
/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  padding: 20px;
}

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

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

/* navigazione */
.fixed {
  position: fixed;
  background: white;
  width: 100%;
  z-index: 3;
}

.site-nav h1 {
  grid-column: 1/5;
  z-index: 1;
}

.site-nav__menu {
  position: fixed;
  top: 0;
  left: 0;
  max-height: 0;
  overflow: hidden;
  grid-column: 1/9;
}

.site-nav__menu a:hover {
  border-bottom: 1px solid black;
}

.site-nav__menu a {
  color: black;
  font-size: xx-large;
}

.site-nav {
  border: 1px solid rgb(0, 0, 0);
}

/* bio + portfolio */

.site-nav a {
  grid-column: 1/6;
}

.title__page1 h1 {
  color: black;
  grid-column: 1/6;
}

#biografia {
  border-top: 1px solid black;
}

#biografia {
  padding-top: 100px;
  padding-bottom: 80px;
}

.biografia__img {
  justify-content: center;
  grid-column: 6/8;
  flex-direction: column;
  display: flex;
  max-width: 200px;
}

.biografia__img img {
  border: 1px solid black;
}

.biografia__text {
  grid-column: 2/5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.biografia__text p {
  border-left: 1px solid black;
  margin-bottom: 0;
  padding-left: 20px;
}

.biografia__title {
  padding-bottom: 80px;
  grid-column: 1/9;
}

/* studi 
.cover1 {
  background: url(img/spiaggiaerba4_provaok.jpg) no-repeat center center;
} */

.title__studi h2 {
  grid-column: 1/9;
}

#formazione {
  text-align: left;
  background-size: cover;
  gap: 0;
}

.studi__1,
.studi__2,
.studi__3,
.studi__4,
.studi__5 {
  grid-column: 1/9;
  border-top: 1px solid black;

  max-height: 400px;
  text-align: center;
}

.studi__5 {
  border-bottom: 1px solid black;
}

.studi__testo h3 {
  margin: 15px;
  color: rgb(0, 0, 0);
}

.studi__testo p {
  margin: 15px;
  color: black;
  overflow: hidden;
}

.studi__1:hover,
.studi__2:hover,
.studi__3:hover,
.studi__4:hover,
.studi__5:hover,
.studi__6:hover {
  background-color: var(--light);
}

/* lavoro */

#esperienze {
  gap: 0;
}

.title__lavori h2 {
  padding-top: 50px;
  grid-column: 1/9;
}

.lavoro__1 {
  grid-column: 1/9;
  border-top: 1px solid black;
  background-color: transparent;
}

.lavoro__1:hover {
  max-height: 200px;
  background-color: var(--light);
}

.lavoro__2 {
  grid-column: 1/9;
  border-top: 1px solid black;
}

.lavoro__2:hover {
  max-height: 200px;
  background-color: var(--light);
}

.lavoro__3 {
  grid-column: 1/9;
  border-top: 1px solid black;
  background-color: transparent;
}

.lavoro__3:hover {
  max-height: 300px;
  background-color: var(--light);
}

.lavoro__4 {
  grid-column: 1/9;
  border-top: 1px solid black;
  background-color: transparent;
}

.lavoro__4:hover {
  max-height: 400px;
  background-color: var(--light);
}

.lavoro__5 {
  grid-column: 1/9;
  border-top: 1px solid black;
  background-color: transparent;
}

.lavoro__5:hover {
  max-height: 500px;
  background-color: var(--light);
}

.lavoro__6 {
  grid-column: 1/9;
  border-top: 1px solid black;
  background-color: transparent;
}

.lavoro__6:hover {
  max-height: 500px;
  background-color: var(--light);
}

.lavoro__7 {
  grid-column: 1/9;
  border-top: 1px solid black;
  background-color: transparent;
}

.lavoro__7:hover {
  max-height: 500px;
  background-color: var(--light);
}

.lavoro__8 {
  grid-column: 1/9;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  background-color: transparent;
}

.lavoro__8:hover {
  max-height: 500px;
  background-color: var(--light);
}

.lavoro__testo {
  text-align: center;
  margin: 15px;
}

.lavoro__testo p {
  color: black;
}

.lavoro__testo h3 {
  font-size: 20px;
  color: black;
  margin-bottom: 15px;
  text-align: center;
}

.lavoro__testo p:hover {
  color: black;
}

/* welcome */

.cover {
  padding-top: 50px;
  grid-column: 1/9;
  z-index: 0;
  background: var(--secondary) url(img/palazzo_1.jpg) no-repeat center center;
  opacity: 0.7;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 65vh;
  border: 1px solid rgb(0, 0, 0);
  position: relative;
}

.cover__content {
  position: relative;
  z-index: 3;
  color: var(--light);
  text-align: center;
}

.testoanimato {
  overflow: hidden;
  border-right: 0.15em solid var(--light);
  white-space: nowrap;
  animation: typing 3s steps(36, end) forwards;
  width: 200px;
}
@keyframes typing {
  from {
    width: 0px;
  }
  to {
    width: 100%;
  }
}

.open .site-nav__menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  max-height: 100%;
  width: 100%;
  height: 100%;
  background-color: var(--light);
  z-index: 1;
}

.site-nav__hamburger {
  cursor: pointer;
  grid-column: 7/9;
  justify-self: end;
  z-index: 1;
}

#scorrimento__about p {
  background-color: white;
  font-size: 20px;
  font-family: "Inconsolata", sans-serif;
  margin-bottom: -10px;
  margin-top: 8px;
}

#welcome {
  border-top: 1px solid black;
  margin-bottom: 0;
  padding-top: 90px;
  padding-bottom: 50px;
}

.welcome__title h5 {
  grid-column: 1/9;
  text-align: center;
  font-size: 30px;
}

.welcome__title {
  grid-column: 1/9;
}

.welcome__img {
  grid-column: 1/6;
  padding-bottom: 50px;
}

.welcome__img img {
  border: 1px solid black;
}

.welcome1__img {
  grid-column: 2/5;
}

.welcome1__img img {
  border: 1px solid black;
  max-height: 200px;
  max-width: 200px;
}

.welcome2__img {
  grid-column: 5/8;
  max-height: 200px;
  max-width: 200px;
}

.welcome2__img img {
  border: 1px solid black;
  max-height: 200px;
  max-width: 200px;
}

.welcome3__img {
  grid-column: 2/5;
}

.welcome3__img img {
  border: 1px solid black;
  max-height: 200px;
  max-width: 200px;
}

.welcome4__img {
  grid-column: 5/8;
}

.welcome4__img img {
  border: 1px solid black;
  max-height: 200px;
  max-width: 200px;
}

.welcome__link1 {
  grid-column: 7/9;
  text-align: end;
  display: block;
  position: absolute;
  top: 560px;
  right: 20px;
}

.welcome__link__1 a {
  grid-column: 1/9;
  text-align: end;
}

.welcome__link1 a {
  background-color: white;
  color: black;
}

.welcome__link1 a:hover {
  background-color: var(--light);
  color: black;
}

.welcome1__text {
  grid-column: 1/7;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: left;
  padding-bottom: -10px;
}

.welcome1__text h5 {
  font-size: 30px;
  color: var(--light);
  width: 600px;
}

.welcome__text {
  grid-column: 6/9;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testoanimato1 {
  overflow: hidden;
  border-right: 0.15em solid var(--light);
  white-space: nowrap;
  animation: typing 3s steps(36, end) forwards;
  width: 400px;
}
@keyframes typing {
  from {
    width: 0px;
  }
  to {
    width: 100%;
  }
}

.welcome1__text p {
  color: var(--light);
}

.welcome__text p {
  margin-bottom: 0;
}

.welcome__link a {
  grid-column: 1/9;
  text-align: end;
  color: black;
}

.welcome__text__2 {
  grid-column: 1/6;
  border-left: 1px solid black;
  padding-left: 10px;
}

.welcome__text__2 p,
.welcome__text__3 p,
.welcome__text__4 p {
  margin-bottom: 0;
  gap: 30px;
}

.welcome__text__3 {
  grid-column: 2/7;
  border-left: 1px solid black;
  padding-left: 10px;
}
.welcome__text__4 {
  grid-column: 3/8;
  border-left: 1px solid black;
  padding-left: 10px;
}

#welcome a:hover {
  background-color: var(--light);
  color: black;
  width: 170px;
}

.welcome__text__2 a {
  margin-bottom: 0;
}

#welcome .welcome__text__2 p a:hover {
  color: var(--light);
  background-color: transparent;
  width: 134px;
  background-color: black;
  opacity: 0.7;
}

.site-nav__hamburger .fa-bars-staggered {
  font-size: 2em;
}

#welcome h2 {
  grid-column: 1/9;
}

/* project */

.project__title h2 {
  grid-column: 1/9;
  text-align: center;
}

.ultimo__progetto__title h5 {
  grid-column: 1/4;
  font-size: 20px;
  padding-top: 50px;
  width: 290px;
  border-bottom: 1px solid black;
}

.ultimo__progetto__title {
  border-top: 1px solid black;
}

.ultimo__progetto__text {
  padding-top: 70px;
  grid-column: 1/9;
  text-align: center;
}

.spazio p {
  color: transparent;
}

.spazio1 p {
  color: transparent;
  height: 20px;
}

.ultimo__progetto__text p {
  font-size: 35px;
}

#ultimo__progetto {
  max-height: 1000px;
}

#ultimo__progetto .slider-container {
  grid-column: 2/8;
}

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

.ultimo__progetto__descrizione p {
  font-size: medium;
  padding-left: 20px;
  border-top: 1px solid black;
  padding-top: 20px;
  grid-column: 2/8;
}

.ultimo__progetto__img img {
  grid-column: 2/8;
  align-items: center;
}

.welcome__link a:hover {
  color: black;
  background-color: var(--light);
}

/* slider foto 1 */

.slider-container {
  width: 400px;
  height: 500px;
  background-color: transparent;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
  text-align: center;
  overflow: hidden;
}

.image-container {
  padding-top: 100px;
  width: 3000px;
  background-color: transparent;
  height: 400px;
  clear: both;
  position: relative;

  -webkit-transition: left 1s;
  -moz-transition: left 1s;
  -o-transition: left 1s;
  transition: left 1s;
}

#slider-image-1:target ~ .image-container {
  left: 0px;
}
#slider-image-2:target ~ .image-container {
  left: -480px;
}
#slider-image-3:target ~ .image-container {
  left: -900px;
}

#slider-image-4:target ~ .image-container {
  left: -1300px;
}

#slider-image-5:target ~ .image-container {
  left: -1710px;
}
#slider-image-6:target ~ .image-container {
  left: -2110px;
}
#slider-image-7:target ~ .image-container {
  left: -2520px;
}

.button-container {
  grid-column: 3/7;
  position: relative;
  text-align: center;
  top: -20px;
}
.slider-change {
  display: inline-block;
  height: 10px;
  width: 10px;
  background-color: black;
}

/* fine slider foto 1 */

.project__title {
  background-color: var(--light);
  border-top: 1px solid black;
}

.event__testo__latest {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  text-align: center;
  background-color: white;
}

/* .event__testo__latest:hover { 
  background-color: var(--light);
} */

.event__testo__latest p {
  margin-top: 15px;
}

.cover__project {
  grid-column: 1/9;
  z-index: 0;
  background: var(--secondary) url(img/img_progetti_1.jpg) no-repeat center
    center;
  opacity: 0.7;
  background-size: cover;
  display: flex;
  align-items: end;
  height: 75vh;
  border: 1px solid rgb(0, 0, 0);
}

.cover__project {
  position: relative;
  z-index: 2;
  color: black;
  text-align: center;
}

.project__text {
  grid-column: 1/9;
  text-align: left;
  opacity: 0%;
  padding: 5px;
  background-color: black;
  color: var(--light);
  border: 1px solid white;
}

.project__text p {
  font-size: large;
  margin: 10px;
}

.project__text:hover {
  opacity: 100%;
}

.event__testo p {
  text-align: center;
  margin-top: 15px;
}

.event__img img {
  border: 1px solid black;
}
.cover__project a {
  grid-column: 7/9;
  font-size: large;
  display: flex;
  text-align: center;
  justify-content: center;
  color: var(--light);
  background-color: black;
  height: 20px;
  width: 200px;
}

.cover__project a:hover {
  color: black;
  background-color: white;
}

#project h3 {
  grid-column: 5/9;
  display: flex;
  justify-content: left;
  color: var(--light);
  font-size: x-large;
}

.project__subtitle {
  grid-column: 1/9;
  border: solid 1px var(--light);
  background-color: black;
  height: 45px;
  width: 200px;
}

#project h6 {
  font-size: large;
  color: var(--light);
  margin: 10px;
  text-align: center;
}

#welcome.grid {
  border-bottom: 1px solid rgb(0, 0, 0);
}

/* other */

.other__1 {
  grid-column: 1/7;
  background-color: var(--light);
  border: 1px solid black;
}

.other__2 {
  grid-column: 7/13;
  background-color: var(--light);
  border: 1px solid black;
}

.other__3 {
  grid-column: 1/7;
  background-color: var(--light);
  border: 1px solid black;
}

.other__4 {
  grid-column: 7/13;
  background-color: var(--light);
  border: 1px solid black;
}

.other__5 {
  grid-column: 1/7;
  background-color: var(--light);
  border: 1px solid black;
}

.other__6 {
  grid-column: 7/13;
  background-color: var(--light);
  border: 1px solid black;
}

.other__1 img,
.other__2 img,
.other__3 img,
.other__4 img,
.other__5 img,
.other__6 img {
  filter: grayscale();
}

.other__1:hover,
.other__2:hover,
.other__3:hover,
.other__4:hover,
.other__5:hover,
.other__6:hover {
  background-color: transparent;
  border: 1px solid black;
}

.other__1 img:hover,
.other__2 img:hover,
.other__3 img:hover,
.other__4 img:hover,
.other__5 img:hover,
.other__6 img:hover {
  filter: none;
}

#other__project {
  border-bottom: 1px solid rgb(0, 0, 0);
  border-top: 1px solid rgb(0, 0, 0);
  padding-bottom: 130px;
  padding-top: 30px;
}

#event h2 {
  grid-column: 1/9;
}

.event__testo {
  grid-column: 1/9;
}

.event__img a {
  grid-column: 1/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
  /* justify-content: center; */
}

/* articoli */

#articoli {
  padding-top: 80px;
  padding-bottom: 100px;
  border-top: 1px soli black;
  margin-top: -40px;
}

.cover__articoli {
  grid-column: 1/9;
  z-index: 0;
  background: var(--secondary) url(img/articolo_1_foto.jpeg) no-repeat center
    center;
  opacity: 0.7;
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 45vh;
  border: 1px solid rgb(0, 0, 0);
  position: relative;
}

.bordo {
  border: 1px solid black;
}

.cover__articolo-1 {
  position: relative;
  z-index: 3;
  color: var(--light);
  display: flex;
  justify-content: left;
  text-align: center;
}

.articoli__title {
  border-bottom: 1px solid black;
  border-right: 1px solid black;
  border-left: 1px solid black;
  background-color: var(--light);
}
.articoli__title h2 {
  grid-column: 1/9;
  text-align: center;
}

.articolo__1 {
  grid-column: 1/9;
}

.cover__articolo-1 p {
  color: black;
  text-align: left;
  line-height: 24px;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  margin-right: 195px;
  justify-content: first baseline;
}

.cover__link-1 a {
  color: var(--light);
  text-align: right;
  line-height: 24px;
  background-color: rgb(26, 26, 26);
  box-shadow: none;
}

.cover__link-1 a:hover {
  color: black;
  font-style: bold;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
}

.cover__link-1 {
  margin-top: 180px;
  display: flex;
  justify-content: end;
  text-align: end;
}

.cover__articoli_CF {
  grid-column: 1/9;
  z-index: 0;
  background: var(--secondary) url(img/articolo_2_foto.jpg) no-repeat center
    center;
  opacity: 0.7;
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 45vh;
  border: 1px solid rgb(0, 0, 0);
  position: relative;
}

.cover__articolo-2 p {
  color: black;
  text-align: left;
  line-height: 24px;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  margin-right: 195px;
  justify-content: first baseline;
}

.cover__link-2 a {
  color: var(--light);
  text-align: right;
  line-height: 24px;
  background-color: rgb(26, 26, 26);
  box-shadow: none;
}

.cover__link-2 a:hover {
  color: black;
  font-style: bold;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
}

.cover__link-2 {
  margin-top: 190px;
  display: flex;
  justify-content: end;
  text-align: end;
}

.cover__articoli_SLG {
  grid-column: 1/9;
  z-index: 0;
  background: var(--secondary) url(img/articolo_3_foto.jpeg) no-repeat center
    center;
  opacity: 0.7;
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 45vh;
  border: 1px solid rgb(0, 0, 0);
  position: relative;
}

.cover__articolo-3 p {
  color: black;
  text-align: left;
  line-height: 24px;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  margin-right: 195px;
  justify-content: first baseline;
}

.cover__link-3 a {
  color: var(--light);
  text-align: right;
  line-height: 24px;
  background-color: rgb(26, 26, 26);
  box-shadow: none;
}

.cover__link-3 a:hover {
  color: black;
  font-style: bold;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
}

.cover__link-3 {
  margin-top: 190px;
  display: flex;
  justify-content: end;
  text-align: end;
}

.cover__articoli_LUN {
  grid-column: 1/9;
  z-index: 0;
  background: var(--secondary) url(img/articolo_4_foto.jpeg) no-repeat center
    center;
  opacity: 0.7;
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 45vh;
  border: 1px solid rgb(0, 0, 0);
  position: relative;
}

.cover__articolo-4 p {
  color: black;
  text-align: left;
  line-height: 24px;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  margin-right: 195px;
  justify-content: first baseline;
}

.cover__link-4 a {
  color: var(--light);
  text-align: right;
  line-height: 24px;
  background-color: rgb(26, 26, 26);
  box-shadow: none;
}

.cover__link-4 a:hover {
  color: black;
  font-style: bold;
  background-color: #ffffff;
  box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
}

.cover__link-4 {
  margin-top: 190px;
  display: flex;
  justify-content: end;
  text-align: end;
}

/* portfolio */
#portfolio {
  position: relative;
  background: var(--dark) url(img/palazzo_1.jpg) no-repeat;
  background-size: cover;
}

#portfolio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light);
  opacity: 0.6;
}

#portfolio h2 {
  position: relative;
  z-index: 1;
  color: var(--primary);
  text-align: center;
  padding: 12px;
}

.portfolio__projects a {
  grid-column: 1/9;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* l'asterisco è sia per le immagini che per l'h3, è il selettore jolly */
.portfolio__projects a * {
  max-width: 50%;
  display: block;
  z-index: 1;
  margin: 5px;
}

.portfolio__projects h3 {
  color: white;
  border: 1px solid var(--primary);
  background: var(--primary);
  padding: 12px;
  text-align: center;
  border-radius: 12px;
}

.portfolio__projects h3:hover {
  border: 1px solid white;
  background: none;
}

/* skills */

.title__linguaggi h2 {
  grid-column: 1/9;
}

#skills {
  /* background: url(img/spiaggiaerba1_low.jpg) no-repeat center center; 
  background-size: cover; */
  background-color: transparent;
}

#skills h2 {
  text-align: center;
  padding: 12px;
}

#skills h3 {
  font-size: 16px;
}

#skills img {
  height: 80px;
  min-width: 80px;
}

#skills li {
  grid-column: span 2;
  text-align: center;
  background: var(--light);

  padding: 12px;
  border: 1px solid black;
}

/* footer */

.btt {
  padding: 20px;
  padding-bottom: 40px;
  text-align: center;
}

footer {
  background-color: var(--light);
  height: 60 0px;
  font-family: "Inconsolata", sans-serif;
  color: black;
  align-items: center;
  margin-top: 20px;
}

footer a {
  font-size: 1.1em;
  color: black;
}

footer p {
  font-size: 1.1em;
}

.footer__contatti,
.footer__fondazione,
.footer__offerta {
  padding-left: 50px;
  display: inline-block;
  justify-content: space-between;
  margin-right: 20px;
  margin-left: 20px;
  margin-bottom: 40px;
}

.footer__info {
  padding-left: 50px;
  border: 1px solid black;
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  display: inline-block;
  margin-right: 20px;
  margin-left: 85px;
  margin-bottom: 40px;
  width: 250px;
}

.footer__info p {
  text-align: center;
}

.footer__info a {
  font-size: medium;
}

/* tabbar */
.tabbar {
  height: 100px;
  width: 100%;
  position: relative;
  background-color: var(--light);
}

.tabbar__menu {
  display: flex;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100px;
  background: var(--light);
  padding-top: 30px;
}

.tabbar a {
  font-size: 2em;
  color: black;
  border-radius: 100%;
  background: var(--light);
  padding: 15px;
}

.tabbar a:is(:hover, :focus) {
  font-size: 3.5em;
  transform: translateY(-20px);
  transition: 100ms cubic-bezier(0.13, 0.87, 0.8, 0.36);
}

/* -------------------------------------------------------------------------------- */
/* ! Pagina progetti */
/* -------------------------------------------------------------------------------- */

#pagprogetti {
  border-top: 1px solid black;
}

#pagprogetti__content {
  padding-top: 60px;
}

.pagprogetti__img {
  grid-column: 5/9;
  display: flex;
  justify-content: center;
  text-align: center;
}

.pagprogetti__img img {
  filter: grayscale(0.5);
  display: flex;
  justify-content: center;
  text-align: center;
  width: 250px;
  height: 250px;
}

.pagprogetti__img img:hover {
  border: 1px solid var(--light);
  filter: none;
}

.pagprogetti__text {
  padding-top: 10px;
  grid-column: 1/5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pagprogetti__text p {
  border-left: 1px solid black;
  margin-bottom: 0;
  padding-left: 20px;
}

#freccia {
  position: fixed;
  top: 15px;
  left: 15px;
}

.pagprogetti__title {
  padding-top: 25px;
  padding-bottom: 25px;
  display: flex;
  justify-content: center;
  text-align: center;
  background-color: white;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.pagprogetti__title p {
  margin-bottom: 0;
  margin-left: 10px;
  font-size: x-large;
  color: black;
}

.pagprogetti__title a {
  color: black;
}

.pagprogetti__title p a:hover {
  border-bottom: 1px solid black;
  margin-bottom: 0;
}

#pagprogetti__1 {
  padding-top: 130px;
}

.pagprogetti__subtitle {
  font-size: 50px;
}

.sotto__progetto {
  padding-top: 30px;
  grid-column: 1/9;
  display: flex;
  justify-content: left;
}

.sotto__progetto__1 {
  margin-right: 50px;
}

.sotto__progetto p,
a {
  color: black;
  font-size: x-large;
}

.sotto__progetto a:hover {
  border-bottom: 1px solid black;
}

.sotto__content__title {
  padding-top: 40px;
  grid-column: 1/9;
  font-size: 20px;
}

.sotto__content__title2 {
  padding-top: 40px;
  grid-column: 1/9;
  font-size: 20px;
}

.sotto__img1 {
  grid-column: 2/7;
}

.sotto__img2 {
  grid-column: 1/6;
  padding-top: 10px;
}

.sotto__img3 {
  grid-column: 4/9;
}

.sotto__text1 {
  padding-top: 50px;
  padding-bottom: 50px;
  grid-column: 2/8;
}

.sotto__text1 p {
  padding-bottom: 30px;
  border-bottom: 1px solid black;
}

.sotto__img1 img,
.sotto__img3 img,
.sotto__img3_2 img {
  filter: grayscale();
}

.sotto__img2 img {
  border-bottom: 10px solid var(--light);
}

.sotto__img1 img:hover,
.sotto__img2 img:hover,
.sotto__img3 img:hover,
.sotto__img3_2 img:hover,
.sotto__img3_1 img:hover,
.sotto__img2_2 img:hover {
  filter: none;
  border: 3px solid var(--light);
}

.pagprogetti__img img:hover {
  border: 1px solid var(--light);
  filter: none;
}

.sotto__img3_1 {
  grid-column: 2/5;
}

.sotto__img2_2 img {
  border-bottom: 10px solid var(--light);
}

.sotto__img3_2 {
  grid-column: 5/8;
}

.sotto__img2_2 {
  grid-column: 3/7;
}

.sotto__img5 {
  grid-column: 1/9;
  display: flex;
  justify-content: center;
  text-align: center;
}

.sotto__img5 img {
  filter: grayscale();
}

.sotto__img5 img:hover {
  filter: grayscale(0.3);
  border: 3px solid var(--light);
}

/* -------------------------------------------------------------------------------- */
/* ! Media Query PC */
/* -------------------------------------------------------------------------------- */

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

  .header__icon {
    display: block;
    color: var(--secondary);
    z-index: 5;
  }

  .welcome__link a {
    grid-column: 1/9;
    text-align: end;
    color: black;
  }

  .welcome__link1 {
    bottom: 50px;
  }

  .welcome__img {
    grid-column: 1/5;
    display: flex;
    justify-content: center;
  }

  .welcome__text {
    grid-column: 5/9;
    margin: 15px;
  }

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

  .welcome__text__3 {
    grid-column: 2/7;
  }

  .welcome__text__4 {
    grid-column: 3/8;
  }

  .welcome__text__2,
  .welcome__text__3,
  .welcome__text__4 {
    font-size: 18px;
  }

  .welcome__link {
    grid-column: 6/9;
    font-size: medium;
    text-align: end;
  }

  .biografia__text {
    grid-column: 2/5;
  }

  .other__1 {
    grid-column: 1/5;
  }

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

  .other__3 {
    grid-column: 9/13;
  }

  .other__4 {
    grid-column: 1/5;
  }

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

  .other__6 {
    grid-column: 9/13;
  }

  #articoli {
    padding-top: 80px;
  }

  .cover__articoli {
    grid-column: 1/5;
    z-index: 0;
    background: var(--secondary) url(img/articolo_1_foto.jpeg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .cover__articolo-1 {
    position: relative;
    z-index: 3;
    color: var(--light);
    display: flex;
    justify-content: left;
    text-align: center;
  }

  .articoli__title {
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    border-left: 1px solid black;
    background-color: var(--light);
  }
  .articoli__title h2 {
    grid-column: 4/6;
    text-align: center;
  }

  .articolo__1 {
    grid-column: 1/9;
  }

  .cover__articolo-1 p {
    color: black;
    text-align: left;
    line-height: 24px;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
    margin-right: 195px;
    justify-content: first baseline;
  }

  .cover__link-1 a {
    color: var(--light);
    text-align: right;
    line-height: 24px;
    background-color: rgb(26, 26, 26);
    box-shadow: none;
  }

  .cover__link-1 a:hover {
    color: black;
    font-style: bold;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  }

  .cover__link-1 {
    margin-bottom: 180px;
    display: flex;
    justify-content: end;
    text-align: end;
  }

  .cover__articoli_CF {
    grid-column: 5/9;
    z-index: 0;
    background: var(--secondary) url(img/articolo_2_foto.jpg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .cover__articolo-2 p {
    color: black;
    text-align: left;
    line-height: 24px;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
    margin-right: 195px;
    justify-content: first baseline;
  }

  .cover__link-2 a {
    color: var(--light);
    text-align: right;
    line-height: 24px;
    background-color: rgb(26, 26, 26);
    box-shadow: none;
  }

  .cover__link-2 a:hover {
    color: black;
    font-style: bold;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  }

  .cover__link-2 {
    margin-top: 190px;
    display: flex;
    justify-content: end;
    text-align: end;
  }

  .cover__articoli_SLG {
    grid-column: 1/5;
    z-index: 0;
    background: var(--secondary) url(img/articolo_3_foto.jpeg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .cover__articolo-3 p {
    color: black;
    text-align: left;
    line-height: 24px;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
    margin-right: 195px;
    justify-content: first baseline;
  }

  .cover__link-3 a {
    color: var(--light);
    text-align: right;
    line-height: 24px;
    background-color: rgb(26, 26, 26);
    box-shadow: none;
  }

  .cover__link-3 a:hover {
    color: black;
    font-style: bold;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  }

  .cover__link-3 {
    margin-top: 190px;
    display: flex;
    justify-content: end;
    text-align: end;
  }

  .cover__articoli_LUN {
    grid-column: 5/9;
    z-index: 0;
    background: var(--secondary) url(img/articolo_4_foto.jpeg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .cover__articolo-4 p {
    color: black;
    text-align: left;
    line-height: 24px;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
    margin-right: 195px;
    justify-content: first baseline;
  }

  .cover__link-4 a {
    color: var(--light);
    text-align: right;
    line-height: 24px;
    background-color: rgb(26, 26, 26);
    box-shadow: none;
  }

  .cover__link-4 a:hover {
    color: black;
    font-style: bold;
    background-color: #ffffff;
    box-shadow: 4px 0 0 2px white, -4px 0 0 2px white;
  }

  .cover__link-4 {
    margin-top: 190px;
    display: flex;
    justify-content: end;
    text-align: end;
  }

  .sotto__img3_1 {
    grid-column: 1/3;
  }

  .sotto__img3_1 img {
    border-bottom: 10px solid var(--light);
  }

  .sotto__img3_2 {
    grid-column: 4/6;
  }

  .sotto__img2_2 {
    grid-column: 7/9;
  }

  .pagprogetti__img {
    grid-column: 5/9;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .ultimo__progetto__img img {
    grid-column: 2/8;
    align-items: center;
    margin: auto;
  }

  .pagprogetti__title {
    padding-top: 25px;
    padding-bottom: 25px;
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: white;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Media Query tablet */
/* -------------------------------------------------------------------------------- */

@media (max-width: 870px) {
  .footer__contatti {
    grid-column: 1/9;
  }

  .ultimo__progetto__img img {
    grid-column: 2/8;
    align-items: center;
  }

  .footer__section {
    grid-column: 1/9;
  }

  .footer__social {
    grid-column: 1/9;
  }

  .biografia__img {
    padding-top: 40px;
    grid-column: 4/8;
    margin: auto;
    max-width: 200px;
  }

  .biografia__text {
    grid-column: 1/8;
  }

  .welcome__link1 {
    bottom: 50px;
  }

  .cover__articoli {
    grid-column: 1/9;
    z-index: 0;
    background: var(--secondary) url(img/articolo_1_foto.jpeg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .cover__articoli_CF {
    grid-column: 1/9;
    z-index: 0;
    background: var(--secondary) url(img/articolo_2_foto.jpg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .cover__articoli_SLG {
    grid-column: 1/9;
    z-index: 0;
    background: var(--secondary) url(img/articolo_3_foto.jpeg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .cover__articoli_LUN {
    grid-column: 1/9;
    z-index: 0;
    background: var(--secondary) url(img/articolo_4_foto.jpeg) no-repeat center
      center;
    opacity: 0.7;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 45vh;
    border: 1px solid rgb(0, 0, 0);
    position: relative;
  }

  .pagprogetti__img {
    grid-column: 4/9;
    padding-top: 40px;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .pagprogetti__text {
    grid-column: 1/9;
  }

  .welcome__link {
    grid-column: 1/9;
    text-align: end;
    color: black;
  }

  .welcome__text__2,
  .welcome__text__3,
  .welcome__text__4 {
    grid-column: 1/9;
  }
}

@media (min-width: 1028px) {
  /* skills */

  #skills li {
    grid-column: span 1;
    text-align: center;
    background: var(--light);

    padding: 12px;
    border: 1px solid black;
  }

  .welcome1__img {
    grid-column: 1/3;
  }

  .welcome1__img img {
    border: 1px solid black;
    max-height: 300px;
    max-width: 300px;
  }

  .welcome2__img {
    grid-column: 3/5;
    max-height: 300px;
    max-width: 300px;
  }

  .welcome2__img img {
    border: 1px solid black;
    max-height: 300px;
    max-width: 300px;
  }

  .welcome3__img {
    grid-column: 5/7;
  }

  .welcome3__img img {
    border: 1px solid black;
    max-height: 300px;
    max-width: 300px;
  }

  .welcome4__img {
    grid-column: 7/9;
  }

  .welcome4__img img {
    border: 1px solid black;
    max-height: 300px;
    max-width: 300px;
  }

  .sotto__img1 {
    grid-column: 1/5;
    text-align: center;
  }

  .sotto__img2 {
    grid-column: 5/9;
    padding-top: 60px;
    text-align: center;
  }

  .sotto__img3 {
    padding-right: 30px;
    grid-column: 6/9;
  }
}

@media (max-width: 870px) {
  .footer__info {
    margin-left: 20px;
  }

  .welcome__link1 {
    top: 650px;
  }

  .welcome__link a {
    grid-column: 1/9;
    text-align: end;
    color: black;
  }

  .welcome__text__2 p,
  .welcome__text__3 p,
  .welcome__text__4 p {
    grid-column: 2/8;
  }

  .footer__contatti,
  .footer__fondazione,
  .footer__offerta {
    padding-left: 10px;
  }

  .pagprogetti__title a {
    font-size: 15px;
  }
}

@media (max-width: 550px) {
  #skills li {
    grid-column: span 4;
    text-align: center;
  }

  .other__1,
  .other__2,
  .other__3,
  .other__4,
  .other__5,
  .other__6 {
    grid-column: 1/13;
  }

  .cover__articoli,
  .cover__articoli_CF,
  .cover__articoli_LUN,
  .cover__articoli_SLG {
    min-height: 470px;
  }

  .pagprogetti__img,
  .sotto__img1,
  .sotto__img2,
  .sotto__img2_2,
  .sotto__img3,
  .sotto__img3_1,
  .sotto__img3_2,
  .sotto__img5 {
    grid-column: 1/9;
  }
}
