
h1, h2, h3, h4, h5, h6 {
font-family: "Libre Caslon Text", serif;
  font-weight: 400;
  font-style: normal;
  color: rgb(38,42,101);
}

p, a {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 200;
}

body {
    overflow-x: hidden;
    
}

/* TOPBAR GRIGIA */

.topbarnavbarwrapper {
   position: sticky;
  top: 0;
  z-index: 1040;
}


.topbar {
    background-color: rgb(124,124,124);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    z-index: 1030;
}



.topbar-links {
display: flex;
list-style-type: none;
margin-top: 10px;
padding-left: 60px;
padding-right: 60px;
}

.topbar-links li {
    margin-right: 20px;
}

.topbar-links a {
    text-decoration: none;
    color: white;
     
}

/* navbar */

.navbar {
    z-index: 1030;
}

.linkedin-button-nav{
   border: none;
   background-color: transparent;
   color: white;
   margin-right: 10px;
}

.contacts-button-nav {
    border: none;
    background-color: rgb(38,42,101);
    color: white;
    padding: 5px 15px;
}

.navbar .container{
    color: rgb(38,42,101);
}

.navbar .nav-link {
    color: rgb(38,42,101);
    padding-left: 15px;
    white-space: nowrap;
}


.nav-link.dropdown-toggle::after {
    display: none;
}

.navbar .nav-item {
  padding-left: 10px;

}
.navbar .nav-item img {
  width: 12px;
  height: auto;
  margin-left: 6px;
  vertical-align: middle;
}
.dropdown-item{
 color: rgb(38,42,101);
}


 /*CONTATTI*/

.container .contact{
  margin-top: 50px;
}
.container p{
  margin-top: 20px;
}




.triple-box-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 60px auto;
  margin-top: -20px;
  padding: 0 20px;
  flex-wrap: nowrap; /* forzati affiancati su desktop */
  text-align: center;
}

.info-box {
  width: 280px;
  padding: 20px;
}

.info-box img {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}

.info-box h6 {
  font-family: 'Libre Caslon Text', serif;
  font-size: 1rem;
  color: rgb(38, 42, 101);
  margin-bottom: 10px;
}

.info-box p {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  color: #333;
  margin: 0;
}
.bi-telephone {
  transform: scaleX(-1);
  
}
svg{
  margin-bottom: 20px;
}

















/* FORM*/
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: 'Work Sans', sans-serif;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #eee;
  border-radius: 2px;
  background-color: #fff;
  color: #333;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  width: fit-content;
  align-self: center;
  background-color: rgb(38, 42, 101);
  color: white;
  padding: 10px 25px;
  font-size: 0.95rem;
  border: none;
  
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #2c316e;
}


/* footer */

footer {
    margin-top: 50px;
    color: white;
     background-color: rgb(38,42,101);
}

.footer-content {
    padding-top: 20px;
}

.footer-content a {
    text-decoration: none;
}

.footer-content a {
    color: white;
}

.footer-content li {
    padding-bottom: 10px;
}

.footer-bottom-second a, .footer-bottom-second p {
    color: rgb(124,124,124)
}





/* ********* ANIMAZIONI TITOLO ********** */




.titolo-principale {
  
  position: relative;
  overflow: hidden;
  font-size: 3em; 
  font-weight: bold;
  
  margin-top: 50px;
}

/* Stili iniziali */
.lener-animate,
.ampersand-animate,
.partners-animate {
  display: inline-block; 
  opacity: 0; 
}

/* Animazione per "LENER" (arriva dall'alto) */
.lener-animate {
  animation: slideInFromTop 1s ease-out forwards;
  animation-delay: 0.3s; 
}

@keyframes slideInFromTop {
  from {
    transform: translateY(-100px); 
    opacity: 0;
  }
  to {
    transform: translateY(0); 
    opacity: 1;
  }
}

/* Animazione per "&" (fade in) */
.ampersand-animate {
  animation: slideInFromTop 1s ease-out forwards;
  animation-delay: 0.3s; 
}

/* Animazione per "PARTNERS"  */
.partners-animate {
  animation: slideInFromTop 1s ease-out forwards;
  animation-delay: 0.3s; 
}



/* ANIMAZIONE BACKGROUND H2 */


.animated-background {
  position: relative;
  display: inline-block;
  padding: 6px;
  z-index: 0;
}


.animated-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgb(38,42,101); 
  z-index: -1;
  transition: width 1s ease-out 1s; 
}


.animated-background.animate::before {
  width: 100%;
}

/* MEDIA QUERY */


@media (max-width: 900px){




.navbar .nav-link {
    padding-left: 0;
    padding-right: 0;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
  }

  .navbar .nav-item {
    padding-left: 0;
    margin-bottom: 10px;
  }

  .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    border: none;
    box-shadow: none;
    margin-top: 5px;
  }

  .dropdown-menu .dropdown-item {
    padding-left: 20px;
    font-size: 0.95rem;
  }

  .navbar .nav-link img {
    width: 12px;
    height: auto;
  }

  .navbar-collapse {
    padding-top: 10px;
  }






















.hero-background p {
  margin-left: 20px;
    padding-left: 20px;
}

.hero-background .hero-button {
  margin-left: 20px;
    padding-left: 20px;
}

.section-rectangle .left-section h6, .section-rectangle .left-section p, .section-rectangle .left-section h4  {
   
    margin-right: 20px;

     margin-left: 20px;
    padding-left: 20px;
}

.section-rectangle .left-section .decorative-line img {
    padding-left: 0;
    margin-left: 0;
}

.footer-content .row {
    margin-left: 50px;
}

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
}


}




/* iPhone (max 480px) */

@media only screen and (max-width: 480px) {

.nav-item.dropdown {
    flex-direction: row!important;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .navbar .nav-link,
  .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding-left: 10px;
    padding-right: 10px;
  }

 #homeDropdown{
  background-color: white!important;
  color: rgb(38,42,101)!important;
 }
  .navbar-nav {
    text-align: left;
  }

    body {
        font-size: 14px;
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

.topbar {
        justify-content: center;
        
        overflow-x: unset; 
    }

    .topbar-links {
        
        padding-left: 10px;
        padding-right: 10px;
       
        flex-wrap: nowrap;
      
        justify-content: center;
        
        flex-basis: auto; 
    }


    .topbar-links li {
        margin-right: 10px; 
        margin-left: 10px; 
        margin-bottom: 5px; 
    }

    
    .topbar-links a {
        font-size: 0.8em; 
       
    }

    .navbar .container .navbar-brand{
      padding-left: 10px;

    }
 .navbar .nav-item:nth-child(5){
  background-color: rgb(38,42,101);
}
    .navbar .container .navbar-toggler {
      margin-right: 32px;
    }

    header, footer {
        padding: 15px;
        text-align: center;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .container, .row, .col {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
.info-box p{
  font-size: 0.7rem;
}
   
.contact-form{
  padding: 20px;
}
 #homeDropdown{
  background-color: white!important;
  color: rgb(38,42,101)!important;
 }
    .hero-section .contenuto .titolo-principale, .hero-section .contenuto .animated-background, .hero-section .contenuto p, .hero-section .contenuto h2, .hero-section .contenuto .hero-button {
      margin-left: 0;
      padding-left: 0;
    }

    
}

/* iPad (481px - 1024px) */
@media only screen and (min-width: 481px) and (max-width: 1024px) {
  .navbar .nav-link {
    font-size: 1rem;
    padding-left: 10px;
    padding-right: 10px;
  }

  .dropdown-menu .dropdown-item {
    font-size: 0.95rem;
    padding-left: 20px;
  }
.navbar .nav-item:first-child{
  background-color: rgb(38,42,101);
}
  .contacts-button-nav {
    padding: 5px 12px;
  }
    body {
        font-size: 16px;
        padding: 0;
        
        margin: 0;
    }

  

 .topbar {
    justify-content: center;
    overflow-x: auto;
  }

  .topbar-links {
    flex: 0 0 auto;
    gap: 6px;
  }



    header, footer {
        padding: 20px;
    }

  

    img {
        max-width: 100%;
        height: auto;
    }


}

@media (min-width: 500px) {

  .activity-area .row .area {
    width: 25%;
  }
}


/* //per il background */


@media (max-width: 768px) { 
    .hero-background {
    
        background-attachment: scroll; 
     
        background-position: center center; 
     
        min-height: 90vh; 
       
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .hero-background {
        background-attachment: scroll; 
      
    }
}