h4 {
  opacity: 0.6;
}

.singoloProgramma p {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1;
  margin-top: 15px;
}

/*inizio sezione about*/
#sezioneAbout {
  display: grid;
  grid-template-columns: 4fr 1fr 3fr;
  margin: 10% auto 5% auto;
}

#colSinAbout {
  grid-column: 1; /* occupa le 4fr */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#colDexAbout {
  grid-column: 3; /* occupa le 3fr, salta la colonna centrale */
}

#colDexImgAbout {
  grid-column: 3; /* occupa le 3fr, salta la colonna centrale */
  background-image: url(/img/homepage/foto-cv.webp);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 60vh;
}
/*fine sezione about*/

.grigliaProgrammi,
#esperienzaLavorativa li,
#stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 13%;
  margin-top: 5%;
  margin-bottom: 5%;
}

.descrizioneRuolo {
  margin-top: 15px;
}

#esperienzaLavorativa li:not(:last-of-type) {
  border-bottom: solid 1px #222;
  padding-bottom: 5%;
  position: relative;
}

#esperienzaLavorativa li:not(:last-of-type)::after,
.singoloProgramma::after {
  --size: 16px;
  --border: 1px;

  position: absolute;
  content: "";

  width: var(--size);
  height: var(--size);

  border: solid var(--border) #222;
  border-radius: 50%;

  right: calc((var(--size) + var(--border) * 2) / -2);
  bottom: calc((var(--size) + var(--border) * 2) / -2);
}

/* line cutting through circle */
#esperienzaLavorativa li:not(:last-of-type)::before,
.singoloProgramma::before {
  content: "";
  position: absolute;

  width: 40px;
  height: 1px;
  background: #222222;

  right: -20px;
  bottom: -1px;

  z-index: 2;
  transition: transform 0.6s ease;
  transform-origin: center;
}

#esperienzaLavorativa li:not(:last-of-type):hover::before,
.singoloProgramma:hover::before {
  transform: rotate(180deg);
}

#introAbout {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#introAbout h1 {
  padding-top: 5%;
  width: 30%;
  font-family: "Space Mono", monospace;
  font-weight: 400;
  font-size: var(--fontSize-h1);
}

#introAbout h2 {
  width: 90%;
  padding-left: 13%;
  font-family: "Manrope", sans-serif;
  font-weight: 400;
  font-size: var(--fontSize-h2);
}

#about #sezioneAbout {
  margin-top: 0;
  margin-bottom: 5%;
}

.ruolo::after {
  height: 0;
}

.imgWrapper {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 7px;
  overflow: hidden;
  background: #222;
}

/* MOVING GRAIN LAYER */
.imgWrapper::before {
  content: "";
  position: absolute;
  inset: -50%;

  background-image: url("/img/icone programmi/texture/grain noise.jpg");
  background-repeat: repeat;
  background-size: 80px;
  opacity: 0.6;
  animation: grainMove 6s steps(8) infinite;
  z-index: 1;
  pointer-events: none;
}

/* IMAGE */
.imgProgramma {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* HOVER */
.singoloProgramma {
  filter: grayscale(1);
  transition: filter 0.3s;
  margin: 30px 0;
}

.singoloProgramma:hover {
  filter: grayscale(0);
}

.singoloProgramma img {
  opacity: 0.4;
  transition: opacity 0.3s;
}

.singoloProgramma:hover img {
  opacity: 1;
}

/* GRAIN ANIMATION */
@keyframes grainMove {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-5%, 5%);
  }
  40% {
    transform: translate(-10%, -5%);
  }
  60% {
    transform: translate(5%, 10%);
  }
  80% {
    transform: translate(10%, -5%);
  }
  100% {
    transform: translate(0, 0);
  }
}
