/* =========================
   CBE Carousel Styles
   ========================= */
/* =========================
   Variabili globali
   ========================= */
:root {
  --gray: #ebebeb;
  --font-primary: var(--ftitles);
}

/* =========================
   Button container
   ========================= */
.button-cont {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-right: 8%;
  margin-bottom: 2rem;
}
.button-cont button {
  background: transparent;
  color: var(--accent-color);
  border: none;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

/* =========================
   Carousel
   ========================= */
.cbe-carousel-wrapper {
  position: relative;
  display: flex;
  margin-bottom: 80px;
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  /* =========================
     Carousel item
     ========================= */
}
.cbe-carousel-wrapper:not(.-post) {
  height: 300px;
  align-items: center;
}
.cbe-carousel-wrapper.show-overflow {
  overflow: visible;
}
.cbe-carousel-wrapper .cbe-carousel-box {
  flex-shrink: 0;
  min-width: 350px;
  --gradient: white;
  display: block;
  /* =========================
     News style
     ========================= */
  /* =========================
     Inner box
     ========================= */
  /* =========================
     Gradient text
     ========================= */
}
@media screen and (max-width: 768px) {
  .cbe-carousel-wrapper .cbe-carousel-box {
    max-width: 300px;
  }
}
.cbe-carousel-wrapper .cbe-carousel-box.gray, .cbe-carousel-wrapper .cbe-carousel-box.white {
  max-height: 400px;
  height: 100%;
  padding: 0 8px;
}
.cbe-carousel-wrapper .cbe-carousel-box.gray {
  --gradient: var(--gray) !important;
}
.cbe-carousel-wrapper .cbe-carousel-box.active .box__inner {
  z-index: 10;
}
.cbe-carousel-wrapper .cbe-carousel-box .-news {
  --gradient: var(--gradient-accent);
  width: 27vw;
  padding: 0 15px;
  display: block;
}
@media screen and (max-width: 768px) {
  .cbe-carousel-wrapper .cbe-carousel-box .-news {
    width: 100%;
  }
}
.cbe-carousel-wrapper .cbe-carousel-box .-news:focus:focus-visible {
  border: 2px solid red;
}
.cbe-carousel-wrapper .cbe-carousel-box .-news .tag_category {
  position: absolute;
  top: 15px;
  left: -4px;
  padding: 5px 20px;
  background: white;
  z-index: 10;
  color: var(--accent-color-dark);
}
.cbe-carousel-wrapper .cbe-carousel-box .-news .box__img {
  border-radius: 12px 12px 0 0;
  position: relative;
  height: 280px;
}
.cbe-carousel-wrapper .cbe-carousel-box .-news .box__img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}
.cbe-carousel-wrapper .cbe-carousel-box .-news .box__img img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}
.cbe-carousel-wrapper .cbe-carousel-box .-news .box__content {
  background-color: var(--accent-color);
  color: white;
  padding: 25px;
  border-radius: 0 0 12px 12px;
  width: 100%;
  height: 200px;
}
.cbe-carousel-wrapper .cbe-carousel-box .-news .box__content h4 {
  margin: 0;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 400 !important;
  letter-spacing: 0.7px;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-webkit-any-link {
  height: 80%;
  width: 30%;
  color: var(--accent-color-dark);
  text-decoration: none;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-moz-any-link {
  height: 80%;
  width: 30%;
  color: var(--accent-color-dark);
  text-decoration: none;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):any-link {
  height: 80%;
  width: 30%;
  color: var(--accent-color-dark);
  text-decoration: none;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-webkit-any-link .box__inner {
  border: 3px solid transparent;
  padding: 8px;
  border-radius: 10px;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-moz-any-link .box__inner {
  border: 3px solid transparent;
  padding: 8px;
  border-radius: 10px;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):any-link .box__inner {
  border: 3px solid transparent;
  padding: 8px;
  border-radius: 10px;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-webkit-any-link .box__img {
  border-radius: 7px;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-moz-any-link .box__img {
  border-radius: 7px;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):any-link .box__img {
  border-radius: 7px;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-webkit-any-link .box__img img {
  border-radius: 7px;
  mix-blend-mode: multiply;
  object-fit: contain;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):-moz-any-link .box__img img {
  border-radius: 7px;
  mix-blend-mode: multiply;
  object-fit: contain;
}
.cbe-carousel-wrapper .cbe-carousel-box a:not(.-news):any-link .box__img img {
  border-radius: 7px;
  mix-blend-mode: multiply;
  -o-object-fit: contain;
     object-fit: contain;
}
.cbe-carousel-wrapper .cbe-carousel-box .box__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-size: 18px;
  cursor: pointer;
  background: var(--gradient);
  /* =========================
     Image container
     ========================= */
}
.cbe-carousel-wrapper .cbe-carousel-box .box__inner h3 {
  margin-top: 12px;
  font-family: var(--font-primary);
  font-size: clamp(1rem, 1.5vw, 22px);
}
.cbe-carousel-wrapper .cbe-carousel-box .box__inner .box__img {
  width: 100%;
  overflow: hidden;
}
.cbe-carousel-wrapper .cbe-carousel-box .box__inner .box__img img {
  max-width: 100%;
  max-height: 100%;
}
.cbe-carousel-wrapper .cbe-carousel-box p {
  font-size: 3rem;
  -webkit-text-fill-color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}