body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: x-large;
}


/* loader caricamento pagina */
/* === LOADER GLOBALE === */
#global-loader2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f0f1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  gap: 30px;
  transition: opacity 0.6s ease-out;
}

/* Testo sopra la barra */
#loading-text2 {
  font-size: 18px;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(232, 28, 255, 0.6);
}

/* === CERCHIO CENTRALE ANIMATO (senza pallino) === */
#loader-circle2 {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Anello con bordo a gradiente circolare animato */
#loader-ring2 {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    #e81cff 0%,
    #40c9ff 50%,
    #e81cff 100%
  );
  -webkit-mask: linear-gradient(#fff 0, #fff) content-box, 
                linear-gradient(#fff 0, #fff);
  mask: linear-gradient(#fff 0, #fff) content-box, 
        linear-gradient(#fff 0, #fff);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  animation: rotateGradient 2s linear infinite;
  box-sizing: border-box;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Testo all'interno del cerchio */
#loader-text2 {
  position: absolute;
  text-align: center;
  color: white;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(232, 28, 255, 0.7);
  font-size: 0;
  letter-spacing: 1px;
  line-height: 1;
}

#loader-text2 strong {
  font-size: 30px;
  display: block;
  margin-bottom: 2px;
}

#loader-text2 small {
  font-size: 10px;
  opacity: 0.9;
}

/* === BARRA DI PROGRESSO === */
#progress-bar-container2 {
  width: 80%;
  max-width: 400px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#progress-bar-fill2 {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #e81cff, #40c9ff);
  border-radius: 3px;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 15px rgba(232, 28, 255, 0.4);
}




    /* === CONTENUTO PRINCIPALE === */
    #page-content {
      display: none;
      text-align: center;
      font-size: 24px;
      color: white;
    }

    #page-content h1 {
      margin: 20px 0;
    }

    #page-content p {
      max-width: 600px;
      margin: 0 auto;
      opacity: 0.8;
    }


/* Barra di navigazione */
#logo1 {
  display: flex;
  width: 20%;
  align-content: center;
  flex-direction: column;
  align-items: center;
}

#titolo1 {
  color: #fff;
}



.toolbar {
  display: flex;
  padding: 10px 20px;
  background-image: url(loghi/sfondo.png);
  background-size: cover;
  background-position: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.toolbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Scurisce leggermente lo sfondo */
  z-index: 1;
  pointer-events: none;
}

.toolbar > * {
  position: relative;
  z-index: 2; /* Tutti i figli stiano sopra lo sfondo */
}

/* Logo del sito */

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}



@media screen and (max-width: 480px) {
  #slider-image {
    width: 80%;
    height: auto;
  }

  #slider-container {
    gap: 5px;
  }

  #prev-btn,
  #next-btn {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

@font-face {
  font-family: 'Heavitas';
  src: url('Heavitas.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cocogoose';
  src: url('Cocogoose-Pro-Bold-trial.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* Sezione principale */
#sezione1 {
    padding: 10px;
    display: flex
;
    align-items: center;
    justify-content: space-between;
}

#div1 {
    text-align: left;
    margin-bottom: 100px;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
}



#titolofrase1 {
    font-size: xxx-large;
    font-family: 'Cocogoose', sans-serif;
    font-weight: bold;
    color: #ffffff;
    margin-top: 100px;
}

#frase1 {
    font-size: x-large;
    margin-top: -20px;
    color: #d1d1d1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-variant-caps: all-small-caps;

}



/* From Uiverse.io by kennyotsu */

#loader {
  color: rgb(124, 124, 124);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 25px;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 40px;
  padding: 10px 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-radius: 8px;
}

#words-container {
  overflow: hidden;
  position: relative;
}

#words-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bg-color) 10%,
    transparent 30%,
    transparent 70%,
    var(--bg-color) 90%
  );
  z-index: 20;

}

.word {
    display: block;
    height: 100%;
    padding-left: 6px;
    color: #00b3fe;
    animation: spin_4991 6s infinite;
    font-weight: 900;
}

#loading-text{
    display: contents;
}


@keyframes spin_4991 {
  10% {
    -webkit-transform: translateY(-102%);
    transform: translateY(-102%);
  }

  25% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  35% {
    -webkit-transform: translateY(-202%);
    transform: translateY(-202%);
  }

  50% {
    -webkit-transform: translateY(-200%);
    transform: translateY(-200%);
  }

  60% {
    -webkit-transform: translateY(-302%);
    transform: translateY(-302%);
  }

  75% {
    -webkit-transform: translateY(-300%);
    transform: translateY(-300%);
  }

  85% {
    -webkit-transform: translateY(-402%);
    transform: translateY(-402%);
  }

  100% {
    -webkit-transform: translateY(-400%);
    transform: translateY(-400%);
  }
}
/* --- MOBILE: LOADER TESTO DINAMICO RESPONSIVE --- */
@media (max-width: 768px) {
  #contenitoreperdesc {
    padding: 15px 20px;
    text-align: center;
  }

  #loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 18px; /* Dimensione leggibile su tablet/mobile */
    height: auto;
    min-height: 40px;
    padding: 10px;
    border-radius: 8px;
    color: #c0c0c0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
  }

  #loading-text {
    display: block;
    font-size: 1rem;
    color: #d1d1d1;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    padding-bottom: 5px;
  }

  #words-container {
    position: relative;
    width: 100%;
    height: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
  }

  #words-container::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .word {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #00b3fe;
    font-weight: 900;
    font-size: 1.3rem;
    opacity: 0;
    animation: slideUpWords 6s infinite;
    line-height: 1.2;
  }

  /* Animazione sequenziale per ogni parola */
  .word:nth-child(1) { animation-delay: 0s; }
  .word:nth-child(2) { animation-delay: 1.2s; }
  .word:nth-child(3) { animation-delay: 2.4s; }
  .word:nth-child(4) { animation-delay: 3.6s; }
  .word:nth-child(5) { animation-delay: 4.8s; }

  @keyframes slideUpWords {
    0%, 10% { opacity: 0; transform: translateY(100%); }
    15%, 25% { opacity: 1; transform: translateY(0); }
    30%, 100% { opacity: 0; transform: translateY(-100%); }
  }
}

/* --- SCHERMI MOLTO PICCOLI (< 480px) --- */
@media (max-width: 480px) {
  #loader {
    font-size: 16px;
    gap: 6px;
    padding: 8px;
  }



  .word {
    font-size: 1.15rem;
    height: 36px;
  }

  #words-container {
    height: 36px;
  }
}



/* Stili Bottone */
#bottone1 {
  font-weight: bold;
  position: relative;
  width: 40%;
  margin-top: 20px;
  height: 60px;
  font-size: larger;
  background-color: #000;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
} 

#bottone1::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -5px;
  margin: auto;
  width: 104%;
  height: 68px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#bottone1::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

#bottone1:hover::after {
  filter: blur(30px);
}

#bottone1:hover::before {
  transform: rotate(-180deg);
}

#bottone1:active::before {
  scale: 0.7;
}

#bottone1:hover {
  transform: scale(1.2);
}

/* Secondo bottone */
    #bottone2 {
      font-size: larger;
      font-weight: bold;
      border: none;
      box-shadow: 0px 6px 15px rgb(0 0 0);
      position: relative;
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding-left: 2rem;
      padding-right: 2rem;
      cursor: pointer;
      width: 280px;
      height: 60px;
      justify-content: center;
      margin: 30px;
      background-color: transparent;
      color: #ffffff;
      overflow: hidden;
    }

    #bottone2-bg {
      overflow: hidden;
      border-radius: 2rem;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgb(31, 31, 31);
      border-color: rgb(31, 31, 31);
      transform: scale(1);
      transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
      z-index: 1;
    }

    #bottone2-bg-layers {
      transform: translate(-50%);
      aspect-ratio: 1 / 1;
      width: max(200%, 10rem);
    }

    .button-bg-layer {
      border-radius: 9999px;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      transform: scale(0);
    }

    .button-bg-layer-1 {
      background-color: rgb(255, 255, 255);
    }

    .button-bg-layer-2 {
      background-color: rgba(23, 241, 209);
    }

    .button-bg-layer-3 {
      background-color: #008dc7;
    }

    #bottone2-inner {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      z-index: 2;
    }

    #bottone2-inner-static,
    #bottone2-inner-hover {
      display: block;
      width: 100%;
      height: 100%;
      line-height: 60px;
      text-align: center;
      pointer-events: none;
    }

    #bottone2-inner-hover {
      position: absolute;
      top: 0;
      left: 0;
      opacity: 0;
      transform: translateY(70%);
      transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1);
    }

    #bottone2:hover #bottone2-inner-static {
      opacity: 0;
      transform: translateY(-70%);
      transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s linear;
    }

    #bottone2:hover #bottone2-inner-hover {
      opacity: 1;
      transform: translateY(0);
    }

    #bottone2:hover .button-bg-layer-1,
    #bottone2:hover .button-bg-layer-2,
    #bottone2:hover .button-bg-layer-3 {
      transform: scale(1);
      transition: transform 1.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s linear;
    }

    #bottone2:hover .button-bg-layer-2 {
      transition-delay: 0.1s;
    }

    #bottone2:hover .button-bg-layer-3 {
      transition-delay: 0.2s;
    }
#foto2 {
  border-radius: 30px;
}

/* Sezione 2 */
#sezione2 {
  text-align: center;
  background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
  padding: 1px;
}

#titolofrase2 {
  font-size: xxx-large;
  font-family: 'Cocogoose', sans-serif;
  font-weight: bold;
  color: #ffffff;
}










#div5{
  text-align: left;
  margin-left: 100px;
}



#svg1{
  display: contents;
}


#div6 {
  text-align: center; /* Modificato da 'left' a 'center' */
  margin-left: 0; /* Rimossa la margine laterale fissa */
  margin-top: 80px;
}

#titolofrase5 {
  font-size: xxx-large;
  font-family: 'Cocogoose', sans-serif;
  font-weight: bold;
  color: #ffffff;
}

#frase5 {
  font-size: x-large;
  margin-top: -40px;
  color: #adadad;
}

#sezione5 {
  background: linear-gradient(to bottom, #333, #333);
}

#sezione7 {
  background: linear-gradient(to bottom, #333, #333);

}

#spaziop {
  margin-top: 0px;

}

#frase11 {
  border: 2px solid rgb(243, 78, 78);
  border-radius: 10px;
  padding: 10px;
  position: relative;
  color: rgb(255, 106, 106);
  display: inline-block;
  animation: glowing 1.5s infinite alternate;
  font-size: xx-large;
  font-weight: bold;
  margin-left: 100px;
}

@keyframes glowing {
  from {
    box-shadow: 0 0 10px red, inset 0 0 5px red;
  }
  to {
    box-shadow: 0 0 30px red, inset 0 0 15px red;
  }
}



#frase15 {
  border: 2px solid rgb(0 255 57);
  border-radius: 10px;
  padding: 10px;
  position: relative;
  color: rgb(0 255 57);
  display: inline-block;
  animation: glowing2 1.5s infinite alternate;
  font-size: xx-large;
  font-weight: bold;
  margin-left: 100px;
}



 
@keyframes glowing2 {
  from {
    box-shadow: 0 0 10px rgb(0 255 57), inset 0 0 5px rgb(0 255 57);
  }
  to {
    box-shadow: 0 0 30px rgb(0 255 57), inset 0 0 15px rgb(0 255 57);
  }
}




/* sezione 6 ' */
#frase12 {
  font-size: revert;
  color: #ffffff;
  text-align: center; /* Modificato da 'left' a 'center' */
}

#sezione6 {
  display: flex;
  height: 35vh;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  margin-top: -32px;
  background: #333;
  padding: 20px;
}

#svg6 {
  width: 30%;
}


#svg7 {
  width: 30%;
  margin-left: 10px;
}




#sezione8 {
  display: flex;
  height: 100vh;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  margin-top: -32px;
  background: #333;
  padding: 20px;
}








/* Container principale */
.container,
#portfolio {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

/* Titolo */
h1,
#portfolio-title {
  font-size: 2rem;
  font-weight: 700;
}

/* Descrizione */
p.description,
#portfolio-description {
  color: #555;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}





/* Stile base per tutti i pulsanti del filtro */
.filter-btn {
  width: 140px;
  height: auto;
  float: left;
  transition: .5s linear;
  position: relative;
  display: block;
  overflow: hidden;
  padding: 10px;
  text-align: center;
  margin: 0 5px;
  background: transparent;
  text-transform: uppercase;
  font-weight: 900;
  color: rgb(190, 190, 190);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  border: none;
  box-sizing: border-box;
}

/* Effetto bordo animato sotto e sopra */
.filter-btn:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  border-bottom: 4px solid transparent;
  border-left: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(100%);
}

.filter-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 4px solid transparent;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(-100%);
}

/* Hover: attiva animazione dei bordi */
.filter-btn:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.filter-btn:hover:before {
  border-color: #fc00ff;
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .3s;
}

.filter-btn:hover:after {
  border-color: #fc00ff;
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .5s;
}

/* Stile attivo (pulsante selezionato) */
.filter-btn.active {
  color: #00b3fe;
  font-weight: 900;
}


#portfolio-filters {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}



    /* ✅ Griglia generica dei progetti (default) */
/* ✅ Griglia progetti */
.grid,
#portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  justify-items: center;
}

        /* Wrapper per il carosello: nasconde gli elementi fuori vista */
        .portfolio-grid-wrapper {
            overflow: hidden;
            width: 100%;
            padding-bottom: 20px; /* Spazio sotto la griglia */
        }

        /* Stili specifici per la griglia quando è in modalità carosello (per i loghi) */
        .grid.carousel-mode {
            display: flex; /* Dispone gli elementi in una riga */
            flex-wrap: nowrap; /* Impedisce il ritorno a capo */
            /* La larghezza totale sarà gestita dal JS tramite transform */
        }

        
/* ✅ Stile base per ogni progetto */
.project {
  width: 100%;
  max-width: 220px;
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}
.project:hover {
  transform: scale(1.05);
}
        /* ✅ Progetti con categoria "loghi" */
        .project.logo-project {
            background: transparent;
            box-shadow: none;
            padding: 0.2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            /* Larghezza fissa per gli elementi del carosello */
            flex: 0 0 20%; /* 5 elementi per vista (100% / 5) */
            max-width: 95%; /* Assicura che non si espanda oltre */
        }
        
        /* Regola la larghezza per schermi più piccoli */
        @media (max-width: 768px) {
            .project.logo-project {
                flex: 0 0 33.33%; /* 3 elementi per vista su tablet */
                max-width: 33.33%;
            }
        }

        @media (max-width: 480px) {
            .project.logo-project {
                flex: 0 0 50%; /* 2 elementi per vista su mobile */
                max-width: 50%;
            }
        }


       /* ✅ Immagine all’interno del progetto */
.project img {
  width: 100%;
  height: 150px;           /* Altezza fissa per uniformare i loghi */
  object-fit: contain;     /* Evita il taglio dell'immagine */
    border-radius: 8px;
    background-color: #ffffff00;
    padding: 3px;
}
        /* ✅ Immagini loghi: dimensione fissa e uniforme */
        .project.logo-project img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            margin: 0 auto;
        }

        /* ✅ Container per i pulsanti di navigazione loghi */
        .logo-pagination {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 20px;
            grid-column: 1 / -1; /* Questo assicura che il container occupi tutta la larghezza nella griglia */
        }

      

.btn-12 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #f8f8f8;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  min-width: 140px;
  min-height: 48px;
}

.btn-12 span {
  position: relative;
  z-index: 2;
  transition: opacity 0.4s ease;
}

/* Freccia sinistra */
#prev-logo-btn:hover span {
  opacity: 0;
  transform: translateX(-10px);
}

#prev-logo-btn::after {
  content: "⬅";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0;
  color: #007bff;
  transition: all 0.4s ease;
}

#prev-logo-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.6);
}

/* Freccia destra */
#next-logo-btn:hover span {
  opacity: 0;
  transform: translateX(10px);
}

#next-logo-btn::after {
  content: "➡";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0;
  color: #007bff;
  transition: all 0.4s ease;
}

#next-logo-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.6);
}

/* Effetto hover generale */
.btn-12:hover {
  background-color: #e9f5ff;
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

        




#testimonials {
    background-color: #0d1117;
    padding: 10px 0rem;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.testimonials-header h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.testimonials-header p {
  color: #777;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}













#html.contact-section {
  padding: 60px 20px;
  text-align: center;
}

#html .container {
  max-width: 800px;
  margin: 0 auto;
}

#html h2 {
  font-size: 2rem;
  color: #0d6efd;
  margin-bottom: 20px;
}

#html p {
  font-size: 1.1rem;
  color: #ababab;
  margin-bottom: 30px;
}

#html .cta-button {
  display: inline-block;
  background-color: #00b4fe;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.452);

}

#html .cta-button:hover {
  background-color: #003f9e;
}



body {
  background-color: #0d1117;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

.section-rischi-soluzione {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.rischi, .soluzione {
  flex: 1 1 450px;
  box-sizing: border-box;
}

.rischi h2,
.soluzione h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.rischio {
    display: flex;
    align-items: baseline;
    margin-bottom: 25px;
    align-content: center;
}

.icon {
  font-size: 24px;
  margin-right: 15px;
  background-color: #2b2f38;
  color: red;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.content p {
  font-size: 15px;
  color: #c9d1d9;
  margin: 0;
}

#css.soluzione {
  background: linear-gradient(135deg, #1b1f27, #2c3240);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #3a3f50;
}

#css p {
  margin-top: -10px;
  margin-bottom: 20px;
  color: #c9d1d9;
}

#css ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 25px;
}

#css li {
  margin-bottom: 12px;
  color: #c9d1d9;
  font-size: 15px;
  padding-left: 0;
  position: relative;
}

.cta-button {
  display: inline-block;
  background-color: #00b4fe;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #1e6fdd;
}

@media (max-width: 768px) {
  .section-rischi-soluzione {
    flex-direction: column;
    padding: 40px 20px;
  }

  .rischi, .soluzione {
    flex: 1 1 100%;
    padding: 10px;
  }
}

#dicono {
  font-size: 1.6rem;
  font-weight: 700;
  color: #5c5c5c;
  text-align: center;
  margin-bottom: 15px;
}





/* --- SEZIONE MEDIA RECENSIONI --- */

 .rating-summary {
    max-width: 300px;
    margin: 10px auto;
    padding: 10px;
    font-family: Arial, sans-serif;
    background: #222222;
    border: 1px solid #000000;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgb(0 0 0 / 0%);
    font-size: 14px;
    display: flex
;
    align-items: center;
    flex-direction: column;
    align-content: space-around;
    color: #bebebe;
    font-weight: bold;
}

  .summary-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
  }

  .average-info {
    flex: 0 0 80px;
  }



  #averageRating {
    font-size: 32px;
    font-weight: 900;
    color: #00b67a;
    margin: 0;
  }

  #rating-label {
font-size: 16px;
    font-weight: 900;
    margin: 2px 0;
  }

  #totalReviews {
    font-size: 16px;
    color: #bebebe;
    margin: 2px 0;
    font-weight: bold;
}

  .stars {
    font-size: 14px;
    color: #ffc107;
    margin: 5px 0;
  }

  .ratings-breakdown {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
        margin: 10px;
    margin-left: 20px;
  }

  .rating-row {
    display: flex;
    align-items: center;
  }

  .rating-text {
    width: 50px;
    font-size: 13px;
    color: #bebebe;
    text-align: left;
    font-style: normal;
}

  .progress-bar {
    width: 100px;
    height: 8px;
    background-color: #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 5px;
    position: relative;
  }

  .progress-fill {
    height: 100%;
    width: var(--progress, 0%);
    transition: width 0.4s ease-in-out;
  }

#dicono {
  font-size: 1.6rem;
  font-weight: 700;
  color: #5c5c5c;
  text-align: center;
  margin-bottom: 15px;
}


#numerrecensioni{
    font-size: 13px;
}








/* --- CAROSELLO TESTIMONIANZE --- */

/* Container esterno con overflow nascosto */
.carousel-container {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;

}

/* Track con scorrimento orizzontale */
.carousel-track {
  display: flex;
  gap: 20px;
  animation: scrollOrizzontale 60s linear infinite;
  width: max-content;
}

/* Animazione scroll orizzontale */
@keyframes scrollOrizzontale {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* --- CARD RECENSIONE --- */
.review-card {
  background: #222;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.7);
  padding: 20px;
  width: 400px;
  color: #ddd;
  display: flex;
  flex-direction: column;
  transition: max-height 0.35s ease, box-shadow 0.3s ease;
  max-height: 250px;
  overflow: hidden;
  position: relative;
  cursor: default;
}

.review-card.expanded {
  max-height: 1000px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.9);
  cursor: auto;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00bfff;
  margin-right: 15px;
  flex-shrink: 0;
}

.reviewer-info {
  flex-grow: 1;
}

.review-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 3px;
  color: #00bfff;
      display: flex
;
}

.review-date {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0;
      display: flex
;
}

.stars {
  color: gold;
  font-size: 1.2rem;
  user-select: none;
}

/* Testo recensione */
.testimonial-text {
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  transition: max-height 0.3s ease;
  margin-bottom: 10px;
  font-family: cursive;
  text-align: left;
}



/* Pulsante Leggi di più */
.read-more {
  font-size: 0.9rem;
  color: #00bfff;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
 align-self: flex-end;
  transition: color 0.25s ease;
}

.read-more:hover {
  color: #3e6e9e;
}

/* Link sito web */
.review-site {
  font-size: 0.9rem;
  margin-top: auto;
  align-self: flex-start;

  cursor: pointer;
  font-weight: 600;
  user-select: none;
  background: none;
  border: none;
}

.review-site a {
  color: #00bfff;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s ease;
}

.review-site a:hover {
  color: #ffffff;
}





/* --- MENU MOBILE SU SCROLL --- */

#menuButton {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #00b4fe;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#sideMenu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #0d1117;
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

#sideMenu.open {
  right: 0;
}

#menuHeader {
  padding: 20px;
  text-align: right;
  border-bottom: 1px solid #333;
}

#closeMenu {
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#closeMenu:hover {
  color: #00b4fe;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

#navbar-container-mobile {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* fine  */












/* bottone recensione*/
/* From Uiverse.io by csozidev */
#recensionebottonepagina {
  padding: 10px;
  font-weight: bold;
  display: flex;
  position: relative;
  overflow: hidden;
  border-radius: 35px;
  align-items: center;
  border: solid black 2px;
  outline: none;
  cursor: pointer;
}

#recensionesvg {
  height: 25px;
  margin-right: 10px;
  z-index: 6;
}

#recensionetesto {
  z-index: 10;
  font-size: 18px;
  color: #000;
}

#recensionebottonepagina:hover #recensionetesto {
  animation: text forwards 0.3s;
}

@keyframes text {
  from { color: black; }
  to { color: white; }
}

#recensionebottonepagina:hover::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 9%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  opacity: 0;
  border-radius: 300px;
  animation: wave1 2.5s ease-in-out forwards;
  z-index: 1;
  background: #EB4335;
}

#recensionebottonepagina:hover::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 9%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  opacity: 0;
  border-radius: 300px;
  animation: wave2 2.5s ease-in-out forwards;
  z-index: 2;
  background: #FBBC05;
  
}

@keyframes wave1 {
  0% { width: 0; height: 0; opacity: 1; }
  25% { width: 800px; height: 800px; opacity: 1; }
  26% { z-index: 3; background: #34A853; width: 0; height: 0; }
  50% { width: 800px; height: 800px; opacity: 1; }
  100% { width: 800px; height: 800px; opacity: 1; }
}

@keyframes wave2 {
  0% { width: 0; height: 0; opacity: 1; }
  35% { width: 800px; height: 800px; opacity: 1; }
  40% { z-index: 4; background: #4285F4; width: 0; height: 0; }
  64% { width: 800px; height: 800px; opacity: 1; }
  100% { width: 800px; height: 800px; opacity: 1; }
}

#recensionebottonepagina:hover #red {
  animation: disappear 0.1s forwards;
  animation-delay: 0.1s;
}

#recensionebottonepagina:hover #yellow {
  animation: disappear 0.1s forwards;
  animation-delay: 0.3s;
}

#recensionebottonepagina:hover #green {
  animation: disappear 0.1s forwards;
  animation-delay: 0.7s;
}

#recensionebottonepagina:hover #blue {
  animation: disappear 0.1s forwards;
  animation-delay: 1.1s;
}

@keyframes disappear {
  from { filter: brightness(1); }
  to { filter: brightness(100); }
}

#divcentrale{
    display: flex;
    align-content: center;
    justify-content: center;
}












        #title2 {
            font-weight: 900;
            font-family: 'Cocogoose', sans-serif;
            font-size: 1.8em; /* Aumentato per visibilità */
            margin-bottom: 10px;
        }

        .title {
            font-size: 1.5em;
            color: var(--text-color-light);
            font-weight: bold;
            margin-bottom: 10px;
        }

        .frase2 {
            font-size: 1.2em;
            color: var(--text-color-light); /* Colore più visibile */
            margin: 5px 0;
            font-weight: bold;
        }

        .frase3 {
            font-size: 1em;
            color: var(--text-color-light);
            margin: 10px 0;
        }

        .frase4 {
            position: relative;
            display: inline-block;
            padding: 5px 15px; /* Aumentato il padding */
            background: var(--secondary-color);
            z-index: 1;
            font-weight: bold;
            margin-top: 15px; /* Aumentato il margine superiore */
            color: var(--primary-color); /* Colore del testo */
            border-radius: 5px;
        }

        .frase4::before {
            content: '';
            position: absolute;
            top: -6px;
            left: -6px;
            right: -6px;
            bottom: -6px;
            z-index: -1;
            background: linear-gradient(-45deg, var(--highlight-color-1) 0%, var(--highlight-color-2) 100%);
            border-radius: 10px;
        }

        #sezione4 {
            text-align: center;
            background: linear-gradient(-45deg, var(--highlight-color-1) 0%, var(--highlight-color-2) 100%);
            padding: 20px 10px; /* Padding più generoso */
        }

        #titolofrase4 {
            font-size: 3em; /* Dimensioni maggiori per il titolo */
            font-family: 'Cocogoose', sans-serif;
            font-weight: bold;
            color: var(--text-color-light);
            margin: 0; /* Rimuove il margine predefinito */
        }

        #sezione3 {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px; /* Aumentato lo spazio tra le card */
            padding: 30px 15px; /* Padding generale per la sezione */
            background: var(--secondary-color);
        }

        .frase6 {
            font-size: 0.9em;
            line-height: 1.6em; /* Aumentata l'interlinea per leggibilità */
            text-align: left;
            padding: 0 10px; /* Padding per il testo all'interno della back card */
            max-width: 250px; /* Limita la larghezza per evitare che il testo si estenda troppo */
            margin: 0 auto; /* Centra il blocco di testo */
        }

        .svg1 {
            text-decoration: none;
            display: flex; /* Utilizza flexbox per allineare icona e prezzo */
            flex-direction: column; /* Icona sopra il prezzo */
            align-items: center; /* Centra orizzontalmente icona e prezzo */
            margin-bottom: 10px;
        }

        .svg2 {
            width: 60px;
            height: 60px;
            margin-bottom: 5px; /* Spazio tra icona e prezzo */
            filter: grayscale(100%);
            transition: filter 0.3s;
        }

        .svg2:hover {
            filter: grayscale(0%);
        }


        @media (max-width: 768px) {
            #titolofrase4 {
                font-size: 2.5em; /* Ridotto per schermi più piccoli */
            }
            #sezione3 {
                flex-direction: column;
                align-items: center;
                gap: 20px; /* Ridotto il gap per mobile */
            }


            .frase6 {
                font-size: 0.85em; /* Dimensione del font leggermente ridotta */
                max-width: 90%; /* Limita la larghezza del testo su mobile */
            }
        }












        #titoloservizi{
            display: flex;
            flex-wrap: wrap; /* Permetti alle card di andare a capo su schermi più piccoli */
            justify-content: center; /* Centra le card orizzontalmente */
            margin-top: 25px;
            background: linear-gradient(-45deg, #e81cff 0%, #40c9ff 100%);
            padding: 20px;

        }

        #iservizi{
    background: white;
}






        
         /* Contenitore per più flip card */
.cards-container {
    display: flex
;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1400px;
    margin: auto;
    margin-bottom: 0px;
    align-items: center;
    justify-content: space-around;
}

        /* --- Contenitore della Flip Card --- */
        .flip-card {
            background-color: transparent;
            width: 260px;
    height: 360px; /* Dimensione compatta iniziale */
            perspective: 1000px; /* Prospettiva 3D per l'effetto flip */
            border-radius: 8px;
            transition: width 0.8s, height 0.8s; /* Transizione per l'espansione */
        }

        /* --- Interno della Flip Card (il vero flipper) --- */
        .flip-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.8s; /* Transizione fluida per il flip */
            transform-style: preserve-3d; /* Preserva lo spazio 3D per i figli */
            border-radius: 8px;
        }

        /* --- Flip all'Hover e Espansione --- */
        .flip-card:hover {
            width: 300px; /* Espansione della larghezza ridotta */
            height: 420px; /* Espansione dell'altezza ridotta */
        }

        .flip-card:hover .flip-card-inner {
            transform: rotateY(180deg); /* Ruota di 180 gradi sull'asse Y all'hover */
        }

        /* --- Fronte e Retro della Card --- */
        .flip-card-front, .flip-card-back {
            position: absolute;
            width: 104%;
            height: 100%;
            -webkit-backface-visibility: hidden; /* Nascondi il retro durante il flip */
            backface-visibility: hidden; /* Proprietà standard */
            border-radius: 8px;
            overflow: hidden; /* Assicura che il contenuto rimanga entro i limiti */
            display: flex; /* Usa flexbox per centrare il contenuto */
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 15px; /* Aumentato il padding per un aspetto più spazioso */
            box-sizing: border-box; /* Includi il padding in width/height */
        }

        /* --- Stile della Card Originale (applicato al fronte) --- */
        .card-front-style {
            position: relative;
            width: 100%;
            height: 100%;
            background-color: #000;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            padding: 5px;
            border-radius: 8px;
            cursor: pointer;
            box-sizing: border-box;


            background: linear-gradient(-45deg, #222222 0%, #222222 100%);

        }

        .card-front-style::before {
            content: "";
            position: absolute;
            inset: 0;
            left: -6px;
            margin: auto;
            width: calc(100% + 12px);
            height: calc(100% + 12px);
            border-radius: 10px;
            background: linear-gradient(-45deg, #fc00ff 0%, #40c9ff 100%);
            z-index: -10;
            pointer-events: none;
            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .card-front-style::after {
            content: "";
            z-index: -1;
            position: absolute;
            inset: 0;
            background: linear-gradient(-45deg, #fc00ff 0%, #00dbde 100%);
            transform: translate3d(0, 0, 0) scale(0.95);
            filter: blur(25px);
        }

        .card-front-style .card-title {
            font-size: 20px; /* Adattato per la dimensione compatta */
            text-transform: capitalize;
            font-weight: 700;
            color: #fff;
            margin-top: 10px;
        }

        .card-front-style .card-price {
            font-weight: 800;
            color: #fff;
        }

        .card-front-style .card-description {
            font-size: 14px; /* Adattato per la dimensione compatta */
            color: #fff;
            text-align: center;
            margin-bottom: 10px;
        }

        /* Effetti hover originali (ora applicati al lato anteriore, ma il flip ha la precedenza) */
        .card-front-style:hover::after {
            filter: blur(35px);
        }

        .card-front-style:hover::before {
            transform: rotate(-90deg) scaleX(1.34) scaleY(0.77);
            z-index: 1;
        }

        /* --- Stile del Retro della Card --- */
        .flip-card-back {
            background-color: #0d1117; /* Sfondo scuro per il retro */
            color: white;
            transform: rotateY(180deg); /* Inizialmente ruotato per essere nascosto */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
            gap: 5px;
    box-shadow: 0 4px 8px #fc00ff;            
    text-align: center;
            padding: 15px;
            
        }

        .flip-card-back .back-price {
            font-size: 28px;
            font-weight: 800;
            color: #ffffff;
            margin-bottom: 5px;
            margin-top: 5px;
        }

        .flip-card-back .back-heading {
            font-size: 22px;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 5px;
        }

        .flip-card-back .back-details-list {
            font-size: 15px;
            color: #ccc;
            text-align: left;
            max-width: 95%;
            list-style-type: disc;
            padding-left: 25px;
            margin-top: 0;
            margin-bottom: 5px;
            line-height: 1.4;
            flex-grow: 1;
            overflow-y: auto;
            padding-right: 10px;
            max-height: 250px; /* Ridotto per l'espansione moderata */
        }

        /* Stile per il pulsante sul retro */
        .flip-card-back button {
            margin-top: auto;
            flex-shrink: 0;
        }


        /* Responsive adjustments */
        @media (max-width: 1400px) {
            .cards-container {
                max-width: 95%;
            }
        }

        @media (max-width: 900px) {
            .cards-container {
                flex-direction: column;
                align-items: center;
                gap: 35px;
            }
            .flip-card {
                width: 250px; /* Dimensione compatta su mobile */
                height: 340px; /* Dimensione compatta su mobile */
            }
            .flip-card:hover {
                width: 350px; /* Espansione della larghezza all'hover su mobile ridotta */
                height: 480px; /* Espansione dell'altezza all'hover su mobile ridotta */
            }
            .flip-card-back .back-details-list {
                max-height: 300px; /* Ridotto per l'espansione moderata su mobile */
            }
        }

        @media (max-width: 600px) {
            body {
            }
            .cards-container {
                gap: 25px;
            }
            .flip-card {
                width: 90%; /* Occupa quasi tutta la larghezza dello schermo */
                max-width: 280px; /* Limite massimo per evitare che siano troppo grandi */
                height: 380px;
            }
            .flip-card:hover {
                width: 95%; /* Espansione della larghezza all'hover su schermi molto piccoli ridotta */
                max-width: 380px; /* Limite massimo per evitare che siano troppo grandi */
                height: 520px; /* Espansione dell'altezza all'hover su schermi molto piccoli ridotta */
            }
            .card-front-style .card-title {
                font-size: 18px;
            }
            .card-front-style .card-price {
                font-size: 32px;
            }
            .card-front-style .card-description {
                font-size: 13px;
            }
            .flip-card-back .back-price {
                font-size: 24px;
            }
            .flip-card-back .back-heading {
                font-size: 18px;
            }
            .flip-card-back .back-details-list {
                font-size: 13px;
                padding-left: 20px;
                max-height: 350px; 
            }
        }







        /* bottone  card seleziona */

.btn_seleziona {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border: none;
  outline: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
  background-color: rgb(14, 14, 26);
  color: rgb(234, 234, 234);
  font-weight: 700;
  transition: 0.6s;
  box-shadow: 0px 0px 60px #1f4c65;
  -webkit-box-reflect: below 10px linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.4));
}

.btn_seleziona:active {
  scale: 0.92;
}

.btn_seleziona:hover {
  background: rgb(2,29,78);
  background: linear-gradient(270deg, rgba(2, 29, 78, 0.681) 0%, rgba(31, 215, 232, 0.873) 60%);
  color: rgb(4, 4, 38);
}




    /* bottone piu informazioni */
/* From Uiverse.io by Cornerstone-04 */ 

#sezionebtninfo {
    background-color: #ffffff;
    display: flex
;
    flex-direction: column;
    align-items: center;
}

#testoinformazioni {
    width: 240px;
    height: auto;
    float: left;
    transition: .5s linear;
    position: relative;
    display: block;
    overflow: hidden;
    padding: 15px;
    text-align: center;
    margin: 0 5px;
    background: #222222;
    text-transform: uppercase;
    font-weight: 900;
    color: #ffffff;
}

#testoinformazioni:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  border-bottom: 4px solid transparent;
  border-left: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(100%);
  
}

#testoinformazioni:after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 4px solid transparent;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  transform: translateX(-100%);
}

#testoinformazioni:hover {
  box-shadow: 0 5px 15px rgb(255, 0, 200);
  transform: scale(1.15);

}

#testoinformazioni:hover:before {
  border-color: #00b3fe;
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .3s;
}

#testoinformazioni:hover:after {
  border-color: #00b3fe;
  height: 100%;
  transform: translateX(0);
  transition: .3s transform linear, .3s height linear .5s;
}

#btninformazioni{
    color: black;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    border: none;
    background: #00000000;
    margin-right: 20px;
}








/* From Uiverse.io by Codewithvinay */ 
/* Stile base condiviso */

#perche-sceglierci{
    display: flex
;
    gap: 10px;
}

#perche-sceglierci2{
    display: flex
;
    flex-direction: column;
    align-items: center;
}

#card-consegna,
#card-garanzia,
#card-supporto,
#card-prezzi {
    width: 300px;
    border-radius: 50px;
    background: #e0e0e0;
    box-shadow: 20px 20px 60px #bebebe00, -20px -20px 60px #000000;
    display: flex
;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
    margin: 20px auto;
}


#card-consegna .material-symbols-outlined,
#card-garanzia .material-symbols-outlined,
#card-supporto .material-symbols-outlined,
#card-prezzi .material-symbols-outlined {
  font-size: 48px;
  color: #555;
  margin-bottom: 15px;
}

#card-consegna h3,
#card-garanzia h3,
#card-supporto h3,
#card-prezzi h3 {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 10px;
}

#card-consegna p,
#card-garanzia p,
#card-supporto p,
#card-prezzi p {
  font-size: 0.9rem;
  color: #666;
}











/* Bottone principale */
#glow-button {
  padding: 20px 60px;
  background-color: #000;
  border: none;
  font-size: 18px;
  position: relative;
  cursor: pointer;
  transition: 500ms;
}

/* Span interno */
#glow-button-span {
  color: rgb(255, 255, 255);
  position: relative;
  transition: 500ms;
  transition-delay: 500ms;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  z-index: 2;
  display: block;
}

/* Pseudo-elemento glow centrale */
#glow-button::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 0%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 500ms;
  transition-delay: 500ms;
  background-color: #ffffff;
  box-shadow: 0 0 10px #fc00ff,
              0 0 30px #fc00ff,
              0 0 50px #fc00ff;
  z-index: 1;
}

/* Singoli div con ID */
#glow-button-top,
#glow-button-bottom {
  width: 15px;
  height: 2px;
}

#glow-button-left,
#glow-button-right {
  width: 2px;
  height: 15px;
}

#glow-button-top {
  top: 0;
  left: 0;
}

#glow-button-bottom {
  bottom: 0;
  right: 0;
}

#glow-button-left {
  top: 0;
  left: 0;
}

#glow-button-right {
  bottom: 0;
  right: 0;
}

/* Stile comune per tutti i div (effetto luce) */
#glow-button div {
  position: absolute;
  background-color: rgb(255, 0, 191);
  box-shadow: 0 0 15px #00b3fe,
              0 0 30px #00b3fe,
              0 0 50px #00b3fe;
  transition: 500ms;
  z-index: 2;
}

/* Hover sul bottone */
#glow-button:hover {
  color: #000;
}

#glow-button:hover #glow-button-span {
  color: #000;
}

#glow-button:hover::before {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: none;
}

/* Espansione barre */
#glow-button:hover #glow-button-top,
#glow-button:hover #glow-button-bottom {
  width: 100%;
}

#glow-button:hover #glow-button-left,
#glow-button:hover #glow-button-right {
  height: 100%;
}










/* --- footer 2 in fondo lalla pagina privacy ecc.. --- */

/* --- FOOTER --- */
#footer {
 background-image: url(loghi/sfondo.png);
    background-size: cover;
      font-size: medium;
  width: 100%;
  padding-top: 30px;
}

#griglia2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  align-items: center;
  align-content: center;
  padding: 0 20px 20px;
}

#logo2 {
  width: 30%;
  margin-bottom: 15px;
}

#ul2 {
  text-align: justify;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

#ul2 li {
  margin-bottom: 12px;
  font-size: 15px;
  padding-left: 0;
  position: relative;
}

#ul2 li:last-child {
  margin-bottom: 0;
}

#ul2 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#ul2 a:hover {
  color: #00b4fe;
  text-decoration: underline;
}

#ul3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}

.card-container {
  position: relative;
  width: 150px;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 10px;
  border-radius: 0.5em;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #161b22;
}

#Whatsapp { background-color: #25d366; }
#instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
#facebook { background-color: #006eff; }
#Gmail { background-color: #f21818; }

.icon-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
}

.icon-container svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.icon-container p {
  font-size: 0.9em;
  font-weight: 400;
  color: white;
  margin: 0;
  text-align: center;
  width: 100%;
}

.card-container:hover {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Metodi di pagamento */
#metodidipagamanto {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

#svgiconepay,
#svgiconepaybtc {
  height: 28px;
  color: white;
}

/* Copyright */
#spaziohr {
  border: none;
  border-top: solid 1px rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

#copyright-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 15px 0;
  margin: 0 20px;
}

#copyright-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  color: #aaa;
  font-size: 14px;
}

#copyright-main p {
  margin: 0;
  width: 100%;
  text-align: center;
}

#copyright-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 5px 0;
  margin-top: 30px;
  margin-bottom: 20px;
}

#copyright-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 5px;
  font-size: 13px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

#copyright-links a:hover {
  color: #00b4fe;
  text-decoration: underline;
}

#cards:hover > .card-container:not(:hover),
#cards:has(.card-container:hover) .card-container:not(:hover) {
  filter: blur(2px);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

#soluzionidigiatli {
  color: white;
}

/* --- MEDIA QUERIES RESPONSIVE --- */

/* Mobile generico */
@media (max-width: 768px) {
  #logo1 {
    max-width: 160px;
    width: 30%;
  }
  #titolofrase1 {
    font-size: xx-large;
    margin-top: 80px;
  }

  #menuButton {
    opacity: 1;
    visibility: visible;
  }
 
  #payment-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
  }
  #section-title {
    font-size: 14px;
  }
  #form-sez {
    max-width: 90%;
  }
  #confirm-button {
    width: 60%;
  }
  #payment-methods {
    flex: 1;
    width: 35%;
  }
  /* Nasconde il menu desktop su mobile */
  #navbar-container {
    display: none !important;
  }
}

/* Mobile stretto */
@media (max-width: 480px) {
  #logo1 {
    width: 75%;
    max-width: 160px;
  }
   #titolofrase1 {
        display: flex;
        font-size: medium;
        margin-top: 30px;
        align-items: center;
        flex-direction: column;
    }

#frase1 {
    font-size: small;
    margin-top: -40px;
    color: #d1d1d1;
}


.icon {
    font-size: 15px;
    margin-right: 15px;
    background-color: #2b2f38;
    color: red;
    border-radius: 50%;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.rischi h2, .soluzione h2 {
    font-size: x-large;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-content: center;
    text-align: center;
}

  
  #menuButton {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  #sideMenu {
    width: 260px;
  }
  #payment-methods {
    gap: 15px;
  }
  #form-title,
  #form-description {
    padding: 0 15px;
  }
}




/* --- MENU MOBILE SU SCROLL --- */
/* --- MENU MOBILE SU SCROLL --- */

#menuButton {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #00b4fe;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#sideMenu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #0d1117;
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

#sideMenu.open {
  right: 0;
}

#menuHeader {
  padding: 20px;
  text-align: right;
  border-bottom: 1px solid #333;
}

#closeMenu {
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#closeMenu:hover {
  color: #00b4fe;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

#navbar-container-mobile {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}


















    /* --- MODAL POPUP --- */
    .modal {
      display: none;
      position: fixed;
      z-index: 1000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(8px);
      justify-content: center;
      align-items: center;
      padding: 0px;
      overflow: auto;
    }

    .modal.open .modal-content {
      transform: scale(1);
      opacity: 1;
        overflow: hidden;
    padding: 60px;
    }

    .modal-content {
      background: #161b22;
      border-radius: 15px;
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
      max-width: 900px;
width: 100%;
    height: 70%;      
    max-height: 90vh;
      overflow-y: auto;
      position: relative;
      padding: 30px;
      color: white;
      transform: scale(0.9);
      opacity: 0;
      transition: all 0.3s ease;
    }

    .close {
      color: #aaa;
      font-size: 32px;
      font-weight: bold;
      cursor: pointer;
      position: absolute;
      top: 15px;
      right: 20px;
    }

    .close:hover {
      color: #fff;
    }

    @media (max-width: 768px) {


  .modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
    overflow: hidden;
    padding: 10px;
}
      .close {
        font-size: 28px;
        top: 10px;
        right: 15px;
      }
    }






    /* --- SEZIONE PROCESSO - TIMELINE MINIMAL --- */
#sezione-processo {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#titoloprocesso {
  font-family: 'Cocogoose', sans-serif;
  font-size: 3rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#fraseprocesso {
  font-size: 1.2rem;
  color: #adadad;
  max-width: 800px;
  margin: auto;
}

/* --- TIMELINE ORIZZONTALE --- */
.timeline-container {
  display: flex;
  overflow-x: auto;
  gap: 40px;
  padding: 50px 20px;
  max-width: 1200px;
  scrollbar-width: none; /* Nasconde scrollbar su Firefox */
  -ms-overflow-style: none; /* Nasconde scrollbar su IE/Edge */
}

.timeline-container::-webkit-scrollbar {
  display: none; /* Nasconde scrollbar su Chrome/Safari */
}

.timeline-step {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Linea di connessione tra i passi */
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 120px;
  width: calc(100% + 40px);
  height: 2px;
  background: linear-gradient(90deg, #e81cff, #40c9ff);
  opacity: 0.3;
  z-index: -1;
}

/* Cerchio con icona SVG */
.step-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(-45deg, #e81cff, #40c9ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(232, 28, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.timeline-step:hover .step-icon-wrapper {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 0 30px rgba(232, 28, 255, 0.8);
}

.step-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Titolo dello step */
.step-title {
  font-family: 'Cocogoose', sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}

/* Descrizione dello step */
.step-description {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.5;
  text-align: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  #titoloprocesso {
    font-size: 2.2rem;
  }
  .timeline-step:not(:last-child)::after {
    display: none; /* Nasconde linea su mobile */
  }
  .timeline-step {
    flex: 0 0 220px;
  }
}

@media (max-width: 480px) {
  .timeline-container {
    padding: 20px;
    gap: 30px;
  }
  .timeline-step {
    flex: 0 0 200px;
  }
  #titoloprocesso {
    font-size: 2rem;
  }

  #perche-sceglierci {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

#glow-button {
    background-color: #000;
    border: none;
    font-size: 18px;
    position: relative;
    cursor: pointer;
    transition: 500ms;
        padding: 0px 0px;
}

.filters, #portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    flex-direction: column;
}


}

/* --- MOBILE: SEZIONE PROCESSO - TIMELINE MINIMAL --- */
@media (max-width: 480px) {
  #sezione-processo {
    padding: 60px 15px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

#bottone1 {
    font-weight: bold;
    position: relative;
    margin-top: 20px;
    height: 60px;
    font-size: smaller;
    background-color: #000;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s 
ease;
width: 90%;
}

#card-consegna, #card-garanzia, #card-supporto, #card-prezzi {
    width: 250px;
    border-radius: 50px;
    background: #e0e0e0;
    box-shadow: 20px 20px 60px #bebebe00, -20px -20px 60px #000000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s 
ease;
    margin: 20px auto;
}


#dicono {
    font-size: medium;
    font-weight: 700;
    color: #5c5c5c;
    text-align: center;
    margin-bottom: 15px;
}

.review-card {
    background: #222;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
    padding: 20px;
    width: 250px;
    color: #ddd;
    display: flex;
    flex-direction: column;
    transition: max-height 0.35s 
ease, box-shadow 0.3s 
ease;
    max-height: 250px;
    overflow: hidden;
    position: relative;
    cursor: default;
}





.testimonials-header h2 {
    font-size: x-large;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

#titologradient {
    background: linear-gradient(90deg, #e81cff, #40c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: x-large;
}
  
  #titoloprocesso {
    font-family: 'Cocogoose', sans-serif;
    font-size: 2rem; /* Ridotto per adattarsi a schermi piccoli */
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
  }

  #fraseprocesso {
    font-size: 1rem;
    color: #adadad;
    max-width: 90%;
    margin: 0 auto 30px;
    line-height: 1.5;
  }

  /* --- TIMELINE ORIZZONTALE SU MOBILE --- */
  .timeline-container {
        display: flex;
        overflow-x: auto;
        gap: 30px;
        padding: 20px 15px;
        margin: 0 auto;
        max-width: 100%;
        width: 80%;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
    }

  .timeline-container::-webkit-scrollbar {
    display: none;
  }

  .timeline-step {
    flex: 0 0 190px;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
  }

  /* Nasconde la linea di connessione su mobile */
  .timeline-step:not(:last-child)::after {
    display: none;
  }

  /* Cerchio icona - dimensioni proporzionate */
  .step-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(-45deg, #e81cff, #40c9ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(232, 28, 255, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 15px;
  }

  .timeline-step:hover .step-icon-wrapper,
  .timeline-step:active .step-icon-wrapper {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 25px rgba(232, 28, 255, 0.7);
  }

  .step-icon {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  }

  /* Titolo step */
  .step-title {
    font-family: 'Cocogoose', sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
  }

  /* Descrizione */
  .step-description {
    font-size: 0.9rem;
    color: #cccccc;
    line-height: 1.5;
    text-align: center;
  }
}


/* ------ SEZIONE GENERALE ------ */
.info-section {
    padding: 4rem 0;
    background: #ffffff;
}

.info-section .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.info-section h2 {
    font-size: 1.875rem; /* 3xl */
    font-weight: 800;
    color: #1f2937;
}

.info-section p {
    margin-top: 1rem;
    font-size: medium;
    color: #4b5563;
    line-height: 1.6;
}


/* ------ GRIGLIA CARDS ------ */
.info-grid {
    margin-top: 3rem;
    display: grid;
    gap: 1.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .info-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}


/* ----------- CARD STYLING ----------- */
.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f3f4f6;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    transform: translateZ(0);
}

/* Hover Effetti */
.info-card:hover {
    transform: scale(1.10);
    background: #ffffff;
    box-shadow: 0 10px 25px #e81cff;
    outline: 2px solid #60a5fa;
}

.info-card svg {
    width: 40px;
    height: 40px;
    color: #60a5fa;
    transition: transform 0.3s ease-in-out;
}

.info-card:hover svg {
    transform: translateY(-4px) rotate(6deg);
}

.info-card span {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    transition: color 0.3s ease-in-out;
}

.info-card:hover span {
    color: #40c9ff;
}

#titologradient {
    background: linear-gradient(90deg, #e81cff, #40c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}








/* Transizione lenta per lo scorrimento del portfolio */
#portfolio-grid {
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.portfolio-transition {
  transition: opacity 1.5s ease, transform 1.5s ease !important;
}

/* Nascondi i bottoni di paginazione */
#logo-pagination {
  display: none !important;
}

/* Stile per il container del portfolio */
#portfolio {
  overflow: hidden;
  position: relative;
}

/* Stile per i progetti */
.project {
  opacity: 1;
  transition: opacity 1.5s ease;
}


/* === MODALE ANTEPRIMA PORTFOLIO === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

/* Anteprima principale */
.preview-main {
  flex: 1;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.preview-main img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  transition: opacity 0.3s ease;
}

/* Freccie */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.nav-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

/* Miniature */
.thumbnails {
  width: 30%;
  max-width: 280px;
  background: #f8f9fa;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid #ddd;
}

.thumbnails img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-color: #007bff;
}

/* Bottone chiudi */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .modal-container {
    flex-direction: column;
    height: 90vh;
  }

  .thumbnails {
    width: 100%;
    max-height: 30%;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
  }

  .thumbnails img {
    min-width: 80px;
    height: 60px;
  }

  .preview-main {
    height: 70%;
  }

  .prev { left: 15px; }
  .next { right: 15px; }
}


/* From Uiverse.io by gharsh11032000 */ 
#openModal{
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 30px;
  display: block;
  background-color: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}



#openModal:hover span {
  -webkit-text-fill-color: white;
}

#openModal::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(2);
  border: 3px solid;
  border-image: linear-gradient(-45deg, #fc00ff 0%, #fc00ff 100% );
  border-image-slice: 1;
  border-width: 2px 0 2px 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: -1;
}

#openModal:hover::before {
  transform: scaleY(0);
  opacity: 1;
}

#openModal::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #00b4fe 0%, #fc00ff 100% );
  transform: scale(0);
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: -1;
}

#openModal:hover::after {
  transform: scaleY(1);
}

#openModal:active {
  scale: 0.90;
}







 #sez_risparmio_web {
            width: 100%;
            max-width: 800px;
            background-color: var(--color-card);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Ombra pulita */
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            border: 1px solid #e5e7eb00;
        }

        /* Testo e Titoli */
        #contenitore_messaggio { 
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

        #titolo_principale {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: center;
    
        background: linear-gradient(90deg, #40c9ff, #40c9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
  
 

        /* Slogan Risparmio (Enfatizzato ma pulito) */
        @keyframes fade-in {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        #slogan_risparmio {
            display: inline-block;
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--color-warning);
            padding: 5px 10px;
            border: 1px solid var(--color-warning);
            border-radius: 4px;
        
            animation: fade-in 1s ease-out;
        }

        /* Sottotitolo CMS */
        #sottotitolo_cms {
            font-size: 1.125rem;
            font-weight: 400;
            color: var(--color-text-dim);
            margin: 20px auto 0;
            max-width: 600px;
        }
        #span_wordpress, #span_cms_complessi {
            color: var(--color-text-main);
            font-weight: 600;
        }

        /* Area Loghi e Animazione di Scorrimento */
 
        #descrizione_loghi {
            text-align: center;
            font-size: 0.9rem;
            color: var(--color-text-dim);
            margin-bottom: 15px;
        }

        /* Wrapper che nasconde l'overflow */
        #griglia_loghi_wrapper {
            overflow: hidden;
            white-space: nowrap;
            padding: 10px 0;
            background-color: #f3f4f600; /* Sfondo leggermente grigio per risalto */
            border-radius: 6px;
        }

        /* Contenitore animato: deve essere inline-block */
        #griglia_loghi {
            display: inline-block;
            animation: scroll-logos 30s linear infinite; /* Animazione lenta e rilassata */
            padding-right: 200vw; 
        }
        /* Item singolo per il logo e il nome */
        .logo_item {
            display: inline-block;
            text-align: center;
            padding: 10px 20px;
            margin-right: 40px; 
            opacity: 0.7;
            transition: opacity 0.3s;
            line-height: 1; /* Assicura allineamento verticale corretto */
        }
        .logo_item:hover {
            opacity: 1;
        }

        /* Keyframe per lo scorrimento continuo */
        @keyframes scroll-logos {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); } 
        }

        /* Styling SVG e Nomi */
        .logo_item svg { 
            width: 40px; 
            height: 40px; 
            /* Rimuove fill="currentColor" qui e lo gestisce nelle classi specifiche */
        }
        .logo_item span {
            display: block;
            margin-top: 5px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--color-text-dim);
        }
        
        /* Colori Specifici per i Loghi (minimali, usiamo i colori del brand o del tema) */
        
        /* WordPress - Usiamo il colore primario del tema per la cornice */
        .logo_wordpress_color path, .logo_wordpress_color circle { 
            fill: #ffffff !important; /* Blu istituzionale */
        }
        
        /* Wix - Usiamo il colore primario del tema per il riempimento */
        .logo_wix_color path {
             /* I tuoi dati SVG hanno fill="#ffffff" e viewBox modificati. Sovrascrivo con il colore scuro del testo. */
 fill: #ffffff !important;
        }

        /* Shopify - Verde del brand, ma lo rendiamo discreto */
        .logo_shopify_color path:first-child { fill: #95BF46 !important; } /* Colore chiaro originale */
        .logo_shopify_color path:last-child { fill: #5E8E3E !important; } /* Colore scuro originale */

        /* Webflow - Blu del brand, lo rendiamo discreto */
        .logo_webflow_color circle { fill: #4353ff !important; }
        .logo_webflow_color path { fill: var(--color-card) !important; } /* Il percorso è bianco */


        /* Call to Action */
        #cta_finale { margin-top: 40px; }
        #bottone_scopri {
            background-color: var(--color-secondary);
            color: var(--color-card);
            font-weight: 700;
            padding: 10px 30px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.5);
            transition: background-color 0.3s, transform 0.3s;
        }
        #bottone_scopri:hover {
            background-color: #047857;
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.5);
        }

        /* Media Queries per Responsiveness */
        @media (max-width: 600px) {
            #sez_risparmio_web { padding: 20px; }

            #titolo_principale {         font-size: 2rem;
        padding: 20px; }

      #descrizione_loghi {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-dim);
    padding: 20px;
}
        
            #slogan_risparmio { font-size: 1rem; }
            #sottotitolo_cms { font-size: 1rem; }
            .logo_item { padding: 5px 10px; margin-right: 20px; }
            .logo_item svg { width: 30px; height: 30px; }
            #bottone_scopri { padding: 10px 20px; font-size: 0.9rem; }
        }