/* I MIEI LIBRI */ /* I MIEI LIBRI */ /* I MIEI LIBRI */
.projects{
  padding-top: 125px;
  overflow: hidden;
}

.projects__title,
.projects__under_title{
  text-align: center;
  padding-bottom: 2rem;
}

.projects__container{
  row-gap: 2rem;
}

.portfolio-content{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.row img{
  height: auto;
  width: 100%;
  border-radius: 0.5rem;
  transition: all 1s cubic-bezier(.215, .61, .355, 1);
}

.row{
  padding: 25px;
  /* background: var(--clr-body-light); */
  border-radius: 0.5rem;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.row h3{
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.row h6{
  color: var(--main-color);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

.row p{
  text-align: justify;
  margin-bottom: 40px;
}

.row-icon i{
  font-size: 21px;
}

.row img:hover{
  cursor: pointer;
  transform: scale(1.1);
}

.custom-btn{
  width: 130px;
  height: 40px;
  color: #fff;
  border-radius: 5px;
  padding: 10px 25px;
  font-family: 'Lato', sans-serif;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
   box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
   7px 7px 20px 0px rgba(0,0,0,.1),
   4px 4px 5px 0px rgba(0,0,0,.1);
  outline: none;
}
/* 3 */
.btn-3 {
  background: rgb(42,105,202);
  width: 130px;
  height: 40px;
  line-height: 42px;
  padding: 0;
  border: none;
  text-align: center;
}

.btn-absolute{
  position: absolute !important;
  bottom: 10px !important;
}

.btn-3 span {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.btn-3:before,
.btn-3:after {
  position: absolute;
  content: "";
  right: 0;
  top: 0;
   background: rgba(2,126,251,1);
  transition: all 0.3s ease;
}

.btn-3:before {
  height: 0%;
  width: 2px;
}

.btn-3:after {
  width: 0%;
  height: 2px;
}

.btn-3:hover{
   background: transparent;
  box-shadow: none;
}

.btn-3:hover:before {
  height: 100%;
}

.btn-3:hover:after {
  width: 100%;
}

.btn-3 span:hover{
   color: rgba(2,126,251,1);
}

.btn-3 span:before,
.btn-3 span:after {
  position: absolute;
  content: "";
  left: 0;
  bottom: 0;
   background: rgba(2,126,251,1);
  transition: all 0.3s ease;
}

.btn-3 span:before {
  width: 2px;
  height: 0%;
}

.btn-3 span:after {
  width: 0%;
  height: 2px;
}

.btn-3 span:hover:before {
  height: 100%;
}

.btn-3 span:hover:after {
  width: 100%;
}
/*----------- SMARTPHONE/TABLET -----------*/
@media screen and (max-width: 768px) {

  .portfolio-content{
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    justify-content: center;
  }

  .row {
    padding: 15px;
  }

  .row img:hover{
    cursor: pointer;
    transform: scale(1);
  }

  .btn-absolute{
    bottom: 5px !important;
  }

  .row h3{
    font-size: 15px;
    text-align: center;
  }
  
  .row h6{
    color: var(--main-color);
    font-size: 10px;
  }
  
  .row-icon i{
    font-size: 16px;
  }

  .row p{
    text-align: center;
  }
}
@media screen and (max-width: 375px) {

  .portfolio-content{
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    justify-content: center;
  }
}