/* =========================================================
   NAVBAR GLOBAL
   CSS EXCLUSIU DE LA NAVEGACIÓ
   ========================================================= */

/* =========================================================
   HEADER
   ========================================================= */

   header {
    width: 100%;
    background: #fffaf2;
    border-bottom: 1px solid #dfd2c0;
    box-shadow: 0 4px 18px rgba(60, 42, 25, .05);
    position: relative;
    z-index: 1000;
  }
  
  
  /* =========================================================
     NAVBAR — ESCRIPTORI
     ========================================================= */
  
  .navbar {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  
  /* =========================================================
     LOGO
     ========================================================= */
  
  .logo-link {
    width: 100%;
    display: block;
    padding: 0;
  }
  
  #Sb-logo {
    width: 100%;
    max-width: none;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  
  /* =========================================================
     MENU — ESCRIPTORI
     ========================================================= */
  
  #MenuItems {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 25px 30px 20px;
    list-style: none;
    background: #fffaf2;
    border-top: 1px solid #dfd2c0;
    border-bottom: 1px solid #dfd2c0;
  
    font-family: "Times New Roman", Times, serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  
  #MenuItems li {
    margin: 0;
    padding: 0;
  }
  
  #MenuItems a {
    position: relative;
    display: inline-block;
    padding: 10px 2px;
    color: #292521;
    text-decoration: none;
  
    transition:
      color .25s ease,
      transform .25s ease;
  }
  
  #MenuItems a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 0;
    height: 1.5px;
    background: #397c78;
  
    transition: width .25s ease;
  }
  
  #MenuItems a:hover,
  #MenuItems a.active {
    color: #397c78;
  }
  
  #MenuItems a:hover::after,
  #MenuItems a.active::after {
    width: 100%;
  }
  
  
  /* =========================================================
     BOTÓ HAMBURGUESA
     ========================================================= */
  
  .menu-icon {
    display: none;
  }
  
  
  /* =========================================================
     TABLET
     ========================================================= */
  
  @media (max-width: 850px) {
  
    #MenuItems {
      gap: 18px;
    }
  
  }
  
  
  /* =========================================================
     MÒBIL
     ========================================================= */
  
  @media (max-width: 650px) {
  
    /* -------------------------------------------------------
       HEADER
       ------------------------------------------------------- */
  
    header {
      width: 100%;
      background: #fffaf2;
      border-bottom: 1px solid #dfd2c0;
      box-shadow: 0 3px 12px rgba(60, 42, 25, .08);
      position: relative;
      z-index: 1000;
    }
  
  
    /* -------------------------------------------------------
       BARRA SUPERIOR
       ------------------------------------------------------- */
  
    .navbar {
      width: 100%;
      height: 82px;
  
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
  
      padding: 10px 18px;
      position: relative;
    }
  
  
    /* -------------------------------------------------------
       LOGO MÒBIL
       ------------------------------------------------------- */
  
    .logo-link {
      width: auto;
      display: block;
      padding: 0;
    }
  
    #Sb-logo {
      display: block;
      width: 155px;
      max-width: 155px;
      height: auto;
      object-fit: contain;
    }
  
  
    /* -------------------------------------------------------
       HAMBURGUESA
       ------------------------------------------------------- */
  
    .menu-icon {
      display: flex;
  
      width: 48px;
      height: 48px;
  
      padding: 7px;
      margin: 0;
  
      flex-direction: column;
      justify-content: center;
      align-items: center;
  
      background: #fffaf2;
      border: 1px solid #dfd2c0;
      border-radius: 4px;
  
      cursor: pointer;
  
      position: relative;
      z-index: 1100;
  
      box-shadow:
        0 3px 10px rgba(60, 42, 25, .10);
    }
  
  
    /* -------------------------------------------------------
       TRES LÍNIES
       ------------------------------------------------------- */
  
    .menu-icon span {
      display: block;
  
      width: 25px;
      height: 2px;
  
      margin: 4px 0;
  
      background: #2f625f;
  
      transition:
        transform .25s ease,
        opacity .25s ease;
    }
  
  
    /* -------------------------------------------------------
       MENÚ TANCAT
       ------------------------------------------------------- */
  
    #MenuItems {
      display: none;
  
      width: 100%;
  
      margin: 0;
      padding: 0;
  
      list-style: none;
  
      flex-direction: column;
  
      background: #e4e4e4;
  
      border-top: 1px solid #cfcfcf;
      border-bottom: 1px solid #cfcfcf;
  
      box-shadow:
        0 8px 20px rgba(0, 0, 0, .12);
  
      position: absolute;
  
      left: 0;
      top: 82px;
  
      z-index: 1050;
    }
  
  
    /* -------------------------------------------------------
       MENÚ OBERT
       ------------------------------------------------------- */
  
    #MenuItems.open {
      display: flex;
    }
  
  
    /* -------------------------------------------------------
       ELEMENTS
       ------------------------------------------------------- */
  
    #MenuItems li {
      width: 100%;
      margin: 0;
      padding: 0;
  
      border-bottom: 1px solid #c8c8c8;
    }
  
    #MenuItems li:last-child {
      border-bottom: none;
    }
  
  
    /* -------------------------------------------------------
       ENLLAÇOS
       ------------------------------------------------------- */
  
    #MenuItems a {
      display: block;
  
      width: 100%;
  
      padding: 17px 22px;
  
      color: #292521;
  
      font-family: "Times New Roman", Times, serif;
      font-size: .95rem;
      font-weight: 600;
      letter-spacing: .10em;
      text-transform: uppercase;
  
      background: #d6d6d6;
  
      text-decoration: none;
  
      transition:
        background-color .2s ease,
        color .2s ease,
        padding-left .2s ease;
    }
  
  
    /* -------------------------------------------------------
       OPCIÓ ACTIVA
       ------------------------------------------------------- */
  
    #MenuItems a.active {
      color: #2f625f;
      background: #d5d5d5;
    }
  
  
    /* -------------------------------------------------------
       HOVER / FOCUS
       ------------------------------------------------------- */
  
    #MenuItems a:hover,
    #MenuItems a:focus {
      color: #2f625f;
      background: #f0f0f0;
      padding-left: 28px;
    }
  
  
    /* -------------------------------------------------------
       TREURE SUBRATLLAT D'ESCRIPTORI
       ------------------------------------------------------- */
  
    #MenuItems a::after {
      display: none;
    }
  
  }

  /* idiomes cAT / ES */

  /* =========================================================
   SELECTOR D'IDIOMES
   ========================================================= */

#MenuItems .language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 5px;
}

#MenuItems .language-switcher a {
  padding: 10px 2px;
  font-size: .85em;
  letter-spacing: .10em;
}

#MenuItems .language-switcher span {
  color: #dfd2c0;
}

#MenuItems .language-switcher a.language-active {
  color: #397c78;
}