
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;
    margin: 0;
    padding: 0;
    
}

/* 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;
    margin-top: -10px;
}


.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;
    background-color: white!important;
  color: rgb(38,42,101)!important;
}
.navbar .nav-item img {
  width: 12px;
  height: auto;
  margin-left: 6px;
  vertical-align: middle;
}

.dropdown-item{
 color: rgb(38,42,101);
}









.intro{
  font-size: 14px!important;
}


.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  background-color: #eee;
  color: #000;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background-color: #000;
  color: #fff;
}

#riconoscimenti h6{
  font-size: 15px;
 
}

#riconoscimenti h5{
  font-size: 18px;
  font-weight:lighter;
}


/* Layout */
.container1 {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 150px;
  margin-bottom: 100px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  border-left:rgb(38,42,101);
}

.sidebar {
  flex: 0 0 300px;
 
}

.profile-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Box laterali */
.info-box {
  background-color: #f8f8f8;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 3px solid rgb(38,42,101);
  width: 350px;
}
.info-box p{
 padding-left: 33px;
}
.info-box h4 {
     display: inline-block;
  font-size: 16px;
  color: rgb(38,42,101);
  transform: translateY(7px);
  margin-bottom: 10px;
  
}
.info-box img {
  vertical-align: middle;
  width: 28px; 
  height: auto;
}
.info-box p {
  margin: 0;
  font-size: 14px;
  color: #555;
  
}
.info-box-header {
  display: flex;
  align-items: center;
  gap: 8px; /* Spazio tra icona e titolo */
  margin-bottom: 8px;
}

.info-box svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color:rgb(38,42,101) 
}
/* Contenuto principale */
.content {
  flex: 1;
  max-width: 700px;
  margin-left: 30px;
}
.content h5{
  color: #0000008b;
  font-style: italic;
   font-family: "Work Sans", sans-serif;
   font-size: 20px;
   font-weight: 200;
}

.intro {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 50px;
  margin-top: 30px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  
  flex-wrap: wrap;
}



/* Contenuto tab */
.tab-content {
  background-color: #f9f9f9;
  padding: 25px;
  border: 1px solid #eee;
  font-size: 14px;
  line-height: 1.8;
}
 .tab-btn {
  border: none;
  background-color: transparent;
  padding: 10px 20px;
  font-weight: 100;
  font-size: 16px;
  color: #00000089;
  cursor: pointer;
  
}
.tab-btn.active {
  color: #ffffff;
  background-color: rgb(38, 42, 101); /* blu notte elegante */
  font-weight: 100;
  
  
}
/* 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;
  }



.navbar .nav-item:first-child{
  background-color: rgb(38,42,101);
}



















.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;
}

.container1 {
    flex-direction: column;
    padding: 0 10px;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 30px;
  }

  .content {
    max-width: 100%;
  }

  .tab-btn {
    flex: 1 1 auto;
    text-align: center;
    font-size: 15px;
  }

  .tab-content {
    padding: 20px 15px;
  }

.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 .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;
    }
   
    .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;
    }

    .profile-img{
      width: 350px;

    }
    .container1{
     margin-left: 30px;
    }
    .content{
      margin-left:-10px ;
    }

}

/* 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;
  }

.container1 {
    flex-direction: column;
    padding: 0 15px;
  }

  .sidebar {
    flex: 1 1 100%;
    margin-bottom: 30px;
  }

  .content {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .tab-btn {
    font-size: 15px;
    padding: 10px 18px;
  }

  .intro {
    font-size: 14px;
    line-height: 1.7;
  }

  .tab-content {
    font-size: 14px;
    padding: 20px;
  }

    header, footer {
        padding: 20px;
    }

  

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


}

@media (min-width: 500px) {

  .activity-area .row .area {
    width: 25%;
  }
  .container1 {
    flex-direction: row;
    padding: 0 20px;
  }

  .sidebar {
    flex: 0 0 280px;
    margin-bottom: 0;
  }

  .content {
    max-width: 700px;
  }

  .tab-btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .tab-content {
    font-size: 14px;
    padding: 25px;
  }
}


/* //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; 
      
    }
      .container1 {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .sidebar {
    flex: 0 0 300px;
  }

  .content {
    flex: 1 1 60%;
  }

  .intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .tab-btn {
    font-size: 15px;
    padding: 10px 18px;
  }

  .tab-content {
    font-size: 14.5px;
    padding: 25px;
  }
}