/* ===================================
   RESET CSS
   Reset di base per rimuovere stili predefiniti del browser
   =================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Reset elementi base */
  body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote {
    margin: 0;
    padding: 0;
  }
  
  ol, ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* ===================================
     STILI GLOBALI
     Configurazione base per l'intera applicazione
     =================================== */
  html {
    scroll-behavior: smooth;
    font-size: 20px;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    color: #fff;
    background-color: #000010;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }
  
 /* ===================================
   NAVBAR
   Stili per la barra di navigazione fissa
   =================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  color: white;
  z-index: 1001;
}

/* Contenitore della navbar */
#navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px;
}

/* Logo e area sinistra */
#navbar-left {
  display: flex;
  align-items: center;
}

#navbar-logo {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Menu hamburger per mobile */
#burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
  background: transparent;
  border: none;
}

#burger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Links della navigazione */
#navbar-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

#navbar-links.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

#navbar-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem clamp(0.5rem, 2vw, 1rem);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  white-space: nowrap;
}

#navbar-links a:hover {
  color: #5cbdaa;
  transform: translateY(-2px);
  transition: all 0.3s ease;
 }

 /* ===================================
   SFONDO PARTICELLE
   Effetto sfondo animato
   =================================== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===================================
   INTRO
   Sezione iniziale con titolo e descrizione
   =================================== */
#intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px;
  text-align: center;
  background-color: transparent;
  height: 50vh;
  margin-top: 150px;
}

#intro h1 {
  font-size: clamp(2em, 5vw, 3em);
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#intro p {
  font-size: clamp(1rem, 2.5vw, 1.1em);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 700px;
  color: white;
}

/* ===================================
   SERVIZI
   Layout e stile delle cards dei servizi
   =================================== */
#services {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Titolo sezione */
#services h2 {
  font-size: clamp(2em, 5vw, 3em);
  text-align: center;
  color: white;
  margin-bottom: 5rem;
}

/* Griglia servizi */
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

/* Singola card servizio */
.service-item {
  padding: 2rem;
  border-radius: 15px;
  position: relative;
  transition: all 0.3s ease-in-out;
}

/* Stili specifici per le card colorate */
.service-item:nth-child(1) {
  border: 2px solid #5cbdaa;
  box-shadow: 0 0 20px rgba(92, 189, 170, 0.1);
}

.service-item:nth-child(1):hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(92, 189, 170, 0.3);
  border-color: rgba(92, 189, 170, 0.8);
}

.service-item:nth-child(2) {
  border: 2px solid #7C4DFF;
  box-shadow: 0 0 20px rgba(124, 77, 255, 0.1);
}

.service-item:nth-child(2):hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(124, 77, 255, 0.3);
  border-color: rgba(124, 77, 255, 0.8);
}

.service-item:nth-child(3) {
  border: 2px solid #FF4D82;
  box-shadow: 0 0 20px rgba(255, 77, 130, 0.1);
}

.service-item:nth-child(3):hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 77, 130, 0.3);
  border-color: rgba(255, 77, 130, 0.8);
}

/* ===================================
   NODI
   Sezione delle card dei nodi
   =================================== */
   #nodes-section {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    gap: 1rem;
    justify-content: center;
    max-width: 800px;
    margin: 80px auto 100px;
    padding: 20px;
  }
  
  /* Card nodo */
  .node-card {
    background: transparent;
    border: 3px solid white;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease-in-out; /* Aggiunta transizione fluida */
  }
  
  /* Effetto hover sulla card */
  .node-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(92, 189, 170, 0.3);
    border-color: #5cbdaa;
  }
  
  /* Immagine nodo */
  .node-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
  }
  
  /* Testo nelle card */
  .node-card h3 {
    font-size: 1rem;
    color: #5cbdaa;
    margin-top: 0.25rem;
  }
  
  .node-card p {
    font-size: 0.85rem;
    color: white;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  /* Bottone card */
  .node-card a {
    padding: 0.5rem 1.75rem;
    border-radius: 9999px;
    background: #5cbdaa;
    color: white;
    font-size: 0.85rem;
    margin-top: auto;
    transition: all 0.3s ease; /* Aggiunta transizione per il bottone */
  }
  
  /* Effetto hover sul bottone */
  .node-card a:hover {
    background: #4ca899;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(92, 189, 170, 0.5);
  }
  
  .node-card a[href=""] {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
  }
  
  /* Disabilita hover sul bottone "Soon" */
  .node-card a[href=""]:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
  }

/* ===================================
  FAQ
  Sezione domande frequenti
  =================================== */
  #faq {
    margin: 100px auto;
    padding: 20px;
    max-width: 800px;
   }
   
   /* Titolo FAQ */
   #faq h2 {
    font-size: clamp(2em, 5vw, 3em);
    color: white;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 10px rgba(92, 189, 170, 0.3); /* Aggiunto glow sul titolo */
   }
   
   /* Singola domanda FAQ */
   .faq-item {
    background: rgb(20, 21, 38);
    border: 2px solid rgba(92, 189, 170, 0.2);
    border-left: 5px solid transparent;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(12px);
   }
   
   /* Effetti hover e stati attivi */
   .faq-item:hover {
    box-shadow: 0 0 20px rgba(92, 189, 170, 0.2);
    transform: translateY(-5px);
    border-color: rgba(92, 189, 170, 0.4);
   }
   
   .faq-item.active {
    border-left-color: #5cbdaa;
    box-shadow: 0 0 25px rgba(92, 189, 170, 0.3);
   }
   
   /* Titolo domanda */
   .faq-item h3 {
    margin: 0;
    padding: 20px;
    color: #fff;
    font-size: clamp(0.9rem, 2.5vw, 18px);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
   }
   
   .faq-item:hover h3 {
    color: #5cbdaa;
   }
      
   /* Contenuto risposta */
   .faq-content {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    overflow: hidden;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    transition: all 0.4s ease;
    border-top: 1px solid rgba(92, 189, 170, 0.2);
  }
   
  .faq-item.active .faq-content {
    max-height: 1000px;
    padding: 3px;
    opacity: 0.9;
  }
  
  @supports (-webkit-appearance:none) {
    .faq-item.active .faq-content {
      max-height: none;
      height: auto;
    }
  }

  #back-to-top {
    position: fixed;
    bottom: 80px; /* Posizionato sopra il footer */
    right: 30px;
    background: #5cbdaa;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none; /* Nascosto di default */
    font-size: 25px;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  /* ===================================
   Torna su (back-to-top)
   =================================== */
  #back-to-top:hover {
    background: #4ca899;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(92, 189, 170, 0.5);
  }

/* ===================================
   FOOTER
   Footer fisso con social links
   =================================== */
#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: black;
  z-index: 1000;
  padding: 0.5rem;
}

#footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Links social */
#social-links {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

#social-links a {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: white;
  transition: all 0.3s ease;
}

#social-links a:hover {
  color: #5cbdaa;
  transform: scale(1.5);
}
 
 /* ===================================
   MEDIA QUERIES
   Stili responsivi per vari dispositivi
   =================================== */

/* Tablet e dispositivi medio-piccoli */
@media (max-width: 768px) {
  #burger-menu {
    display: flex;
  }

  #navbar-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #navbar-links.active {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  #navbar-links a {
    padding: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #navbar-links a:last-child {
    border-bottom: none;
  }

  #intro {
    margin-top: 100px;
  }
}

/* Dispositivi piccoli */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  #navbar-content {
    padding: 0.8rem 1rem;
  }

  #footer {
    padding: 1rem;
  }

  #intro {
    margin-top: 80px;
    height: 40vh;
  }
}

/* Schermi grandi */
@media (min-width: 1920px) {
  html {
    font-size: 22px;
  }

  #navbar-content,
  #footer-content,
  #services-section,
  #nodes-section {
    max-width: 1800px;
  }
}

/* Orientamento landscape su dispositivi piccoli */
@media (max-height: 480px) and (orientation: landscape) {
  #intro {
    margin-top: 60px;
    height: 70vh;
  }

  #navbar-links {
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
}

/* ===================================
   MEDIA QUERIES SPECIFICHE PER SERVIZI
   =================================== */
@media screen and (max-width: 1024px) {
  .services-list {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 912px) {
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 820px) {
  #services {
    padding: 40px 20px;
  }

  .services-list {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .service-item {
    padding: 1.2rem;
  }
  
  #services h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
  }
}

/* ===================================
   MEDIA QUERIES SPECIFICHE PER NODI
   =================================== */
@media screen and (max-width: 1024px) {
  #nodes-section {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 15px;
    margin-top: 80px;
  }

  .node-card {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 912px) {
  #nodes-section {
    margin-top: 70px;
  }
}

@media screen and (max-width: 853px) {
  #nodes-section {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-top: 70px;
  }
}

/* ===================================
   MEDIA QUERIES PER DISPOSITIVI SPECIFICI
   =================================== */

/* iPad Mini */
@media screen and (max-width: 768px) {
  #nodes-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 80px auto 100px;
    padding: 15px;
  }
}

/* Surface Duo */
@media screen and (max-width: 540px) {
  #nodes-section {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 70px auto 80px;
  }
}

/* Galaxy Z Fold */
@media screen and (max-width: 344px) {
  #nodes-section {
    margin: 60px auto 80px;
    padding: 10px;
  }
}

/* Nest Hub */
@media screen and (min-width: 1024px) and (max-height: 600px) {
  #nodes-section {
    margin: 80px auto 100px;
  }
}

/* Animazione menu mobile */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}










