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


/* =========================
   INFINITE SCROLLING OF TEXT
========================= */

.scroll-container {
  overflow: hidden;
  white-space: nowrap;
}

/* Text */
.scroll-text {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-size: 88px;
  font-weight: 600;
  line-height: 1.15;
  padding-right: 2rem;
}

/* Section colors */
#scroll_text .scroll-text {
  color: #191919;
}

#news .scroll-text {
  color: #fff;
}

/* 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;
  }
}



/* =========================
   ACCESSIBILITY
========================= */

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




/* =========================
   SCROLL EFFECT SERVICE SECTIONS HOME
========================= */

.card {
  position: sticky;
  top: 0;
  z-index: 10;

/* Transform size */
  transform: scale(0.85);
  transition: 
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    /*box-shadow 0.6s ease;*/

  will-change: transform;
}

/* Original size */
.card.is-growing {
  transform: scale(1);
  /*box-shadow: 0 25px 60px rgba(0,0,0,0.15);*/
}

/* =========================
   MOUSE POINTER
========================= */


@media (min-width: 1024px) {
  /* Circle external */
  .cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid #D9252F;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease;
    z-index: 9999;
  }

  /* When it enters a section with the custom-cursor class */
  .cursor-circle.active {
    width: 80px;
    height: 80px;
    border-width: 3px;
    background-color: #FFD10000;
  }
}


/*CUSTOM CONTACT FORM*/

.elementor-field-subgroup {
  display: flex;
  flex-wrap: wrap;
  margin-top: 38px;
}


.elementor-field-subgroup.elementor-subgroup-inline .elementor-field-option {
  padding-inline-end: 10px;
  padding: 12px;
  background-color: #F2F4F7;
  border-radius: 10px;
  margin: 5px;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-left: 5px;
}

html, body {
  overflow-x: hidden;
}


/*Header effect scroll*/

/*HEDER CUSTOM RESIZE*/
.header-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.custom-header {
    width: 100% !important;
    transition: all 0.4s ease !important;
}

.custom-header.scrolled {
    width: 86% !important;
    
}


/* =========================
   ANIMATION BG SERVICE SECTION
========================= */

.bg-animate {
  position: relative;
  width: 100%;

  background-color: #fffbeb; /* sfondo cream*/
  background-image: 
    radial-gradient(at 0% 0%, hsla(48, 100%, 88%, 1) 0, transparent 50%), 
    radial-gradient(at 100% 100%, hsla(42, 100%, 80%, 1) 0, transparent 50%);
  overflow: hidden;
  z-index: 0;
}

.bg-animate::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  filter: blur(40px);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.3);
  animation: moveAndMorph 12s infinite alternate ease-in-out;
  z-index: -1;
}

@keyframes moveAndMorph {
  0% {
    top: 10%;
    left: 10%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    top: 50%;
    left: 60%;
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
    transform: rotate(90deg) scale(1.1);
  }
  66% {
    top: 20%;
    left: 70%;
    border-radius: 67% 33% 47% 53% / 37% 20% 80% 63%;
    transform: rotate(180deg) scale(0.9);
  }
  100% {
    top: 70%;
    left: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(360deg) scale(1.2);
  }
}

/*ICON MENU ANIMATION*/

/* Main container */
.menu-btn {
  width: 34px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.4s ease;
}

/* Lines container */
.burger {
  width: 34px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Base style for the black lines */
.burger span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: #000;
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Elastic effect */
}

/* --- HOVER ANIMATION --- */

/* Top line moves down and rotates 45 degrees */
.menu-btn:hover span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

/* Middle line disappears and shrinks */
.menu-btn:hover span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

/* Bottom line moves up and rotates -45 degrees */
.menu-btn:hover span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/*Custom form lavora con noi*/

.elementor-upload-field {
    margin-top: 20px;
}

/*Organic shape effect*/

.elementor-motion-bg {
    position: relative;
    overflow: hidden;
}

/* organic animation phorm */
.elementor-motion-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: 400px; 
    max-height: 400px;
    background-color: #000;
    transform: translate(-50%, -50%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
    z-index: 0; 
    pointer-events: none; 
}

/* Shape animation */
@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================= */
/* Vmobile version */
@media (max-width: 480px) {
    .elementor-motion-bg::before {
        max-width: 260px;
        max-height: 260px;
    }
}

.elementor-widget-video .elementor-wrapper iframe, .elementor-widget-video .elementor-wrapper video {
    background-color: #fed700;
}


/* =========================
   SMOOTH SCROLL
========================= */
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: auto;
}
}



/* =========================
   ANIMATION IMAGE TEAM HOVER
========================= */

.dinamic-image {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-image: var(--img-1); 
    background-size: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-position: center top; 
    background-repeat: no-repeat;
}

.dinamic-image::before,
.dinamic-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top; 
    opacity: 0;
    z-index: -1;
    transition: opacity 0.8s ease, transform 1.2s ease;
}

/* Layer image 2 */
.dinamic-image::before {
    background-image: var(--img-2);
}

/* Layer image 3 */
.dinamic-image::after {
    background-image: var(--img-3);
}


.dinamic-image:hover {
    transform: scale(1.03);
}


.dinamic-image:hover::before {
    opacity: 1;
    transform: scale(1.1);
    transition-delay: 0.2s; 
}

.dinamic-image:hover::after {
    opacity: 1;
    transform: scale(1.15);
    transition-delay: 1.1s; 
}

/*Custon mobile text*/
.elementor-24 .elementor-element.elementor-element-10157b2 .elementor-nav-menu--dropdown .elementor-sub-item {
  line-height: 30px;
}

/* =========================
   OFFSET SCROLL
========================= */

:target {
  scroll-margin-top: 100px;
}



/* =========================
   EFFECT PULSE BUTTOM PLAY
========================= */

.elementor-custom-embed-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.4); 
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  animation: pulseWave 2s infinite;
  z-index: -1;
}


.elementor-custom-embed-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  animation: pulseWave 2s infinite;
  animation-delay: 1s;
  z-index: -1;
}

@keyframes pulseWave {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}



/* =========================
   VIDEO PLAY SCROLL
========================= */

    .scroll-video-wrapper video {
        width: 100%;
        max-width: 900px;
        border-radius: 20px;
        display: block;
    }


/* =========================
   HERO SECTION BACKGROUND COLOR MOBILE
========================= */

@media (max-width: 768px) {
  .section-hero {
    background-color: #FFD100 !important;
   
  }
}