/* STYLESHEET ALTABIO */

/* Variabili Globali */

:root{
    --verde: #013b26;
    --beige: #e6d2ae;
}

.clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.recepie-spinner-container{
    padding: 120px 0;
    display: none;
}
.recepie-spinner-container .recepie-loader{
    margin: auto;
}

.recepie-loader {
  border: 10px solid #f3f3f3;
  border-top: 10px solid var(--verde);
  border-left: 10px solid var(--verde);
  border-bottom: 10px solid var(--verde);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* HOMEPAGE RICETTE */

.receipes{
  margin-top: -50px;
  background: #ede2e2;
  padding-bottom: 50px;
}
.receipes-heading{
  background: linear-gradient(180deg, var(--beige), #00000026);
  padding: 40px 0;
}
.post-type-archive-ricette .receipes-heading{
	padding: 0;
}
.receipes-title{
  text-align: center;
  font-size: 60px;
  font-family: initial;
  font-weight: 500;
  padding: 40px 0;
}
.page-template-homepage .receipes-title{
  padding: 0;
}
.receipes-subtitle{
  text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 0 20px;
    margin: -20px auto 0;
}
.page-template-homepage .receipes-subtitle {
    margin: -25px auto 0px;
}
.receipe-filters-container{
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    width: 100%;
    justify-content: space-evenly;
    padding: 40px 0 15px;
    font-family: auto;
    font-size: 20px;
    font-weight: 700;
}
.receipe-filter{
  cursor: pointer;
}
.receipe-filter:hover{
  text-decoration: underline;
}
.receipe-filter.active{
  text-decoration: underline;
}
.receipes-grid{
  border-top: 2px solid #ddd;
  max-width: 1280px;
  margin: 0 auto;
}
.receipe-items-container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 0;
  gap: 50px 20px;
}
.receipe-item-container{
  border-bottom: 2px solid #ddd;
}
.receipe-item-block a{
  color: var(--verde);
}
.receipe-item-image{

}
.receipe-item-image img{
  border-radius: 5px;
    max-height: 190px;
    object-fit: cover;
    width: 100%;
}
.receipe-item-title{
    font-size: 22px;
    font-family: auto;
    font-weight: 550;
    height: 120px;
    padding: 0 8px;
}
.receipe-item-cta{
  text-align: center;
}
.receipe-item-cta a{
  color: var(--verde);
  font-size: 18px;
}
.receipe-item-cta a:hover{
  color: var(--verde);
  text-decoration: underline;
}

.no-posts-container{
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.no-posts-container h3{

}
.no-posts-container .dashicons{
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .1;
    font-size: 220px;
}

/* CONTATTI */

.page-template-contatti .site-content .ast-container,
.page-template-chi-siamo .site-content .ast-container,
.post-type-archive-ricette .site-content .ast-container,
.page-template-tisane .site-content .ast-container {
  flex-direction: column;
  max-width: unset;
  padding: 0;
}

.bg-fixed{
  width: 100%;
  height: calc(100vh + 30px);
  position: fixed;
  top: -30px;
  background-size: cover;
  background-repeat: no-repeat;
}

.contatti-container{
  width: 100%;
  padding: 20px 60px;
}

.page-template-contatti .hero-inner,
.post-type-archive-ricette .hero-inner,
.page-template-tisane .hero-inner{
    width: 1280px;
    background: #ffffff90;
    border-radius: 20px;
    top: 80px;
}

.chi-siamo-container{
  top: 140px;
  position: relative;
  background: #ffffff90;
  border-radius: 20px;
  max-width: 1280px;
  padding: 50px;
}

.post-type-archive-ricette .hero-inner,
.page-template-tisane .hero-inner{
    top: 130px;
    padding: 40px;
}

@media (max-width: 992px){
	.post-type-archive-ricette .hero-inner,
  .page-template-tisane .hero-inner{
    top: 0;
    padding: 0;
    max-width: 100vw;
	}
	.post-type-archive-ricette .hero-container,
  .page-template-tisane .hero-container{
		display: block;
	}
}

.post-type-archive-ricette .receipes,
.page-template-tisane .receipes{
  margin: 0;
  background: none;
  width: 100%;
  max-width: 100vw;
}
.post-type-archive-ricette .receipes-heading,
.page-template-tisane .receipes-heading{
    background: none;
}
.post-type-archive-ricette .receipes-title,
.page-template-tisane .receipes-title{
    padding: 20px 0 0;
}

.blog .hero, .single-ricette .hero {
    margin: 0 auto;
}
.blog .hero-container, .single-ricette .hero-container {
    height: unset;
}
.blog .blog-grid-item img{
  height: 200px !important;
    object-fit: cover;
}
.blog .blog-title {
    font-size: 66px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
}
.blog .hero-logo, .single-ricette .hero-logo {
    margin: 0 auto;
}

.single-ricette .chi-siamo-container{
  background: #ffffffbb;
  top: 100px
}

.page-template-homepage .hero-logo {
    max-width: 300px;
    margin-top: -20px;
}

.page-template-homepage .hero-container {
    background-position: 50% 58%;
}

.page-template-homepage .hero-title {
    margin-top: -14px;
}

.page-template-homepage .site-branding.ast-site-identity{
  display: none;
}

.single-ricette .hero{
  top: -70px;;
}

.go-back a{
  color: var(--verde);
    font-weight: 600;
}
.receipe-container{

}
.pre-title{
    text-align: center;
    margin: 0 0 -5px;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 600;
    text-decoration: underline;
}
.single-ricette .receipes-title{
    text-align: center;
    font-size: 48px;
    max-width: 780px;
    font-family: initial;
    font-weight: 500;
    padding: 0px 0;
    margin: 0 auto;
    line-height: 1.2;
}
.receipe-above-main{
text-align: center;
    margin: 0px auto 30px;
}
.ram-subtitle{

}
.ram-time{

}
.receipe-main{
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 30px;
}
.rm-image img{
  border-radius: 12px;
  top: 90px;
  position: sticky;
}
.rm-content{

}
.receipe-below-main{
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
    padding: 10px 0;
    border-top: 2px solid #ddd;
    border-bottom: 2px solid #ddd;
}
.rbm-block{
  text-align: center;
}
.rbm-label{

}
.rbm-value{
  font-size: 22px;
    font-weight: 600;
}
.receipe-bottom{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 40px 15px;
    gap: 60px 40px;
}
.rb-ingredienti{

}
.rbi-title{
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 6px;
}
.ingrediente-row:not(.group-title) {
    padding-left: 30px;
    position: relative
}
.ingrediente-row:not(.group-title)::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--verde);
    border-radius: 50%;
    margin-right: 10px;
    position: absolute;
    top: 12px;
    left: 15px;
}
.ir-first{
    display: flex;
    gap: 20px;
}
.group-title{
    font-size: 20px;
    font-weight: 600;
    margin-top: 15px;
}
.ir-nome{

}
.ir-second{

}
.ir-descrizione{

}
.rb-preparazione{

}
.preparazione-row{
    gap: 10px;
    display: grid;
    grid-template-columns: 4fr 8fr;
}
.pr-first{
    font-weight: 700;
    display: flex;
    gap: 6px;
}
.pr-nome{

}
.pr-durata{

}
.pr-second{

}
.pr-descrizione{

}
.prod-block:hover{
  box-shadow: 0 2px 8px #777;
}
.prod-block{
    display: grid;
    grid-template-columns: 1fr 5fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 6px 0px;
    border: 1px solid #ddd;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px #bbb;
    transition: all 0.3s ease;
}
.prodotto-row a{
    text-decoration: none;
    color: var(--verde);
}
.prod-block img{
    border-radius: 4px;
    width: 50px;
    height: 50px;
}
.prod-name{
    font-size: 18px;
    font-weight: 700;
}


/* BLOG CAROUSEL */

.custom-post-grid {
    /* display: grid; */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 0 50px;
}

.custom-post-item {
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 10px;
    background-color: #fff;
    transition: box-shadow 0.3s ease;
    text-align: center;
    margin: 0 25px;
    min-height: 432px;
}
.slick-slide{
  margin: 0 10px;
}

.custom-post-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.custom-post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    height: 200PX;
    OBJECT-FIT: COVER;
}

.custom-post-title {
    font-size: 1.25rem;
    margin: 12px 0 8px;
    color: #333;
}

.custom-post-excerpt {
    color: #666;
    font-size: 0.95rem;
}
.page-template-chi-siamo .hero {
    position: relative;
    top: 120px;
}

@media (max-width: 992px) {
  .receipe-filters-container {
    overflow: auto;
    gap: 25px;
    padding: 40px 15px 15px;
  }
  .receipe-filter {
    white-space: nowrap;
}
.hero-inner {
    gap: 20px;
}
.receipe-items-container {
    grid-template-columns: repeat(1, 1fr);
    padding: 10px 15px;
}
.bg-fixed {
    position: fixed;
}
.hero {
    top: 50px !important;
}
	.post-type-archive-ricette .hero,
  .page-template-tisane .hero {
		top: 0 !important;
	}
.receipes-grid {
    width: 100vw;
}
.post-type-archive-ricette .receipes-heading,
.page-template-tisane .receipes-heading {
    margin: 0 auto;
    width: 100vw;
}
.blog .blog-grid{
    gap: 20px;
    flex-direction: column;
}
.blog .blog-grid-item {
    width: 100% !important;
    border-radius: 8px;
}
.blog .hero, .single-ricette .hero {
    margin: 0 auto;
    width: 95vw;
}
.blog .blog-title {
    font-size: 34px;
}
.blog .hero{
  top: -120px !important;
}
.page-template-contatti .hero-inner {
    top: 110px;
}
.page-template-contatti .hero {
        top: -40px !important;
        width: 95vw;
        margin: 0 auto;
    }
  .contatti-container {
    width: 100%;
    padding: 20px 10px;
}
.page-template-chi-siamo .hero {
        top: 432px !important;
        width: 95vw;
        margin: 0 auto;
    }
    .page-template-homepage .hero {
        top: -49px !important;
    }
    .custom-post-item{
      margin: 0;
    }
  .post-type-archive-ricette footer,
  .page-template-tisane footer {
    display: none;
  }
  .single-ricette .chi-siamo-container {
    top: 0px;
    width: 95vw;
    padding: 30px 15px;
}.single-ricette .receipes-title {
    font-size: 34px;
}
.single-ricette .receipe-below-main {
    flex-direction: column;
}.single-ricette .receipe-bottom {
    display: block;
}
.single-ricette .pre-title {
    font-size: 18px;
    margin-top: 30px;
}
.single-ricette .receipe-main {
    display: block;
}
}

.post-type-archive-ricette .hero-container,
.page-template-tisane .hero-container {
    height: unset;
    width: 1280px;
    background: #ffffff90;
    border-radius: 20px;
    top: 80px;
	display: block;
}

@media (max-width: 992px) {
    .post-type-archive-ricette .hero-container,
    .page-template-tisane .hero-container {
        width: 100vw;
    }
}
.post-type-archive-ricette .hero,
.page-template-tisane .hero {
    top: 0;
    margin: 0 auto;
}
.post-type-archive-ricette .hero-inner,
.page-template-tisane .hero-inner {
    top: 0;
}
#banner-home-verdonka{
	margin-top: -40px;
    padding: 80px 0;
}

/* TISANE CONTAINER */

.tisane-container{

}
.tisane-categoria:not(:first-child){
  padding-top: 40px;
}
.tisane-categoria-title{
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    margin: 10px 0 25px;
}
.tisana-container{
    display: flex;
    gap: 30px;
    padding: 20px 20px;
    border-radius: 8px;
    margin: 15px 80px;
    box-shadow: 0 4px 16px;
}
.tisana-img img{
    border-radius: 8px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid var(--beige);
}
.tisana-info{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.tisana-title{
    font-family: initial;
    font-weight: 600;
    font-size: 20px;
}
.tisana-benefici{

}

.tisana-benefici-title{
    font-weight: 600;
    font-size: 16px;

}
.tisana-benefici-text{
    font-size: 15px;
    line-height: 1.5;
    color: #333;  
}
@media (max-width: 992px) {

  .page-template-tisane .hero-container {
    height: unset;
    width: unset;
    background: #ffffff90;
    border-radius: 20px;
    top: 80px;
    display: block;
}
  .tisane-container{

  }
  .tisane-categoria{

  }
  .tisane-categoria-title{

  }
  .tisana-container{
    margin: 15px;
  }
  .tisana-img img{
    min-width: 100px;
    height: 100px;
  }
  .tisana-info{

  }
  .tisana-title{

  }
  .tisana-benefici{

  }
}
