.flip-box-container {
  display: none;
}
.paragraph--type--carousel-bundle.pb__576.hybrid-carousel button svg {
    transform: rotate(90deg);
  }
/* Mostra solo su max 6000px */

@media (min-width: 401px) and (max-width: 600px) {

.flip-box-bottom_img{
    width: 60vh !important;
}

}

@media (max-width: 600px) {

/*.testoOver { display: block; }*/
  .testoOver { width: 50vw; }
  .flip-box-container {
    display: flex !important;
  }
  .container-una-colonna {
    display: none !important;
  }
  .container-due-colonne{
    display: none !important;
  }
  .container-con-2colonne{
    display: none !important;
  }
  .container-tre-colonne.img-ai-lati {
    display: none !important;
  }
  .container-tre-colonne.columns-to-duo {
    display: none !important;
  }
.container-due-colonne.image-right.always-two-cols
{
    display: none !important;
  }
.solo-outer .region-inner {
  padding: 0px !important;
}

.main-container .main-box {
  --r-bg: transparent !important;
}
.paragraph--type--carousel-bundle.horizontal-carousel.pb-has-arrows .pb__carousel-outer{
padding:0 !important;
}
.pb__carousel-options{
display:none !important;
}

.breadcrumb-nav{
display:none !important;
} 

}


.flip-box-container {
  width: 80vw;
  /*height: 80vh;*/
  height: 60vh;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  margin: auto;
  /*padding: 1em;*/
  box-sizing: border-box;
}
.flip-box-inner {
  width: 100%;
 /* max-width: 600px;*/
  height: 100%;
  position: relative;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.5, 1, 0.5, 1);
  transform-style: preserve-3d;
/*  box-shadow: 0 6px 18px rgba(35, 235, 56, 0.5);*/
  border-radius: 18px;
  cursor: pointer;
  margin: auto;
  background-color: #fff;
}
.flip-box-inner.flipped {
  transform: rotateY(180deg);
}
.flip-box-front,
.flip-box-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  font-size: clamp(0.8rem, 0.8vw, 0.8em);
}
.flip-box-front {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  padding: 1em;
  color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
      background-color: rgba(255,255,255,0.6);
    background-blend-mode: lighten;
/*  background-blend-mode: multiply;*/
  padding-bottom: 0px;
 overflow: hidden;
height: 100%;
 z-index: 2;
}

.flip-box-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7em;
  margin-bottom: 0.7em;
  z-index: 3;
/*margin-top: 35vh;*/
margin-top: 20vh;
}
   
.flip-box-bottom_img {

  width: 100%;
  /*max-height: 60vh;*/
  overflow: hidden;
  display: flex;
  align-items: flex-end; /*  allinea l'immagine in basso */
  justify-content: center;
  margin-top: auto; /* spinge il contenuto in basso */
  position: relative; /* per evitare abusi posizionamento esterno */
  padding-top: 1em; /* per separare un po' dal contenuto sopra */
  margin-bottom: 0.5em;
  max-height: 50vh;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
 
}     

.flip-box-bottom_img img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.flip-box-title {
  margin-top: 0;
  margin-bottom: 1em;
  align-self: flex-start;
  padding-left: 1em;
  background: rgba(255 255 255 / 0.85);
  border-radius: 12px;
  box-shadow: 0 0 8px #23eb38;
  position: absolute;
  left: 0em;
  right: 1em;
  top: 1.2em;
  z-index: 2;
}
.flip-box-excerpt {
  flex-grow: 1;
/*  max-height: 3em; */
  /*overflow: hidden;*/
  overflow: scroll;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  padding: 0.7em 1em;
  color: #222;
display: block;
  font-size: clamp(0.8rem, 0.8vw, 0.8em);
  line-height: 1.5em;
  text-align: left;
  margin-bottom: 1em;
  background: rgba(255 255 255 / 0.85);
  border-radius: 12px;
  max-height: 20vh;
}
.flip-box-toggle {
  align-self: center;
  background: #23eb38;
  border: none;
  color: #111;
 /* padding: 0.5em 2em;*/
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  width: 90%;
  margin-bottom: 1em;
  transition: background 0.3s ease;
  font-size: clamp(0.7rem, 0.7vw, 0.7em);
  height: 3em;
  /*width: 50%;*/
  padding: 0px;
  margin: auto;
  text-align:center;
}

.toggle_chiudi{
  padding-top: 5px;
}

.flip-box-toggle:hover {
  background: #19c02c;
}
.flip-box-back {
  background: #f7f7f7;
  transform: rotateY(180deg);
  padding: 1em;
  color: #222;
  overflow-y: auto;
  font-size: 1em;
  text-align: justify;
  line-height: 1.4em;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.flip-box-fulltext {
  overflow-y: auto;
  max-height: unset;
  flex: 1 1 auto;
  font-size: clamp(0.8rem, 0.8vw, 0.8em);
}
.flip-box-fulltext li{
line-height:1.5em;
}
.flip-box-back .flip-box-toggle {
  margin-top: 1em;
  align-self: center;
  flex-shrink: 0;
}
/* Scrollbar opzionale */
.flip-box-back::-webkit-scrollbar {
  width: 8px;
}
.flip-box-back::-webkit-scrollbar-thumb {
  background-color: #23eb38;
  border-radius: 20px;
}
