.single-post{
  background: #ffddfc;
  main h1{
    font-family: 'Lobster';
  }
  main h2{
    font-size: 22px;
    font-weight: 600;
  }
  h3{
    font-weight: 600;
  }
  .post-image img{
    margin: auto;
    border-radius: 0 0 2rem 2rem;
  }
  .text-section{
        max-width: 850px;
        margin: auto;
  }


.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
  justify-content: center;
  gap: 20px;
  text-align: center;

  display: flex;
  flex-direction: column;

  .card {
    aspect-ratio: 1 / 1;
    background: #F3B1FA;
    border-radius: 2rem;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    flex: 1;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 350px;

    a {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: inherit;
    }

    &:nth-child(1) {
      background: #4E263E;
      h3,
      p {
        color: #fff;
      }
    }

    &:nth-child(2) {
      background: #F3B1FA;
      z-index: 1;
    }

    &:nth-child(3) {
      background: #B44262;
      z-index: 2;
      h3,
      p {
        color: #fff;
      }
    }

    img {
      width: 50%;
      object-fit: contain;
      margin: 0 auto 5px;
      display: block;
      aspect-ratio: 1/1;
    }

    h3 {
      font-family: 'Lobster';
      margin-bottom: 10px;
      font-weight: 600;
    }

    p {
      font-size: 16px;
      margin: 0;
    }
  }
}

  @media screen and (min-width: 769px) {
    main h1{
    font-size: 100px;
    }
    main h2{
    font-size: 30px;
    }
    .container{
        max-width: 1000px;
        margin: auto;
        padding: 0 20px;
        box-sizing: border-box;
    }
    main {
        p,li, p span, p a{
        font-size: 18px;
        line-height: 1;
        }
    }
    .cards{
        margin-top: 100px;
        flex-direction: row;
      .card{
        max-width: 750px;

        &:nth-child(1){
          transform: rotate(10deg) translate(30px, -60px);
        }
        &:nth-child(3){
          transform: rotate(3deg) translate(-30px, -20px);
        }
        &:only-child {
        transform: none;
        max-width: 400px;
        }
      }
    }

  }

 
}





body{
  background: #ffddfc;
}


.barra {
    height: 60px;
    bottom: 0px;
    width: 100%;
    left: 0;
    z-index: 10;
}

div.autoscroll-container {
width: 200%;
    height: 65px;
    position: relative;
    left: -50%;
    z-index: 1;
    box-sizing: border-box;
    background: #ffffff;
}
 div.autoscroll-container.categoriesmenu {
     margin-top: -2px;
     height: 80px;
}
 div.autoscroll-container div.string {
     position: absolute;
     left: 0;
     width: 100%;
     overflow: hidden;
     z-index: 0;
     top: 50%;
     transform: translateY(-50%);
}
 div.autoscroll-container div.string div.striscia-wrapper {
     width: 100000px;
     overflow: hidden;
     position: relative;
     left: 0;
     top: 0;
     transform: translateX(0px);
     overflow: hidden;
}
 div.autoscroll-container div.string div.striscia-wrapper div.wrap {
     float: left;
     overflow: hidden;
}
 div.autoscroll-container div.string div.striscia-wrapper div.wrap span {
     display: block;
     float: left;
     font-size: 30px;
     line-height: 41px;
     letter-spacing: 0em;
     color: #ffffff;
     background: #8E51A6;
     padding-top: 5px;
     margin-left: -1px;
}
 div.autoscroll-container div.string div.striscia-wrapper div.wrap span a {
     color: #000; text-decoration:none;
}




.head-news{
  position: relative;
  .title-news{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 10%;
        color: #ffffff;
        text-transform: uppercase;
        font-size: 43px;
        font-weight: bold;
        max-width: max-content;
        text-align: right;
    @media (min-width: 769px){
      font-size: 120px;
    }
  }
}

.content{
  padding: 0 20px;
  box-sizing: border-box;
  max-width: 900px;
  margin: 50px auto;
  text-align: center;
  p{
    line-height: 1;
    @media (min-width: 769px){
      font-size: 30px;
    }
  }
}






.posts-row{
    display:grid;
    background: #FCE5EC;
}

.posts-row.two{
    grid-template-columns:repeat(2,1fr);
}

.posts-row.one{
    grid-template-columns:1fr;
}

.post-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
    align-items:stretch;
    padding:0;
    overflow:hidden;
}

.post-content{
    padding:40px;
    h2{
      @media (min-width: 769px){
        font-size: 40px;
      }
    }
}

.post-image{
    height:100%;
}

.post-card img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius: 2rem 0 0 0;
}

.post-text{
    display:flex;
    flex-direction:column;
}

.post-title{
    margin-bottom:20px;
}

.post-excerpt{
    margin-bottom:30px;
}





@media (min-width:769px) and (max-width:1000px) {

    .posts-row.two{
        grid-template-columns:1fr;
    }

    .post-card{
        grid-template-columns:1fr 1fr;
    }

    .post-card.image-right .post-image{
        order:2;
    }

    .post-card.image-left .post-image{
        order:-1;
    }

}

@media (max-width:768px){

    .posts-row.two{
        grid-template-columns:1fr;
    }

    /* immagine sempre sopra, testo sotto */
    .post-card{
        grid-template-columns:1fr;
    }

    .post-card .post-image{
        order:-1;
    }

    .post-card .post-image img{
        height:300px;
    }

    svg{
        width:60px;
    }

}