/* 
Theme Name: S99 Child
Theme URI: https://studio99.sm
Description: S99 Child is a child theme of S99, created by Studio99 team
Author: Studio99 Team
Author URI: https://studio99.sm
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/


/* =========================
   BLU LINES
========================= */

.s99-blu-line {
    position: relative;
    display: inline-block;
    padding-top: 20px; 
}

.s99-blu-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 120px; 
    height: 20px;
    background: url("https://www.mototrainermonza.it/wp-content/uploads/2026/05/blu-line.svg") no-repeat;
    background-size: contain;
}



/* =========================
   HOVER LINES
========================= */


.s99-hover-neon {
    position: relative;
    overflow: hidden; 
    border-radius: 12px; 
    transition: all 0.5s ease;
}


.s99-hover-neon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #0043BA 90deg,   
        #FFED00 180deg,  
        transparent 270deg,
        #0043BA 360deg
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: s99RotateNeon 4s linear infinite;
    z-index: 1;
}


.s99-hover-neon::after {
    content: '';
    position: absolute;
    inset: 3px; 
    background: inherit; 
    border-radius: 9px; 
    z-index: 2;
}


.s99-hover-neon > * {
    position: relative;
    z-index: 3;
}


.s99-hover-neon:hover::before {
    opacity: 1;
}

.s99-hover-neon:hover {
    box-shadow: 0 0 20px rgba(0, 67, 186, 0.25), 0 0 40px rgba(255, 237, 0, 0.2);
}


@keyframes s99RotateNeon {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* =========================
   EFFETTO SFUMATO SLIDER
========================= */

.my_testimonial_slider {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* Animation  */
.my_testimonial_slider .swiper-wrapper {
  transition-timing-function: linear !important;
}

/* Fix slider */
.my_testimonial_slider .swiper-slide {
  transition-timing-function: linear !important;
}


/* Animate container */
.scroll-left,
.scroll-right {
  display: inline-flex;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Directions */
.scroll-left {
  animation-name: scroll-left;
}

.scroll-right {
  animation-name: scroll-right;
}

/* Keyframes optimizados GPU */
@keyframes scroll-left {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes scroll-right {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}



/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width: 768px) {
  .scroll-text {
    font-size: 36px;
    font-weight: 500;
  }

  .scroll-left,
  .scroll-right {
    animation-duration: 40s;
  }
}



@media (prefers-reduced-motion: reduce) {
  .scroll-left,
  .scroll-right {
    animation: none;
  }
}


/* =========================
   EFFETTO SFUMATO
========================= */

.s99-difumine{
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );

    background-color: #000;
}



/* =========================
   HEADER LIQUID GLASS EFFECT
========================= */

.s99-header {
  background-color: transparent; 
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}


.s99-header.is-scrolled {
  background-color: rgb(0 0 0 / 35%);
  backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px); 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}


/* =========================
   ANIMATE TEXT
========================= */


.hero-rotator-container {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 7rem; 
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    display: flex;            
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 1.5em;             
    overflow: hidden;          
    box-sizing: border-box;
  }

  .word {
    position: absolute;
    margin: 0;
    opacity: 0;
    color: rgba(255, 255, 255, 0.6); 
    white-space: nowrap;
    animation: impactRotator 15s infinite ease-in-out;
    pointer-events: none;      
  }

 
  .word:nth-child(1) { animation-delay: 0s; }
  .word:nth-child(2) { animation-delay: 3s; }
  .word:nth-child(3) { animation-delay: 6s; }
  .word:nth-child(4) { animation-delay: 9s; }
  .word:nth-child(5) { animation-delay: 12s; }

  @keyframes impactRotator {
    0% {
      opacity: 0;
      filter: blur(12px);
      transform: scale(2);     
    }
    3% {
      opacity: 0.6;
      filter: blur(0);
      transform: scale(1);
    }
    17% {
      opacity: 0.6;
      filter: blur(0);
      transform: scale(1);
    }
    20% {
      opacity: 0;
      filter: blur(4px);
      transform: scale(0.8);
    }
    100% {
      opacity: 0;
    }
  }

  
  @media (max-width: 1024px) {
    .hero-rotator-container {
      font-size: 4.5rem;      
    }
  }

  @media (max-width: 768px) {
    .hero-rotator-container {
      font-size: 2.5rem;       
      height: 1.8em;           
    }
  }

/* =========================
   LIQUIDGLASS EFFECT
========================= */

.liquidglass {
backdrop-filter: blur(15px); 
  -webkit-backdrop-filter: blur(15px); 
}

/* =========================
   GRADIENT BORDER
========================= */

.gradient-border {
  position: relative;
  border-radius: 16px;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, blue, yellow);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}