@charset "utf-8";
/* CSS Document */

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

body {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2em;
  color: #31342B;
}

#corsi-sa {
  text-align:center;
}

#corsi-sa p {
  margin:10px;
}

#corsi-sa img.logo {
  height: 100px;
  width: auto;
}

#corsi-sa a,
#corsi-sa a:visited {
  color: #31342B;
}

#corsi-sa a:hover,
#corsi-sa a:active {
  color: #2b823c;
}

#corsi-sa h2 a.item-list,
#corsi-sa h2 a.item-grid {
  cursor: pointer;
  float: right;
  color: #82bd8d;
}

#corsi-sa h2 a.item-list:hover,
#corsi-sa h2 a.item-list.active,
#corsi-sa h2 a.item-grid:hover,
#corsi-sa h2 a.item-grid.active {
    color: #2b823c;
    text-decoration: none;
}

#corsi-sa h2 a.item-list::before,
#corsi-sa h2 a.item-grid::before {
  font-family: "Font Awesome 5 Free";
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  position: relative;
  content: "\f03a";
}

#corsi-sa h2 a.item-list::before {
  content: "\f03a";
  margin-right: 10px;
}

#corsi-sa h2 a.item-grid::before {
  content: "\f00a";
}

#corsi-sa ul#corsi-grid {
  list-style-type: none;
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(1, 1fr);
  padding-left: 0;
}

@media (min-width: 1024px) {
  #corsi-sa ul#corsi-grid {
    grid-gap: 50px;
    grid-template-columns: repeat(3, 1fr);
  }
}

#corsi-sa ul#corsi-grid li {
  position: relative;
  padding-bottom: 60px;  
  background-color: #fff;
  transition: all .5s ease-out;
}

#corsi-sa ul#corsi-grid li:hover {
}

#corsi-sa ul#corsi-grid li h4 {
  padding: 10px 0;
  line-height:1.3em;
  font-size: 1em;
  font-weight:300;
  width: 70%;
  text-align:left;
}

#corsi-sa ul#corsi-grid li img.cover {
  width: 100%;
  transition: all .5s ease-in;
}

#corsi-sa ul#corsi-grid li:hover img.cover {
  width: 100%;
  filter: grayscale(100%) sepia(100%) hue-rotate(90deg); 
  opacity: 1;
  transition: all .5s ease-in;
}

#corsi-sa ul#corsi-grid li .box-price {
  display: none;
}

#corsi-sa ul#corsi-grid li:hover .box-price {
  display: none;
}

#corsi-sa ul#corsi-grid li .box-buy {
  position: absolute;
  bottom:0;
  padding: 0;
}

#corsi-sa ul#corsi-grid li:hover .box-buy {
  
}

#corsi-sa ul#corsi-grid li .box-buy a.button,
#corsi-sa ul#corsi-grid li .box-buy a.button:visited {
  cursor: pointer;
  padding: 10px;
  display: block;
  background: #fff;
  border: 1px solid;
  font-weight: 300;
  transition: all .5s ease-out;
}

#corsi-sa ul#corsi-grid li:hover .box-buy a.button:hover,
#corsi-sa ul#corsi-grid li:hover .box-buy a.button:active {
  color: #fff;
  background: #2b823c;
  border-color: #2b823c;
  transition: all .5s ease-out;
}

#corsi-sa ul#corsi-grid li::after {
  content: '';
  height: 180px;
  width: 35%;
  background-image: url(https://sicuragricola.it/css/assets/teacher.png);
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top right;
  filter: grayscale(100%) sepia(100%) hue-rotate(90deg);
  transition: all .5s ease-in;
}

#corsi-sa ul#corsi-grid li:hover::after {
  height: 230px;
  width: 40%;
  right: -10px;
  transition: all .5s ease-in;
}

#corsi-sa div#corsi-list {
  display:none;
  border-collapse: collapse;
  width: 100%;
}

#corsi-sa div#corsi-list p {
  line-height: 2.75em;
  display: table-row !important;
  width: 100%;
  border-bottom: 1px solid;
  margin-bottom: 0;
  text-align: left;
  font-weight: 300;
}

#corsi-sa div#corsi-list p span {
  display: table-cell;
  vertical-align: middle;
}

#corsi-sa div#corsi-list p .box-price {
  display:none;
  text-align:center;
  width: 100px;
}
#corsi-sa div#corsi-list p .box-buy {
  text-align:right;
  width: 150px;
}

#corsi-sa div#corsi-list .box-buy a.button,
#corsi-sa div#corsi-list .box-buy a.button:visited {
  cursor: pointer;
  padding: 10px;
  background: #fff;
  border: 1px solid;
  font-weight: 300;
  transition: all .5s ease-out;
}

#corsi-sa div#corsi-list .box-buy a.button:hover,
#corsi-sa div#corsi-list .box-buy a.button:active {
  background: #2b823c;
  color:#fff;
  border-color: #2b823c;
  transition: all .5s ease-out;
}

#corsi-sa .more-content {
  width:100%;
  text-align:center;
}

#corsi-sa .more-content a.button,
#corsi-sa .more-content a.button:visited {
  cursor: pointer;
  text-decoration: none;
  padding: 10px;
  background: transparent;
  color: #2b823c;
  border: 1px solid #2b823c;
  transition: all .5s ease-out;
}

#corsi-sa .more-content a.button:hover,
#corsi-sa .more-content a.button:active {
  color: #fff;
  border: 1px solid #2b823c;
  background: #2b823c;
  transition: all .5s ease-out;
}