/*
 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
*/
/* TODO .reveal-text con opacity 0 su builder
*/
/* UTILITY */
html, body {
  overscroll-behavior: none;
  overflow-x: hidden;
}
.gray{
  color:#A9A9A9;
}
.bxs-1{
  box-shadow: 0px 10px 20px 0px #00000040;
}
.bxs-2{
  box-shadow: 8px 8px 18px 0px #00000040;
}
.line{
  border-radius:5px;
}
/* DA RIATTIVARE /*TODO */

/* .reveal-text, .reveal-text-hero {opacity:0;}
.first-par-hero p{visibility:hidden; }
.btn-cont-row, .btn-cont-row-hero {opacity: 0;}
.line-rev, .line-rev-hero{
  clip-path: inset(0 100% 0 0);
  --hl-color: #ffffff;
  will-change: clip-path;
}
.anim-divider{
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
.line-rev h1,
.line-rev h2,
.line-rev h3,
.line-rev h4,
.line-rev h5,
.line-rev h6,
.line-rev .brxe-heading {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
}
.case-panel{
  opacity:0;
}
/* stile minimale: gli <h4> vengono impilati nello stesso box */
.title-rotator{position:relative; overflow:hidden;}
.title-rotator h4{
  margin:0; opacity:0;position:absolute;
  will-change:transform, opacity;
} */
.full-image{
  will-change: transform;
}
body{
  background-color: #1a1a1a;
}
.footer-marquee-wrap{
  position: relative;
  overflow: hidden;
}
/* .reveal-mover{ will-change: transform; } */
.footer-reveal{
  /* questo contenitore lo muoviamo da destra a sinistra con lo scroll */
  transform: translateX(100%);
  /* will-change: transform; */
}
.footer-marquee{
  white-space: nowrap;
  will-change: transform;
}
.footer-marquee-img{
  width: auto;
  display: block;
  object-fit: contain;
  filter: contrast(105%);
  transform: translateY(2px); /* micro allineamento ottico */
}
@media (prefers-reduced-motion: reduce){
  .footer-marquee, .footer-reveal{ transition:none !important; animation:none !important; }
}
/* GSAP UTILITY*/
.bricks-button{
  background-size: 200% 100%;
  background-image: linear-gradient(to right, transparent 50%, rgba(30, 30, 30, 1) 50%);
  transition: background-position .3s cubic-bezier(0.19, 1, 0.22, 1) .2s, color .5s ease 0.2s, background-color .5s ease;
}
.brics-button:not(.bricks-background-secondary){
  color:rgb(13, 13, 13);
  background-color:rgb(230, 230, 230);
  background-position: -100% 100%;
}
.bricks-button:hover{
  color:rgba(255, 255, 255, 1);
  background-color:rgb(71, 71, 71);
  background-position: -100% 100%;
}
/* SEZIONE SCROLLTRIGGER ORIZZONTALE */
.horizontal-section {
  contain: layout; /* forza isolamento layout */
  transform: translateZ(0);
}
.horizontal-wrapper {
  display: flex;
  height: 100%;
  width: 400%;
}
.panel {
  flex: 0 0 100vw;
  height: 100vh;
}
/* UNDERLINE TITOLI SLIDER ORIZZONTALE SCROLLTRIGGER */
.underline-anim {
  --underline-width: 0%;
  position: relative;
  display: inline-block;
}
.underline-anim::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.05em;
  height: 3px;
  width: var(--underline-width);
  background: currentColor;
  transform-origin: left center;
}
/* BG DIV SLID ORIZZ SCROLLTRIGG */
.bg-black-glass{
  background: #000000B2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.bg-black-glass-with-hover:hover {
  backdrop-filter: blur(0px);
}
/* SLIDER PORTFOLIO */
.slider-inner .splide__track {
  overflow: visible !important;
}
.slider-inner .splide__list {
  display: flex;
  justify-content: flex-start;
  padding-left: 0 !important;
}
.slider-inner .splide__slide {
  flex: 0 0 clamp(280px, 32vw, 520px);
  transition: transform 0.4s ease;
}
.slider-inner .splide__slide.is-active {
  z-index: 2;
}
.slider-inner .splide__slide.is-active::before {
  background-image: none;
}
.splide__pagination {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 3px;
  background: rgba(200,200,200,0.4);
  border-radius: 2px;
  overflow: visible;
  margin-top: 20px;
}
.splide__pagination__page {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 3px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.splide__pagination::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #999, #666);
  border-radius: inherit;
  transition: width 0.5s cubic-bezier(.25,1,.3,1), left 0.5s cubic-bezier(.25,1,.3,1);
  z-index: 1;
}
/* BADGE CARD PORTFOLIO */
.portfolio .badge-name,
.portfolio .badge-tag, .portfolio-arc .badge-name,
.portfolio-arc .badge-tag {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.9);
  will-change: opacity, filter, transform;
  transition: none !important;
}
.badge-name, .badge-tag {
  text-shadow:
    0 0 var(--glow, 0px) rgba(255, 255, 255, 0.9),
    0 0 calc(var(--glow, 0px) * 0.5) rgba(120, 180, 255, 0.6);
}
/* ANIMAZIONI E KEYFRAME */
.animation-scale{
  animation-name: animation-scale;
  animation-duration: 4s;
  animation-iteration-count: infinite;
}
@keyframes animation-scale {
  0% {
    animation-timing-function: ease-in;
    transform: scale(1) translate(0px, 0px);
  }
  50% {
    animation-timing-function: ease-out;
    transform: scale(1.04) translate(10px, 0px);
  }
  100% {
    animation-timing-function: ease-out;
    transform: scale(1) translate(0px, 0px);
  }
}
/* ANIMAZIONI */
.brx-animate-myAnim1 {
  animation-name: my-anim-1;
}
@keyframes my-anim-1 {
  0% {
    animation-timing-function: ease-in;
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    animation-timing-function: ease-out;
    opacity: 1;
    transform: translateX(0);
  }
}
/* SCROLLSMOOTH */
#smooth-wrapper {
  overflow: hidden;
}
/* GLASS CURSOR */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.25s ease;
}
.liquidGlass-wrapper {
  position: relative;
  display: flex;
  font-weight: 500;
  overflow: hidden;
  width: 200px;
  height: 200px;
  justify-content:center;
  align-items:center;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
  font-size:18px!important;
  color:#ffffff;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}
.liquidGlass-effect {
  position: absolute;
  z-index: 0;
  inset: 0;
  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  overflow: hidden;
}
.liquidGlass-tint {
  z-index: 1;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.50);
}
.liquidGlass-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}
.liquidGlass-text {
  z-index: 3;
  font-size:18px!important;
  text-align:center
}
.custom-cursor.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.portfolio, .portfolio-arc {
  cursor: none;
}
/* .custom-cursor {
  transition:
    opacity 0.25s ease,
    scale 0.3s ease,
    filter 0.4s ease;
} */
/* HIGH-LINE h2 */
.line-rev .high-line, .line-rev-hero .high-line{
  position: absolute;
  background: var(--hl-color);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 5;
  pointer-events: none;
  border-radius: .15em;
  will-change: transform;
}
.hl--1e   { --hl-color:#1a1a1a; }
.hl--a9 { --hl-color:#a9a9a9; }
.hl--w { --hl-color:#ffffff; }
.hl--6a { --hl-color:#6a6a6a; }
.line-rev .brxe-heading, .line-rev-hero .brxe-heading{ backface-visibility: hidden; }
@media (prefers-reduced-motion: reduce){
  .line-rev,  .line-rev-hero { clip-path: inset(0 0 0 0) !important; }
  .line-rev .high-line,  .line-rev-hero .high-line{ display:none; }
  .line-rev .brxe-heading, .line-rev-hero .brxe-heading{ filter:none!important; transform:none!important; opacity:1!important; }
}
/* PARALLAX SEC REV */
.op-section { position: relative; z-index: 1; }
.rev-section    { position: relative; z-index: 0; }
.g_section-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #1a1a1a; /* cambia colore qui */
  mix-blend-mode: normal;                    /* prova multiply/screen/soft-light */
  opacity: 0;
  z-index: 3;
  transition: opacity .2s linear;
}
@media (prefers-reduced-motion: reduce){
  .g_section-overlay{ transition: none }
}
/* TABS */
.tab-content .tab-pane {
  display: block !important;      /* forziamo il display sempre attivo */
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(.25,.1,.25,1), transform 0.6s ease;
}
.tab-content .tab-pane.brx-open {
  opacity: 1 !important;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
  visibility: visible !important;
}
.bg-img{
  position:absolute; inset:0% 0;        /* extra bleed */
  background-size:cover; background-position:center 20%;
  will-change: transform;
}

/* SPACE 3D */
/* :root{
  --waves-bg: #1e1e1e;
  --waves-height: 120vh;
}
.waves3d{
  position: relative;
  height: var(--waves-height);
  background: transparent;
  overflow: clip;
}
.waves3d__stage{
  position: sticky;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: visible;
}
#waves3d-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.waves3d__overlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 5vw;
  pointer-events: none;
  mix-blend-mode: lighten;
}
.waves3d__overlay h2{
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 .2em 0;
}
.waves3d__overlay p{
  opacity: .9;
  margin: 0;
}
.waves3d__spacer{
  height: calc(var(--waves-height) - 100vh);
}
@media (max-width: 768px){
  :root{ --waves-height: 160vh; }
}
.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
} */











.brx-nav-nested-items {
  background: hsl(0deg 0% 0% / 89%);
  backdrop-filter: blur(4px);
}
.brxe-toggle .brxa-inner::after  { width: calc(var(--brxe-toggle-bar-width) - 8px); }
.brxe-toggle .brxa-inner::before { width: calc(var(--brxe-toggle-bar-width) - 12px); }

/* override quando boring+active */
.brxa--boring.is-active .brxa-inner:after,
.brxa--boring.is-active .brxa-inner:before{
  width: var(--brxe-toggle-bar-width);
}
[data-script-id="zyyljx"] .brx-nav-nested-items{
  visibility: visible!important;
}
.brxe-nav-nested.brx-closing .brx-nav-nested-items {
  opacity: 1!important;
  visibility: visible!important;
}
.brxe-nav-nested.brx-open .brx-nav-nested-items {
  transition-duration: none!important;
  transition-property: none!important;
  transition-timing-function:none!important;
  z-index: 1001;
}
/* #brx-header.brx-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .0);
  -webkit-backdrop-filter: blur(0px) saturate(1);
  backdrop-filter: blur(0px) saturate(1);
  z-index: -1;
  pointer-events: none;
  transition: all 0.4s 
ease-in-out;
} */
#xcanvas{
  position: fixed;
  inset: 0;           /* top:0; right:0; bottom:0; left:0 */
  width: 100vw!important;
  height: 100vh!important;
  z-index: 2147483647; /* se ti serve sopra tutto */
  background: transparent; /* o quello che vuoi */
}
@media(min-width:992px) and (max-width:1440px){
  .service-section{
    position: relative!important;
    min-height: 100vh!important;
    height:100vh!important;/* <-- importante */
    overflow: hidden!important;    /* evita bleed mentre trasli l'interno */
  }
  .scroller-sec{
    will-change: transform!important;
    overflow: visible!important;  /* nessuno scroll interno, gestiamo noi via GSAP */
  }
}

.p-head {
  transition: all 0.3s 
ease-in-out;
}
.scrolling .p-head{
  padding: 2rem 4rem!important;
}