/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

body {
  opacity: 0;
  transition: opacity 0.2s ease;
}

body[data-builder-mode] {
  opacity: 1;
}

body.page-enter {
  opacity: 1;
}

body.page-exit {
  opacity: 0;
}

/* html,
body {

  scrollbar-width: none;

  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
} */

.header-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 3;
}

nav ul,
ul.brxe-post-taxonomy {
  padding-inline-start: 0rem;
}

ul {
  margin-block-start: 0em;
  margin-block-end: 0em;
  padding-inline-start: 1.5rem;
}

/*Grid Area Style*/
.grid-col-1-6 {
  grid-area: 1 / 1 / 1 / 6;
}

.grid-col-1-5 {
  grid-area: 1 / 1 / 1 / 5;
}

.gap-y-4 {
  row-gap: 4rem;
}

/*Megamenu inner style */

/* .bricks-preview body .brx-megamenu {
  opacity: 0 !important;
  visibility: hidden !important;
}

.brx-megamenu {
  opacity: 1;
  visibility: visible;
} */
/* .megamenu-backdrop {
  backdrop-filter: blur(8px);
} */
.brx-has-megamenu .icon-right button {
  display: none;
}

.brx-has-megamenu {
  position: relative;
}

.brx-has-megamenu::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.brx-has-megamenu:hover::after,
.brx-has-megamenu.open::after {
  width: 100%;
}

.megamenu-inner {
  font-size: var(--h5);
  font-weight: 400;
  grid-column: span 3;
  /* nav {
    height: 100%;
  }
  ul {
    height: 100%;
    align-content: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
  } */
  a {
    gap: 1rem;
    transition: opacity 0.3s ease;
  }

  a::after {
    content: "";
    background-image: url(/wp-content/uploads/2026/02/arrow-coop.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 4rem;
    height: auto;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }
  a:hover::after {
    opacity: 1;
    transform: translateY(0);
  }

  :has(a:hover) a {
    opacity: 0.5;
  }

  :has(a:hover) a:hover {
    opacity: 1;
  }
}

.megamenu-box.bg-viola-ente *,
.megamenu-box.bg-blu-impresa *,
.megamenu-box.bg-blu-coop * {
  color: white !important;
}

/* Style General */
.backdrop-blur {
  backdrop-filter: blur(10px);
}

/*Ambiti scroll */
.ambiti-scroll-title {
  grid-area: 1/2/2/6;
  z-index: 3;
}

.ambiti-scroll-img {
  grid-area: 1/5/2/10;
}

.ambiti-scroll-link {
  grid-area: 1/9/2/12;
}

.ambiti-scroll-counter {
  color: white;
  margin-top: 1.5rem;
}

/*Ambiti card */

.ambiti-card-blu h5,
.ambiti-card-blu h6 {
  color: white;
}

.card-counter {
  font-size: var(--h5);
  font-weight: 400;
}

.ambiti-card-slider:nth-child(2) {
  margin-left: 4rem;
  margin-top: 2rem;
}

.ambiti-card-slider:nth-child(3) {
  margin-left: 8rem;
  margin-top: 4rem;
}

.ambiti-card-slider:nth-child(4) {
  margin-left: 12rem;
  margin-top: 6rem;
}

.ambiti-card-slider:nth-child(5) {
  margin-left: 16rem;
  margin-top: 8rem;
}

.ambiti-card-slider:nth-child(6) {
  margin-left: 20rem;
  margin-top: 10rem;
}

/* Arrow Card Style */

.arrow-card-prev,
.arrow-card-next {
  cursor: pointer;
}

/* Style CTA mondo migliore */

.outline-cta {
  outline: solid 3rem var(--blu-coop);
}

/* Pagine interne work */

.work-features-title {
  grid-column: span 2;
}

.work-features-text {
  grid-column: span 4;
}

.work-ambiti-card.bg-blu-impresa * {
  color: white;
}
