/* Header Navigation Styling */
.header {
    padding: 10px 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* Logo styling - keep on the left */
  .header__logo {
    display: flex;
    align-items: center;
    position: relative; /* Keep relative positioning for desktop */
  }
  
  .header__img {
    width: 205px;
    height: 185px;
    position: absolute;
    top: -88px;
    left: 0;
  }
  
  .header__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size:16px !important; 
    font-weight: 00;
    margin: 0;
    line-height: 1.2;
  }
  
  /* Navigation Menu Styling - position on the right */
  .header__menu {
    display: flex;
    align-items: center;
    margin-left: auto; /* Push to the right */
  }
  
  .header__nav {
    display: block;
  }
  
  /* Make navigation items horizontal */
  .header__elenco {
    display: flex;
    flex-direction: row; /* Explicitly set horizontal layout */
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
  
  .header__el {
    margin: 0 10px;
  }
  
  .header__link {
    font-size: 0.9rem;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .header__link:hover {
    color: #478ac9;
  }
  
  /* Fix the collapse class */
  .header__nav.collapse {
    display: block !important;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .header {
      padding: 80px 0 10px 0; /* Add top padding to accommodate logo */
    }
    
    .header__container {
      flex-direction: column;
      align-items: center;
      position: relative;
    }
    
    /* Center the logo on mobile and position it at the top */
    .header__logo {
      position: absolute;
      top: -70px; /* Move logo to top of header */
      left: 50%;
      transform: translateX(-50%); /* Center horizontally */
      width: auto;
      margin-bottom: 0;
      z-index: 10;
    }
    
    .header__img {
      position: static; /* Remove absolute positioning on mobile */
      width: 120px; /* Smaller size for mobile */
      height: auto; /* Maintain aspect ratio */
      margin: 0; /* Remove margins */
    }
    
    .header__menu {
      margin-top: 15px;
      margin-left: 0; /* Reset the auto margin on mobile */
      width: 100%;
      justify-content: center;
    }
    
    .header__elenco {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .header__el {
      margin: 5px;
    }
  }
  
  /* Extra small mobile devices */
  @media (max-width: 480px) {
    .header {
      padding: 70px 0 10px 0;
    }
    
    .header__logo {
      top: -60px;
    }
    
    .header__img {
      width: 100px; /* Even smaller for very small screens */
    }
    
    .header__link {
      font-size: 0.8rem;
      padding: 6px 8px;
    }
  }