/* codice realizzato da Alessandro Terracciano - per info info@whooho.it*/ 

* {
  font-family: "Montserrat", sans-serif;
}



html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}


body, html, #app {
  margin: 0;
  width: 100%;
  height: auto;
background-color: #fff;}

#app {
  position: relative;
  height: 100vh;
  font-family: "Montserrat", sans-serif;
  
}

.hero {
  height: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}


h1, h2 {
  margin: 0;
  padding: 0;
  color: black;
  text-transform: uppercase;
 
  line-height: 100%;
  user-select: none;
  
  
}

h1 {
  position: relative;
  z-index: 2;
  font-size: 100px;
  font-weight: 700;
  
}

h2 {
  font-size: 80px;
  font-weight: 500;
}
#webgl-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
   width: 100vw;
   height: 100vh;
   background: transparent !important;

}

.buttons {
  position: fixed;
  width: 100%;
  bottom: 15px;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

button {
  font-family: "Montserrat", sans-serif;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  border: 1px solid grey;
  padding: 4px 8px;
}
/* --- Cursor Effect --- */
.mouse-effect {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999; /* AGGIUNGI QUESTO */
}
.circle, .circle-follow {
  border-radius: 50%;
  position: absolute;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;

}
.circle {
  width: 10px;
  height: 10px;
  background-color: #000;
}
.circle-follow {
  width: 40px;
  height: 40px;
  border: 1px solid #000;
}

.mouse-distortion {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.mouse-distortion canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.distortion-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}



/* cambio colore logo */
/* Tema light - logo nero */
body.theme-light .logo-fill {
  fill: #111;
}

/* Tema dark - logo bianco */
body.theme-dark .logo-fill {
  fill: #fff;
}

.logo-fill {
  transition: fill 0.3s ease;
}


.section-white {
  padding: 100px 20px;
  color: #111;
  text-align: center;
  z-index: 10;
  position: relative;

}

.section-title {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-text {
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto;
}
/* --- sezione animazione di testo--- */
/* --- oRIGINAL - Temporaneo--- */
.custom-animated-text {
  --font-size-min: 20;
  --font-size-max: 36;
  --font-ratio-min: 1.15;
  --font-ratio-max: 1.33;
  --font-width-min: 375;
  --font-width-max: 1500;
  --font-level: 4;
  --line: #ddd;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 200px 20px;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

.custom-animated-text h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  background-image: linear-gradient(90deg, #111 0 0);
  background-size: 200% 1lh;
  background-repeat: no-repeat;
  background-position-x: 180%;
  background-position-y: 100%;
  color: transparent;
  background-clip: text;
  -webkit-text-stroke: 1px #111;
  text-wrap: pretty;
  animation: fill both linear;
  animation-timeline: scroll(root);
  font-family: 'Montserrat', sans-serif;

}

@keyframes fill {
  to {
    background-position-x: 100%, 0;
  }
}


/* Animazione testo progress def*/

@keyframes fill {
  to {
    background-position-x: 100%, 0;
  }
}

.fluid {
  --line: #ccc;
  font-family: "Montserrat", sans-serif;
  padding: 200px 0;
  text-align: center;
  position: relative;
  background: #fff;
}

.heading h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  background-image: linear-gradient(90deg, #000 0 0);
  background-size: 200% 1lh;
  background-repeat: no-repeat;
  background-position-x: 180%;
  background-position-y: 100%;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-stroke: 1px #111;
  animation: fill both linear;
  animation-timeline: scroll(root);
  text-wrap: balance;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700;
  
}


/* Animazione testo gsap def*/
.mask-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 200px 20px;
}

.mask-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  color: #111;
  position: relative;
  z-index: 2;
  mix-blend-mode: difference;
}

.mask-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: white;
  z-index: 1;
}

.clip-text-container {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 5px;
  padding-bottom: 60px;
  text-align: center;
  font-size: 139px;
}

.clip-line {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(90deg, #111 0%, #111 100%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(0, 0, 0, 0.2); /* leggero grigio */
  margin: 0;
  padding: 5px 0;
  display: inline-block;

}
.clip-line span {
  display: inline-block;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left center;
  background-image: linear-gradient(to right, #111, #111);
  color: rgba(0, 0, 0, 0.05);
  -webkit-background-clip: text;
  background-clip: text;
}


/* sfondo trasparente sfumato per menu*/
header.scrolled {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}



body {
  max-width: 100vw;
  overflow-x: hidden;
}
#animated-text {
  min-height: 60vh; /* più basso */
  padding-top: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.section-split {
  display: flex;
  justify-content: space-between;
  padding: 10vw 5vw;
  align-items: center;
  gap: 3rem;
}
.about-text {
  flex: 1.3;
  margin-bottom: 0; /* assicuriamoci non abbia spazio extra */
  font-size: 29px;
}
#about {
  margin-top: 0;
  padding-top: 30px; /* puoi ridurre ancora: 20px, 10px... */
}


/* Sezione scroll orizzontale */
#scroll-section {
  position: relative;
  min-height: 120vh; /* <-- ridotto per non creare troppo spazio */
  width: 100vw;
  overflow: hidden;
  padding-top: 280px;     /* aumentiamo il padding */
  margin-top: -50px;      /* riduciamo il margine negativo */
  z-index: 1;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  #scroll-section {
    padding-top: 200px; /* Riduce il padding su mobile */
    min-height: 60vh; /* Riduce l'altezza su mobile */
  }
}

.scroll-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
 

}

.scroll-text-wrapper {
  white-space: nowrap;
  font-size: clamp(12rem, 12vw, 12rem); /* Riduce la dimensione del testo su mobile */
  font-weight: bold;
  align-items: center;
  padding-left: 5vw;
  color: #111; /* colore iniziale scuro */
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .scroll-text-wrapper {
    font-size: clamp(6rem, 9vw, 7rem); /* Font size più piccolo per mobile */
    width: 100vh; /* Assicura che il contenitore si adatti al testo */
  height: 100vh;
  }
}

.scroll-text {
  display: inline-block;
}

#transition-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

#transition-wrapper,
#transition-wrapper .clip-line,
#transition-wrapper .scroll-text {
  transition: color 0.3s ease;
}

body.theme-dark .scroll-text-wrapper {
  color: #fff !important;
}

/* Regole theme obsolete rimosse - ora gestite da nav-styles.css */

/* scehde servizi*/
#services {
  padding: 150px 20px;
  background-color: #fff;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  background: #fff;
  color: #111;
  border: 2px solid #111;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: background 0.3s ease, color 0.3s ease;
  will-change: transform, opacity;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  perspective: 1000px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: center;
  position: relative;
  transition: transform 0.3s ease;
  will-change: transform;
}

.service-card:hover {
  background: #111;
  color: #fff;
  transform: translateY(-10px);
}

.service-card i {
  font-size: 36px;
  color: #111;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 18px;
  transition: color 0.3s ease;
}

.service-card .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover .video-bg {
  opacity: 1;
}

/* --- stile delle schede prospective sfondo nero */
/* --- FIX visibilità video slide scroll --- */
#video-slides-basic {
  background: #000;
  overflow: hidden;
  position: relative;
  z-index: 2; /* sopra a qualsiasi overlay */
  padding-top: 120px; /* aggiunge altezza per farlo renderizzare correttamente */
  padding-bottom: 190px; /* Aggiunge padding sotto */

  height: 100vh;
}

.sticky-title {
  position: absolute;
  left: 4vw; /* spostato a sinistra */
  height: 100vh;
  display: flex;
  z-index: 20; /* appena sopra ai video */
  pointer-events: none;
  text-align: left;
  width: auto;
  bottom: 8vh; /* <-- era troppo alto prima */
  font-family: 'Montserrat', sans-serif;
  font-size: 6vw;
  font-weight: 900;
  line-height: 1;
  color: white;
  text-transform: uppercase;
  gap: 1rem;
  pointer-events: none;
}

.sticky-title h2 {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sticky-title-impact {
  position: absolute;
  left: 0vw; /* spostato a sinistra */
  height: 100vh;
  display: flex;
  z-index: 20; /* appena sopra ai video */
  pointer-events: none;
  text-align: left;
  width: auto;
  bottom: 0vh; /* <-- era troppo alto prima */
  font-family: 'Montserrat', sans-serif;
  font-size: 6vw;
  font-weight: 900;
  line-height: 1;
  color: white;

  gap: 1rem;
  pointer-events: none;
}

#video-title {
  font-size: clamp(3rem, 10vw, 8rem);
  height: 130vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3; /* appena sopra ai video */
  pointer-events: none;
  color: white;
  text-transform: uppercase;
  font-weight: 900;
  z-index: 11;
  white-space: nowrap;
}

.slides-container {
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 100%;
  right: 20%;
  transform: translate(100%, -50%) rotateZ(-8deg); /* direzione inversa */
  transform-origin: left bottom;
  height: auto;
  width: max-content;
  gap: 0;
  perspective: 1200px;
}


.slide-block {
  flex: 0 0 auto;
  overflow: hidden;
  flex-shrink: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
  padding: 0 1vw;
}


.slide-block video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0px;
  transform-style: preserve-3d;
  transform-origin: center;
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  will-change: transform;
  transition: none; /* rimuoviamo la transizione per lasciare a GSAP il controllo */
}


.slide-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-title-intro {
  position: absolute;
  top: 15vh;
  left: 4vw;
  z-index: 10000;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: white;
  text-align: left;
  pointer-events: none;
}

.slides-viewport {
  position: absolute;
  top: 30%;
  left: 0;
  width: 150%;
  height: 75vh;
  transform: rotateZ(-7deg);
  transform-origin: left bottom;
  overflow: hidden;
}

.slides-track {
  display: flex;
  gap: 0;
  width: max-content;
  height: 100%;
  will-change: transform;
}

.title-solid {
  color: white;
  top: 25vh;

}

.title-outline {
  color: transparent;
  -webkit-text-stroke: 2px white;
}

.vertical-caption {
  position: absolute;
  top: 50%;
  right: 2vw;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: white;
  text-transform: uppercase;
  z-index: 15;
  pointer-events: none;
  opacity: 0.8;
}

/* stili filtro schede video*/
.slide-inner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); /* ombra scura */
  pointer-events: none;
  z-index: 2;
  opacity: 1; 
}

/* coloreslide video*/

.slide-inner {
  position: relative;
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.90; /* regola qui la trasparenza */
  z-index: 2;
  border-radius: inherit;
}

/* Colori filtro */
.video-overlay.red {
  background-color: rgba(255, 0, 0, 0.6);
}

.video-overlay.blue {
  background-color: rgba(0, 123, 255, 0.6);
}

.video-overlay.orange {
  background-color: rgba(255, 100, 0, 0.6);
}


/*cambio colore animazione del mouse*/
body.theme-dark .circle {
  background-color: #fff;
}

body.theme-dark .circle-follow {
  border-color: #fff;
}

body.theme-light .circle {
  background-color: #000;
}

body.theme-light .circle-follow {
  border-color: #000;
}

/* testo in hero sullo sfondo*/ 
.hero-loop-container {
  position: absolute;
  top: 80%;
  left: -80%;
  transform: rotate(-10deg);
  z-index: 0;
  opacity: 0.08; /* ← GESTISCI OPACITÀ QUI */
  width: 200%;
  overflow: hidden;
  pointer-events: none;
}

.hero-loop-text {
  display: flex;
  white-space: nowrap;
  font-size: 5vw;
  font-weight: 800;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  color: #000000;
  animation: heroTextScroll 20s linear infinite; /* ← GESTISCI VELOCITÀ QUI */
}

.hero-loop-text span {
  padding-right: 5vw;
}
@keyframes heroTextScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* Seconda diagonale inversa */
.hero-loop-container.reverse {
  top: 50%;                  
  left: auto;
  right: -60%;               /* parte da destra */
  transform: rotate(25deg);  /* opposta alla prima */
}

.hero-loop-text.reverse {
  animation: heroTextScrollReverse 25s linear infinite;
}

@keyframes heroTextScrollReverse {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* animazione video schede servizi*/
.service-card.hover-video {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.service-card .video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card .video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
}

.service-card .blue-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(136, 0, 255, 0.6); /* blu elettrico chiaro */
  pointer-events: none;
  z-index: 1;
}

/* Mostra video al passaggio */
.service-card.hover-video:hover .video-bg {
  opacity: 1;
}

/* Contenuto sopra il video */
.service-card.hover-video {
  position: relative;
  overflow: hidden;
  background-color: #fff;
}

.service-card .video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card .video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px);
}

/* 🔥 Overlay ridenominata per evitare conflitti */
.card-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8; /* ← controlla la trasparenza qui */
  z-index: 1;
  pointer-events: none;
}

/* Mostra video al passaggio */
.service-card.hover-video:hover .video-bg {
  opacity: 1;
}

/* Contenuto sopra il video */
.service-card.hover-video i,
.service-card.hover-video h3,
.service-card.hover-video p {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.service-card.hover-video:hover h3,
.service-card.hover-video:hover p {
  color: #fff;
}


.card-overlay.blue    { background-color: rgba(0, 174, 255, 1); }
.card-overlay.violet  { background-color: rgba(136, 0, 255, 1); }
.card-overlay.orange  { background-color: rgba(255, 110, 0, 1); }
.card-overlay.red     { background-color: rgba(255, 0, 80, 1); }
.card-overlay.yellow  { background-color: rgb(231, 200, 0); }
.card-overlay.teal    { background-color: rgb(0, 221, 166); }
.card-overlay.pink    { background-color: rgba(255, 100, 180, 1); }
.card-overlay.cyan    { background-color: rgb(0, 209, 209); }
.card-overlay.green   { background-color: rgba(0, 220, 80, 1); }
.card-overlay.gold    { background-color: rgba(255, 200, 0, 1); }

/* personalizzazione barra del browser */

/* Scrollbar per Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1; /* colore dello sfondo */
}

::-webkit-scrollbar-thumb {
  background-color: #ffda00;  /* giallo oro */
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ffda00
  ; /* giallo un po' più scuro all’hover */
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ffda00  #f1f1f1;
}

/* Modern Footer Styles */
.main-footer {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  margin: 0;
  padding: 4rem 2rem;
  padding-top: 120px;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo svg {
  height: 60px;
  width: auto;
}

.footer-tagline {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 300px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Navigation Columns - Direct grid items */
.footer-nav-column {
  display: flex;
  flex-direction: column;
}

.footer-nav-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav-column ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-link:hover {
  opacity: 1;
}

.footer-link i {
  margin-right: 0.5rem;
  width: 1.25rem;
  text-align: center;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  color: #fff;
  background: rgba(255,255,255,0.1);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.2);
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    gap: 3rem;
  }
  
  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
  }
}
/*scroll loghi*/
.infinite-scroll {
  background: white;
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Cambiato da center a flex-start */
  animation: scroll 30s linear infinite;
  width: fit-content; /* Permette al container di essere largo quanto il contenuto */
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 40px;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 120px;
}

.logo-item i {
  font-size: 2.8rem;
  color: #000;
}

.tech-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.evo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 2px;
}

/* Effetto hover */
.logo-item:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

/* Sfumature ai bordi */
.infinite-scroll::before,
.infinite-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
}

.infinite-scroll::before {
  left: 0;
  background: linear-gradient(to right, white 0%, transparent 100%);
}

.infinite-scroll::after {
  right: 0;
  background: linear-gradient(to left, white 0%, transparent 100%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Sposta di metà della larghezza totale */
  }
}

.audio-control {
  margin-left: 40px;
  display: flex;
  align-items: center;
}

.audio-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Icona audio con barre */
.audio-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
}

.bar {
  width: 2px;
  background: currentColor;
  transition: all 0.3s ease;
}

.bar-1 { height: 8px; }
.bar-2 { height: 12px; }
.bar-3 { height: 6px; }
.bar-4 { height: 10px; }

/* Label */
.audio-label {
  position: relative;
  z-index: 2;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Riempimento al click */
.audio-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F7D046;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

.audio-btn.is-playing::before {
  transform: translateY(0);
}

/* Animazione barre quando attivo */
.audio-btn.is-playing .bar {
  animation: soundBars 1s infinite ease-in-out;
}

.audio-btn.is-playing .bar-1 { animation-delay: 0s; }
.audio-btn.is-playing .bar-2 { animation-delay: 0.2s; }
.audio-btn.is-playing .bar-3 { animation-delay: 0.4s; }
.audio-btn.is-playing .bar-4 { animation-delay: 0.6s; }

@keyframes soundBars {
  0% { height: 4px; }
  50% { height: 15px; }
  100% { height: 4px; }
}

/* Temi */
.theme-light .audio-btn {
  color: #000;
}

.theme-dark .audio-btn {
  color: #fff;
}

/* Onde sonore */
.sound-waves {
  display: flex;
  gap: 3px;
  margin-left: 2px;
}

.wave {
  width: 2px;
  height: 10px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0;
}


/* Animazione onde sonore quando attivo */
.audio-btn.is-playing .wave {
  animation: soundWave 1s ease-in-out infinite;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.2s; }
.wave:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveFlow {
  0% { transform: translateX(0) scaleX(1); }
  50% { transform: translateX(0) scaleX(1.1); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes soundWave {
  0% { transform: scaleY(0.3); opacity: 0.2; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.3); opacity: 0.2; }
}

/* Allineamento con il menu */
.main-header nav ul {
  align-items: center;
}

/* Mobile styles */
.mobile-menu .audio-btn {
  margin: 20px auto;
}

/* Privacy Policy Styles */
.privacy-content {
  padding: 120px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.privacy-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.policy-section {
  margin-bottom: 3rem;
}

.policy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.policy-section p, 
.policy-section ul {
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.policy-section ul {
  padding-left: 20px;
}

.policy-section li {
  margin-bottom: 0.5rem;
}

.policy-section strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  .privacy-content {
    padding: 100px 15px 40px;
  }
  
  .privacy-content h1 {
    font-size: 2rem;
  }
  
  .policy-section h2 {
    font-size: 1.25rem;
  }
}


.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text p {
    color: #fff !important;
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-link {
    color: #ffda00;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-accept {
    background: #ffda00;
    color: #111;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept:hover {
    background: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-accept {
        width: 100%;
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffda00;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Aggiungi questo */
}

.loader-content {
    width: 100%;
    text-align: center;
    max-width: 100vw; /* Aggiungi questo */
    overflow: hidden; /* Aggiungi questo */
}

.loader-progress-container {
    width: 90%;
    max-width: 100%; /* Modifica questo */
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* Aggiungi questo */
}

.loader-content {
    width: 100%;
    text-align: center;
}

.loader-logo {
    width: var(--logo-size, 350px); /* Dimensione personalizzabile */
    margin: 0 auto 4rem;
    display: flex;
    justify-content: center; /* Assicura il centramento orizzontale */
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Assicura che il wrapper occupi tutto lo spazio disponibile */
}

.preloader-path {
    fill: none;
    stroke: #111;
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawPath 2s ease forwards;
}

.loader-progress-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.loader-progress {
    height: 40px;
    background: rgba(0,0,0,0.1);
    border-radius: 0; /* Rimosso bordo arrotondato */
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #111;
}

.progress-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffda00; /* Cambiato colore per visibilità sulla barra nera */
    font-size: 1.8rem;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    mix-blend-mode: difference; /* Assicura visibilità su entrambi gli sfondi */
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes logoReveal {
    0% {
        transform: scale(0) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes flipReveal {
    0% {
        transform: rotateY(90deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotateY(45deg) scale(0.75);
        opacity: 0.5;
    }
    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes drawPath {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.preloader.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.client-area-btn {
  background-color: #ffda00;
  color: #111 !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  margin-left: 15px;
  white-space: nowrap;
  display: inline-block;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.client-area-btn:hover {
  transform: translateY(-2px);
  background-color: #ffe44d;
}

.client-area-btn::after {
  display: none !important;
}

@media (max-width: 1024px) {
  .client-area-btn {
    padding: 4px 12px;
    font-size: 13px;
    margin-left: 10px;
  }
}

@media (max-width: 768px) {
  nav .client-area-btn {
    display: none;
  }

  .mobile-menu .client-area-btn {
    display: inline-block;
    margin: 15px auto;
    padding: 8px 20px;
    font-size: 16px;
  }
  
  .mobile-menu ul li:last-child {
    margin-top: 20px;
  }
}



/* Stili per mobile */
@media (max-width: 768px) {
 
  .logo-mask {
    padding-left: 5px; /* Padding solo per il logo */
  }


}

