/*
 Theme Name:   Kina Theme
 Theme URI:    https://www.kina.it/
 Description:  Use this child theme to extend functionality.
 Author:       KINA
 Template:     bricks
 Version:      1.1
 Text Domain:  kina
*/

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

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

body.page-enter {
  opacity: 1;
}

body.page-exit {
  opacity: 0;
} */

strong {
  font-weight: 600;
}

.orange-bold strong {
  font-weight: inherit;
  color: var(--arancio-coop);
}

/* html,
body {

  scrollbar-width: none;

  -ms-overflow-style: none;
}

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

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 999px;
}

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

.bricks-mobile-menu {
  margin-top: 10rem;
}

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-column: 1 / 6;
}

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

.grid-span-5 {
  grid-column: span 5;
}

.grid-span-6 {
  grid-column: span 6;
}

@media (max-width: 768px) {
  .grid-col-1-6,
  .grid-col-1-5 {
    grid-column: 1 / -1;
  }
}

.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-megamenu.brx-submenu-positioned {
  max-height: 80vh !important;
  overflow: hidden !important;
}

.megamenu-box {
  overflow-y: scroll;
  box-sizing: border-box;
}

.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;
  }
}

/* Menu Toggle Icon */
.menu-header-mobile,
.menu-header-mobile svg {
  overflow: visible;
}

/* Menu Mobile */
/* .menu-mobile {
  opacity: 0;
  pointer-events: none;
} */

.content-menu-mobile.is-hidden {
  display: none !important;
}

.menu-mobile-container {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.menu-mobile-container::-webkit-scrollbar {
  display: none;
}

.menu-mobile.open {
  opacity: 1;
  pointer-events: auto;
}

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

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

/* Animation icon-point */

.icon-point {
  position: relative;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.icon-point::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ring 2s ease-out infinite;
  background: inherit;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.88);
    opacity: 0.85;
  }
}

@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

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

.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 */

.numeri-page {
  position: relative;
}

.numeri-page-container:not(:last-child) .numeri-page::after {
  content: "|";
  position: absolute;
  right: -2.5rem;
}

@media screen and (max-width: 768px) {
  .numeri-page-container:not(:last-child) .numeri-page::after {
    content: "";
    position: relative;
    right: 0;
  }
}

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

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

@media (max-width: 768px) {
  .elemento {
    grid-column: 1 / -1;
  }
}

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

/*Carosello text */

.text-carousel::after {
  content: "/";
  position: absolute;
  right: -2.5rem;
}

.carousel-group {
  padding-left: 2rem;
  animation: scroll 50s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Gallery Sostieni slider */

.gallery-sostieni {
  position: relative;
  overflow: hidden;
}

.gallery-sostieni::before,
.gallery-sostieni::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 300px;
  z-index: 2;
  pointer-events: none;
}

.gallery-sostieni::before {
  top: 0;
  background: linear-gradient(to bottom, #ffffff, #ffffff00);
}

.gallery-sostieni::after {
  bottom: 0;
  background: linear-gradient(to top, #ffffff, #ffffff00);
}

@media (max-width: 767px) {
  .gallery-sostieni::before,
  .gallery-sostieni::after {
    top: 0;
    width: 120px;
    height: 100%;
  }

  .gallery-sostieni::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, #ffffff00);
  }

  .gallery-sostieni::after {
    left: auto;
    right: 0;
    bottom: auto;
    background: linear-gradient(to left, #ffffff, #ffffff00);
  }
}

#gs-track {
  will-change: transform;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/*Gutemberg fix */

.wp-block-image,
.wp-block-embed {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.wp-block-heading {
  margin-top: 4rem;
  margin-bottom: 2rem;
}
