/* Disabilita il cursore su elementi di testo statici */
.no-caret {
    pointer-events: none;
    user-select: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    
    color: #333;
   
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column; /* Dispone gli elementi in colonna */
    min-height: 100vh; /* Imposta l'altezza minima del corpo per riempire l'intera finestra */
  


}

header {
    position: fixed;  /* Fissa la navbar in alto */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.7);  /* Colore scuro con trasparenza */
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);  /* Leggera ombra per visibilità */
    z-index: 1000;  /* Assicurati che la navbar sia sopra gli altri elementi */
    display: flex;
    align-items: center;  /* Allinea verticalmente gli elementi */
    justify-content: space-between;  /* Posiziona gli elementi a sinistra e a destra */
}


header, section {
    padding: 20px;

}

/* Contenitore del contenuto */
.content {
    flex: 1; /* Permette al contenuto di espandersi per riempire lo spazio disponibile */
}


.navbar {
    background-color: #33333371;
    color: white;
    padding: 20px 20px;
  }
  

  .navbar .favicon {
    position: absolute; /* Fissa la favicon rispetto alla navbar */ 
    display: flex;
    align-items: center;
  }
  
  .navbar .favicon-img {
    width: 40px; /* Dimensione della favicon */
    height: 40px;
    border-radius: 10%; /* Se vuoi rendere l'immagine rotonda */
    margin-bottom: 7px;
  }
  
 
  .navbar-nav {
        justify-content: center !important;     /* Centra orizzontalmente gli elementi */
        display: flex; /* Assicura che flexbox sia attivo */
        margin: 0 auto; /* Garantisce il centraggio nei layout con margini */
        width: 100%; /* Opzionale: garantisce che la navbar occupi tutta la larghezza */
        gap: 20px;
       
       
    }
    
  
  /* Stile per la navbar */
.navbar-nav .nav-item .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  /* Effetto al passaggio del cursore */
  .navbar-nav .nav-item .nav-link:hover {
    color: #f0c040; /* Cambia colore */
    transform: scale(1.1); /* Leggero ingrandimento */
  }
  
  /* Aggiungi una linea decorativa animata sotto il link */
  .navbar-nav .nav-item .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px; /* Distanza dalla scritta */
    width: 0;
    height: 2px;
    background-color: #f0c040;
    transition: width 0.3s ease;
  }
  
  /* Espandi la linea decorativa al passaggio del cursore */
  .navbar-nav .nav-item .nav-link:hover::after {
    width: 100%;
  }
  
  @media (max-width: 768px) {
    .navbar .collapse {
      justify-content: start; /* Per allineare correttamente su dispositivi piccoli */
    }
  }
  

.navbar-toggler{
    
  padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
  font-size: var(--bs-navbar-toggler-font-size);
  line-height: 1;
  color: var(--bs-navbar-color);
  background-color: transparent;
  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
  border-radius: var(--bs-navbar-toggler-border-radius);
  transition: var(--bs-navbar-toggler-transition);
  margin-left: auto;
}

.spacer {
    height: 80px;
}


.conteiner {
    margin: auto;
    color: white;
    background-color: rgba(116, 116, 116, 0.404); /* Colore di sfondo semi-trasparente */
    text-align: center;
    padding: 50px;
    max-width: 600px;
    width: 70%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(238, 238, 238, 0.788);
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: white;
}


.video-section video {
  width: 400px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 5px solid #ffffff;
}


/* Media Query per la responsività */
@media (max-width: 768px) {
  .video-section video {
    max-width: var(--video-size-mobile, 90%);
    border-radius: 30px;
  }
}

:root {
  --video-size: 600px;
  --video-size-mobile: 95%;
}

/* Animation for Speech Bubble */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Container */
.presentation-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
    background-color: #ffffff31;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Reverse Layout */
.presentation-container.reverse {
    flex-direction: row-reverse; /* Inverte l'ordine degli elementi */
}

/* Image Section */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-section img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffffff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Text Section */
.text-section {
    flex: 2;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Speech Bubble */
.speech-bubble {
    position: relative;
    background: #f1b024a9;
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
   
}



/* Animation for Speech Bubble */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Layout responsive: imposta disposizione verticale su schermi piccoli */
@media (max-width: 768px) {
  .presentation-container {
      flex-direction: column; /* Imposta il layout verticale */
      align-items: center;
      text-align: center; /* Per allineare il testo al centro */
  }

  .image-section img {
      width: 100%; /* Imposta una larghezza adattabile */
  }
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.stellar-footer {
    background: linear-gradient(135deg, #ccccccab, #6e6e6eb6, #000000ab);
    color: #fff;
    position: relative;
    padding: 50px 20px;
    overflow: hidden;
  }
  
  .footer-content {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    text-align: center; /* Aggiunto per centrare il contenuto */
  }
  
  .footer-section {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #f39c12;
    position: relative;
    text-transform: uppercase;
  }
  
  .footer-section h3::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #f39c12;
    animation: expandLine 1.5s ease-in-out infinite;
  }
  
  .footer-section p, .footer-section ul {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-section ul li {
    margin: 5px 0;
  }
  
  .footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section ul li a:hover {
    color: #f39c12;
  }
  
  /* Sezione Social Media */
  .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Regola dimensioni del contenitore */
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Cerchio attorno al logo */
    overflow: hidden; /* Nasconde le parti eccedenti */
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
  }
  
  .social-icons a:hover {
    transform: scale(1.2); /* Ingrandisce il pulsante al passaggio del mouse */
    background: rgba(255, 255, 255, 0.3);
  }
  
  /* Stile delle Immagini facebook */
  .social-icons img {
    width: 50px; /* Adatta l'immagine al contenitore */
    height: 50px;
    object-fit: cover; /* Mantiene proporzioni corrette */
    transition: transform 0.3s ease;
  }
  
  /* instagram */
  .social-icons-1 img {
    width: 50px; /* Adatta l'immagine al contenitore */
    height: 100px;
    object-fit: cover; /* Mantiene proporzioni corrette */
    transition: transform 0.3s ease;
  }
  .social-icons a:hover img {
    transform: scale(1.1); /* Leggero zoom del logo */
  }
  
  /* Footer Bottom */
  .footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
  }
  
  /* Particle Effects */
  .footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: url('../assets/images/sfondo.jpg') repeat; /* Substitute with a particle-like texture */
    opacity: 0.2;
    animation: moveParticles 30s linear infinite;
  }
  
  @keyframes moveParticles {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-100px, -100px);
    }
  }
  
  /* Animazioni */
  @keyframes expandLine {
    0%, 100% {
        width: 50px;
    }
    50% {
        width: 100px;
    }
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
  
    .footer-section {
        min-width: 100%;
    }
  
    .social-icons {
        justify-content: center;
    }
  }
  
  /*fine footer */


@media screen and (max-width: 768px) {
    /* Layout verticale per il mobile */
    .presentation-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .presentation-container.reverse {
        flex-direction: column; /* Mantiene layout verticale */
    }

    /* Adattamento immagine */
    .image-section img {
        width: 150px;
        height: 150px;
        border-radius: 10px;
    }

    /* Sezione testo adattata */
    .text-section {
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }

    .speech-bubble {
        padding: 1rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .speech-bubble::after {
        left: 50%; /* Centra il triangolo */
        transform: translateX(-50%) rotate(180deg);
    }

    /* Navbar */
    header {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    

    /* Footer ottimizzato */
    footer {
        text-align: center;
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    /* Riduzione spaziature */
    .spacer {
        height: 50px;
    }
}
